This commit is contained in:
Julie Blanc 2025-12-16 18:00:01 +01:00
commit 162cee6dc9
35 changed files with 1122 additions and 0 deletions

View file

@ -0,0 +1,35 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-o-font-smoothing: antialiased;
scroll-behavior: smooth;
}
a {
color: currentColor;
}
button{
background: none;
outline: none;
border: none;
color: var(--color-txt);
}
iframe{
border: none;
}
body{
font-family: var(--font);
line-height: var(--leading-normal);
font-size: var(--fs-normal);
color: var(--color-txt);
background-color: var(--color-bg);
width: 100vw;
overflow-x: hidden;
}

View file

@ -0,0 +1,11 @@
$desktop: "screen and (min-width: 1200px)";
$medium: "screen and (max-width: 1080px)";
$medium-up: "screen and (min-width: 1080px)";
$small-up: "screen and (min-width: 720px)";
$small: "screen and (max-width: 720px)";
$x-small: "screen and (max-width: 560px)";
$paysage: "screen and (max-height: 670px) and (min-width: 1080px)";
@media #{$medium}{
}

77
assets/css/base/_var.scss Normal file
View file

@ -0,0 +1,77 @@
:root {
--font: 'Executive', Arial, sans-serif;
--title: 'System', Arial, sans-serif;
// --fs-x-small: 10px;
// --fs-small: 12px;
// --fs-normal: 16px;
// --fs-medium: 22px;
// --fs-big: 38px;
--fs-x-small: 10px;
--fs-small: 12px;
--fs-normal: 16px;
--fs-medium: 20px;
--fs-big: 30px;
--fs-x-big: 38px;
--fs-button-bold: 22px;
@media #{$small} {
--fs-medium: 20px;
--fs-big: 26px;
}
--leading-tight: 1;
--leading-normal: 1.2;
// --leading-relaxed: 1.4;
// --leading-loose: 1.8;
--fw-normal: 400;
--fw-medium: 500;
--fw-bold: 600;
--grey-100: #d8d8d8;
--grey-200: #c8c8c8;
--grey-300: #b9b9b9;
--grey-400: #969696;
--grey-600: #6d6d6d;
--grey-800: #383838;
--color-bg: #161616;
--color-txt: #ffffff;
--color-txt-light: var(--grey-600);
--color-accent: #00ff00;
--color-accent-50: #e9ffe9;
--color-accent-100: #d8fdd8;
--border: 1px solid var(--color-txt);
--border-light: 1px solid var(--grey-800);
--header-h: 80px;
--header-h-shrinked: 50px;
// responsive
--padding-body: 26px;
--radius-small: 4px;
--spacing: 30px;
--h-block: 30px;
--curve: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@media #{$small}{
:root {
--fs-x-small: 10px;
--fs-small: 11px;
--fs-normal: 14px;
--fs-medium: 20px;
--fs-big: 30px;
--fs-x-big: 38px;
}
}

View file

@ -0,0 +1,60 @@
#btn--don__mobile {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
padding-top: calc(var(--spacing) * 0.5);
padding-bottom: calc(var(--spacing) * 1.5);
position: fixed;
bottom: 0px;
left: 0;
z-index: 100;
opacity: 0;
transition: opacity ease-in 0.2s;
pointer-events: none;
&.is-visible {
pointer-events: all;
opacity: 1;
}
&.is-sticky {
position: relative;
}
@media #{$small-up} {
display: none !important;
}
}
.btn--don {
--vertical-padding: 0.5ch;
height: calc(var(--h-block) + var(--vertical-padding));
border-radius: calc(var(--h-block) / 1);
padding: var(--vertical-padding) 2ch;
background-color: var(--color-accent);
color: var(--color-bg);
font-family: var(--font);
font-size: var(--fs-medium);
font-weight: var(--fw-bold);
a {
text-decoration: none;
display: flex;
align-items: center;
gap: 0.5ch;
}
.icon {
height: 28px;
position: relative;
top: 1px;
}
svg {
fill: var(--color-bg);
width: 24px;
height: 24px;
}
}

View file

