more and consisten buttons
This commit is contained in:
@ -7,6 +7,4 @@
|
||||
= section.header
|
||||
.sm:mt-4.text-2xl{ prose_classes }
|
||||
= markdown(section)
|
||||
.mt-4.md:mt-8
|
||||
-if section.has_option?("button_text")
|
||||
= render 'merged/view/elements/button' , section: section
|
||||
=view_button(section , "my-2")
|
||||
|
@ -8,3 +8,4 @@
|
||||
= section.option("subheader")
|
||||
.mt-4.text-lg.pt-10{ prose_classes }
|
||||
= markdown(section)
|
||||
=view_button(section , "my-2")
|
||||
|
@ -10,6 +10,4 @@
|
||||
= section.option("subheader")
|
||||
.mt-8{ prose_classes }
|
||||
= markdown(section)
|
||||
-if section.has_option?("button_text")
|
||||
.mt-8.md:mt-8
|
||||
= render 'merged/view/elements/button' , section: section
|
||||
=view_button(section , "my-2")
|
||||
|
@ -10,3 +10,4 @@
|
||||
= section.option("subheader")
|
||||
.mt-3{ prose_classes }
|
||||
= markdown(section)
|
||||
=view_button(section , "my-2")
|
||||
|
@ -10,3 +10,8 @@
|
||||
|
||||
.max-w-full.mt-4.gap-16{ options(section , :text_column , :prose ) }
|
||||
= markdown_image(section)
|
||||
- if section.has_option?("button_text") and section.has_option?("button_link")
|
||||
%span.block.transition.group-hover:translate-x-1
|
||||
%a.text-gray-800.transition{:class => "hover:text-gray-500", :href => "#{section.option("button_link")}"}
|
||||
= section.option("button_text")
|
||||
→
|
||||
|
@ -8,8 +8,6 @@
|
||||
.flex.items-center.justify-center.w-16.h-16.mb-4.mr-2.rounded-full.lg:mb-0{options(card,:background )}
|
||||
= image_for( card , "h-8 w-8")
|
||||
%h6.font-semibold.leading-5{options(card, :color)}= card.header
|
||||
%p.mb-2.text-sm.text-gray-900{ prose_classes }
|
||||
.mb-2.text-sm.text-gray-900{ prose_classes }
|
||||
= markdown(card)
|
||||
- if card.has_option?("button_link")
|
||||
%a.inline-flex.items-center.text-sm.font-semibold.transition-colors.duration-200.text-deep-purple-accent-400.hover:text-deep-purple-800{"aria-label" => "", :href => "/"}
|
||||
=card.option("button_text")
|
||||
.text-center=view_button(card , "mb-2")
|
||||
|
@ -4,6 +4,4 @@
|
||||
%h4.mb-3.text-xl.font-bold.leading-5{options(card, :color)}= card.header
|
||||
.mb-3.text-sm.text-gray-900{ prose_classes }
|
||||
= markdown(card)
|
||||
- if card.has_option?("button_link")
|
||||
%a.inline-flex.items-center.font-semibold.transition-colors.duration-200.text-deep-purple-accent-400.hover:text-deep-purple-800{"aria-label" => "", :href => card.option("button_link") }
|
||||
=card.option("button_text")
|
||||
=view_button(card , "mb-2")
|
||||
|
@ -8,3 +8,4 @@
|
||||
.m-6{options(card , :background , :color ) }
|
||||
%div{ prose_classes }
|
||||
= markdown(card)
|
||||
=view_button(card , "my-2")
|
||||
|
@ -5,3 +5,4 @@
|
||||
.p-5{options(card , :text_align , :color)}
|
||||
.m-2.text-sm.leading-relaxed.line-clamp-3{ prose_classes }
|
||||
= markdown(card)
|
||||
=view_button(card , "my-2")
|
||||
|
@ -6,6 +6,4 @@
|
||||
-if card.has_option?("subheader")
|
||||
%h4.p-4.text-xl= card.option("subheader")
|
||||
.pose.mt-2.p-4= markdown(card)
|
||||
- if card.has_option?("button_link")
|
||||
%a.inline-flex.items-center.font-semibold.transition-colors.duration-200.text-deep-purple-accent-400.hover:text-deep-purple-800{"aria-label" => "", :href => card.option("button_link") }
|
||||
=card.option("button_text")
|
||||
=view_button(card)
|
||||
|
@ -5,3 +5,4 @@
|
||||
-if card.has_option?("subheader")
|
||||
%h4.p-4.text-xl= card.option("subheader")
|
||||
.pose.mt-2.p-4= markdown(card)
|
||||
=view_button(card , "mb-2")
|
||||
|
Reference in New Issue
Block a user