🚧 Switch to monorepo with Turbo

This commit is contained in:
2023-01-10 12:53:42 +01:00
parent dd8715bb34
commit 25bb949a13
205 changed files with 14975 additions and 347 deletions

View File

@@ -0,0 +1,10 @@
/*
** Earth icon
*/
.anim-earth {
animation: moveEarth 4s linear infinite;
}
@keyframes moveEarth {
0% { transform: translate3d(-87px, 0, 0); }
100% { transform: translate3d(0,0,0); }
}

View File

@@ -0,0 +1,157 @@
// CSS Variables
:root {
// Sizes
--container-width: #{$container-width};
// Offsets
--switcher-offset: 16px;
// Animation
--ease-quart: cubic-bezier(.165, .84, .44, 1);
--ease-cubic: cubic-bezier(.785, .135, .15, .86);
--ease-inout-quart: cubic-bezier(.76, 0, .24, 1);
}
@include bp (sm) {
:root {
// Offsets
--switcher-offset: clamp(20px, 3vw, 40px);
}
}
html {
font: #{$base-font-size}/1.2 $font-sans;
font-weight: 400;
color: #fff;
min-width: 320px;
word-break: normal;
}
body {
@include font-smooth;
background: $color-primary;
color: #fff;
cursor: default;
overflow-x: hidden;
overscroll-behavior: none;
&.block-scroll {
overflow: hidden;
}
&.is-loading * {
cursor: wait !important;
}
}
*, *:before, *:after {
text-rendering: optimizeLegibility;
}
strong {
font-weight: 600;
}
em {
font-style: normal;
}
figure, p, dl, dt, dd, ul, ol, li {
margin: 0;
padding: 0;
}
figure, picture {
display: block;
}
nav li:before {
display: none;
}
label {
cursor: pointer;
}
button {
background: none;
border: none;
cursor: pointer;
&:global([disabled]) {
cursor: not-allowed;
}
}
// Scrollbar
html {
scrollbar-width: thin;
scrollbar-color: rgba($color-tertiary, 0.6) $color-primary-darker;
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: $color-primary-darker;
}
::-webkit-scrollbar-thumb {
background: rgba($color-tertiary, 0.6);
border: 4px solid $color-primary-darker;
border-radius: 10px;
}
// Accessibility outline
// Remove default focus styles for mouse users if :focus-visible is supported
[data-js-focus-visible] :focus:not([data-focus-visible-added]) {
outline: none;
}
[data-focus-visible-added], *:focus-visible {
outline: 1px dashed $color-secondary;
}
input[type="text"], input[type="email"], input[type="password"] {
outline: none;
}
// Selection
::selection { color: #fff; background: $color-secondary; }
::-moz-selection { color: #fff; background: $color-secondary; }
// Images glitches fix
// img {backface-visibility: hidden;}
/* Titles
========================================================================== */
#{headings(1,6)} {
margin: 0;
font-weight: normal;
font-style: normal;
}
/* Global elements
========================================================================== */
// Split text elements
.word, .char {
display: inline-block;
transform-style: preserve-3d;
will-change: transform;
}
.text-split {
span, &__line {
display: inline-block;
transition: opacity 0.7s var(--ease-quart), transform 0.7s var(--ease-quart);
}
}
// Mask for animations
.mask {
display: block;
overflow: hidden;
white-space: nowrap;
span {
display: inline-block;
}
}
// Page loading overlay
.page-loading {
position: fixed;
z-index: 2000;
top: 0;
left: 0;
width: 100%;
height: 100%;
cursor: wait;
}

View File

@@ -0,0 +1,81 @@
/*
** Box shadows
*/
// Box: Dark
.shadow-box-dark {
box-shadow:
0 6px 6px rgba(#000, 0.05),
0 12px 12px rgba(#000, 0.05),
0 24px 24px rgba(#000, 0.05);
}
// Box: Light
.shadow-box-light {
box-shadow:
0 6px 6px rgba(#736356, 0.05),
0 12px 12px rgba(#736356, 0.05),
0 24px 24px rgba(#736356, 0.05);
}
// Box: Photo
.shadow-photo {
$shadow-color: rgba(122, 93, 68, 0.075);
box-shadow:
0 1px 1px $shadow-color,
0 2px 2px $shadow-color,
0 4px 4px $shadow-color,
0 8px 8px $shadow-color,
0 16px 16px $shadow-color;
}
// Shadow: Small
.shadow-small {
$shadow-color: rgba(122, 93, 68, 0.05);
box-shadow:
0 1px 1px $shadow-color,
0 2px 2px $shadow-color,
0 4px 4px $shadow-color,
0 16px 16px $shadow-color;
}
/*
** Hovers
*/
// 3D effect link
.link-3d {
overflow: hidden;
.text-split {
perspective: 300px;
}
.text-split__line {
--offset-y: 66%;
transform-origin: bottom center;
&:last-child {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
color: $color-secondary;
transform: translate3d(0, var(--offset-y), 0);
opacity: 0;
}
}
&:not([disabled]):hover {
.text-split__line {
&:first-child {
opacity: 0;
transform: scale(0.92) translate3d(0, 12%, 0);
}
&:last-child {
opacity: 1;
transform: translate3d(0,0,0);
transition-delay: 55ms;
}
}
}
}

View File

@@ -0,0 +1,8 @@
/* Fonts list
========================================================================== */
@include font-face("Garnett", "G-Light", 200);
@include font-face("Garnett", "G-Regular", 400);
@include font-face("Garnett", "G-Medium", 500);
@include font-face("Garnett", "G-Semibold", 600);
@include font-face("Jazmin", "J-Extralight", 200);
@include font-face("Jazmin", "J-Light", 300);

View File

@@ -0,0 +1,232 @@
/* ==========================================================================
TITLES
========================================================================== */
// Huge
.title-huge {
font-family: $font-serif;
font-size: clamp(#{rem(200px)}, 38vw, #{rem(700px)});
font-weight: 200;
line-height: 1;
letter-spacing: -0.04em;
white-space: nowrap;
user-select: none;
pointer-events: none;
span {
transition: none;
}
}
// House Name
.title-image {
font-family: $font-serif;
font-size: rem(40px);
line-height: 1;
color: $color-secondary;
@include bp (sm) {
font-size: clamp(#{rem(40px)}, 7vw, #{rem(88px)});
}
}
// House Number
.title-index {
font-family: $font-serif;
font-size: rem(80px);
line-height: 1;
font-weight: 200;
letter-spacing: -0.05em;
color: rgba($color-tertiary, 0.6);
@include bp (sm) {
font-size: clamp(#{rem(80px)}, 24vw, #{rem(280px)});
}
}
// X-Large
.title-xl {
font-family: $font-serif;
font-size: rem(34px);
line-height: 1.2;
letter-spacing: -0.025em;
@include bp (sm) {
font-size: clamp(#{rem(34px)}, 4vw, #{rem(60px)});
}
}
// Big
.title-big {
font-family: $font-serif;
font-size: rem(28px);
line-height: 1.2;
letter-spacing: -0.025em;
@include bp (sm) {
font-size: rem(32px);
}
@include bp (md) {
font-size: clamp(#{rem(32px)}, 3.5vw, #{rem(48px)});
}
}
// Big - Sans Sefif
.title-big-sans {
font-size: rem(40px);
font-weight: 400;
line-height: 1.2;
letter-spacing: -0.02em;
@include bp (sm) {
font-size: clamp(#{rem(40px)}, 6vw, #{rem(56px)})
}
}
// Medium
.title-medium {
font-family: $font-serif;
font-size: rem(26px);
font-weight: 400;
line-height: 1.3;
@include bp (sd) {
font-size: rem(32px);
}
}
// Small
.title-small {
font-family: $font-serif;
color: $color-secondary;
font-size: rem(24px);
font-weight: 400;
line-height: 1.5;
@include bp (sm) {
font-size: rem(28px);
}
}
/* ==========================================================================
TEXT
========================================================================== */
// Huge
.text-huge {
font-size: rem(34px);
font-weight: 300;
line-height: 1.25;
@include bp (sm) {
font-size: rem(44px);
}
@include bp (sd) {
font-size: clamp(#{rem(44px)}, 5vw, #{rem(72px)});
}
}
// Big
.text-big {
font-size: rem(32px);
font-weight: 300;
line-height: 1.3;
@include bp (sm) {
font-size: rem(36px);
}
@include bp (sd) {
font-size: rem(44px);
}
}
// Large
.text-large {
font-size: rem(24px);
font-weight: 400;
line-height: 1.4;
@include bp (sm) {
font-size: rem(28px);
}
@include bp (sd) {
font-size: rem(32px);
}
}
// Medium
.text-medium {
font-size: rem(20px);
font-weight: 200;
line-height: 1.4;
@include bp (sm) {
font-size: rem(24px);
line-height: 1.5;
}
@include bp (sd) {
font-size: rem(28px);
}
}
// Normal
.text-normal {
font-size: rem(18px);
font-weight: 400;
line-height: 1.4;
@include bp (sm) {
font-size: rem(20px);
}
@include bp (sd) {
font-size: rem(22px);
line-height: 1.5;
}
}
// Small
.text-small {
font-size: rem(16px);
font-weight: 400;
line-height: 1.5;
@include bp (sd) {
font-size: rem(20px);
}
}
// XSmall
.text-xsmall {
font-size: rem(16px);
font-weight: 400;
line-height: 1.4;
@include bp (sm) {
font-size: rem(18px);
line-height: 1.5;
}
}
// Information
.text-info {
font-size: rem(14px);
line-height: 1.3;
@include bp (md) {
font-size: rem(16px);
line-height: 1.4;
}
}
// Label
.text-label {
font-size: rem(12px);
line-height: 1.4;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 1px;
&--small {
font-size: rem(10px);
}
}

View File

@@ -0,0 +1,58 @@
// Colors
$color-primary: #3C0576;
$color-primary-dark: #36046A;
$color-primary-darker: #2D0458;
$color-primary-tertiary20: #633185;
$color-secondary: #FF6C89;
$color-secondary-light: #FFB3C2;
$color-secondary-bright: #FF0536;
$color-text: #333;
$color-tertiary: #FFE0C5;
$color-lightpurple: #8B50B2;
$color-lilas-bright: #C78FEC;
$color-gray: #666;
$color-lightgray: #999;
$color-shadow-brown: #7A5D44;
$color-cream: #FEF6EF;
/* Fonts
========================================================================== */
$base-font-size: 28px !default;
// Families
$replacement-sans: "Helvetica, Arial, sans-serif";
$replacement-serif: "Georgia, serif";
$font-sans: "Garnett", #{$replacement-sans};
$font-serif: "Jazmin", #{$replacement-serif};
/* Sizes, margins and spacing
====================================================================== */
$base-width: 1600 !default;
$container-width: 1800px !default;
// Grid
$cols-m: 8 !default;
$cols-d: 24 !default;
/* Directories
========================================================================== */
$dir-img: "/images" !default;
$dir-fonts: "/fonts" !default;
/* Responsive breakpoints
========================================================================== */
$breakpoints: (
mob: 450px,
mob-lg: 550px,
xs: 767px,
sm: 768px,
md: 992px,
sd: 1200px,
lg: 1440px,
xl: 1600px,
fhd: 1920px,
) !default;

View File

@@ -0,0 +1,16 @@
.arrow {
display: block;
// Colors
&--white {
color: #fff;
}
&--pink {
color: $color-secondary;
}
// Variants
&--flip {
transform: rotate(180deg);
}
}

View File

@@ -0,0 +1,21 @@
.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);
}
}

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

@@ -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

@@ -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

@@ -0,0 +1,153 @@
.button {
display: inline-flex;
align-items: center;
height: 40px;
padding: 0 16px;
background: #fff;
font: 900 #{rem(16px)}/1 $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);
@include bp (md) {
height: 48px;
padding: 1px 24px 0;
font-size: rem(18px);
}
// 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 6px;
@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;
}
}
// 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

@@ -0,0 +1,20 @@
.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;
}
}

View File

@@ -0,0 +1,29 @@
.photo {
overflow: hidden;
background: $color-primary-tertiary20;
border-radius: 6px;
@include bp (md) {
border-radius: 8px;
}
a {
position: relative;
display: block;
height: 100%;
cursor: zoom-in;
& > picture {
height: 100%;
img {
display: block;
width: calc(100% + 2px);
height: calc(100% + 2px);
object-fit: cover;
pointer-events: none;
user-select: none;
}
}
}
}

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

@@ -0,0 +1,24 @@
@charset "UTF-8";
// Dependencies
@import "sanitize.css/sanitize";
// Tools
@import "tools/helpers";
// Base
@import "base";
@import "fonts";
@import "typography";
@import "effects";
// Layout
@import "layout/grid";
@import "layout/modules";
// Misc
@import "animations";
// Components (Atomic Design System)
// Atoms
@import "atoms/photo";

View File

@@ -0,0 +1,4 @@
// Tools
@import "variables";
@import "tools/mixins";
@import "tools/functions";

View File

@@ -0,0 +1,14 @@
/*
** Grid
*/
.grid {
--columns: #{$cols-m};
display: grid;
grid-template-columns: repeat(var(--columns), 1fr);
grid-column: 1 / -1;
align-items: start;
@include bp (sm) {
--columns: #{$cols-d};
}
}

View File

@@ -0,0 +1,40 @@
.grid-modules {
padding-bottom: 40px;
@include bp (sm) {
padding-bottom: 72px;
}
.wrap {
display: block;
grid-column: 1 / -1;
@include bp (sm) {
display: grid;
grid-column: 2 / span 22;
}
@include bp (sd) {
grid-template-columns: 1fr 40%;
grid-column-gap: clamp(32px, 2.5vw, 48px);
}
& > *:first-child {
@include bp (sd, max) {
margin-bottom: 20px;
}
@include bp (sd) {
margin-bottom: 0;
}
}
&:last-child {
margin-bottom: 0;
}
}
// With padding
&.is-spaced {
@include bp (sm, max) {
padding: 0 16px;
}
}
}

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

@@ -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

@@ -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

@@ -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

@@ -0,0 +1,247 @@
.house {
position: relative;
// 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

@@ -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

@@ -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

@@ -0,0 +1,124 @@
// 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;
}
:global(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);
}
}
:global(input::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

@@ -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

@@ -0,0 +1,59 @@
// Pagination
.pagination {
position: relative;
display: block;
margin: auto 0;
cursor: pointer;
&[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

@@ -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

@@ -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);
}
// 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);
}
}
}
}
}
// 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);
}
}
}

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