@ -0,0 +1,101 @@
button{
cursor: pointer;
font-family: var(--font);
font-size: var(--fons-normal);
color: var(--color-txt);
&:hover{
color: var(--grey-100);
}
a{
text-decoration: none;
width: 100%;
height: 100%;
}
}
button:disabled{
cursor: auto;
}
.btn__default{
--size: calc(var(--h-block) - 8px);
font-size: var(--fs-normal);
font-weight: var(--fw-normal);
height: var(--size);
padding-right: 1.5ch;
position: relative;
display: flex;
align-items: center;
gap: 0ch;
// padding-right: 0.5ch;
color: var(--color-accent);
font-weight: var(--fw-medium);
text-decoration: none;
cursor: pointer;
.icon, .txt{ z-index: 10; }
.icon{
width: var(--size);
height: var(--size);
display: flex;
align-items: center;
justify-content: center;
color: var(--color-bg);
text-align: center;
svg{
fill: var(--color-bg);
width: 80%;
}
}
.txt{
font-family: var(--font-title);
color: var(--color-accent);
font-size: var(--fs-normal);
font-weight: var(--fw-bold);
padding-left: 1ch;
}
&::after{
content: '';
display: block;
background-color: var(--color-accent);
border-radius: calc(var(--size)/2);
width: var(--size);
height: var(--size);
position: absolute;
left: 0;
z-index: 0;
transition: width .2s
}
&:hover{
//
.txt{
color: var(--color-bg);
display: block;
}
&::after{
width: 100%;
}
}
}

View file

@ -0,0 +1,127 @@
.form__newsletter{
--size: 24px;
position: relative;
display: flex;
align-items: center;
position: relative;
input[type="email"]{
height: calc(var(--h-block)*1.25);
width: 100%;
border-radius: calc(var(--h-block)*0.625);
outline: none;
border: none;
padding: 0 2ch;
font-family: var(--font);
font-size: var(--fs-normal);
z-index: 40;
padding-top: 4px;
&::placeholder{
font-family: var(--font);
font-size: var(--fs-normal);
}
&:focus{
outline: 3px solid var(--grey-400);
}
}
button[type="submit"].btn--bold{
position: absolute;
right: 2px;
z-index: 100;
}
button[type="submit"].btn--bold {
--size: calc(var(--h-block)*1.25 - 4px);
font-family: var(--font);
font-size: var(--fs-button-bold);
height: var(--size);
display: flex;
align-items: center;
gap: 0.75ch;
color: var(--color-accent);
font-weight: var(--fw-medium);
text-decoration: none;
cursor: pointer;
.icon, .txt{ z-index: 10; }
.icon{
width: var(--size);
height: var(--size);
display: flex;
align-items: center;
justify-content: center;
color: var(--color-bg);
text-align: center;
svg{
fill: var(--color-bg);
width: 80%;
}
}
.txt{
position: relative;
top: 2px;
font-size: var(--fs-normal);
display: none;
padding-left: 1ch;
}
&::after{
content: '';
display: block;
background-color: var(--color-accent);
border-radius: calc(var(--size)/2);
width: var(--size);
height: var(--size);
position: absolute;
right: 0;
z-index: 0;
transition: width .2s
}
&:hover{
.txt{
color: var(--color-bg);
display: block;
}
&::after{
width: 100%;
}
}
// @media #{$small}{
// .txt{
// color: var(--color-bg);
// display: block;
// }
// &::after{
// width: 100%;
// }
// }
}
}

View file

@ -0,0 +1,57 @@
.list-socials {
list-style: none;
display: flex;
justify-content: space-between;
align-items: center;
max-width: 400px;
a{
display: flex;
align-items: center;
text-decoration: none;
}
.icon{
width: 24px;
height: 24px;
position: relative;
top: -2px;
}
svg{
display: flex;
align-items: center;
width: 24px;
height: 24px;
}
.text{ display: none; }
}
// with text
@media #{$small-up}{
.footer__socials .list-socials{
display: block;
li{
margin-bottom: calc(var(--spacing)*0.5);
break-inside: avoid;
}
a{
gap: 1ch;
height: calc(var(--spacing)*1);
&::after{
content: '';
color: var(--grey-300);
}
}
.text{
display: block;
line-height: 1;
}
}
}

View file

@ -0,0 +1,40 @@
.nav--tabs{
height: calc(var(--h-block)*1);
width: auto;
border: var(--border);
border-radius: var(--radius-small);
overflow: hidden;
display: inline-flex;
width: auto;
margin: 0 auto;
margin-bottom: var(--spacing);
.nav--tabs__btn{
font-family: var(--font);
font-size: var(--fs-small);
font-weight: var(--fw-medium);
padding: 0 2ch;
&.is-selected{
background-color: var(--color-txt);
color: var(--color-bg);
}
&:not(.is-selected):hover{
background-color: var(--grey-800);
cursor: pointer;
}
}
.nav--tabs__btn + .nav--tabs__btn{
border-left: var(--border);
}
}

View file

