Make discover into reusable class

This commit is contained in:
2021-10-03 22:50:15 +02:00
parent f4512b6a67
commit 7d1dab9775
4 changed files with 19 additions and 19 deletions

View File

@@ -43,7 +43,7 @@
</section> </section>
<div class="homepage__ctas" id="ctas"> <div class="homepage__ctas" id="ctas">
<p> <p class="discover">
Discover <strong>{count.photos} homes</strong><br> Discover <strong>{count.photos} homes</strong><br>
from <strong>{count.locations} cities</strong> from <strong>{count.locations} cities</strong>
of <strong>{count.countries} countries</strong> of <strong>{count.countries} countries</strong>

View File

@@ -0,0 +1,17 @@
.discover {
font-family: $font-sans;
font-size: rem(28px);
color: $color-tertiary;
font-weight: 300;
line-height: 1.5;
padding: 0 20px;
@include bp (sm) {
font-size: rem(32px);
}
strong {
font-weight: 300;
color: $color-secondary;
}
}

View File

@@ -183,24 +183,6 @@
margin-bottom: 160px; margin-bottom: 160px;
} }
p {
font-family: $font-sans;
font-size: rem(28px);
color: $color-tertiary;
font-weight: 300;
line-height: 1.5;
padding: 0 20px;
@include bp (sm) {
font-size: rem(32px);
}
strong {
font-weight: 300;
color: $color-secondary;
}
}
.cards { .cards {
justify-content: center; justify-content: center;
margin-top: 48px; margin-top: 48px;

View File

@@ -31,6 +31,7 @@
@import "atoms/button"; @import "atoms/button";
@import "atoms/badge"; @import "atoms/badge";
@import "atoms/arrow"; @import "atoms/arrow";
@import "atoms/discover";
@import "atoms/box-cta"; @import "atoms/box-cta";
@import "atoms/site-title"; @import "atoms/site-title";