@@ -0,0 +1,45 @@
.shop-locationswitcher {
pointer-events: auto;
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);
}
}
}
// Overlaid
&.is-over {
dt {
color: #fff;
}
}
}

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(--switcher-offset);
left: var(--switcher-offset);
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

@@ -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

@@ -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

@@ -0,0 +1,236 @@
.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;
}
}
}
}
// 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

@@ -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

@@ -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

@@ -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

@@ -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(.newsletter-form__email) {
:global(input) {
color: $color-text;
}
:global(input::placeholder) {
color: $color-gray;
}
}
// Form message
:global(.newsletter-form__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(.newsletter-form__email) {
background: $color-tertiary;
}
}
// Light
&--light {
background: $color-cream 50% 0 / cover url(#{$dir-img}/newsletter-cream.jpg) no-repeat;
:global(.newsletter-form__email) {
background: $color-cream;
}
}
}

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

@@ -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

@@ -0,0 +1,656 @@
.about {
overflow: hidden;
:global(.picture) {
overflow: hidden;
background: $color-primary-tertiary20;
border-radius: 8px;
transform: translateZ(0);
@include bp (md) {
border-radius: 16px;
}
}
/*
** Introduction
*/
&__introduction {
padding: clamp(48px, 10vw, 80px) 0 136px;
@include bp (sm) {
padding: clamp(64px, 7vw, 128px) 0 clamp(200px, 20vw, 360px);
}
// Section title
h2 {
grid-column: 1 / -1;
margin-bottom: 16px;
@include bp (sm) {
grid-column: 3 / span 12;
grid-row: 1;
margin-bottom: 24px;
}
}
// Heading text
.heading {
grid-column: 1 / -1;
margin-bottom: 48px;
@include bp (sm) {
grid-column: 3 / -3;
}
@include bp (md) {
grid-column: 3 / span 12;
grid-row: 2;
align-self: baseline;
max-width: 788px;
margin-bottom: 0;
}
:global(strong) {
color: $color-secondary-light;
font-weight: inherit;
}
}
// Right text
.text {
grid-column: 1 / -2;
color: $color-tertiary;
@include bp (sm) {
grid-column: 3 / span 14;
}
@include bp (md) {
grid-column: 17 / span 6;
grid-row: 2;
align-self: baseline;
}
:global(a) {
display: inline-block;
color: currentColor;
text-decoration: none;
border-bottom: 1px solid rgba($color-tertiary, 0.3);
transition: color 0.3s;
&:hover {
color: $color-secondary-light;
}
}
}
}
/*
** Creation
*/
&__creation {
background: #fff;
padding-bottom: clamp(120px, 10vw, 160px);
@include bp (sm) {
padding-bottom: clamp(160px, 20vw, 240px);
}
// Figures
:global(picture) {
width: 100%;
:global(img) {
display: block;
width: 100%;
height: auto;
}
}
figcaption {
margin-left: auto;
margin-top: 16px;
color: $color-gray;
text-align: right;
line-height: 1.55;
@include bp (sm) {
margin-top: 24px;
}
}
// First photo
.first-photo {
grid-column: 1 / -1;
display: flex;
flex-direction: column;
margin: -74px 0 96px;
@include bp (sm) {
grid-column: 8 / -2;
margin: -10vw 0 clamp(48px, 7vw, 88px);
}
figcaption {
br {
@include bp (sm, max) {
display: none;
}
}
a {
color: inherit;
text-decoration: none;
transition: color 0.3s;
&:hover {
color: $color-secondary;
span {
border-color: currentColor;
}
}
}
img {
display: inline-block;
width: 16px;
height: 16px;
margin: -2px 2px 0 0.25em;
border-radius: 100%;
}
span {
display: inline-block;
border-bottom: 1px solid rgba($color-gray, 0.25);
transition: border-color 0.3s;
}
}
}
// Text content
h2 {
grid-column: 1 / -2;
max-width: 240px;
margin-bottom: 16px;
line-height: 1.2;
@include bp (sm) {
grid-column: 3 / span 10;
margin-bottom: 48px;
}
}
// Large text
.heading {
grid-column: 1 / -1;
margin-bottom: 72px;
color: $color-primary-tertiary20;
:global(strong) {
color: $color-lilas-bright;
font-weight: inherit;
}
@include bp (sm) {
grid-column: 3 / -3;
margin-bottom: 112px;
}
}
// Small paragraph
.text {
color: $color-text;
grid-column: 1 / -3;
align-self: center;
@include bp (sm) {
grid-column: 4 / span 8;
}
@include bp (md) {
grid-column: 9 / span 6;
}
}
// Portrait
:global(.portrait-photo) {
grid-column: 3 / -1;
align-self: center;
grid-row: 4;
@include bp (sm) {
grid-column: 13 / -3;
}
@include bp (md) {
grid-column: 16 / span 7;
}
}
.portrait-photo__caption {
grid-column: 3 / -1;
grid-row: 5;
margin-top: 16px;
margin-bottom: 40px;
text-align: right;
color: $color-gray;
line-height: 1.55;
@include bp (sm) {
grid-column: 16 / span 7;
margin: 24px 0 0;
}
}
}
/*
** Present
*/
&__present {
background-color: $color-cream;
// Poster image
figure {
grid-column: 1 / -1;
height: 100vw;
max-height: 486px;
margin-top: -64px;
margin-bottom: 72px;
@include bp (sm) {
grid-column: 3 / -6;
height: auto;
max-height: none;
margin-top: -96px;
margin-bottom: clamp(56px, 7vw, 88px);
}
@include bp (md) {
border-radius: 12px;
}
:global(picture) {
height: 100%;
}
:global(img) {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
}
h2 {
grid-column: 1 / -1;
line-height: 1;
@include bp (sm) {
grid-column: 3 / 7;
}
}
:global(p) {
color: $color-text;
}
.text {
grid-column: 1 / -2;
margin-top: 16px;
@include bp (sm) {
grid-column: 3 / span 6;
align-self: baseline;
margin-top: 24px;
}
}
.conclusion {
grid-column: 1 / -2;
margin-bottom: 72px;
@include bp (sm) {
grid-column: 11 / span 8;
margin: 96px 0 144px;
}
}
.heading {
grid-column: 1 / -1;
align-self: baseline;
margin: 64px 0 48px;
@include bp (sm) {
grid-column: 11 / -2;
margin: 0;
}
:global(p) {
max-width: 800px;
color: $color-primary-tertiary20;
}
}
}
// Showcase image
&__showcase {
padding: 0;
@include bp (sm) {
overflow: hidden;
height: 0;
padding-bottom: 120%;
}
:global(picture) {
grid-column: 1 / -1;
@include bp (sm) {
display: flex;
justify-content: center;
}
}
:global(img) {
display: block;
width: 100%;
height: auto;
@include bp (sm) {
width: 130%;
}
}
}
/*
** Process
*/
&__process {
position: relative;
z-index: 2;
margin-top: 48px;
@include bp (sm) {
margin-top: clamp(48px, 7vw, 96px);
}
& > .container {
align-items: center;
}
aside {
grid-column: 1 / -1;
@include bp (sm) {
grid-column: 3 / span 9;
}
// Heading text
.heading {
max-width: 280px;
margin-bottom: 40px;
@include bp (sm) {
margin-bottom: 80px;
}
h2 {
margin-bottom: 12px;
color: $color-secondary;
@include bp (sm) {
margin-bottom: 16px;
margin-bottom: .5em;
}
}
p {
max-width: 320px;
color: $color-tertiary;
font-weight: 300;
@include bp (sm) {
max-width: none;
}
}
}
// List of steps
ol {
li {
display: block;
margin: 4px 0;
overflow: hidden;
@include bp (sm) {
margin: 6px 0;
}
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
}
a {
display: block;
text-decoration: none;
color: $color-lilas-bright;
transition: color 0.3s;
&:hover {
color: $color-secondary-light;
}
}
.is-active {
a {
color: #fff;
}
}
}
}
// Steps grid
.steps {
position: relative;
grid-column: 1 / -1;
margin-top: 32px;
@include bp (sm) {
display: grid;
grid-template-rows: auto;
grid-column: 13 / span 11;
margin-top: 0;
}
& > :global(*) {
@include bp (sm) {
grid-row: 1;
grid-column: 1 / -1;
transform-origin: left center;
}
}
}
}
/*
** Photos grid
*/
&__photos {
position: relative;
z-index: 1;
margin-top: clamp(32px, 9vw, 80px);
@include bp (sm) {
margin-bottom: clamp(80px, 10vw, 128px);
}
.container-wide {
overflow: hidden;
@include bp (sm, max) {
width: 100%;
}
}
.photos-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 1.75vw;
margin: -5% -5% 0;
transform: rotate(-6deg) translateY(var(--parallax-y)) translateZ(0);
transition: transform 0.8s var(--ease-quart);
@include bp (sm) {
grid-template-columns: repeat(7, 1fr);
gap: 12px;
margin: -5% -5% 0;
}
}
:global(picture) {
width: 100%;
height: auto;
border-radius: 6px;
overflow: hidden;
cursor: pointer;
transition: opacity 1s var(--ease-quart);
@include bp (md) {
border-radius: 8px;
}
:global(img) {
display: block;
width: 100%;
height: auto;
user-select: none;
pointer-events: none;
}
}
$opacity-off: 0.2;
// States
:global(.is-disabled picture) {
opacity: $opacity-off;
}
:global(.is-hovered picture) {
opacity: 1;
}
:global(.is-hovered:not(.is-disabled) picture) {
opacity: $opacity-off;
}
// Mask
&:before {
content: "";
display: block;
position: absolute;
z-index: 2;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(0deg, rgba($color-primary, 1) 0%, rgba($color-primary, 0) 25%, rgba($color-primary, 0) 75%, rgba($color-primary, 1) 100%);
pointer-events: none;
}
}
// Interest
&__interest {
margin-top: calc(-1 * clamp(160px, 14vw, 256px));
& > .container {
grid-column: 1 / -1;
position: relative;
z-index: 2;
display: block;
margin-bottom: 36px;
padding: 72px 32px;
background: $color-primary-tertiary20;
border-radius: 8px;
box-shadow: 0px -24px 120px rgba($color-primary-darker, 0.8);
@include bp (sm) {
--columns: 22;
display: grid;
grid-column: 2 / -2;
margin-bottom: 64px;
padding: clamp(72px, 8vw, 160px) 0;
}
@include bp (md) {
border-radius: 12px;
}
}
h2 {
grid-column: 1 / -1;
margin-bottom: 64px;
color: #fff;
text-align: center;
@include bp (sm) {
margin-bottom: 104px;
}
}
.blocks {
@include bp (sm) {
grid-column: 4 / -4;
display: grid;
grid-template-columns: repeat(2, 1fr);
column-gap: 11.5%;
}
}
.block {
text-align: center;
&:not(:last-child) {
margin-bottom: 64px;
@include bp (sm) {
margin-bottom: 0;
}
}
h3 {
margin-bottom: 12px;
color: $color-secondary-light;
font-weight: 600;
}
:global(.text) {
margin-bottom: 24px;
font-weight: 300;
@include bp (sm) {
margin-bottom: 32px;
}
:global(a) {
color: currentColor;
text-decoration: none;
border-bottom: 1px solid rgba($color-tertiary, 0.3);
transition: color 0.3s;
&:hover {
color: $color-secondary-light;
}
}
}
// Button
:global(.button-container) {
position: relative;
height: 40px;
}
:global(.clipboard) {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%) translateZ(0);
display: inline-flex;
align-items: center;
height: 40px;
padding: 0 20px;
font-size: rem(14px);
font-weight: 400;
background: rgba($color-secondary, 0.5);
border-radius: 100vh;
}
}
}
}

