[wip] Rework About page

This commit is contained in:
2022-09-07 23:59:49 +02:00
parent e9fa0d3532
commit 28ed5c4f94
7 changed files with 802 additions and 598 deletions

View File

@@ -3,247 +3,119 @@
** Introduction
*/
&__introduction {
:global(picture) {
overflow: hidden;
padding: clamp(48px, 10vw, 80px) 0;
:global(img) {
display: block;
width: 100%;
height: auto;
}
@include bp (sm) {
padding: clamp(80px, 7vw, 128px) 0 clamp(200px, 20vw, 360px);
}
// First photo
.photo-first {
--rotate: -3deg;
$offset: 32px;
grid-column: 1 / -2;
grid-row: 1;
margin-left: -$offset;
transform: rotate(var(--rotate)) translateZ(0);
// Section title
h2 {
@include bp (sm) {
grid-column: 2 / -6;
}
@include bp (md) {
grid-column: 4 / span 12;
margin-left: 0;
}
:global(picture) {
border-radius: clamp(8px, 1vw, 16px);
}
figcaption {
width: 75%;
max-width: 250px;
margin-top: 12px;
margin-left: $offset;
color: rgba($color-tertiary, 0.5);
@include bp (mob-lg) {
max-width: 400px;
}
@include bp (sm) {
width: 100%;
max-width: none;
margin-left: 0;
}
grid-column: 3 / span 12;
grid-row: 1;
margin-bottom: 24px;
}
}
// Portrait
.photo-us {
position: relative;
grid-row: 1;
z-index: 2;
grid-column: 6 / -1;
margin-top: clamp(56px, 12vw, 120px);
// Heading text
.heading {
@include bp (sm) {
grid-column: 18 / -1;
}
@include bp (md) {
grid-column: 16 / span 4;
margin-top: clamp(56px, 7vw, 112px);
grid-column: 3 / span 12;
grid-row: 2;
align-self: baseline;
max-width: 788px;
}
:global(picture) {
overflow: hidden;
border-radius: clamp(6px, 1vw, 12px);
transform: translate3d(clamp(32px, 3vw, 56px), 0, 0);
@include bp (md) {
transform: translate3d(calc(-1 * clamp(32px, 3vw, 56px)), 0, 0);
}
strong {
color: $color-secondary-light;
font-weight: inherit;
}
}
// Text
// Right text
.text {
grid-column: 1 / -1;
grid-row: 3;
color: $color-tertiary;
margin-top: 48px;
@include bp (sm) {
margin-top: 96px;
grid-column: 3 / -3;
}
@include bp (md) {
grid-column: 17 / span 7;
// max-width: 420px;
margin-top: calc(-1 * clamp(80px, 8vw, 120px));
grid-column: 17 / span 6;
grid-row: 2;
align-self: baseline;
}
:global(img) {
display: inline-block;
width: 20px;
height: auto;
margin-right: 4px;
margin-left: 8px;
margin-bottom: 3px;
border-radius: 100%;
}
:global(a) {
display: inline-block;
a {
color: currentColor;
text-decoration: none;
transition: color 0.3s;
&:hover {
:global(strong) {
color: $color-secondary-light;
}
color: $color-secondary-light;
}
}
:global(strong) {
font-weight: normal;
padding-bottom: 2px;
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);
}
}
}
/*
** Purpose
** Creation
*/
&__purpose {
margin-top: 72px;
text-align: center;
&__creation {
background: #fff;
@include bp (sm) {
margin-top: 120px;
}
.container {
grid-column: 2 / -2;
position: relative;
// First photo
.first-photo {
display: flex;
align-items: center;
justify-content: center;
height: calc(var(--vh) * 0.9);
max-height: 720px;
color: #fff;
padding: 0 8%;
flex-direction: column;
@include bp (sm) {
padding: 0 18%;
max-height: 1200px;
}
}
// Text
.text {
opacity: 0.2;
max-width: 1024px;
transition: opacity 3s var(--ease-quart);
:global(strong) {
font-weight: inherit;
transition: color 3s var(--ease-quart);
}
}
// Background
.background {
position: absolute;
z-index: -1;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
opacity: 0;
background-color: $color-primary-tertiary20;
border-radius: 0px;
transform: scale(1.15) translateZ(0);
transition-property: opacity, transform, border-radius;
transition-delay: 0.25s;
&, &__illustration img {
transition-duration: 2.5s;
transition-timing-function: var(--ease-quart);
grid-column: 8 / -2;
margin: -10vw 0 clamp(80px, 10vw, 128px);
}
// Illustration
&__illustration {
position: relative;
:global(picture) {
width: 100%;
height: 100%;
opacity: 0.75;
$mask: linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 62.5%);
-webkit-mask-image: $mask;
mask-image: $mask;
user-select: none;
pointer-events: none;
border-radius: 16px;
overflow: hidden;
img {
position: absolute;
bottom: 60%;
left: 0;
:global(img) {
display: block;
width: 100%;
height: auto;
opacity: 0;
transition-property: opacity;
transition-delay: 0.6s;
@include bp (md) {
bottom: 50%;
}
@include bp (sd) {
bottom: 40%;
}
}
}
}
// Visible state
&:global(.is-visible) {
.text {
opacity: 1;
:global(strong) {
color: darken($color-secondary-light, 4);
}
}
.background {
opacity: 1;
transform: scale(1) translateZ(0);
border-radius: 8px;
figcaption {
margin-left: auto;
color: $color-gray;
text-align: right;
@include bp (sm) {
border-radius: 16px;
margin-top: 24px;
}
&__illustration img {
opacity: 1;
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;
}
}
}
@@ -262,88 +134,87 @@
margin: 128px 0 0;
}
.title {
grid-column: 1 / -1;
max-width: 400px;
margin: 0 auto 48px;
padding: 0 32px;
text-align: center;
& > .container {
align-items: center;
}
aside {
@include bp (sm) {
grid-column: 1 / -1;
margin-bottom: 80px;
padding: 0 16px;
grid-column: 3 / span 9;
}
h2 {
margin-bottom: 16px;
color: $color-secondary;
// Heading text
.heading {
max-width: 400px;
margin-bottom: 48px;
text-align: center;
@include bp (sm) {
margin-bottom: 24px;
margin-bottom: 80px;
text-align: left;
}
h2 {
margin-bottom: 16px;
color: $color-secondary;
@include bp (sm) {
margin-bottom: .5em;
}
}
p {
color: $color-tertiary;
font-weight: 300;
}
}
p {
color: $color-tertiary;
font-weight: 300;
// List of steps
ol {
li {
display: block;
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 {
--card-offset: 16px;
--card-margin: 40px;
grid-column: 1 / -1;
position: relative;
@include bp (sm) {
grid-column: 4 / -4;
padding-bottom: calc(var(--cards-amount) * var(--card-offset));
display: grid;
grid-template-rows: auto;
grid-column: 13 / span 11;
}
& > :global(*) {
grid-column: 1 / -1;
position: sticky;
top: var(--card-margin);
transform-origin: center top;
padding-top: calc(var(--index) * var(--card-offset));
padding-bottom: var(--card-margin);
margin-bottom: calc(-1 * var(--index) * var(--card-offset));
will-change: transform;
}
}
// Intention
.intention {
grid-column: 1 / -1;
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: min(45vw, 720px);
padding: 56px 32px;
border-radius: 12px;
background: $color-primary-darker;
color: $color-tertiary;
text-align: center;
@include bp (sm) {
--columns: 18;
grid-column: 4 / -4;
border-radius: 16px;
}
&__content {
width: clamp(250px, 75%, 562px);
margin: 0 auto;
}
:global(.globe) {
margin-bottom: 32px;
@include bp (sm) {
margin-bottom: 40px;
grid-row: 1;
grid-column: 1 / -1;
transform-origin: left center;
}
}
}