chore: merge components and stylesheets in same directory name

This commit is contained in:
2024-07-24 10:59:34 +02:00
parent a9d937a2b5
commit cb7d83978d
92 changed files with 533 additions and 531 deletions

View File

@@ -1,5 +1,25 @@
<style lang="scss">
@import "../../style/atoms/badge";
.badge {
display: flex;
align-items: center;
justify-content: center;
min-height: 16px;
margin: 0 auto;
padding: 0 6px;
text-align: center;
background: $color-secondary-light;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 1px;
line-height: 1;
color: $color-primary-darker;
border-radius: 100vh;
// Small size
&--small {
font-size: rem(7px);
}
}
</style>
<script lang="ts">

View File

@@ -0,0 +1,63 @@
.box-cta {
display: flex;
align-items: center;
margin: 0 auto;
width: 260px;
height: 88px;
padding: 24px 32px 24px 48px;
background-color: $color-primary-tertiary20;
border-radius: 12px;
text-decoration: none;
box-shadow: none;
transition: background-color 0.8s var(--ease-quart), box-shadow 1.0s var(--ease-quart);
@include bp (sm) {
flex-direction: column;
width: 144px;
height: 176px;
padding: 24px 16px;
}
:global(.icon) {
width: 36px;
height: 36px;
color: #fff;
flex-shrink: 0;
transition: transform 0.6s var(--ease-quart);
@include bp (sm) {
margin: auto 0;
width: 48px;
height: 48px;
}
:global(svg) {
display: block;
width: 100%;
height: 100%;
}
}
span {
display: block;
margin-left: 20px;
color: $color-secondary-light;
text-align: left;
font-weight: 300;
@include bp (sm) {
margin-left: 0;
text-align: center;
}
}
// Hover
&:hover {
$shadow-color: rgba(0, 0, 0, 0.05);
background-color: #8f3d7b;
box-shadow: 0 6px 6px $shadow-color, 0 12px 12px $shadow-color, 0 24px 24px $shadow-color;
.icon {
transform: translate3d(0, -3px, 0);
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/atoms/box-cta";
@import "./BoxCTA";
</style>
<script lang="ts">

View File

@@ -0,0 +1,159 @@
.button {
display: inline-flex;
align-items: center;
background: #fff;
font-weight: 900;
line-height: 1;
font-family: $font-sans;
color: $color-text;
cursor: pointer;
border-radius: 100vh;
border: none;
text-decoration: none;
transition: background-color 0.55s var(--ease-quart), color 0.55s var(--ease-quart);
// Icon
:global(img), :global(svg) {
display: block;
color: $color-gray;
transition: color 0.3s;
}
// Hover effect
&:not([disabled]):hover {
background: $color-secondary;
:global(svg) {
color: #fff;
}
}
:global(.text-split__line) {
&:last-child {
--offset-y: 65%;
color: #fff;
}
}
/*
** Size variants
*/
// XSmall
&--xsmall {
height: 32px;
padding: 0 12px;
@include bp (md) {
height: 32px;
padding: 0 16px;
font-size: rem(14px);
}
}
// Small
&--small {
height: 40px;
padding: 0 16px;
font-size: rem(16px);
@include bp (md) {
height: 40px;
padding: 0 16px;
}
}
// Medium
&--medium {
height: 40px;
padding: 0 16px;
font-size: rem(16px);
@include bp (md) {
height: 48px;
font-size: rem(18px);
}
}
// Large
&--large {
height: 56px;
font-size: rem(16px);
@include bp (md) {
height: 72px;
height: 72px;
padding: 0 40px;
font-size: rem(18px);
}
}
/*
** Color Variants
*/
// Pink Light
&--pinklight {
color: $color-text;
background: $color-secondary-light;
// Hover
&:not([disabled]):hover {
color: #fff;
background: $color-secondary;
}
:global(.text-split__line) {
&:last-child {
color: #fff;
}
}
}
// Pink
&--pink {
color: #fff;
background: $color-secondary;
// Hover
&:not([disabled]):hover {
color: $color-text;
background-color: darken($color-secondary, 7);
}
}
// Beige
&--beige {
$color-button: #F2D3B8;
color: $color-text;
background: $color-button;
&[disabled] {
background: none;
border: 2px solid darken($color-button, 2);
}
// Hover
:global(.text-split__line) {
&:last-child {
color: $color-primary-tertiary20;
}
}
&:not([disabled]):hover {
background: darken($color-button, 2.5);
}
}
/*
** Icons variants
*/
&.has-icon-before {
:global(img), :global(svg) {
margin-right: 12px;
}
}
&.has-icon-after {
:global(img), :global(svg) {
margin-left: 12px;
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/atoms/button";
@import "./Button";
</style>
<script lang="ts">

View File

@@ -0,0 +1,49 @@
.button-cart {
position: relative;
pointer-events: auto;
@include bp (sm) {
display: flex;
margin-left: auto;
}
:global(button) {
overflow: visible;
padding: 0;
}
// Icon
:global(svg) {
display: block;
width: min(65%, 22px);
height: min(65%, 22px);
margin-top: -3px;
color: #fff;
}
// Quantity label
.quantity {
position: absolute;
z-index: 2;
top: 0;
left: 0;
transform: translateX(-33%);
display: flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
font-size: rem(11px);
font-weight: 600;
color: #fff;
background-color: $color-secondary;
border-radius: 100%;
opacity: 1;
@include bp (md) {
width: 22px;
height: 22px;
font-size: rem(12px);
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/atoms/button-cart";
@import "./ButtonCart";
</style>
<script lang="ts">
@@ -9,7 +9,7 @@
import { sendEvent } from '$utils/analytics'
// Components
import Icon from '$components/atoms/Icon.svelte'
import ButtonCircle from '$components/atoms/ButtonCircle.svelte'
import ButtonCircle from '$components/atoms/ButtonCircle/ButtonCircle.svelte'
const openCart = () => {
$cartOpen = true

View File

@@ -0,0 +1,127 @@
.button-circle {
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
background: #fff;
border-radius: 100vh;
transition: background-color 0.8s var(--ease-quart);
@include bp (md) {
width: 56px;
height: 56px;
}
& > :global(*) {
width: 22px;
height: 22px;
object-fit: contain;
width: clamp(16px, 50%, 24px);
height: clamp(16px, 50%, 24px);
transform-origin: center center;
transition: opacity 0.7s var(--ease-quart), transform 0.7s var(--ease-quart);
// Last clone
&:nth-child(2) {
position: absolute;
z-index: 1;
top: 50%;
left: 50%;
opacity: 0;
transform: translate3d(-150%, -50%, 0);
}
}
/*
** States
*/
// Hover
&.has-clone:not([disabled]):hover {
& > :global(*) {
&:first-child {
opacity: 0;
transform: scale(0.75) translate3d(20%, 0, 0);
}
&:last-child {
opacity: 1;
transform: translate3d(-50%, -50%, 0);
}
}
}
// Disabled
&[disabled] {
background: $color-primary;
border: 3px solid rgba(#fff, 0.2);
:global(svg) {
color: $color-primary-tertiary20;
}
}
/*
** Variants
*/
// Tiny size
&--tiny {
height: 24px !important;
width: 24px !important;
:global(img), :global(svg) {
width: 8px;
height: 8px;
object-fit: contain;
}
}
// Small size
&--small {
height: 32px !important;
width: 32px !important;
:global(img), :global(svg) {
width: 16px;
height: 16px;
object-fit: contain;
}
}
// Pink color
&--pink {
background: $color-secondary;
&:hover {
background: darken($color-secondary, 7);
}
}
// Purple color
&--purple {
color: #fff;
background: $color-primary-tertiary20;
&:hover {
background: $color-lightpurple;
}
}
// Gray color
&--gray {
background: #F2F2F2;
&:hover {
background: #D2D2D2;
}
}
// Gray color
&--gray-medium {
background: $color-gray;
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/atoms/button-circle";
@import "./ButtonCircle";
</style>
<script lang="ts">

View File

@@ -1,5 +1,24 @@
<style lang="scss">
@import "../../style/atoms/discover";
.discover {
padding: 0 20px;
font-family: $font-sans;
font-size: rem(24px);
font-weight: 200;
line-height: 1.5;
color: $color-tertiary;
@include bp (sm) {
font-size: rem(28px);
}
@include bp (md) {
font-size: rem(32px);
}
strong {
color: $color-secondary;
font-weight: 200;
}
}
</style>
<script lang="ts">

View File

@@ -1,5 +1,20 @@
<style lang="scss">
@import "../../style/atoms/arrow";
.arrow {
display: block;
// Colors
&--white {
color: #fff;
}
&--pink {
color: $color-secondary;
}
// Variants
&--flip {
transform: rotate(180deg);
}
}
</style>
<script lang="ts">

View File

@@ -0,0 +1,76 @@
.site-title {
font-family: $font-serif;
:global(.middle) {
position: relative;
top: -4px;
font-weight: 600;
color: $color-lightpurple;
text-transform: uppercase;
letter-spacing: 1px;
}
/*
** Variants
*/
// Default: Two lines
&--lines {
line-height: clamp(100%, 1.5vw, 100%);
font-size: rem(30px);
@include bp (sm) {
font-size: clamp(#{rem(20px)}, 2.5vw, #{rem(30px)});
}
:global(.word-1) {
display: block;
color: $color-lilas-bright;
}
:global(.word-2) {
font-size: 0.45em;
}
:global(.word-3) {
display: inline-block;
margin-left: -0.023em;
color: $color-secondary;
}
:global(span) {
transition: color 0.25s;
}
}
// Inline Variant
&--inline {
display: block;
align-items: baseline;
color: $color-secondary;
justify-content: center;
font-size: rem(52px);
@include bp (mob-lg) {
font-size: rem(64px);
}
@include bp (sm) {
display: flex;
}
@include bp (sd) {
font-size: rem(96px);
}
:global(.middle) {
top: 0;
margin: 10px 0;
font-size: 0.3125em;
@include bp (sm) {
font-size: 0.333em;
margin: 0 10px 0 20px;
}
}
:global(.char) {
transition: none;
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/atoms/site-title";
@import "./SiteTitle";
</style>
<script lang="ts">

View File

@@ -0,0 +1,201 @@
.poster-layout {
background: $color-cream;
@include bp (sm) {
display: grid
}
// Title Location
&__title {
overflow: hidden;
width: auto;
grid-column: 1 / -1;
display: flex;
margin: clamp(72px, 24vw, 180px) 0 clamp(56px, 24vw, 120px);
@include bp (sm) {
margin: clamp(112px, 10vw, 200px) 0 clamp(64px, 8vw, 88px);
}
}
:global(h2) {
display: block;
white-space: nowrap;
margin-bottom: 16px;
margin-left: clamp(24px, 5vw, 48px);
font-size: clamp(120px, 20vw, 240px);
color: $color-secondary;
@include bp (mob-lg) {
margin-bottom: 40px;
}
@include bp (sm) {
font-size: clamp(200px, 20vw, 340px);
}
}
/*
** Product Layout
*/
// Poster Display
&__buy {
grid-column: 1 / -1;
margin: 0 20px 48px;
@include bp (sm) {
grid-column: 2 / span 10;
margin: 0 0 104px;
}
}
// Product Info
&__info {
margin-bottom: 32px;
@include bp (mob-lg) {
display: flex;
justify-content: space-between;
}
@include bp (sm) {
margin-bottom: 56px;
}
dl {
margin-bottom: 24px;
@include bp (mob-lg) {
flex: 1;
margin-bottom: 0;
padding-right: 16px;
}
}
// Title
dt {
color: $color-secondary;
line-height: 1.2;
}
// Text
dd {
margin-top: 8px;
color: $color-gray;
@include bp (sm) {
max-width: none;
}
}
}
// Images set
&__images {
@include bp (sm) {
--columns: 10;
position: relative;
z-index: 2;
grid-column: 14 / span var(--columns);
}
}
// Image
:global(.image) {
position: relative;
border-radius: 6px;
:global(img) {
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
&:after {
content: "";
display: block;
width: 100%;
padding-bottom: 75%;
}
}
:global(.image--1) {
grid-column: 1 / span 7;
@include bp (sm) {
grid-column: 1 / span 7;
}
}
:global(.image--2) {
grid-column: 2 / span 7;
margin: 32px 0;
@include bp (sm) {
grid-column: 2 / span 7;
margin: 48px 0;
}
}
:global(.image--3) {
grid-column: 1 / span 6;
z-index: 10;
margin-bottom: -64px;
@include bp (sm) {
grid-column: 5 / span 8;
margin-bottom: 0;
}
&:after {
padding-bottom: 128%;
}
}
:global(.image--4) {
grid-column: 1 / span 8;
margin: -56px 20px 20px;
@include bp (sm) {
grid-column: 5 / span 15;
margin-bottom: 120px;
margin-left: 0;
margin-right: 0;
}
}
// About
&__about {
background-color: #fff;
padding: 144px 0 112px;
margin: -24px 0 0;
font-size: rem(36px);
font-weight: 300;
color: $color-primary-tertiary20;
line-height: 1.4;
white-space: pre-line;
@include bp (sm) {
padding: clamp(88px, 20vw, 144px) 0 clamp(256px, 20vw, 320px);
margin: -120px 0;
}
.text {
grid-column: 1 / span 8;
max-width: 768px;
margin-left: 0;
margin-right: 0;
@include bp (sm) {
grid-column: 5 / span 12;
}
}
.headline {
font-weight: 300;
}
.details {
color: $color-gray;
margin-top: 32px;
@include bp (sm) {
margin-top: 40px;
}
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/layouts/poster";
@import "./PosterLayout";
</style>
<script lang="ts">
@@ -7,10 +7,10 @@
import { capitalizeFirstLetter } from 'utils/string'
// Components
import SplitText from '$components/SplitText.svelte'
import Button from '$components/atoms/Button.svelte'
import Button from '$components/atoms/Button/Button.svelte'
import Image from '$components/atoms/Image.svelte'
import ScrollingTitle from '$components/atoms/ScrollingTitle.svelte'
import Carousel from '$components/organisms/Carousel.svelte'
import Carousel from '$components/organisms/Carousel/Carousel.svelte'
export let product: any
export let shopProduct: any

View File

@@ -0,0 +1,124 @@
// Cart item
.cart-item {
position: relative;
display: flex;
align-items: center;
margin-bottom: 24px;
background: #fff;
color: $color-gray;
border-radius: 6px;
overflow: hidden;
transition: opacity 0.3s var(--ease-quart);
&:last-child {
margin-bottom: 0;
}
// Left Image
&__left {
width: 100px;
height: 150px;
margin-right: 20px;
@include bp (sm) {
width: 124px;
height: 180px;
margin-right: 32px;
}
img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 6px 0 0 6px;
}
}
// Details
&__right {
display: flex;
flex-direction: column;
flex: 1;
// Poster Title
h3 {
font-family: $font-serif;
color: $color-secondary;
font-size: rem(20px);
@include bp (sm) {
font-size: rem(28px);
}
}
// Text
p {
max-width: 152px;
margin: 8px 0 20px;
font-size: rem(12px);
line-height: 1.4;
@include bp (sm) {
font-size: rem(13px);
}
}
// Select
:global(.select) {
position: relative;
display: flex;
align-items: center;
height: 28px;
margin-right: auto;
padding: 2px 12px 0;
border: 1px solid rgba($color-lightgray, 0.3);
border-radius: 100vh;
cursor: pointer;
transition: border-color 0.4s var(--ease-quart);
:global(span) {
display: block;
font-size: rem(12px);
color: $color-text;
& + :global(span) {
margin-left: 4px;
}
}
:global(select) {
position: absolute;
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
text-align: center;
}
&:after {
content: "";
display: block;
width: 8px;
height: 5px;
margin-left: 4px;
color: red;
background: url('data:image/svg+xml; utf8, <svg width="8" height="5" viewBox="0 0 8 5" fill="none" xmlns="http://www.w3.org/2000/svg">\
<path d="m1 1 3 3 3-3" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\
</svg>');
}
// Hover
&:hover {
border-color: $color-secondary-light;
}
}
// Remove Icon
:global(.remove) {
position: absolute;
top: 16px;
right: 16px;
padding: 0;
}
}
}

View File

@@ -1,11 +1,11 @@
<style lang="scss">
@import "../../style/molecules/cart-item";
@import "./CartItem";
</style>
<script lang="ts">
import { createEventDispatcher } from 'svelte'
// Components
import ButtonCircle from '$components/atoms/ButtonCircle.svelte'
import ButtonCircle from '$components/atoms/ButtonCircle/ButtonCircle.svelte'
import Select from '$components/molecules/Select.svelte'
export let item: any

View File

@@ -0,0 +1,125 @@
// Email Form
.newsletter-form {
position: relative;
}
.email {
position: relative;
width: 100%;
max-width: 600px;
height: 56px;
margin-bottom: 20px;
padding: 0 24px;
border-radius: 100vh;
box-shadow: inset 0 0 0 2px $color-secondary;
transition: box-shadow 0.6s var(--ease-quart);
@include bp (sm) {
height: 64px;
padding: 0 30px;
}
input {
display: block;
width: 100%;
height: 100%;
font-size: rem(16px);
font-family: $font-sans;
font-weight: 300;
color: $color-tertiary;
background: none;
border: none;
@include bp (sm) {
font-size: rem(18px);
}
&::placeholder {
color: rgba($color-tertiary, 0.6);
opacity: 1;
}
}
:global(button) {
position: absolute !important;
right: 16px;
top: 50%;
transform: translateY(-50%);
margin-left: 32px;
flex-shrink: 0;
}
// States
&.is-focused, &:hover {
box-shadow: inset 0 0 0 4px $color-secondary;
}
}
// Bottom details
.bottom {
display: block;
text-align: center;
font-size: rem(14px);
max-width: 600px;
@include bp (sm) {
display: flex;
justify-content: center;
font-size: rem(16px);
}
.past-issues {
display: inline-flex;
align-items: center;
margin: 0 auto auto 0;
text-decoration: none;
color: $color-text;
&, span {
transition: color 0.2s, border-color 0.2s;
}
span {
display: block;
padding-bottom: 2px;
font-size: rem(14px);
color: $color-text;
margin-left: 8px;
border-bottom: 1px solid $color-text;
@include bp (sm) {
margin-left: 12px;
padding-bottom: 0;
font-size: rem(16px);
}
}
}
p {
color: $color-gray;
line-height: 1.3;
margin-top: 16px;
margin-bottom: 0;
@include bp (sm) {
margin-top: 0;
}
}
}
// Message
.message {
padding: 24px;
text-align: center;
border-radius: 8px;
&.is-error {
position: absolute;
top: 0;
left: 0;
width: 100%;
color: #fff;
background: $color-secondary;
}
&.is-success {
color: $color-text;
background: $color-tertiary;
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/molecules/newsletter-form";
@import "./EmailForm";
</style>
<script lang="ts">
@@ -8,7 +8,7 @@
import { sendEvent } from '$utils/analytics'
// Components
import IconArrow from '$components/atoms/IconArrow.svelte'
import ButtonCircle from '$components/atoms/ButtonCircle.svelte'
import ButtonCircle from '$components/atoms/ButtonCircle/ButtonCircle.svelte'
export let past = false
@@ -64,7 +64,7 @@
<form method="POST" action="/api/newsletter" on:submit|preventDefault={handleForm}
out:fly|local={{ y: -8, easing: quartOut, duration: 600 }}
>
<div class="newsletter-form__email" class:is-focused={inputInFocus}>
<div class="email" class:is-focused={inputInFocus}>
<input type="email" placeholder="Your email address" name="email" id="newsletter_email" required
on:focus={toggleFocus}
on:blur={toggleFocus}
@@ -79,7 +79,7 @@
</ButtonCircle>
</div>
<div class="newsletter-form__bottom">
<div class="bottom">
{#if past}
<a href="/subscribe" class="past-issues" data-sveltekit-noscroll>
<svg width="20" height="16" viewBox="0 0 20 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" aria-label="Newsletter icon">
@@ -94,7 +94,7 @@
{/if}
{#if formStatus && formStatus.message}
<div class="newsletter-form__message shadow-small"
<div class="message shadow-small"
class:is-error={!isSuccess}
class:is-success={isSuccess}
in:fly|local={{ y: 8, easing: quartOut, duration: 600, delay: isSuccess ? 600 : 0 }}

View File

@@ -0,0 +1,50 @@
.heading {
overflow: hidden;
margin-bottom: 72px;
text-align: center;
color: $color-tertiary;
@include bp (sm) {
margin-bottom: clamp(72px, 8vw, 128px);
}
// Title
:global(h1) {
margin-top: 56px;
line-height: 1;
color: $color-secondary;
@include bp (sm) {
margin-top: clamp(80px, 9vw, 160px);
}
}
}
// Text
.text {
width: 75%;
max-width: 360px;
margin: 40px auto 0;
font-weight: 200;
@include bp (sm) {
max-width: 600px;
margin-top: 72px;
}
:global(a) {
position: relative;
color: currentColor;
text-decoration: none;
display: inline-block;
background-image: linear-gradient(rgba($color-tertiary, 0.3), rgba($color-tertiary, 0.3));
background-position: 0 100%;
background-size: 100% 1px;
background-repeat: no-repeat;
transition: color 0.4s var(--ease-quart);
&:hover {
color: $color-secondary-light;
}
}
}

View File

@@ -1,9 +1,9 @@
<style lang="scss">
@import "../../style/molecules/heading";
@import "./Heading";
</style>
<script lang="ts">
import SiteTitle from '$components/atoms/SiteTitle.svelte'
import SiteTitle from '$components/atoms/SiteTitle/SiteTitle.svelte'
export let text: string
</script>

View File

@@ -0,0 +1,248 @@
.house {
position: relative;
overflow: hidden;
// Information
&__info {
--delay: 0.2s;
grid-column: 1 / -1;
margin-bottom: 32px;
padding: 0 20px;
overflow: hidden;
@include bp (mob-lg) {
max-width: min(540px, 85vw);
}
@include bp (sm) {
grid-column: 6 / span 14;
margin-bottom: 56px;
padding: 0;
max-width: 800px;
}
h2 {
opacity: 0;
transform: translate3d(0, 25%, 0);
transition: transform 1.2s var(--ease-quart), opacity 1.2s var(--ease-quart);
transition-delay: var(--delay);
}
.info {
display: block;
margin-top: 12px;
color: $color-lightgray;
line-height: 1.5;
opacity: 0;
transition: opacity 1.2s var(--ease-quart);
transition-delay: var(--delay);
@include bp (sm) {
margin-top: 16px;
}
@include bp (md) {
margin-top: 24px;
}
& > * {
display: inline-block;
}
a {
text-decoration: none;
color: currentColor;
&:hover {
color: $color-secondary;
text-decoration: underline;
}
}
:global(svg) {
width: 1em;
height: 1em;
margin-right: 0.4em;
margin-bottom: 3px;
}
.sep {
margin: 0 4px;
}
}
}
// Photo
&__photo {
position: relative;
grid-column: 1 / -1;
opacity: 0;
transition: opacity 2s var(--ease-quart);
& > a {
grid-column: 1 / -1;
width: 100%;
height: 100%;
text-decoration: none;
cursor: zoom-in;
@include bp (sm) {
grid-column: 3 / span 17;
grid-row: 1;
}
}
:global(figure) {
position: relative;
z-index: 5;
display: flex;
justify-content: center;
height: 100%;
aspect-ratio: 3 / 2;
overflow: hidden;
border-radius: 0;
@include bp (sm) {
border-radius: 8px;
}
// Aspect-ratio fallback
@supports not (aspect-ratio: auto) {
overflow: hidden;
padding-top: 66.66%;
height: 0;
}
}
:global(picture) {
height: 100%;
border-radius: 0;
// Aspect-ratio fallback
@supports not (aspect-ratio: auto) {
position: absolute;
width: fit-content;
top: 0;
left: 50%;
height: 100%;
transform: translateX(-50%);
}
}
:global(img) {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
transform: scale3d(1.1, 1.1, 1.1);
transition: transform 2s var(--ease-quart), opacity 1.2s var(--ease-quart);
will-change: transform;
}
// Variant: Not landscape
&.not-landscape {
figure {
background: $color-cream;
}
}
// Scale down image on hover
@media (hover: hover) {
a:hover {
:global(img) {
opacity: 0.7;
transform: scale3d(1.03, 1.03, 1.03);
transition-duration: 1.2s;
}
}
}
}
// Photo number
&__index {
position: absolute;
z-index: 1;
bottom: -64px;
right: 20px;
display: block;
text-align: right;
pointer-events: none;
user-select: none;
@include bp (sm) {
--offset: 1.75vw;
position: relative;
grid-column: 19 / span 6;
grid-row: 1;
white-space: nowrap;
bottom: auto;
right: auto;
align-self: center;
text-align: left;
transform: translate3d(var(--offset), 0, 0);
}
@include bp (fhd) {
--offset: 2.5vw;
}
// Specific cases
&.has-one-start {
@include bp (sm) {
transform: translate3d(calc(15% + var(--offset)), 0, 0);
}
}
}
// Even photos
&:nth-child(even) {
.house {
// Photo
&__photo {
& > a {
@include bp (sm) {
grid-column: 6 / span 17;
grid-row: 1;
}
}
}
// Info
&__info {
@include bp (sm) {
margin-left: auto;
text-align: right;
}
}
&__index {
@include bp (sm) {
grid-column-start: 1;
text-align: right;
transform: translate3d(calc(-1 * var(--offset)), 0, 0);
}
// Specific cases
&.has-one-start {
@include bp (sm) {
transform: translate3d(calc(-8% - var(--offset)), 0, 0);
}
}
&.has-one-end {
@include bp (sm) {
transform: translate3d(calc(-15% - var(--offset)), 0, 0);
}
}
}
}
}
}
// Visible state
:global(.is-visible) {
.house__info {
h2 {
opacity: 1;
transform: translate3d(0,0,0);
}
.info {
opacity: 1;
}
}
.house__photo {
opacity: 1;
:global(img) {
transform: scale3d(1.01, 1.01, 1.01);
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/molecules/house";
@import "./House";
</style>
<script lang="ts">

View File

@@ -0,0 +1,164 @@
.location {
display: block;
position: relative;
@include bp (sm) {
text-align: center;
}
a {
display: flex;
text-decoration: none;
@include bp (sm) {
align-items: center;
flex-direction: column;
justify-content: center;
padding: 24px;
}
// Background circle
&:after {
display: none;
opacity: 0;
content: "";
position: absolute;
pointer-events: none;
top: 50%;
left: 50%;
width: 256px;
height: 256px;
transform: translate3d(-50%, -50%, 0) scale(0.8);
transform-origin: 50% 50%;
background-color: rgba($color-tertiary, 0.1);
border-radius: 100%;
transition: transform 0.75s var(--ease-quart), opacity 0.75s var(--ease-quart);
@include bp (sm) {
display: block;
}
}
// Hover
&:hover {
&:after {
opacity: 1;
transform: translate3d(-50%, -50%, 0);
}
}
}
// Flag
:global(.flag) {
overflow: hidden;
width: 32px;
height: 32px;
flex-shrink: 0;
margin: 2px 24px 0 0;
border-radius: 100%;
transform: translateZ(0);
@include bp (sm) {
margin-top: 0;
margin-left: auto;
margin-right: auto;
}
:global(img) {
display: block;
width: 100%;
height: auto;
transform: translateZ(0);
}
}
// Location name
&__name {
display: block;
max-width: 304px;
margin: 0 0 0.2em;
font-size: rem(32px);
font-family: $font-serif;
font-weight: 300;
line-height: 1.1;
color: $color-secondary;
transition: color 0.75s var(--ease-quart);
@include bp (sm) {
margin: 20px 0 8px;
font-size: rem(40px);
}
@include bp (sd) {
font-size: rem(48px);
}
}
// Country
&__country {
color: $color-tertiary;
}
// Badge
:global(.badge) {
display: inline-flex;
@include bp (sm) {
position: absolute;
left: 50%;
bottom: -8px;
transform: translateX(-50%);
}
}
// Photos
&__photos {
display: none;
opacity: 0;
position: absolute;
z-index: 2;
top: -10%;
left: 50%;
width: 240px;
height: 160px;
background: #222;
border-radius: 6px;
transform: translate3d(calc(-50% + var(--offset-x)), calc(-50% + var(--offset-y)), 0) rotate(var(--rotate));
overflow: hidden;
box-shadow: 0 8px 8px rgba(#000, 0.1), 0 16px 28px rgba(#000, 0.12);
pointer-events: none;
transition: opacity 0.5s var(--ease-quart);
@include bp (sm) {
display: block;
}
}
// Photo
:global(.location__photo) {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 0.3s;
:global(img) {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
}
:global(.is-visible) {
opacity: 1;
}
// Hover
&:hover {
.location__photos {
opacity: 1;
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/molecules/location";
@import "./Location";
</style>
<script lang="ts">

View File

@@ -0,0 +1,119 @@
.issue {
position: relative;
display: flex;
background: #fff;
border-radius: 6px;
transition: background-color 0.4s, transform 0.7s var(--ease-quart);
will-change: transform;
a {
display: flex;
width: 100%;
padding: 20px;
text-decoration: none;
}
// Image
:global(picture) {
$shadow-color: rgba(#936B47, 0.06);
width: 80px;
margin-right: 16px;
margin-bottom: auto;
overflow: hidden;
border-radius: 3px;
box-shadow:
0 1.5px 1.5px $shadow-color,
0 3px 3px $shadow-color,
0 12px 12px $shadow-color;
:global(img) {
display: block;
width: 100%;
height: auto;
object-fit: cover;
}
}
// Title
dt {
margin-bottom: 8px;
color: $color-secondary;
font-size: rem(20px);
font-family: $font-serif;
font-weight: 400;
transition: color 0.2s;
}
// Description
dd {
font-size: rem(14px);
color: $color-gray;
}
// Date
time {
display: block;
margin-top: 8px;
opacity: 0.6;
font-size: rem(12px);
}
// Under layer
&:after {
content: "";
display: block;
position: absolute;
z-index: -1;
top: 0;
left: 2%;
width: 96%;
height: 100%;
border-radius: 6px;
background: rgba(#fff, 0.4);
transition: transform 0.7s var(--ease-quart);
}
// Hover
&:hover {
background: $color-cream;
transform: rotate(-1.25deg) translateZ(0) !important;
dt {
color: $color-primary;
}
&:after {
transform: rotate(3deg) translateZ(0);
}
}
// Large Variant
&.is-large {
a {
@include bp (sm) {
padding: 28px 64px;
align-items: center;
}
}
dt {
@include bp (sm) {
font-size: rem(24px);
}
}
dd {
@include bp (sm) {
font-size: rem(16px);
}
}
time {
@include bp (sm) {
margin-top: 16px;
font-size: rem(14px);
}
}
:global(picture) {
@include bp (sm) {
width: 200px;
max-height: 140px;
border-radius: 6px;
margin-right: 40px;
}
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/molecules/issue";
@import "./NewsletterIssue";
</style>
<script lang="ts">

View File

@@ -0,0 +1,61 @@
.notification-cart {
display: flex;
background-color: #fff;
color: $color-gray;
border-radius: 6px;
align-items: center;
overflow: hidden;
cursor: pointer;
pointer-events: auto;
}
// Left Image
.left {
margin-right: 20px;
width: 100px;
height: 150px;
@include bp (sm) {
margin-right: 24px;
width: 58px;
height: 88px;
}
img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
}
// Details
.right {
display: flex;
flex-direction: column;
margin-right: 24px;
justify-content: center;
// Poster Title
h3 {
font-family: $font-serif;
color: $color-secondary;
font-size: rem(20px);
@include bp (sm) {
font-size: rem(18px);
}
}
// Text
p {
font-size: rem(12px);
line-height: 1.4;
max-width: 124px;
margin: 4px 0;
@include bp (sm) {
font-size: rem(13px);
max-width: none;
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/molecules/notification-cart";
@import "./NotificationCart";
</style>
<script lang="ts">
@@ -22,11 +22,12 @@
transition:fly={{ y: 20, duration: 700, easing: quartOut }}
on:click={closeNotification}
on:keydown
role="presentation"
>
<div class="notification-cart__left">
<div class="left">
<img src={image} width={58} height={88} alt={title}>
</div>
<div class="notification-cart__right">
<div class="right">
<h3>{title}</h3>
<p>{name}</p>
</div>

View File

@@ -0,0 +1,59 @@
// Pagination
.pagination {
position: relative;
display: block;
margin: auto 0;
cursor: pointer;
&.is-disabled {
cursor: not-allowed;
}
// Progress
&__progress {
position: relative;
display: inline-block;
font-size: rem(88px);
color: rgba($color-text, 0.2);
font-family: $font-serif;
font-weight: 200;
line-height: 1;
letter-spacing: -0.05em;
transition: color 0.5s;
@include bp (sm) {
font-size: clamp(80px, 16vw, #{rem(160px)});
}
span {
display: inline-block;
margin: 0 -12px;
}
}
// Hover
&:not([disabled]):hover {
.pagination__progress {
color: rgba($color-text, 0.4);
}
}
// Label
:global(p) {
display: block;
margin: 16px auto 0;
text-align: center;
font-family: $font-sans;
text-transform: uppercase;
color: $color-text;
letter-spacing: 0.1em;
font-weight: 400;
font-size: rem(14px);
}
// More button
:global(.more) {
color: $color-secondary;
font-weight: 500;
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/molecules/pagination";
@import "./Pagination";
</style>
<script lang="ts">
@@ -8,8 +8,10 @@
export let total: number
</script>
<div class="pagination" role="button" tabindex="0"
disabled={ended ? ended : undefined}
<div
class="pagination"
class:is-disabled={ended ? ended : undefined}
role="button" tabindex="0"
on:click
on:keydown
>

View File

@@ -0,0 +1,121 @@
.photo-card {
a {
display: block;
overflow: hidden;
cursor: zoom-in;
border-radius: 8px;
box-shadow: 0 16px 12px rgba(#000, 0.15), 0 26px 52px rgba(#000, 0.2);
transition: transform 0.7s var(--ease-quart);
transform: translateZ(0);
will-change: transform;
}
// Image
:global(picture) {
width: 100%;
height: 100%;
background: $color-primary-tertiary20;
:global(img) {
display: block;
width: calc(100% + 2px);
height: calc(100% + 2px);
object-fit: cover;
transition: opacity 0.7s var(--ease-quart);
}
}
// Informations
&__info {
position: absolute;
z-index: 2;
bottom: 16px;
left: 20px;
right: 20px;
display: flex;
flex-wrap: wrap;
align-items: center;
color: $color-cream;
pointer-events: none;
font-size: clamp(#{rem(12px)}, 1.5vw, #{rem(14px)});
@include bp (sm) {
font-size: clamp(#{rem(12px)}, 1.2vw, #{rem(14px)});
}
:global(picture) {
width: 20px;
height: 20px;
margin-right: 12px;
border-radius: 100%;
overflow: hidden;
@include bp (sm) {
width: 24px;
height: 24px;
margin-right: 16px;
}
:global(img) {
display: block;
width: 100%;
height: 100%;
}
}
:global(p) {
max-width: min(80%, 300px);
line-height: 1.4;
}
& > :global(*) {
opacity: 0;
transform: translate3d(0, 8px, 0);
transition: opacity 0.7s var(--ease-quart), transform 0.8s var(--ease-quart);
@include bp (md) {
transform: translate3d(0, 8px, 0);
}
}
}
// Gradient
a:after {
content: "";
display: block;
opacity: 0;
position: absolute;
z-index: 1;
pointer-events: none;
bottom: 0;
left: 0;
width: 100%;
height: 50%;
background: linear-gradient(180deg, rgba(#2D1745, 0) 0%, #2D1745 100%);
transition: opacity 0.8s var(--ease-quart);
}
// Slightly zoom in, show gradient and info on hover
@media (hover: hover) {
a:hover {
transform: scale(1.0375) rotate(2deg) translateZ(0);
:global(.photo-card__info) {
:global(*) {
opacity: 1;
transform: translate3d(0,0,0);
}
:global(picture) {
transition-delay: 100ms;
}
:global(p) {
transition-delay: 180ms;
}
}
&:after {
opacity: 1;
}
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/molecules/photo-card";
@import "./PhotoCard";
</style>
<script lang="ts">

View File

@@ -0,0 +1,183 @@
.postcard {
--gap: clamp(8px, 0.7vw, 20px);
display: grid;
grid-template-columns: min(144px, 45%) auto;
align-items: baseline;
width: 100%;
height: 100%;
max-width: 333px;
max-height: 222px;
padding-top: clamp(12px, 1vw, 20px);
padding-right: calc(var(--gap) * 2);
padding-bottom: clamp(12px, 1.25vw, 32px);
padding-left: var(--gap);
background: $color-cream;
box-shadow: 0 16px 12px rgba(#000, 0.15), 0 26px 52px rgba(#000, 0.2);
&__left {
display: flex;
align-items: flex-end;
height: 100%;
padding-bottom: 4px;
padding-right: var(--gap);
border-right: 1px solid rgba(#000, 0.2);
}
&__right {
position: relative;
display: flex;
align-items: flex-end;
height: 100%;
margin-top: auto;
}
// Country Title
&__country {
position: relative;
margin-top: auto;
font-size: clamp(#{rem(14px)}, 2vw, #{rem(22px)});
color: $color-primary;
font-family: $font-serif;
line-height: 1.1;
@include bp (sm) {
font-size: clamp(#{rem(14px)}, 2.5vw, #{rem(22px)});
}
@include bp (sd) {
font-size: clamp(#{rem(14px)}, 1.35vw, #{rem(22px)});
}
strong {
color: $color-secondary;
font-weight: 300;
}
}
// Stamp
&__stamp {
position: absolute;
top: 0;
right: 0;
:global(img) {
display: block;
width: 100%;
height: auto;
}
.frame {
width: 32px;
}
:global(.flag) {
position: absolute;
top: 10px;
left: -8px;
transform: rotate(-14deg);
width: 24px;
height: 24px;
box-shadow: 0 0 0 3px $color-cream;
border-radius: 100%;
overflow: hidden;
:global(img) {
height: 100%;
object-fit: contain;
}
}
}
// Address
ul {
margin-top: auto;
padding-left: var(--gap);
width: 100%;
li {
display: block;
margin-bottom: clamp(2px, 0.25vw, 4px);
color: $color-text;
font-size: clamp(#{rem(11px)}, 1.2vw, #{rem(16px)});
line-height: 1.4;
border-bottom: 1px solid #D9CABD;
@include bp (sd) {
font-size: clamp(#{rem(12px)}, 0.8vw, #{rem(16px)});
}
}
}
/*
** Variants
*/
// Small size
&--small {
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 0;
max-width: 100%;
max-height: 100%;
grid-template: 1fr 2fr / 1fr;
padding: 12px;
ul {
padding-left: 0;
}
.postcard {
// Country
&__left {
height: auto;
border: none;
margin: auto 0;
padding-right: 40px;
br {
display: none;
}
}
&__country {
font-size: clamp(#{rem(12px)}, 3.25vw, #{rem(24px)});
@include bp (sm) {
font-size: clamp(#{rem(12px)}, 1.75vw, #{rem(20px)});
}
@include bp (sd) {
font-size: clamp(#{rem(12px)}, 1.5vw, #{rem(22px)});
}
}
// Infos
&__right {
position: static;
:global(.flag) {
width: 18px;
height: 18px;
}
}
&__stamp {
top: 8px;
right: 8px;
.frame {
width: 28px;
}
}
&__address {
li {
font-size: clamp(#{rem(10px)}, 2vw, #{rem(16px)});
@include bp (sm) {
font-size: clamp(#{rem(11px)}, 1.1vw, #{rem(16px)});
}
@include bp (sd) {
font-size: clamp(#{rem(11px)}, 0.9vw, #{rem(16px)});
}
}
}
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/organisms/postcard";
@import "./PostCard";
</style>
<script lang="ts">

View File

@@ -0,0 +1,101 @@
.poster {
position: relative;
border-radius: 6px;
overflow: hidden;
max-width: 326px;
@include bp (md) {
background-color: $color-primary-tertiary20;
max-width: 600px;
}
& > a {
display: block;
pointer-events: none;
}
// Poster image
:global(img) {
pointer-events: auto;
position: relative;
z-index: 2;
display: block;
width: 100%;
height: auto;
box-shadow:
0 6px 6px rgba(#000, 0.08),
0 12px 12px rgba(#000, 0.08),
0 24px 24px rgba(#000, 0.08);
border-radius: 4px;
transition: transform 0.8s var(--ease-quart), border-radius 0.8s var(--ease-quart);
}
// Hover effect
&:hover {
:global(img) {
@include bp (md) {
transform: scale(0.8) translate3d(0, -5%, 0);
border-radius: 8px;
}
}
.buttons {
transform: translate3d(0,0,0);
}
}
}
// Buttons
.buttons {
display: flex;
margin-top: 32px;
justify-content: center;
@include bp (md) {
position: absolute;
z-index: 1;
bottom: 4.25%;
left: 0;
width: 100%;
align-items: center;
justify-content: center;
margin-top: 40px;
transform: translate3d(0, 100%, 0);
transition: transform 0.8s var(--ease-quart);
}
& > :global(*) {
padding: 0;
font-size: rem(14px);
font-weight: 400;
color: $color-tertiary;
background: none;
&:first-child {
margin-right: 16px;
&:hover {
background: none;
}
}
&:last-child {
display: inline-flex;
align-items: center;
height: 30px;
padding: 0 12px;
color: $color-secondary;
border: 1px solid rgba($color-secondary, 0.4);
@include bp (md) {
border: none;
color: #fff;
background: $color-secondary;
}
&:hover {
@include bp (md) {
background-color: darken($color-secondary, 7);
}
}
}
}
}

View File

@@ -1,12 +1,12 @@
<style lang="scss">
@import "../../style/molecules/poster";
@import "./Poster";
</style>
<script lang="ts">
import { addToCart } from '$utils/functions/shop'
import { smoothScroll } from '$utils/stores'
// Components
import Button from '$components/atoms/Button.svelte'
import Button from '$components/atoms/Button/Button.svelte'
import Image from '$components/atoms/Image.svelte'
export let product: any

View File

@@ -0,0 +1,56 @@
// About page Step
.step {
position: relative;
display: block;
overflow: hidden;
padding: 32px;
background: $color-primary-darker;
border-radius: 12px;
transform: translateZ(0);
@include bp (sm) {
--columns: 11;
display: grid;
grid-template-rows: repeat(2, 1fr);
padding: 8% 0;
min-height: clamp(400px, 75vh, 800px);
border-radius: 16px;
}
}
// Image
.media {
position: relative;
z-index: 2;
display: block;
overflow: hidden;
width: 70%;
max-height: 550px;
margin-bottom: 28px;
border-radius: 6px;
@include bp (sm) {
grid-column: 2 / span 6;
grid-row: 1 / -1;
width: 100%;
height: auto;
margin-bottom: 48px;
}
:global(.image img), video {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
}
// Content
.text {
position: relative;
z-index: 2;
line-height: 1.5;
font-weight: 300;
color: $color-secondary-light;
grid-column: 2 / -2;
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/molecules/process-step";
@import "./ProcessStep";
</style>
<script lang="ts">

View File

@@ -0,0 +1,45 @@
.shop-locationswitcher {
pointer-events: auto;
// Overlaid
&.is-over {
dt {
color: #fff;
}
}
}
dt {
color: $color-primary;
font-weight: 400;
line-height: 1;
font-size: rem(12px);
}
dd {
color: $color-secondary;
svg {
display: inline-block;
width: 14px;
height: 14px;
margin-right: 4px;
@include bp (sm) {
width: 18px;
height: 18px;
}
}
select {
background: none;
border: none;
font-size: rem(18px);
color: $color-secondary;
font-family: $font-serif;
cursor: pointer;
appearance: none;
@include bp (sm) {
font-size: rem(24px);
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/molecules/shop-locationswitcher";
@import "./ShopLocationSwitcher";
</style>
<script lang="ts">

View File

@@ -0,0 +1,172 @@
.switcher {
--button-size: 44px;
$shadow-color: rgba(0, 0, 0, 0.05);
position: fixed;
z-index: 100;
bottom: var(--offset-sides);
left: var(--offset-sides);
pointer-events: none;
@include bp (md) {
--button-size: 56px;
}
// Links
&__links {
position: absolute;
z-index: 2;
bottom: calc(var(--button-size) + 16px);
left: 0;
max-width: 280px;
white-space: nowrap;
opacity: 0;
padding: 8px;
background: $color-primary-tertiary20;
border-radius: 12px;
transform: translate3d(0, 8px, 0);
box-shadow: 0 6px 6px $shadow-color, 0 12px 12px $shadow-color, 0 24px 24px $shadow-color;
transition: opacity 0.8s var(--ease-quart), transform 0.6s var(--ease-quart);
li {
display: block;
margin: 1px 0;
line-height: 1.5;
}
a {
display: flex;
align-items: center;
padding: 8px 16px 8px 10px;
color: #fff;
font-weight: 900;
font-size: rem(16px);
text-decoration: none;
border-radius: 6px;
transition: background-color 0.4s var(--ease-quart);
&:hover {
background: rgba($color-tertiary, 0.2);
:global(.icon) {
color: $color-tertiary;
}
}
}
:global(.icon) {
display: block;
width: 32px;
height: 32px;
object-fit: contain;
margin-right: 16px;
color: $color-secondary-light;
transition: color 0.4s var(--ease-quart);
}
// Active link
.is-active {
a {
background: rgba($color-secondary, 0.25);
}
}
}
// Button
&__button {
$shadow-color: rgba(0, 0, 0, 0.05);
width: var(--button-size);
height: var(--button-size);
display: flex;
align-items: center;
justify-content: center;
padding: 0;
pointer-events: auto;
background: $color-primary-tertiary20;
border-radius: 100%;
box-shadow: 0 6px 6px $shadow-color, 0 12px 12px $shadow-color, 0 24px 24px $shadow-color;
transition: background-color 0.6s var(--ease-quart);
// Dots container
span {
display: inline-flex;
flex-flow: column;
}
// Dot
i {
display: block;
width: 4px;
height: 4px;
margin: 1.5px 0;
border-radius: 100%;
background: #fff;
transition: transform 0.6s var(--ease-quart);
@include bp (md) {
width: 6px;
height: 6px;
margin: 2px 0;
}
}
// Hover
&:hover {
background-color: #7e5288;
i {
&:nth-child(1) { transform: translate3d(0, -2px, 0); }
&:nth-child(3) { transform: translate3d(0, 2px, 0); }
}
}
}
/*
** States
*/
// Open
&.is-open {
.switcher {
&__links {
opacity: 1;
pointer-events: auto;
transform: translate3d(0, 0, 0);
a {
pointer-events: auto;
}
}
&__button {
i {
&:nth-child(1) {
transform: translate3d(-5px, 5px, 0);
@include bp (md) {
transform: translate3d(-7px, 8px, 0);
}
}
&:nth-child(2) {
transform: translate3d(5px, -2px, 0);
@include bp (md) {
transform: translate3d(7px, -2px, 0);
}
}
&:nth-child(3) {
transform: translate3d(0px, -2px, 0);
@include bp (md) {
transform: translate3d(0px, -3px, 0);
}
}
}
}
}
}
// Sticky (end of page)
&.is-sticky {
// background: red !important;
// position: sticky;
// bottom: 0;
// z-index: 100;
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/molecules/switcher";
@import "./Switcher";
</style>
<script lang="ts">

View File

@@ -0,0 +1,119 @@
.toast {
display: flex;
align-items: center;
padding: 8px;
padding-right: 28px;
background: $color-cream;
border-radius: 8px;
@include bp (md) {
padding-right: 32px;
}
}
// Media
.media {
position: relative;
overflow: hidden;
flex-shrink: 0;
flex: 0 0 clamp(40px, 14vw, 64px);
aspect-ratio: 1 / 1.25;
height: 100%;
margin-right: 16px;
border-radius: 4px;
@include bp (md) {
flex: 0 0 min(7vw, 104px);
margin-right: 24px;
}
a {
display: block;
width: 100%;
height: 100%;
}
:global(picture) {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transform: scale(1.075);
transition: opacity 0.8s, transform 1.6s var(--ease-quart);
}
:global(img) {
object-position: center 32%;
}
:global(.is-visible) {
opacity: 1;
transform: scale(1);
}
:global(img) {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
@include bp (sm) {
position: absolute;
top: 0;
left: 0;
height: 100%;
}
}
}
// Content
.content {
color: $color-text;
font-size: rem(14px);
@include bp (md) {
font-size: rem(16px);
}
.text {
margin-bottom: 12px;
@include bp (md) {
margin-bottom: 20px;
}
}
:global(strong) {
font-weight: normal;
color: $color-secondary;
}
}
// Close
.close {
--size: 28px;
position: absolute;
top: 0;
right: 0;
width: var(--size);
height: var(--size);
display: flex;
align-items: center;
justify-content: center;
@include bp (sm) {
--size: 32px;
}
:global(svg) {
transition: transform 0.6s var(--ease-quart);
}
// Hover
&:hover {
:global(svg) {
transform: rotate(90deg) translateZ(0);
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/molecules/toast";
@import "./Toast";
</style>
<script lang="ts">
@@ -9,7 +9,7 @@
import { browser } from '$app/environment'
import { cx } from 'classix'
// Components
import Button from '$components/atoms/Button.svelte'
import Button from '$components/atoms/Button/Button.svelte'
import Image from '$components/atoms/Image.svelte'
export let id: string

View File

@@ -0,0 +1,102 @@
.banner {
position: relative;
z-index: 30;
height: 70vw;
max-height: 428px;
overflow: hidden;
@include bp (sm) {
max-height: 320px;
min-height: 275px;
}
// title
&__title {
position: absolute;
z-index: 2;
top: 50%;
left: 50%;
width: 100%;
transform: translate3d(-50%, -50%, 0);
h1 {
text-align: center;
text-shadow: 0px 8px 12px rgba(#000, 0.25);
:global(span), :global(strong) {
color: #fff;
}
:global(span) {
font-weight: 300;
}
}
}
// Top
&__top {
position: absolute;
z-index: 1;
top: 20px;
left: 0;
padding: 0 20px;
display: flex;
justify-content: space-between;
width: 100%;
margin: 0 auto;
@include bp (sm) {
top: 32px;
padding: 0 32px;
}
// Back
.back {
display: flex;
align-items: center;
color: #fff;
font-size: rem(14px);
color: $color-cream;
text-decoration: none;
transition: color 0.4s var(--ease-quart);
@include bp (sm) {
max-width: none;
font-size: rem(18px);
}
svg {
margin-right: 8px;
transition: transform 0.4s var(--ease-quart);
}
// Hover
&:hover {
color: $color-tertiary;
svg {
transform: translate3d(-4px, 0, 0);
}
}
}
}
// Background Image
:global(picture) {
position: relative;
display: flex;
align-items: flex-end;
width: 100%;
height: 100%;
background-color: $color-primary-darker;
pointer-events: none;
user-select: none;
:global(img) {
opacity: 0.55;
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/organisms/banner";
@import "./Banner";
</style>
<script lang="ts">

View File

@@ -0,0 +1,126 @@
.carousel {
position: relative;
overflow: hidden;
border-radius: 6px;
background: $color-primary-tertiary20;
transform: translateZ(0);
// Slides
&__slides {
display: flex;
}
:global(picture) {
position: relative;
flex: 0 0 100%;
color: $color-text;
cursor: pointer;
& :global(img) {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
}
// Dots
&__dots {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: center;
height: 32px;
padding: 0 12px;
background: rgba($color-tertiary, 0.5);
backdrop-filter: blur(16px);
border-radius: 100vh;
@include bp (sm) {
bottom: 28px;
height: 40px;
padding: 0 16px;
}
li {
display: block;
margin: 0 4px;
}
button {
$color-shadow: rgba(#533331, 0.1);
position: relative;
display: block;
width: 8px;
height: 8px;
border-radius: 100%;
background: #fff;
padding: 0;
overflow: hidden;
box-shadow: 0 1px 1px $color-shadow, 0 2px 2px $color-shadow;
transform: translateZ(0);
&:after {
content: "";
display: block;
position: absolute;
top: 50%;
left: 50%;
width: 125%;
height: 125%;
border-radius: 100%;
background: $color-secondary-light;
transform: translate3d(-50%, -50%, 0) scale3d(0,0,0);
transform-origin: 50% 50%;
transition: transform 1s var(--ease-quart);
}
}
// Active
.is-active {
button:after {
transform: translate3d(-50%, -50%, 0) scale3d(1,1,1);
}
}
}
// Arrow
&__arrow {
$color-shadow: rgba(#000, 0.075);
display: none;
// Enable only on devices with hover
@media (hover: hover) {
position: absolute;
top: 0;
left: 0;
opacity: 0;
display: block;
pointer-events: none;
transform: translate3d(var(--x), var(--y), 0);
transition: transform 0.6s var(--ease-quart), opacity 0.6s var(--ease-quart);
transform-origin: 50% 50%;
filter: drop-shadow(0 2px 2px $color-shadow) drop-shadow(0 8px 8px $color-shadow) drop-shadow(0 16px 16px $color-shadow);
}
svg {
display: block;
transition: transform 0.6s var(--ease-quart);
}
// Flipped for previous direction
&.is-flipped {
svg {
transform: rotate(-180deg);
}
}
}
// Show arrow on hover
&:hover {
.carousel__arrow {
opacity: 1;
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/organisms/carousel";
@import "./Carousel";
</style>
<script lang="ts">

View File

@@ -0,0 +1,241 @@
.cart {
position: fixed;
z-index: 202;
top: 80px;
right: 0;
width: 100%;
height: calc(var(--vh) - 80px);
display: flex;
flex-direction: column;
overflow: auto;
padding: 20px 20px 24px;
background-color: $color-cream;
border-radius: 8px 8px 0 0;
@include bp (sm) {
top: 24px;
right: 24px;
width: clamp(320px, 45vw, 500px);
height: calc(var(--vh) - 48px);
max-height: 1000px;
border-radius: 8px;
padding: 24px 32px 32px;
}
// Heading
&__heading {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24px;
padding-bottom: 8px;
border-bottom: 1px solid #E1D0C0;
@include bp (sm) {
padding-bottom: 12px;
margin-bottom: 32px;
}
// Title
h2 {
font-size: rem(32px);
font-family: $font-serif;
color: $color-secondary;
@include bp (sm) {
font-size: rem(48px);
}
}
// Close button
button {
display: block;
padding: 8px 12px;
margin-top: 8px;
margin-right: -12px;
color: $color-gray;
text-decoration: none;
transition: color 0.4s;
&:hover {
color: $color-secondary-bright;
}
}
}
// Content
&__content {
position: relative;
flex: 1;
margin-bottom: 32px;
}
// Total
&__total {
margin-top: auto;
color: $color-gray;
// Sum
&--sum {
display: flex;
align-items: baseline;
margin-bottom: 16px;
padding-bottom: 10px;
border-bottom: 1px solid #E1D0C0;
@include bp (sm) {
margin-bottom: 32px;
padding-bottom: 12px;
}
h3 {
color: $color-text;
font-size: rem(26px);
font-family: $font-serif;
@include bp (sm) {
font-size: rem(32px);
}
}
span {
margin-left: 12px;
font-size: rem(12px);
@include bp (sm) {
margin-bottom: 20px;
font-size: rem(13px);
}
}
p {
margin-left: auto;
color: $color-secondary;
font-family: $font-serif;
font-size: rem(26px);
@include bp (sm) {
font-size: rem(32px);
}
}
}
// Checkout
&--checkout {
@include bp (md) {
display: flex;
align-items: center;
}
p {
margin-right: auto;
margin-bottom: 16px;
padding-right: 12px;
font-size: rem(11px);
line-height: 1.5;
color: $color-gray;
@include bp (sm) {
margin-bottom: 0;
font-size: rem(14px);
line-height: 1.6;
}
@include bp (md) {
max-width: 304px;
}
:global(strong) {
font-weight: normal;
color: $color-secondary;
}
}
}
}
// Empty content
&__empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
padding: 24px;
font-size: rem(16px);
font-weight: 200;
background: #fff;
color: $color-gray;
border-radius: 6px;
@include bp (sm) {
font-size: rem(20px);
}
// Icon
:global(.icon) {
display: flex;
align-items: center;
justify-content: center;
width: 3.6em;
height: 3.6em;
margin-bottom: 16px;
color: #FF6C89;
background: $color-cream;
border-radius: 100%;
:global(svg) {
display: block;
width: auto;
height: 50%;
object-fit: contain;
}
}
}
// Updating message
&__update {
position: absolute;
z-index: 10;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: rem(20px);
color: $color-secondary;
}
// Location switcher
&-switcher {
position: fixed;
z-index: 202;
top: 20px;
left: 20px;
will-change: transform, opacity;
@include bp (sm) {
top: 32px;
left: 32px;
}
}
// Overlay
&-overlay {
position: fixed;
z-index: 201;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba($color-primary, 0.9);
cursor: w-resize;
}
// Updating state
&.is-updating {
:global(.cart-item) {
opacity: 0.1;
pointer-events: none;
user-select: none;
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/organisms/cart";
@import "./Cart";
</style>
<script lang="ts">
@@ -12,10 +12,10 @@
import { initSwell, getCart, updateCartItem, removeCartItem } from '$utils/functions/shop'
import { sendEvent } from '$utils/analytics'
// Components
import Button from '$components/atoms/Button.svelte'
import Button from '$components/atoms/Button/Button.svelte'
import Icon from '$components/atoms/Icon.svelte'
import CartItem from '$components/molecules/CartItem.svelte'
import ShopLocationSwitcher from '$components/molecules/ShopLocationSwitcher.svelte'
import CartItem from '$components/molecules/CartItem/CartItem.svelte'
import ShopLocationSwitcher from '$components/molecules/ShopLocationSwitcher/ShopLocationSwitcher.svelte'
// Block scroll if cart is open

View File

@@ -0,0 +1,210 @@
.collage {
display: grid;
grid-template-columns: repeat(16, 1fr);
grid-template-rows: repeat(3, 1fr);
margin: 0 -14vw;
height: 110vw;
@include bp (sm) {
grid-template-columns: repeat(32, 1fr);
grid-template-rows: repeat(2, 1fr);
margin: 0 -140px;
height: clamp(400px, 40vw, 800px);
}
:global(.photo-card) {
--rotation: 0deg;
position: relative;
display: block;
grid-column-end: span 8;
height: 100%;
margin-left: auto;
margin-right: auto;
@include bp (sm) {
height: clamp(156px, 18vw, 400px);
}
& > :global(*) {
transform: rotate(var(--rotation)) translateZ(0);
}
// First row
// Mobile: Top left
&:nth-child(1) {
--rotation: -10.5deg;
z-index: 5;
grid-column-start: 2;
grid-row: 1;
@include bp (sm) {
z-index: 10;
top: clamp(24px, 8vw, 128px);
}
}
// Mobile: Middle left
&:nth-child(2) {
--rotation: 3deg;
z-index: 3;
grid-column-start: 1;
grid-row: 2;
margin-top: -10vw;
left: -20vw;
@include bp (sm) {
z-index: 7;
grid-column-start: 7;
grid-row: 1;
top: clamp(16px, 3vw, 48px);
margin-top: 0;
left: 0;
}
}
// Mobile: Middle center
&:nth-child(3) {
z-index: 4;
grid-column-start: 5;
grid-row: 2;
margin-top: -12vw;
@include bp (sm) {
z-index: 6;
grid-column-start: 13;
grid-row: 1;
margin-top: 0;
}
}
// Mobile: Middle right
&:nth-child(4) {
--rotation: -3deg;
z-index: 3;
grid-column-start: 8;
grid-row: 2;
margin-top: -7vw;
left: 20vw;
@include bp (sm) {
z-index: 2;
grid-column-start: 19;
grid-row: 1;
top: clamp(16px, 3vw, 48px);
margin-top: 0;
left: 0;
}
}
// Mobile: Top right
&:nth-child(5) {
--rotation: 10.5deg;
z-index: 6;
grid-column-start: 8;
grid-row: 1;
@include bp (sm) {
z-index: 1;
top: clamp(24px, 8vw, 128px);
grid-column-start: 24;
}
}
// Second row
&:nth-child(6) {
display: none;
--rotation: -5.5deg;
@include bp (sm) {
display: block;
z-index: 9;
grid-column-start: 1;
grid-row: 2;
top: clamp(24px, 5.5vw, 88px);
}
}
&:nth-child(7) {
display: none;
--rotation: -8deg;
@include bp (sm) {
display: block;
z-index: 8;
grid-column-start: 5;
grid-row: 2;
}
}
// Mobile: Bottom left
&:nth-child(8) {
--rotation: 8deg;
z-index: 2;
grid-column-start: 2;
grid-row: 3;
margin-top: -16vw;
@include bp (sm) {
z-index: 5;
grid-column-start: 11;
grid-row: 2;
top: calc(-1 * clamp(20px, 3vw, 48px));
margin-top: 0;
}
}
// Mobile: Bottom right
&:nth-child(9) {
--rotation: -2deg;
z-index: 1;
grid-column-start: 8;
grid-row: 3;
margin-top: -16vw;
@include bp (sm) {
--rotation: 2deg;
z-index: 4;
grid-column-start: 15;
grid-row: 2;
top: calc(-1 * clamp(20px, 3vw, 48px));
margin-top: 0;
}
}
&:nth-child(10) {
--rotation: 8deg;
display: none;
@include bp (sm) {
display: block;
z-index: 3;
grid-column-start: 21;
grid-row: 2;
}
}
&:nth-child(11) {
--rotation: 5.5deg;
display: none;
@include bp (sm) {
z-index: 2;
grid-column-start: 25;
grid-row: 2;
top: clamp(24px, 5.5vw, 88px);
margin-right: 0;
display: block;
}
}
// Put card in front when hovering
&:hover {
z-index: 13;
}
}
// Not hovered
:global(.is-hovered) {
:global(img) {
opacity: 1.0 !important;
}
}
// Mouse over collage
&.is-hovering {
:global(.photo-card img) {
opacity: 0.5;
}
}
}

View File

@@ -1,9 +1,9 @@
<style lang="scss">
@import "../../style/organisms/collage";
@import "./Collage";
</style>
<script lang="ts">
import PhotoCard from '$components/molecules/PhotoCard.svelte'
import PhotoCard from '$components/molecules/PhotoCard/PhotoCard.svelte'
export let photos: any[] = []

View File

@@ -0,0 +1,128 @@
.footer {
background-color: $color-primary-darker;
padding: 24px 0 40px;
@include bp (sm) {
padding: 24px 0;
}
@include bp (md) {
padding: 0;
height: 120px;
}
.container {
justify-content: center;
height: 100%;
@include bp (sm) {
align-items: center;
}
}
// Site title
&__title {
grid-column: 1 / -1;
display: block;
margin: 0 auto 40px;
text-decoration: none;
@include bp (sm) {
grid-column: 2 / span 5;
grid-row: 1;
margin: auto 0 auto calc(var(--switcher-offset) + clamp(24px, 6vw, 8px));
}
:global(.site-title) {
line-height: 1;
}
// Hover
&:hover {
:global(strong), :global(span) {
color: #fff !important;
}
}
}
// Links
&__links {
grid-column: 1 / -1;
margin: 0 auto;
@include bp (sm) {
grid-column: 6 / span 18;
width: 100%;
grid-row: 1;
margin-top: 0.15em;
}
ul {
@include bp (sm) {
display: flex;
justify-content: flex-end;
}
}
li {
display: block;
@include bp (sm) {
margin-left: 4px;
}
@include bp (md) {
margin-left: 8px;
}
&:not(:last-child) {
margin-bottom: 12px;
@include bp (sm) {
margin-right: 4px;
margin-bottom: 0;
}
@include bp (md) {
margin-right: 8px;
}
}
}
a {
position: relative;
display: flex;
align-items: center;
justify-content: center;
padding: 0 8px;
color: #fff;
text-decoration: none;
font-size: rem(14px);
line-height: 1.3;
font-weight: 300;
@include bp (md) {
font-size: rem(16px);
justify-content: flex-end;
}
}
svg {
margin-right: 8px;
@include bp (md) {
margin-right: 12px;
}
}
// Instagram link
.instagram {
:global(svg) {
width: 1.2em;
height: auto;
transition: color 0.35s;
}
// Hover
a:hover {
svg {
color: $color-secondary;
}
}
}
}
}

View File

@@ -1,12 +1,12 @@
<style lang="scss">
@import "../../style/organisms/footer";
@import "./Footer";
</style>
<script lang="ts">
import { getContext } from 'svelte'
// Components
import SplitText from '$components/SplitText.svelte'
import SiteTitle from '$components/atoms/SiteTitle.svelte'
import SiteTitle from '$components/atoms/SiteTitle/SiteTitle.svelte'
const { settings: { instagram, footer_links } }: any = getContext('global')
</script>

View File

@@ -0,0 +1,215 @@
// Globe
.globe {
--width: clamp(700px, 100vw, 1315px);
position: relative;
z-index: 10;
user-select: none;
overflow: hidden;
// Canvas
&__canvas {
position: relative;
z-index: 2;
left: 50%;
transform: translateX(-50%) translateZ(0);
width: var(--width);
pointer-events: none;
@media (hover: hover) {
pointer-events: auto;
}
// Responsive square padding
&:after {
content: "";
display: block;
padding-bottom: 100%;
}
// Overlay
&:before {
content: "";
display: block;
position: absolute;
z-index: 21;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
pointer-events: none;
border-radius: 100%;
background: $color-primary;
transition: opacity 1.5s var(--ease-quart);
}
:global(canvas) {
position: absolute;
z-index: 10;
top: 0;
left: 0;
width: 100%;
height: 100%;
cursor: grab;
}
// Is faded under name
&:global(.is-faded:before) {
opacity: 0.65;
}
}
// Location name
&__location {
position: absolute;
z-index: 30;
top: 50%;
left: 0;
width: 100%;
padding-top: 0.25em;
overflow: hidden;
transform: translateY(-50%) translateZ(0);
pointer-events: none;
text-align: center;
:global(.char) {
transition: none;
}
:global(.name) {
font-family: $font-serif;
font-weight: 100;
letter-spacing: -0.035em;
line-height: 0.75;
color: $color-secondary;
font-size: clamp(#{rem(88px)}, 20vw, #{rem(320px)});
}
.country {
display: block;
text-transform: uppercase;
margin-top: 2em;
font-size: rem(14px);
color: $color-tertiary;
letter-spacing: 0.1em;
font-weight: 500;
@include bp (md) {
margin-top: 4em;
}
}
}
// Markers
&__markers {
position: relative;
z-index: 20;
pointer-events: none;
user-select: none;
li {
display: block;
margin: 0;
padding: 0;
}
}
// Marker
&__marker {
position: absolute;
top: 0;
left: 0;
user-select: none;
transform: translate3d(var(--x), var(--y), 0);
transition: opacity 0.4s var(--ease-quart);
a {
position: relative;
top: -8px;
left: -8px;
display: flex;
width: 16px;
height: 16px;
align-items: center;
justify-content: center;
text-decoration: none;
color: $color-secondary;
pointer-events: auto;
@include bp (md) {
top: -10px;
left: -10px;
width: 20px;
height: 20px;
}
// Dot
i {
display: block;
width: 6px;
height: 6px;
border-radius: 32px;
background: $color-secondary;
transition: box-shadow 0.4s var(--ease-quart), transform 0.4s var(--ease-quart);
transform-origin: 50% 50%;
@include bp (md) {
width: 10px;
height: 10px;
}
}
// Name
span {
display: none;
}
// Hover: Grow marker outline
&:hover {
i {
box-shadow: 0 0 0 8px rgba($color-tertiary, 0.25);
@include bp (md) {
box-shadow: 0 0 0 10px rgba($color-tertiary, 0.25);
}
}
}
}
// State: Is hidden
&:global(.is-hidden) {
opacity: 0;
i {
transform: scale(0) translateZ(0);
}
}
// State: Is disabled
&:global(.is-disabled a) {
pointer-events: none;
}
}
/*
** States and Variants
*/
// Cropped version
&.is-cropped {
overflow: hidden;
height: clamp(300px, 30vw, 500px);
}
// When dragging
:global(.is-grabbing) {
cursor: grabbing;
}
// Tweakpane
:global(.tp-rotv) {
position: absolute;
z-index: 10;
top: 0;
right: 0;
width: 300px;
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/modules/globe";
@import "./InteractiveGlobe";
</style>
<script lang="ts">

View File

@@ -0,0 +1,110 @@
.browse {
margin: 96px 0;
@include bp (sm) {
margin-bottom: 128px;
}
// Description
&__description {
font-size: rem(20px);
margin: 0 auto 32px;
max-width: 230px;
text-align: center;
color: $color-tertiary;
font-weight: 200;
line-height: 1.4;
@include bp (sm) {
font-size: rem(28px);
margin-bottom: 56px;
max-width: none;
}
}
// Continents
&__continents {
display: flex;
justify-content: center;
pointer-events: none;
li {
display: block;
margin: 0 8px;
pointer-events: auto;
transition: opacity 0.6s var(--ease-quart);
border-radius: 100vh;
:global(svg) {
width: 0;
height: 0;
opacity: 0;
transform: rotate(45deg) translateZ(0);
transition-duration: 0.6s;
transition-property: width, height, opacity, transform, color, margin;
transition-timing-function: var(--ease-quart);
color: $color-text;
}
&:not(.is-active) svg {
margin: 0;
}
// Active button
&.is-active {
:global(.button) {
background: $color-secondary;
&, & > :global(svg) {
color: #fff;
}
}
svg {
width: 12px;
height: 12px;
opacity: 1;
transform: rotate(0deg) translateZ(0);
}
}
}
}
// Locations
&__locations {
width: 75%;
margin: 88px auto 0;
padding: 0 32px;
@include bp (mob-lg) {
display: grid;
grid-template-columns: repeat(2, 1fr);
justify-content: center;
grid-gap: 24px 24px;
width: 85%;
padding: 0 24px;
}
@include bp (sm) {
display: flex;
flex-flow: row wrap;
width: 100%;
max-width: 1200px;
margin-top: 104px;
}
@include bp (sd) {
padding: 0;
}
li {
display: block;
margin-bottom: 40px;
@include bp (mob-lg) {
margin-bottom: 24px;
}
@include bp (sd) {
margin-left: 22px;
margin-right: 22px;
}
}
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/organisms/locations";
@import "./Locations";
</style>
<script lang="ts">
@@ -11,8 +11,8 @@
import { throttle } from 'utils/actions'
import { sendEvent } from '$utils/analytics'
// Components
import Button from '$components/atoms/Button.svelte'
import Location from '$components/molecules/Location.svelte'
import Button from '$components/atoms/Button/Button.svelte'
import Location from '$components/molecules/Location/Location.svelte'
export let locations: any[]

View File

@@ -0,0 +1,84 @@
.newsletter {
padding: clamp(40px, 4.5vw, 64px);
padding-bottom: clamp(48px, 4.5vw, 72px);
border-radius: 8px;
@include bp (sd) {
border-radius: 12px;
}
&__wrapper {
--columns: 20;
grid-column: 3 / span var(--columns);
@include bp (sd) {
--columns: 18;
grid-column: 4 / span var(--columns);
}
h2 {
color: $color-secondary;
margin-bottom: 8px;
@include bp (sm) {
margin-bottom: 16px;
}
}
& > p {
margin-bottom: 32px;
color: $color-text;
font-weight: 200;
@include bp (sm) {
max-width: 480px;
margin-bottom: 40px;
}
}
// Form
:global(.past-issues:hover) {
color: $color-secondary;
:global(span) {
color: $color-secondary;
border-color: $color-secondary;
}
}
}
// Form input
:global(.email) {
:global(input) {
color: $color-text;
}
:global(input::placeholder) {
color: $color-gray;
}
}
// Form message
:global(.message.is-success) {
color: #fff;
background: $color-primary-tertiary20;
}
/*
** Variants
*/
// Default color
&--default {
background: $color-tertiary 50% 0 / cover url(#{$dir-img}/newsletter-beige.jpg) no-repeat;
:global(.email) {
background: $color-tertiary;
}
}
// Light
&--light {
background: $color-cream 50% 0 / cover url(#{$dir-img}/newsletter-cream.jpg) no-repeat;
:global(.email) {
background: $color-cream;
}
}
}

View File

@@ -1,11 +1,11 @@
<style lang="scss">
@import "../../style/organisms/newsletter";
@import "./NewsletterModule";
</style>
<script lang="ts">
import { getContext } from 'svelte'
// Components
import EmailForm from '$components/molecules/EmailForm.svelte'
import EmailForm from '$components/molecules/EmailForm/EmailForm.svelte'
export let theme = 'default'

View File

@@ -0,0 +1,131 @@
/*
** Shop: Posters
*/
.shop-page__posters {
overflow: hidden;
padding: clamp(56px, 10vw, 120px) 20px 72px;
background: $color-primary-darker;
border-bottom: solid 1px $color-primary-tertiary20 ;
@include bp (sd) {
padding: 120px 0;
}
// Title
h3 {
grid-column: 2 / span 6;
margin-bottom: 48px;
font-family: $font-serif;
color: $color-cream;
font-size: rem(32px);
line-height: 1.1;
text-align: center;
@include bp (sm) {
grid-column: 1 / -1;
max-width: 360px;
margin: 0 auto 48px;
font-size: rem(48px);
text-align: center;
}
@include bp (sd) {
margin-bottom: 88px;
}
}
// Posters Set
.set {
--gap: 24px;
grid-column: 1 / -1;
display: block;
cursor: grab;
@include bp (mob-lg) {
grid-column: 2 / -2;
}
@include bp (sm) {
grid-column: 3 / -3;
}
@include bp (sd) {
cursor: default;
}
&__content {
display: flex;
margin: 0 -8px;
@include bp (mob-lg) {
margin: 0 -12px;
}
@include bp (md) {
}
@include bp (sd) {
--gap: clamp(32px, 2.5vw, 48px);
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--gap);
margin: 0;
}
@include bp (md) {
grid-template-columns: repeat(4, 1fr);
}
}
:global(.is-dragging) {
cursor: grabbing;
}
// Poster
:global(.poster) {
position: relative;
flex: 0 0 100%;
margin: 0 12px;
@include bp (mob-lg) {
flex: 0 0 calc(50% - 24px);
}
@include bp (md) {
flex: 0 0 calc(33.33% - 24px);
margin: 0 20px;
}
@include bp (sd) {
margin: 0 auto auto;
}
}
// Pagination
&__dots {
display: flex;
justify-content: center;
margin: 32px 0 48px;
li {
display: block;
padding: 4px;
cursor: pointer;
// Hover
&:hover {
button {
box-shadow: inset 0 0 0 8px $color-tertiary;
}
}
}
button {
display: block;
width: 8px;
height: 8px;
border-radius: 100%;
background: $color-primary-tertiary20;
padding: 0;
transition: box-shadow 1.0s var(--ease-quart);
}
.is-active {
button {
box-shadow: inset 0 0 0 8px $color-tertiary;
}
}
}
}
}

View File

@@ -1,12 +1,12 @@
<style lang="scss">
@import "../../style/pages/shop/posters";
@import "./PostersGrid";
</style>
<script lang="ts">
import { getContext, onMount } from 'svelte'
import EmblaCarousel, { type EmblaCarouselType } from 'embla-carousel'
// Components
import Poster from '$components/molecules/Poster.svelte'
import Poster from '$components/molecules/Poster/Poster.svelte'
import { debounce } from 'utils/actions'
export let posters: any = []

View File

@@ -0,0 +1,251 @@
/*
** Shop: Intro banner
*/
.shop-banner {
position: relative;
z-index: 30;
height: 30vw;
min-height: 430px;
overflow: hidden;
@include bp (lg) {
max-height: 400px;
min-height: 275px;
}
// Top Menu
.top {
position: absolute;
z-index: 1;
top: 20px;
left: 0;
padding: 0 20px;
display: flex;
justify-content: space-between;
width: 100%;
margin: 0 auto;
@include bp (sm) {
top: 32px;
padding: 0 32px;
}
// Back
.back {
display: flex;
align-items: center;
color: #fff;
font-size: rem(14px);
color: $color-cream;
text-decoration: none;
transition: color 0.4s var(--ease-quart);
@include bp (sm) {
max-width: none;
font-size: rem(18px);
}
svg {
margin-right: 8px;
transition: transform 0.4s var(--ease-quart);
}
// Hover
&:hover {
color: $color-tertiary;
svg {
transform: translate3d(-4px, 0, 0);
}
}
}
// Shop
:global(.shop-title) {
font-size: rem(14px);
color: $color-cream;
@include bp (sm) {
font-size: rem(18px);
}
}
}
// Page title
.title {
position: absolute;
z-index: 2;
top: 42%;
left: 50%;
width: 100%;
transform: translate3d(-50%, -50%, 0);
@include bp (sm) {
top: 40%;
left: 0;
transform: none;
}
:global(h1) {
text-align: center;
text-shadow: 0px 8px 12px rgba(#000, 0.25);
:global(span), :global(strong) {
color: #fff;
}
:global(span) {
font-weight: 300;
}
}
}
// Navigation
.nav {
position: absolute;
z-index: 20;
bottom: 0;
left: 0;
width: 100%;
.container {
padding: 0 0 24px;
@include bp (md) {
display: grid;
grid-template-columns: 15% auto 15%;
align-items: flex-end;
gap: 16px;
height: 100%;
padding: 0 32px 32px;
}
}
// Shop
p {
text-align: center;
margin-bottom: 8px;
@include bp (md) {
margin-right: auto;
}
}
// Navigation
nav {
display: flex;
justify-content: center;
min-height: 50px;
ul {
display: flex;
align-items: center;
overflow: auto;
@include bp (sm) {
justify-content: center;
overflow: hidden;
}
}
li {
display: block;
}
a {
text-decoration: none;
font-size: rem(22px);
font-family: $font-serif;
color: $color-tertiary;
margin: 0 10px;
transition: color 0.3s;
&:hover {
color: $color-secondary;
}
@include bp (sm) {
font-size: rem(24px);
margin: 0 12px;
}
}
// Active
.is-active {
a {
color: $color-secondary;
}
}
}
}
// Background Image
:global(picture) {
position: relative;
display: flex;
align-items: flex-end;
width: 100%;
height: 100%;
background-color: $color-primary-darker;
pointer-events: none;
user-select: none;
:global(img) {
opacity: 0.55;
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
// Gradient
&:before {
content: "";
display: block;
position: absolute;
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(180deg, rgba(45, 4, 88, 0) 72.5%, #1E0538 100%);
}
}
// Cart button
:global(.button-cart) {
position: absolute;
z-index: 21;
top: 16px;
right: 16px;
@include bp (sm) {
top: auto;
bottom: 32px;
right: 32px;
}
}
}
// Quick nav
.shop-quicknav {
--inset: 20px;
display: flex;
position: fixed;
z-index: 20;
top: var(--inset);
left: var(--inset);
right: var(--inset);
justify-content: flex-end;
transform: translate3d(0, -88px, 0);
transition: transform 1s var(--ease-quart);
transition-delay: 100ms;
pointer-events: none;
@include bp (sm) {
--inset: 32px;
justify-content: space-between;
}
// Visible state
&.is-visible {
transform: translate3d(0,0,0);
}
}

View File

@@ -1,5 +1,5 @@
<style lang="scss">
@import "../../style/pages/shop/banner";
@import "./ShopBanner";
</style>
<script lang="ts">
@@ -12,8 +12,8 @@
import { quartOut } from '$animations/easings'
// Components
import Image from '$components/atoms/Image.svelte'
import ButtonCart from '$components/atoms/ButtonCart.svelte'
import ShopLocationSwitcher from '$components/molecules/ShopLocationSwitcher.svelte'
import ButtonCart from '$components/atoms/ButtonCart/ButtonCart.svelte'
import ShopLocationSwitcher from '$components/molecules/ShopLocationSwitcher/ShopLocationSwitcher.svelte'
export let product: any = undefined

View File

@@ -0,0 +1,137 @@
.shop {
overflow: hidden;
background: #fff;
color: $color-text;
border-radius: 8px;
transform: translateZ(0);
@include bp (sd) {
border-radius: 12px;
}
.content {
@include bp (sm) {
display: grid;
grid-template-columns: 40% 1fr;
grid-template-rows: 1fr;
height: 100%;
}
}
// Images
&__images {
position: relative;
overflow: hidden;
min-height: 256px;
a {
display: block;
width: 100%;
height: 100%;
}
:global(picture) {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transform: scale(1.075);
transition: opacity 0.8s, transform 1.6s var(--ease-quart);
}
:global(img) {
object-position: center 32%;
}
:global(.is-visible) {
opacity: 1;
transform: scale(1);
}
:global(img) {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
@include bp (sm) {
position: absolute;
top: 0;
left: 0;
height: 100%;
}
}
}
// Content
&__content {
display: flex;
flex-direction: column;
max-width: 480px;
padding: 32px 40px;
border-radius: 12px;
@include bp (sm) {
$vw: 4.5vw;
padding: clamp(40px, $vw, 64px) clamp(48px, $vw, 72px) clamp(24px, $vw, 40px) clamp(40px, $vw, 64px);
}
:global(.button) {
margin-right: auto;
}
}
// Title
.title-medium {
color: $color-lightpurple;
margin-bottom: 8px;
@include bp (sm) {
margin-bottom: 16px;
}
}
p {
font-weight: 200;
margin-bottom: 20px;
@include bp (sm) {
margin-bottom: 24px;
}
}
.detail {
margin: auto 0 0;
padding-top: 32px;
color: $color-gray;
line-height: 1.4;
font-size: rem(14px);
@include bp (sm) {
padding-top: 24px;
}
}
/*
** Variants
*/
// No bottom text
&.has-no-bottom {
.shop__content {
@include bp (sm) {
$vw: 4.5vw;
padding: clamp(40px, $vw, 64px) clamp(48px, $vw, 72px) clamp(40px, $vw, 64px) clamp(40px, $vw, 64px);
}
:global(.button) {
@include bp (sm) {
margin-top: auto;
}
}
}
}
}

View File

@@ -1,11 +1,11 @@
<style lang="scss">
@import "../../style/organisms/shop";
@import "./ShopModule";
</style>
<script lang="ts">
import { getContext, onMount } from 'svelte'
// Components
import Button from '$components/atoms/Button.svelte'
import Button from '$components/atoms/Button/Button.svelte'
import Image from '$components/atoms/Image.svelte'
const { locations, shop }: any = getContext('global')