View File

@@ -0,0 +1,122 @@
// Credits Page
.credits {
// List
&__list {
padding-bottom: 96px;
@include bp (sm, max) {
text-align: center;
}
}
&__category {
display: block;
border-top: 1px solid $color-lightpurple;
padding-top: 32px;
@include bp (sm) {
display: grid;
--columns: 18;
grid-column: 4 / span var(--columns);
padding-top: 48px;
}
h2 {
font-size: rem(24px);
line-height: 1;
@include bp (sm) {
grid-column: span 8;
font-size: rem(28px);
}
}
& > ul {
margin: 24px 0 56px;
@include bp (sm) {
grid-column: 11 / span 8;
margin: 0 0 72px 0;
padding: 0;
font-size: rem(28px);
}
& > li {
display: block;
margin-bottom: 40px;
&:last-child {
margin-bottom: 0;
}
}
}
a {
color: $color-tertiary;
text-decoration: none;
transition: color 0.2s;
}
dt {
display: block;
line-height: 1;
margin-bottom: 16px;
a:hover {
color: $color-secondary;
}
}
h3 {
font-size: rem(24px);
font-family: $font-serif;
@include bp (sm) {
font-size: rem(28px);
}
}
dd {
font-size: rem(14px);
@include bp (sm) {
font-size: rem(16px);
}
&, a {
color: rgba($color-tertiary, 0.6);
}
a:hover {
color: $color-tertiary;
}
li {
display: inline-block;
line-height: 1.7;
:global(picture) {
display: inline-block;
width: 12px;
height: 12px;
margin-right: 4px;
overflow: hidden;
vertical-align: middle;
border-radius: 100%;
transform: translateZ(0);
}
:global(img) {
display: block;
width: 100%;
height: 100%;
transform: translateZ(0);
}
&:after {
display: inline-block;
content: "";
margin: 0 0.35em 0 0.15em;
}
&:last-child:after {
display: none;
}
}
}
}
}

