diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index a09eb6997..13004ceb1 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -33,6 +33,7 @@ @import "tags"; @import "admin/**/*"; @import "budgets/**/*"; +@import "layout/**/*"; @import "sdg/**/*"; @import "sdg_management/*"; @import "sdg_management/**/*"; diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 989393027..88ab4e31c 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -1633,23 +1633,6 @@ table { } } -.social { - - li { - display: inline-block; - } - - a { - font-size: rem-calc(24); - margin: 0 $line-height / 2; - text-decoration: none; - - &:hover { - @include brand-text; - } - } -} - .share-supported { text-align: center; diff --git a/app/assets/stylesheets/layout/social.scss b/app/assets/stylesheets/layout/social.scss new file mode 100644 index 000000000..8c78a7acc --- /dev/null +++ b/app/assets/stylesheets/layout/social.scss @@ -0,0 +1,16 @@ +.social { + + li { + display: inline-block; + } + + a { + font-size: rem-calc(24); + margin: 0 $line-height / 2; + text-decoration: none; + + &:hover { + @include brand-text; + } + } +} diff --git a/app/components/layout/social_component.html.erb b/app/components/layout/social_component.html.erb new file mode 100644 index 000000000..147937371 --- /dev/null +++ b/app/components/layout/social_component.html.erb @@ -0,0 +1,52 @@ +
+
+ +
+
diff --git a/app/components/layout/social_component.rb b/app/components/layout/social_component.rb new file mode 100644 index 000000000..101c1c165 --- /dev/null +++ b/app/components/layout/social_component.rb @@ -0,0 +1,3 @@ +class Layout::SocialComponent < ApplicationComponent + delegate :content_block, to: :helpers +end diff --git a/app/views/layouts/_footer.html.erb b/app/views/layouts/_footer.html.erb index 8b2d41f59..8e642fbac 100644 --- a/app/views/layouts/_footer.html.erb +++ b/app/views/layouts/_footer.html.erb @@ -31,57 +31,6 @@ -
-
- -
-
+ <%= render Layout::SocialComponent.new %>