From 48959da1e302534b97e7e4a7de9a87ae65cfa744 Mon Sep 17 00:00:00 2001 From: Michael Cohen Date: Thu, 16 Nov 2023 13:33:54 -0800 Subject: [PATCH] Add link to official Ruby on Rails Mastodon account Associated issue: https://github.com/rails/rails/issues/50074 --- _sass/modules/_icon.scss | 11 +++++++++ _sass/modules/_text.scss | 4 ++-- assets/images/icon-mastodon.svg | 40 +++++++++++++++++++++++++++++++++ index.html | 2 +- 4 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 assets/images/icon-mastodon.svg diff --git a/_sass/modules/_icon.scss b/_sass/modules/_icon.scss index 81516c2c..6bf655bc 100755 --- a/_sass/modules/_icon.scss +++ b/_sass/modules/_icon.scss @@ -34,6 +34,17 @@ } + &--mastodon { + + padding-left: 23px; + + &:after { + background-image: url(../images/icon-mastodon.svg); + width: 19px; + } + + } + &--world { &:after { diff --git a/_sass/modules/_text.scss b/_sass/modules/_text.scss index 03612da4..a273a1c0 100755 --- a/_sass/modules/_text.scss +++ b/_sass/modules/_text.scss @@ -89,8 +89,8 @@ .text__body { padding: 60px; - margin-left: 60px; - margin-right: 60px; + margin-left: 20px; + margin-right: 20px; } } diff --git a/assets/images/icon-mastodon.svg b/assets/images/icon-mastodon.svg new file mode 100644 index 00000000..e7b66a20 --- /dev/null +++ b/assets/images/icon-mastodon.svg @@ -0,0 +1,40 @@ + + + + + + diff --git a/index.html b/index.html index 5bfb1a16..c9adcce7 100644 --- a/index.html +++ b/index.html @@ -388,7 +388,7 @@

See what’s new.

Learn more about Hotwire, the default front-end framework for Rails.

-

Stay up to date with Rails on and This Week in Rails.

+

Stay up to date with Rails on Mastodon, and This Week in Rails.