View File

@@ -0,0 +1,35 @@
.page-error {
// Top
&__top {
margin-bottom: 72px;
@include bp (sm) {
margin-bottom: 120px;
}
// Heading
:global(.heading) {
padding: 0 24px;
margin-bottom: 40px;
@include bp (sm) {
margin-bottom: 72px;
}
:global(p) {
@include bp (sm, max) {
max-width: 480px;
}
}
}
}
// Globe
:global(.globe) {
margin-top: 96px;
@include bp (sm) {
margin-top: 156px;
}
}
}

View File

@@ -0,0 +1,10 @@
// Explore Page
.explore {
overflow: hidden;
&__locations {
@include bp (sm, max) {
margin-top: 72px;
}
}
}

View File

@@ -0,0 +1,130 @@
// Homepage
.homepage {
overflow: hidden;
// Intro Section
&__intro {
padding-bottom: calc(96px + 20vw);
background: linear-gradient(180deg, $color-tertiary 85%, $color-primary 100%), $color-tertiary;
color: $color-text;
text-align: center;
@include bp (sm) {
padding-bottom: calc(280px + 10vw);
}
// Title
:global(.title-houses) {
display: inline-flex;
margin: -28px 0 0;
color: $color-secondary;
text-align: center;
@include bp (sm) {
margin-top: calc(-1 * clamp(24px, 5vw, 104px));
}
:global(.text-split) {
margin-left: calc(-1 * clamp(24px, 5vw, 64px));
}
:global(span) {
transition: none;
letter-spacing: -0.06em;
}
}
// Button
:global(.button) {
$color-shadow: rgba($color-shadow-brown, 0.05);
box-shadow:
0 1px 1px $color-shadow,
0 2px 2px $color-shadow,
0 4px 4px $color-shadow,
0 16px 16px $color-shadow;
margin-bottom: 40px;
:global(svg) {
width: 24px;
height: 24px;
color: $color-gray;
}
:global(.text-split__line) {
&:last-child {
color: #fff;
}
}
// Hover
&:hover {
background-color: $color-primary-tertiary20;
}
}
}
// Headline
&__headline {
max-width: 350px;
margin: clamp(24px, 10vw, 96px) auto 0;
@include bp (sm) {
max-width: 524px;
margin-top: 24px;
}
p {
margin-bottom: 24px;
@include bp (sm) {
margin-bottom: 32px;
}
}
}
// Photos Collage
&__photos {
position: relative;
width: 100%;
max-width: 2000px;
margin: calc(-1 * 96px - 4vw) 0 80px;
@include bp (sm) {
margin: calc(-1 * clamp(300px, 20vw, 500px)) auto clamp(64px, 6.5vw, 128px);
}
}
// CTAS
&__ctas {
margin-bottom: 96px;
text-align: center;
@include bp (sm) {
margin-bottom: 160px;
}
// List
:global(.list-cta) {
margin-top: 48px;
@include bp (sm) {
margin-top: 72px;
}
}
}
// World title
&__locations {
:global(.title-world) {
min-width: 100%;
display: inline-flex;
color: $color-primary-tertiary20;
text-align: center;
@include bp (sm) {
margin-top: calc(-1 * clamp(120px, 10vw, 216px));
}
:global(span:first-child) {
margin-right: -0.075em;
}
}
}
}