@ -0,0 +1,68 @@
[data-template="subscription-newsletter"],
[data-template="thanks"],
[data-template="support"],
[data-template="store"]{
.p__baseline-big{
font-family: var(--title);
font-size: var(--fs-big);
font-weight: var(--fw-bold);
line-height: 1.1;
text-align: center;
margin: calc(var(--spacing)*1) 0;
strong{
font-weight: var(--fw-bolf);
color: var(--color-accent);
}
.link-don{
display: block;
color: var(--color-accent);
text-decoration: none;
// &::after{
// content: '';
// font-size: 0.8em;
// }
&:hover{
text-decoration: underline 2px;
text-underline-offset: 4px;
}
}
}
.p__baseline{
font-size: var(--fs-medium);
font-weight: var(--fw-medium);
line-height: 1.1;
text-align: center;
margin: calc(var(--spacing)*1) 0;
@media #{$small}{
text-align: center;
margin: var(--spacing) 0;
}
}
.p__details{
font-size: var(--fs-small);
margin-bottom: 0.5em;
color: var(--grey-400);
}
.section__heading{
font-size: var(--fs-normal);
font-weight: var(--fw-medium);
line-height: 1;
text-align: center;
margin-top: calc(var(--spacing)*0.5);
margin-bottom: calc(var(--spacing)*1);
}
ul, ol{
margin-left: 3ch;
margin-bottom: 0.5em;
}
}

View file

@ -0,0 +1,15 @@
body{
min-height: 100dvh;
min-height: 100vh;
display: flex;
flex-direction: column;
main{
flex-grow: 1;
margin-top: var(--header-h);
padding: 0 var(--padding-body);
}
}

View file

@ -0,0 +1,94 @@
#site-footer{
background-color: black;
padding: calc(var(--padding-body)*2) var(--padding-body);
.logo {
margin-top: calc(var(--spacing)*0.25);
margin-bottom: calc(var(--spacing)*1);
svg{
width: 100px;
}
}
p{
margin: calc(var(--spacing)*0.5) 0;
a{
text-decoration: none;
&:hover{
text-decoration: underline;
color: currentColor;
}
}
}
.p__small{
font-size: var(--fs-x-small);
color: var(--grey-600);
}
.footer__mentions{
p{
font-size: var(--fs-small);
color: var(--color-txt)
}
}
@media #{$small}{
margin-top: calc(var(--spacing)*2);
.footer__socials{
margin-top: calc(var(--spacing)*0.75);
padding-top: calc(var(--spacing)*0.25);
border-top: var(--border-light);
.list-socials{
margin-top: calc(var(--spacing)*0.5);
margin-bottom: calc(var(--spacing)*0.75);
}
}
.footer__mentions{
border-top: var(--border-light);
padding-top: calc(var(--spacing)*0.25);
p{
font-size: var(--fs-small);
text-align: center;
}
}
}
@media #{$small-up}{
.site-footer__container{
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: calc(var(--spacing)*2);
max-width: 1200px;
margin: 0 auto;
}
.footer__socials .container{
max-width: 400px;
columns: 2;
margin-top: calc(var(--spacing)*1);
}
.footer__mentions{
grid-column: span 2;
p{
margin-top: calc(var(--spacing)*1);
}
}
}
}

View file

@ -0,0 +1,84 @@
@keyframes add-border {
from {
border-bottom-color: transparent;
}
to {
border-bottom: var(--grey-800);
}
}
#site-header {
position: fixed;
left: var(--padding-body);
top: 0px;
z-index: 900;
--gap: 3ch;
width: calc(100vw - var(--padding-body)*2);
height: var(--header-h);
background-color: var(--color-bg);
border-bottom: var(--border-light);
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--gap);
a{
text-decoration: none;
&:hover{
color: var(--grey-200);
}
}
#site-title {
flex-grow: 2;
svg{
width: 100px;
}
}
ul{
list-style-type: none;
display: flex;
align-items: center;
gap: var(--gap);
}
#btn--soutenir{
color: var(--color-accent);
a:hover{
color: var(--color-accent);
text-decoration: underline;
}
}
ul, #btn--soutenir{
text-transform: uppercase;
}
#lang-toggle{
display: flex;
gap: 1ch;
button:disabled{ color: var(--color-txt-light); }
}
#menu-toggle{
cursor: pointer;
svg{
width: 30px;
}
.close{ display: none; }
}
button{
&:hover{
svg{ fill: var(--grey-200)!important; }
}
}
}

21
assets/css/style.scss Normal file
View file

@ -0,0 +1,21 @@
@charset "UTF-8";
@import 'base/responsive';
@import 'base/var';
@import 'base/body';
@import 'partials/site-header';
// @import 'components/nav-tabs';
// @import 'components/btn--default';
@import 'components/buttons';
@import 'components/form-newsletter';
@import 'components/list-socials';
@import 'components/text';
@import 'partials/site-header';
@import 'partials/site-footer';
@import 'partials/main-layout';