Fix Error page styles and ListCTAs

This commit is contained in:
2022-06-24 11:55:39 +02:00
parent 9913c1d7d9
commit b46df04258
4 changed files with 43 additions and 26 deletions

View File

@@ -5,6 +5,10 @@
justify-content: center; justify-content: center;
} }
:global(li) {
display: block;
}
& > :global(*) { & > :global(*) {
margin: 20px auto 0; margin: 20px auto 0;

View File

@@ -1,5 +1,5 @@
<style lang="scss"> <style lang="scss">
@import "../style/pages/shop"; @import "../style/pages/error";
</style> </style>
<script lang="ts"> <script lang="ts">
@@ -43,24 +43,30 @@
/> />
<ListCTAs> <ListCTAs>
<BoxCTA <li>
url="{$page.url.pathname}#locations" <BoxCTA
icon="globe" url="{$page.url.pathname}#locations"
label="Discover locations" icon="globe"
alt="Globe" label="Discover locations"
/> alt="Globe"
<BoxCTA />
url="/photos" </li>
icon="photos" <li>
label="Browse all photos" <BoxCTA
alt="Photos" url="/photos"
/> icon="photos"
<BoxCTA label="Browse all photos"
url="/shop" alt="Photos"
icon="bag" />
label="Shop our products" </li>
alt="Shopping bag" <li>
/> <BoxCTA
url="/shop"
icon="bag"
label="Shop our products"
alt="Shopping bag"
/>
</li>
</ListCTAs> </ListCTAs>
</div> </div>

View File

@@ -8,7 +8,7 @@
} }
// Heading // Heading
.heading { :global(.heading) {
padding: 0 24px; padding: 0 24px;
margin-bottom: 40px; margin-bottom: 40px;
@@ -16,11 +16,22 @@
margin-bottom: 72px; margin-bottom: 72px;
} }
p { :global(p) {
@include bp (sm, max) { @include bp (sm, max) {
max-width: 480px; max-width: 480px;
} }
} }
} }
} }
}
:global(.page-error) {
// Globe
:global(.globe) {
margin-top: 96px;
@include bp (sm) {
margin-top: 156px;
}
}
} }

View File

@@ -91,8 +91,8 @@
// CTAS // CTAS
&__ctas { &__ctas {
text-align: center;
margin-bottom: 96px; margin-bottom: 96px;
text-align: center;
@include bp (sm) { @include bp (sm) {
margin-bottom: 160px; margin-bottom: 160px;
@@ -106,10 +106,6 @@
margin-top: 72px; margin-top: 72px;
} }
} }
li {
display: block;
}
} }
// World title // World title