View File

@@ -0,0 +1,293 @@
// Location Page
.location-page {
background: #fff;
// Intro
&__intro {
position: relative;
background: $color-primary;
@include bp (sm) {
padding-top: clamp(40px, 14vw, 320px);
}
@include bp (lg) {
padding-top: clamp(40px, 18vw, 272px);
}
// Houses Of Title
.title {
position: relative;
z-index: 2;
grid-column: 1 / -1;
margin: 0 auto;
padding: 0 32px;
font-family: $font-serif;
line-height: 1;
text-transform: uppercase;
color: $color-lightpurple;
font-size: clamp(48px, 12vw, 160px);
text-align: center;
margin: min(360px, 60vw) auto;
@include bp (sm) {
display: flex;
flex-flow: row wrap;
align-items: baseline;
justify-content: center;
max-width: clamp(300px, 80vw, 1120px);
margin: 0 auto;
padding: 0;
}
strong {
display: block;
color: $color-secondary;
font-weight: 300;
text-transform: none;
}
.housesof {
grid-column: 1 / -1;
@include bp (sm) {
display: flex;
align-items: baseline;
// margin-right: auto;
// margin-left: -15vw;
}
span {
display: block;
font-size: 0.35em;
margin-top: 8px;
@include bp (sm) {
display: inline;
margin: 0 24px;
}
}
}
.city {
text-align: center;
@include bp (sm) {
// margin-left: 15vw;
// width: 80%;
// padding-left: min(400px, 16vw);
}
}
}
}
// Description
&__description {
grid-column: 1 / -1;
position: relative;
z-index: 2;
margin-bottom: -8px;
background-color: $color-tertiary;
color: $color-text;
border-radius: 8px;
@include bp (sm) {
--columns: 19;
grid-column: 4 / span 21;
margin: clamp(40px, 16vw, 260px) 0 calc(-1 * clamp(60px, 6vw, 120px));
border-radius: 8px 0 0 8px;
}
@include bp (md) {
grid-column: 6 / span 19;
}
.wrap {
grid-column: 2 / span 6;
max-width: 800px;
padding: 50px 0;
@include bp (sm) {
grid-column: 3 / span 13;
padding: 72px 0;
}
@include bp (md) {
padding: 128px 0;
}
}
.info {
$text-color: rgba($color-text, 0.5);
margin: 32px 0 40px;
color: $text-color;
line-height: 0.8;
@include bp (sm) {
margin: 40px 0 64px;
line-height: 1.3;
}
a {
color: $text-color;
&:hover {
color: $color-secondary;
}
}
& > * {
display: inline-block;
vertical-align: middle;
}
}
:global(.ctas) {
display: flex;
flex-wrap: wrap;
:global(.button) {
margin-right: 16px;
margin-bottom: 16px;
@include bp (sm) {
margin-bottom: 0;
}
}
}
}
// Illustration
&__illustration {
pointer-events: none;
position: absolute;
z-index: 1;
top: 0;
left: 0;
right: 0;
width: clamp(320px, 100vw, 2560px);
height: 100%;
margin: 0 auto;
overflow: hidden;
transform-origin: top center;
/* Bottom fading gradient for illustration */
@include bp (sm) {
$mask: linear-gradient(180deg, #000 0%, #000 80%, rgba(0,0,0,0) 100%);
-webkit-mask-image: $mask;
mask-image: $mask;
}
img {
display: block;
width: 100%;
height: auto;
object-fit: contain;
pointer-events: none;
user-select: none;
transform: translate3d(0, var(--parallax-y), 0);
transition: transform 0.7s var(--ease-quart);
will-change: transform, opacity;
}
}
// Houses
&__houses {
background-color: #fff;
padding-top: 80px;
@include bp (sm) {
padding-top: 240px;
}
// House
:global(.house:not(:last-child)) {
margin-bottom: 72px;
@include bp (sm) {
margin-bottom: 88px;
}
@include bp (md) {
margin-bottom: 120px;
}
}
}
// Next photos section
&__next {
margin-top: 136px;
padding: 72px 0 40px;
background: $color-tertiary;
@include bp (sm) {
margin-top: calc(-1 * clamp(64px, 8vw, 120px));
padding-top: 240px;
padding-bottom: 72px;
}
// Pagination
:global(.pagination) {
margin-bottom: 72px;
text-align: center;
@include bp (sm) {
margin-bottom: 104px;
}
}
// Newsletter block
.grid-modules {
padding-bottom: 0;
& + .acknowledgement {
margin-top: 48px;
@include bp (sm) {
margin-top: 72px;
}
}
}
// Acknowledgement
.acknowledgement {
display: flex;
align-items: center;
max-width: 720px;
margin: 0 auto;
padding: 0 20px;
text-align: left;
color: $color-text;
font-size: rem(10px);
line-height: 1.4;
@include bp (sm) {
padding: 0 24px;
font-size: rem(12px);
}
:global(.flag) {
flex-shrink: 0;
width: 32px;
height: 32px;
margin: 0 16px 0 0;
border-radius: 100%;
overflow: hidden;
:global(img) {
display: block;
width: 100%;
height: auto;
}
}
}
}
// Message
&__message {
padding: clamp(96px, 24vw, 360px) 0 clamp(96px, 16vw, 280px);
text-align: center;
color: $color-text;
font-size: rem(24px);
font-weight: 200;
line-height: 1.4;
@include bp (sm) {
font-size: rem(28px);
}
}
}

View File

@@ -0,0 +1,524 @@
// Photos Page
.photos-page {
// Intro Section
&__intro {
margin-bottom: clamp(32px, 7.5vw, 96px);
color: $color-text;
text-align: center;
// Title
:global(h1) {
margin: -20px 0 48px;
overflow: hidden;
color: $color-secondary;
line-height: 1;
@include bp (sm) {
margin: -100px 0 0 calc(-1 * clamp(24px, 6vw, 64px));
}
}
// Text
& > :global(p) {
max-width: 456px;
margin: 20px auto 56px;
@include bp (sm) {
margin: 50px auto 72px;
max-width: 524px;
}
}
// Passed scroll
&.is-passed {
@include bp (sm) {
padding-bottom: 72px;
}
}
}
// Content Block
&__content {
--corners: 8px;
position: relative;
padding: 20px;
background-color: $color-tertiary;
@include bp (sm) {
padding: clamp(40px, 5vw, 64px) 24px;
}
@include bp (md) {
margin: 0 30px;
padding-left: 0;
padding-right: 0;
}
&:before, &:after {
@include bp (md) {
content: "";
display: block;
position: absolute;
z-index: -1;
top: 0;
width: 25%;
height: 100%;
background: $color-tertiary;
transition: transform 0.8s var(--ease-quart);
}
}
&:before {
@include bp (md) {
border-radius: var(--corners) 0 0 var(--corners);
left: 0;
transform: translate3d(calc(-1 * var(--margin-sides)), 0, 0);
}
}
&:after {
@include bp (md) {
border-radius: 0 var(--corners) var(--corners) 0;
right: 0;
transform: translate3d(var(--margin-sides), 0, 0);
}
}
// Container
.container {
@include bp (sm, max) {
padding-left: 0;
padding-right: 0;
}
}
// Modules
:global(.grid-modules) {
grid-column: 1 / -1;
margin-bottom: 0;
@include bp (sd) {
grid-column: 2 / span 22;
}
}
}
// Photo Grid
&__grid {
display: grid;
grid-column: 1 / -1;
// Template: 2 / 1-1
grid-template-columns: repeat(2, 1fr);
grid-gap: 16px;
@include bp (mob-lg) {
grid-gap: 20px;
}
@include bp (sm) {
// Swich to template: 2-1-1 / 1-1-2
grid-template-columns: repeat(4, 1fr);
grid-gap: 24px;
}
@include bp (sd) {
grid-column: 2 / span 22;
grid-gap: clamp(24px, 2vw, 40px);
}
// Photo
:global(.photo) {
position: relative;
opacity: 0;
transform: translate3d(0, 96px, 0);
transition: opacity 1.2s var(--ease-quart), transform 1.2s var(--ease-quart);
:global(a) {
display: block;
}
:global(figcaption) {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
/**
* Photo sizes
*/
// MOBILE
// 1st photo = 2 columns
&:nth-child(5n + 1) {
@include bp (sm, max) {
grid-column: span 2;
grid-row: span 2;
margin-bottom: 8px;
}
}
// 4 next photos = 1 column each
&:nth-child(5n + 4),
&:nth-child(5n + 5) {
@include bp (sm, max) {
margin-bottom: 8px;
}
}
// DESKTOP
// 1st photo = left 2 columns, 2 rows
&:nth-child(10n + 1){
@include bp (sm) {
grid-column: span 2;
grid-row: span 2;
}
}
// 8th photo = right 2 columns, 2 rows
&:nth-child(10n + 8){
@include bp (sm) {
grid-column: 3 / span 2;
grid-row: span 2;
}
}
// Additional spacing between grid patterns
&:nth-child(10n + 1),
&:nth-child(10n + 4),
&:nth-child(10n + 5){
@include bp (sm) {
margin-bottom: 12px;
}
@include bp (sd) {
margin-bottom: clamp(8px, 1vw, 16px);
}
}
// Show postcard on hover
&:hover {
:global(.postcard) {
opacity: 1;
transform: translate3d(3%, 3%, 0) rotate(2deg);
}
:global(.postcard--small) {
transform: translate3d(0,0,0);
}
}
// Postcard
:global(.postcard) {
position: absolute;
bottom: 0;
right: 0;
border-top-left-radius: 8px;
pointer-events: none;
opacity: 0;
transform: translate3d(6%, 12%, 0) rotate(-1deg);
transition: opacity 0.5s var(--ease-quart), transform 0.9s var(--ease-quart);
}
:global(.postcard--small) {
border-radius: 6px 6px 0 0;
transform: translate3d(6%, 12%, 0) rotate(-3deg);
}
}
// Visible photo state
:global(.is-visible) {
opacity: 1;
transform: translate3d(0,0,0);
}
}
// Message
&__message {
// grid-column: ;
text-align: center;
padding: clamp(48px, 10vw, 160px) 0;
color: $color-text;
@include bp (sm) {
grid-column: 3 / span 20;
}
}
}
/*
** Filters
*/
.filters {
max-width: 982px;
margin: 0 auto;
padding: 0 16px;
@include bp (sm) {
padding: 0 32px;
}
// Bar
&__bar {
position: relative;
display: inline-flex;
justify-content: center;
align-items: center;
min-height: 64px;
margin-top: 20px;
padding: 0 12px;
background: $color-primary-darker;
border-radius: 100vh;
@include bp (mob-lg) {
padding: 0 16px;
}
@include bp (sm) {
display: flex;
height: 72px;
margin-top: 0;
padding: 28px 32px;
}
ul {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
li {
display: block;
margin: 8px 2px;
font-size: rem(14px);
color: #fff;
@include bp (sm) {
margin: 0 2px;
font-size: rem(16px);
}
}
:global(.icon) {
display: block;
width: 20px;
height: 20px;
overflow: hidden;
margin-right: 12px;
color: #fff;
border-radius: 100%;
transition: color 0.3s;;
@include bp (sm) {
width: 26px;
height: 26px;
}
:global(img) {
display: block;
width: 100%;
height: 100%;
transform: translateZ(0);
}
}
:global(.select) {
position: relative;
display: flex;
align-items: center;
padding: 8px 12px 8px 8px;
font-weight: 900;
border-radius: 100vh;
transition: background-color 0.2s;
@include bp (sm) {
padding: 8px 16px;
}
:global(select) {
opacity: 0;
position: absolute;
top: 0;
left: 8px;
width: 100%;
height: 100%;
cursor: pointer;
}
}
// Hover
li:hover {
:global(.icon) {
color: $color-secondary-light;
}
:global(.select) {
background-color: $color-primary-tertiary20;
}
}
}
// Span
&__label {
display: block;
color: rgba($color-tertiary, 0.7);
position: absolute;
top: -32px;
left: 50%;
transform: translateX(-50%);
@include bp (sm) {
left: 32px;
top: 52%;
transform: translateY(-50%);
margin-bottom: 0;
}
}
// Actions
&__actions {
display: flex;
align-items: center;
justify-content: center;
@include bp (sm) {
position: absolute;
top: 50%;
right: 20px;
transform: translateY(-50%);
}
// Reset link
.reset {
padding: 0 12px;
color: rgba($color-tertiary, 0.6);
font-weight: 900;
font-size: rem(14px);
transition: color 0.3s;
transform: translateZ(0);
&:hover {
color: $color-tertiary;
}
}
}
/*
** States
*/
// Fixed when scrolled pass intro
&.is-over {
--top: 24px;
transform: translate3d(0, calc(-100% - var(--top)), 0);
pointer-events: none;
.filters__bar {
pointer-events: auto;
box-shadow: 0 10px 20px rgba(#000, 0.1);
}
@include bp (sm) {
position: fixed;
z-index: 10;
top: var(--top);
left: 0;
right: 0;
}
}
// Visible when scrolling back up
&.is-visible {
transform: translate3d(0,0,0);
pointer-events: auto;
}
// Apply transition
&.is-transitioning {
transition: transform 1.0s var(--ease-quart);
}
}
/**
* Controls
*/
.controls {
grid-column: 1 / -1;
display: grid;
margin: 48px auto;
align-items: center;
justify-content: center;
@include bp (sm) {
justify-content: space-between;
margin: clamp(56px, 4.5vw, 80px) 0;
}
@include bp (sd) {
--columns: 22;
grid-column: 2 / span var(--columns);
}
// Updated Date
&__date {
grid-column: 1 / -1;
grid-row: 2;
font-size: rem(18px);
color: rgba($color-gray, 0.6);
font-weight: 300;
text-align: center;
margin: 24px 0 48px;
line-height: 1.35;
@include bp (sm) {
grid-column: span 5;
grid-row: 1;
text-align: left;
margin: 0;
}
time {
display: block;
@include bp (sd) {
display: inline;
}
}
}
// See More Photos
:global(.button) {
grid-column: 1 / -1;
padding-left: 24px;
padding-right: 24px;
grid-row: 1;
margin: 0 auto;
@include bp (sm) {
grid-column: 7 / span 12;
}
@include bp (sd) {
grid-column-start: 6;
}
}
// Photo Count
&__count {
grid-column: 1 / -1;
grid-row: 3;
text-align: center;
display: flex;
align-items: baseline;
color: rgba($color-text, 0.3);
font-family: $font-serif;
font-size: rem(64px);
font-weight: 200;
line-height: 1;
letter-spacing: -0.05em;
@include bp (sm) {
grid-column: 18 / span 7;
grid-row: 1;
margin-left: auto;
text-align: right;
}
@include bp (sd) {
grid-column-start: 16;
}
span {
display: inline-block;
&:last-child {
margin-right: 0;
}
}
}
}

View File

@@ -0,0 +1,56 @@
:global(.shop-page) {
position: relative;
// Error
:global(.shop-page__error) {
padding: 64px 0;
background: $color-cream;
color: $color-text;
text-align: center;
@include bp (sm) {
padding: clamp(64px, 12vw, 160px) 0;
text-align: left;
}
:global(.inner) {
grid-column: 1 / span 8;
@include bp (sm) {
grid-column: 3 / span 12;
}
}
:global(h2) {
margin-bottom: 8px;
color: $color-secondary;
@include bp (sm) {
margin-bottom: 16px;
}
}
}
}
// Notifications
:global(.notifications) {
position: fixed;
z-index: 100;
top: 104px;
right: 20px;
transition: opacity 0.7s var(--ease-quart);
pointer-events: none;
@include bp (sm) {
right: 32px;
}
&.is-top {
top: 20px;
}
& > :global(*) {
&:not(:last-child) {
margin-bottom: 8px;
}
}
}

View File

@@ -0,0 +1,66 @@
// Subscribe Page
.subscribe {
&__top {
// Email Form
:global(.newsletter-form) {
margin: 42px auto 70px;
padding: 0 20px;
max-width: max(432px, 70%);
@include bp (sm) {
max-width: 560px;
margin-top: 0;
margin-bottom: 120px;
}
}
:global(.newsletter-form__bottom) {
:global(p) {
color: rgba($color-tertiary, 0.6);
}
}
}
// Past Issues
&__issues {
margin: 64px auto 96px;
padding: 0 20px;
@include bp (sm) {
max-width: 800px;
margin-top: 0;
margin-bottom: 156px;
}
// Title
h2 {
text-align: center;
margin-top: 40px;
margin-bottom: 24px;
@include bp (sm) {
margin-top: 64px;
margin-bottom: 32px;
}
}
ul {
@include bp (sm) {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 24px;
}
}
li {
display: block;
margin-bottom: 16px;
@include bp (sm) {
margin-bottom: 0;
}
& > :global(*) {
height: 100%;
}
}
}
}

View File

@@ -0,0 +1,86 @@
.terms {
// Categories
&__categories {
.container {
display: block;
padding-bottom: clamp(48px, 12vw, 80px);
@include bp (sm) {
display: grid;
padding-bottom: clamp(80px, 10vw, 144px);
}
}
// Footer
footer {
margin-top: 40px;
color: $color-lilas-bright;
@include bp (sm) {
grid-column: 12 / -3;
margin-top: 64px;
}
}
}
// Section
&__section {
--columns: 16;
display: block;
&:not(:last-of-type) {
margin-bottom: 40px;
@include bp (sm) {
margin-bottom: clamp(40px, 5vw, 72px);
}
}
@include bp (sm) {
display: grid;
align-items: baseline;
grid-column: 3 / -3;
}
@include bp (sd) {
grid-column: 5 / -5;
}
h2 {
margin-bottom: 0.75em;
color: $color-secondary-light;
line-height: 1.1;
@include bp (sm) {
position: sticky;
top: clamp(24px, 3vw, 40px);
grid-column: 1 / span 4;
margin-bottom: 0;
text-align: right;
}
@include bp (sd) {
grid-column: 1 / span 6;
}
}
.text {
color: $color-tertiary;
line-height: 1.5;
@include bp (sm) {
grid-column: 6 / -1;
}
@include bp (sd) {
grid-column: 8 / -1;
}
& > :global(*:not(:last-child)) {
margin-bottom: 1em;
}
:global(strong) {
font-weight: 500;
}
:global(ul) {
margin-left: 1em;
}
}
}
}

View File

@@ -0,0 +1,464 @@
.photo-page {
position: relative;
width: 100vw;
height: var(--vh);
display: flex;
align-items: center;
overflow: hidden;
.container {
position: relative;
width: 100%;
height: 100%;
@include bp (md, max) {
padding: 0 8px;
}
}
// Carousel
&__carousel {
position: absolute;
top: 0;
left: 50%;
transform: translate3d(-50%, 0, 0);
grid-column: 1 / -1;
display: grid;
grid-row-gap: 20px;
width: calc(100% - 40px);
height: 100%;
max-width: 720px;
position: relative;
@include bp (md) {
position: relative;
max-width: none;
margin: auto 0;
grid-column: 2 / span 17;
grid-row-gap: 40px;
transform: translate3d(-50%, 2.5%, 0);
}
@include bp (sd) {
grid-column: 3 / span 16;
}
}
// Images
&__images {
position: relative;
width: 100%;
margin: auto auto 0;
padding-top: 66.66%;
touch-action: none;
}
&__picture {
--opacity: 1;
--scale: 0.6;
--rotate: 0deg;
--offset-x: 0%;
--offset-y: 0%;
position: absolute;
z-index: 8;
top: 0;
left: 0;
width: 100%;
height: 100%;
transform: translateZ(0);
will-change: transform, opacity;
@include bp (md) {
--scale: 0.6;
--rotate: 5deg;
--offset-x: 28.5%;
--offset-y: 0%;
top: 0;
left: 0;
transform-origin: bottom right;
}
:global(.photo) {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transform: translate3d(var(--offset-x), var(--offset-y), 0) scale(var(--scale)) rotate(var(--rotate));
transition: opacity 1s var(--ease-quart), transform 1s var(--ease-quart);
will-change: transform;
box-shadow:
0 12px 12px rgba(#000, 0.15),
0 20px 20px rgba(#000, 0.15),
0 48px 48px rgba(#000, 0.15);
:global(picture) {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: $color-primary;
cursor: default;
}
:global(img) {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
opacity: var(--opacity);
transform: translateZ(0);
pointer-events: none;
user-select: none;
transition: opacity 1s var(--ease-quart);
}
}
// Ratio is not landscape
:global(.not-landscape) {
:global(img) {
object-fit: contain;
}
}
// Hidden photo over
&.is-0 {
--scale: 1.03;
--rotate: 0deg;
--offset-x: 0%;
--offset-y: -7%;
z-index: 9;
pointer-events: none;
:global(.photo) {
opacity: 0;
}
@include bp (md) {
--scale: 1.075;
--rotate: -1deg;
--offset-x: -9%;
--offset-y: 0%;
}
}
// First visible photo
&.is-1 {
--scale: 1;
--rotate: 0deg;
--offset-y: 0%;
@include bp (md) {
--offset-x: 0%;
--offset-y: 0%;
}
}
&.is-2 {
--scale: 0.9;
--opacity: 0.75;
--offset-y: 12%;
z-index: 7;
@include bp (md) {
--scale: 0.9;
--rotate: 1deg;
--offset-x: 9.5%;
--offset-y: 0%;
}
}
&.is-3 {
--scale: 0.83;
--opacity: 0.55;
--offset-y: 20%;
z-index: 6;
@include bp (md) {
--scale: 0.83;
--rotate: 2deg;
--offset-x: 16.25%;
--offset-y: 0%;
}
}
&.is-4 {
--scale: 0.75;
--opacity: 0.45;
--offset-y: 27.5%;
z-index: 5;
@include bp (md) {
--scale: 0.75;
--rotate: 3deg;
--offset-x: 22%;
--offset-y: 0%;
}
}
&.is-5 {
--scale: 0.68;
--opacity: 0.25;
--offset-y: 33%;
z-index: 4;
@include bp (md) {
--scale: 0.68;
--rotate: 4deg;
--offset-x: 27%;
--offset-y: 0%;
}
}
&.is-6 {
--opacity: 0.25;
z-index: 3;
:global(.photo) {
opacity: 0;
}
}
&.is-7 {
:global(.photo) {
opacity: 0;
}
}
}
// Infos
&__info {
bottom: 0;
margin-top: auto;
margin-bottom: 40px;
padding: 0 20px;
text-align: center;
@include bp (md) {
position: static;
margin-top: 0;
padding: 0;
text-align: left;
}
@include bp (lg) {
display: grid;
grid-template-columns: 50% 50%;
align-items: baseline;
}
h1 {
color: $color-secondary;
font-size: clamp(#{rem(18px)}, 5.5vw, #{rem(28px)});
line-height: 1.1;
@include bp (md) {
font-size: rem(32px);
}
}
// Details
.detail {
display: inline-block;
align-items: center;
color: rgba($color-tertiary, 0.7);
line-height: 1.5;
@include bp (lg) {
margin-left: auto;
text-align: right;
padding-left: 12px;
}
a {
color: inherit;
text-decoration: none;
transition: color 0.3s;
&:hover {
color: $color-tertiary;
}
}
// Icon
:global(.icon) {
display: inline-block;
width: 17px;
height: 17px;
margin-top: -5px;
margin-right: 4px;
}
// Separator
.sep {
display: inline-block;
margin: 0 4px;
line-height: 1;
}
}
}
// Index
&__index {
position: absolute;
z-index: 1;
left: 50%;
bottom: calc(91% + 1vw);
display: block;
line-height: 1;
color: rgba($color-tertiary, 0.4);
transform: translate3d(-50%, 0, 0);
white-space: nowrap;
pointer-events: none;
user-select: none;
overflow: hidden;
@include bp (md, max) {
font-size: clamp(#{rem(80px)}, 24vw, #{rem(120px)});
}
@include bp (md) {
top: 50%;
left: auto;
right: calc(-1 * min(30vw, 400px));
width: 350px;
text-align: center;
bottom: auto;
transform: translate3d(0, -50%, 0);
}
@include bp (lg) {
right: calc(-1 * min(25vw, 460px));
}
}
// Controls
&__controls {
display: none;
@include bp (md) {
position: absolute;
z-index: 20;
display: flex;
left: -28px;
right: -28px;
top: 50%;
transform: translateY(-50%);
justify-content: space-between;
pointer-events: none;
}
:global(button) {
pointer-events: auto;
// Prev button
&:first-child {
& > :global(*:nth-child(2)) {
transform: translate3d(100%, -50%, 0) rotate(180deg);
}
// Hover
&:not([disabled]):hover {
& > :global(*:nth-child(1)) {
transform: translate3d(-20%, 0, 0) rotate(180deg);
}
& > :global(*:nth-child(2)) {
transform: translate3d(-50%, -50%, 0) rotate(180deg);
}
}
}
// Hover
&:not([disabled]):hover {
background-color: $color-secondary;
color: #fff;
:global(svg:nth-child(2)) {
color: #fff;
}
}
}
}
// Fullscreen viewer
&__fullscreen {
position: absolute;
z-index: 102;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: $color-primary-darker;
.inner {
width: 100%;
height: 100%;
}
// Photo
:global(picture) {
display: flex;
justify-content: center;
width: 100%;
height: 100%;
overflow: auto;
cursor: pointer;
:global(img) {
display: block;
width: auto;
height: 100%;
object-fit: contain;
pointer-events: none;
user-select: none;
}
}
// Close
:global(.close) {
$color-shadow: rgba(#000, 0.15);
position: absolute;
z-index: 2;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
box-shadow:
0 6px 6px $color-shadow,
0 12px 12px $color-shadow,
0 24px 24px $color-shadow;
}
}
// Notice
&__notice {
position: absolute;
top: 16px;
left: 20px;
line-height: 44px;
color: rgba($color-tertiary, 0.5);
@include bp (md) {
display: none;
}
}
// Close button
:global(.close) {
--offset: 16px;
position: fixed !important;
z-index: 2;
top: var(--offset);
right: var(--offset);
@include bp (sm) {
--offset: clamp(20px, 3vw, 40px);
}
:global(svg) {
max-width: 14px;
max-height: 14px;
@include bp (md) {
max-width: 20px;
max-height: 20px;
}
}
// Hover
&:hover {
:global(svg) {
transform: rotate3d(0, 0, 1, 90deg) !important;
transition-duration: 1.2s;
}
}
}
}

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

@@ -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

@@ -0,0 +1,43 @@
@use "sass:math";
/* PX to REM
========================================================================== */
@function rem($target, $context: $base-font-size) {
@if $target == 0 { @return 0 }
$size: math.div($target, $context);
@return math.div(round($size * 1000), 1000) + rem;
}
/* PX to VW
========================================================================== */
@function pxVW($value, $base: $base-width) {
@if $value == 0 { @return 0 }
@return math.div($value, $base) * 100 + vw;
}
/* VW to PX
========================================================================== */
@function vwPX($value, $base: $base-width) {
@if $value == 0 { @return 0; }
@return math.div(($value * $base), 100) + px;
}
/* Headings
========================================================================== */
@function headings($from: 1, $to: 6) {
@if $from == $to {
@return "h#{$from}";
} @else {
@return "h#{$from}," + headings($from + 1, $to);
}
}
/* HEX color to RGB
========================================================================== */
@function hexToRGB($color) {
@return red($color), green($color), blue($color);
}

View File

@@ -0,0 +1,32 @@
/* Classes
========================================================================== */
.clear {
@extend %clearfix;
}
/* Containers
========================================================================== */
// Wrap (global)
.container {
width: 100%;
max-width: var(--container-width);
margin: 0 auto;
padding: 0 20px;
@include bp (sm) {
padding: 0;
}
}
// Wide wrap (close to sides)
.container-wide {
--sides: 16px;
width: calc(100% - var(--sides));
max-width: var(--container-width);
margin: 0 auto;
@include bp (sm) {
--sides: 24px;
}
}

View File

@@ -0,0 +1,86 @@
@use "sass:math";
// Hide text
%hide-text {
overflow: hidden;
white-space: nowrap;
text-indent: 200%;
}
// Clearfix
%clearfix {
&:after {
content: "";
display: table;
clear: both;
}
}
// Get REM font-size and line-height
@mixin fs-lh ($fontSize, $lineHeight) {
font-size: rem($fontSize);
line-height: math.div(round(math.div($lineHeight, $fontSize) * 1000), 1000);
}
// Top-right-bottom-left
@mixin trbl ($value: 0) {
top: $value; right: $value; bottom: $value; left: $value;
}
// Smooth fonts
@mixin font-smooth {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
// Font-face
@mixin font-face ($family, $variant, $weight: normal, $style: normal, $display: swap) {
@font-face {
font-family: "#{$family}";
font-style: $style;
font-weight: $weight;
font-display: $display;
src: local("#{$variant}"),
url("#{$dir-fonts}/#{$variant}.woff2") format("woff2"),
url("#{$dir-fonts}/#{$variant}.woff") format("woff");
}
}
/*
** Reponsive breakpoint
*/
// Based on Width
@mixin bp ($size, $to: min, $sizes: $breakpoints) {
// Size is in map
@if map-has-key($sizes, $size) {
$size: map-get($sizes, $size);
@if ($to == max) {
@media (max-width: #{$size}) {
@content;
}
} @else {
@media (min-width: #{$size}) {
@content;
}
}
}
// Not in the map
@else {
@media (min-width: $size) { @content; }
}
}
// Based on Height
@mixin bph ($size, $to: min, $sizes: $breakpoints) {
@if ($to == max) {
@media (max-height: #{$size}) {
@content;
}
} @else {
@media (min-height: #{$size}) {
@content;
}
}
}