Edit site title large variant

This commit is contained in:
2021-10-04 22:04:17 +02:00
parent b0d6d9b054
commit 944871ae62
3 changed files with 30 additions and 3 deletions

View File

@@ -1,9 +1,10 @@
<script lang="ts"> <script lang="ts">
export let variant: string = 'large' export let variant: string = undefined
console.log(variant)
</script> </script>
<h2 class="site-title site-title--{variant}"> <h2 class="site-title {variant ? `site-title--${variant}` : ''}">
<strong>Houses</strong> <strong>Houses</strong>
<span>Of The</span> <span>Of The</span>
<strong class="site-title__pink">World</strong> <strong>World</strong>
</h2> </h2>

View File

@@ -28,4 +28,26 @@
&__pink { &__pink {
color: $color-secondary; color: $color-secondary;
} }
// Large variant
&--large {
display: flex;
align-items: baseline;
justify-content: center;
color: $color-lightpurple;
margin: 0 auto;
line-height: 1;
strong {
display: block;
font-size: rem(96px);
color: $color-secondary !important;
}
span {
display: block;
top: 0;
margin: 0 16px 0 24px;
font-size: rem(32px);
}
}
} }

View File

@@ -22,6 +22,10 @@
grid-row: 1; grid-row: 1;
margin: 0; margin: 0;
} }
strong:nth-of-type(2) {
color: $color-secondary;
}
} }
&__links { &__links {