avancées styles

This commit is contained in:
Valentin 2024-07-24 00:47:30 +02:00
parent 59016eb91a
commit 3382f9dc8f
4 changed files with 178 additions and 144 deletions

View File

@ -1,8 +1,10 @@
<template> <template>
<div> <div v-if="etapeData">
<!--
<div v-if="loading">Loading...</div> <div v-if="loading">Loading...</div>
<div v-if="error">{{ error }}</div> <div v-if="error">{{ error }}</div>
<div v-if="etapeData"> -->
<div>
<pre>{{ etapeData }}</pre> <pre>{{ etapeData }}</pre>
</div> </div>
</div> </div>

View File

@ -1,57 +1,56 @@
@font-face { @font-face {
font-family: 'Joost'; font-family: 'Joost';
src: url('../fonts/joost/joost-bold.woff2') format('woff2'); src: url('/themes/custom/caravane/assets/fonts/joost/joost-bold.woff2') format('woff2');
font-weight: bold; font-weight: bold;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: 'Joost'; font-family: 'Joost';
src: url('../fonts/joost/joost-light.woff2') format('woff2'); src: url('/themes/custom/caravane/assets/fonts/joost/joost-light.woff2') format('woff2');
font-weight: 300; font-weight: lighter;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: 'Marianne'; font-family: 'Marianne';
src: url('../fonts/marianne/Marianne-Bold_Italic.woff') format('woff'), src: url('/themes/custom/caravane/assets/fonts/marianne/Marianne-Bold_Italic.woff') format('woff'),
url('../fonts/marianne/Marianne-Bold_Italic.woff2') format('woff2'); url('/themes/custom/caravane/assets/fonts/marianne/Marianne-Bold_Italic.woff2') format('woff2');
font-weight: bold; font-weight: bold;
font-style: italic; font-style: italic;
} }
@font-face { @font-face {
font-family: 'Marianne'; font-family: 'Marianne';
src: url('../fonts/marianne/Marianne-Bold.woff2') format('woff2'); src: url('/themes/custom/caravane/assets/fonts/marianne/Marianne-Bold.woff2') format('woff2');
font-weight: bold; font-weight: bold;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: 'Marianne'; font-family: 'Marianne';
src: url('../fonts/marianne/Marianne-Light_Italic.woff2') format('woff2'); src: url('/themes/custom/caravane/assets/fonts/marianne/Marianne-Light_Italic.woff2') format('woff2');
font-weight: 300; font-weight: lighter;
font-style: italic; font-style: italic;
} }
@font-face { @font-face {
font-family: 'Marianne'; font-family: 'Marianne';
src: url('../fonts/marianne/Marianne-Light.woff2') format('woff2'); src: url('/themes/custom/caravane/assets/fonts/marianne/Marianne-Light.woff2') format('woff2');
font-weight: 300; font-weight: lighter;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: 'Marianne'; font-family: 'Marianne';
src: url('../fonts/marianne/Marianne-Regular_Italic.woff2') format('woff2'); src: url('/themes/custom/caravane/assets/fonts/marianne/Marianne-Regular_Italic.woff2') format('woff2');
font-weight: normal; font-weight: normal;
font-style: italic; font-style: italic;
} }
@font-face { @font-face {
font-family: 'Marianne'; font-family: 'Marianne';
src: url('../fonts/marianne/Marianne-Regular.woff2') format('woff2'); src: url('/themes/custom/caravane/assets/fonts/marianne/Marianne-Regular.woff2') format('woff2');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }

View File

@ -1,16 +1,17 @@
@import 'fonts.scss'; @import 'fonts.scss';
$body-margin-x: 10px; $body-margin-x: 30px;
$body-margin-y: 5px; $body-margin-y: 5px;
$sm-font-size: 0.8rem; $sm-font-size: 0.8rem;
$m-font-size: 1.4rem;
$main-color: #1a1918; $main-color: #1a1918;
$main-color-light: #635b58; $main-color-light: #635b58;
$light-color: #faf1eb; $light-color: #faf1eb;
body{ body{
font-family: Marianne, sans-serif; font-family: 'Marianne', sans-serif;
color: $main-color; color: $main-color;
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -50,95 +51,125 @@ body{
} }
> #block-caravane-mainnavigation { > #block-caravane-mainnavigation {
display: flex; display: flex;
align-items: center; justify-content: flex-end;
justify-content: center;
grid-column: 16 / span 1; grid-column: 16 / span 1;
display: flex; width: 100%;
flex-direction: column; > div {
cursor: pointer; width: 40%;
> h2 {
margin-block: 0;
font-size: $sm-font-size;
color: $main-color-light;
font-weight: normal;
margin-bottom: 5px;
}
> #hamburger {
display: flex; display: flex;
flex-direction: column;
justify-content: center;
align-items: center; align-items: center;
width: 100%; justify-content: center;
> div { flex-direction: column;
width: 40%; cursor: pointer;
height: 3px; > h2 {
margin: 4px 0; margin-block: 0;
border-radius: 2px; font-size: $sm-font-size;
background-color: $main-color-light; color: $main-color-light;
font-weight: normal;
margin-bottom: 5px;
}
> #hamburger {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
> div {
width: 100%;
height: 3px;
margin: 4px 0;
border-radius: 2px;
background-color: $main-color-light;
}
}
> ul {
display: none;
} }
}
> ul {
display: none;
} }
} }
} }
} }
main { main {
z-index: 1; z-index: 1;
position: fixed; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100vw; width: 100%;
height: 100vh; height: 100vh;
> .layout-content { > .layout-content {
z-index: 1; z-index: 1;
position: relative; position: fixed;
> div > .layout { top: 0;
display: grid; width: 100%;
grid-template-columns: repeat(16,1fr); height: 100%;
height: 100vh; > div {
align-items: center; height: 100%;
> .layout__region--first { > .layout {
padding-left: $body-margin-x; display: grid;
grid-column: 1 / span 4; grid-template-columns: repeat(16,1fr);
position: relative;
z-index: 2;
pointer-events: none;
width: fit-content;
> div {
pointer-events: auto;
}
}
> .layout__region--second {
position: absolute;
z-index: 1;
width: 100vw;
height: 100vh;
}
> .layout__region--third {
padding-right: $body-margin-x;
grid-column: 13 / span 4;
position: relative;
z-index: 2;
background: linear-gradient(to right, transparent, #faf1eb);
height: 100vh;
display: flex;
align-items: center; align-items: center;
justify-content: flex-end; height: 100%;
pointer-events: none; > .layout__region--first {
> div { padding-left: $body-margin-x;
pointer-events: auto; grid-column: 1 / span 4;
} position: relative;
} z-index: 2;
pointer-events: none;
width: fit-content;
> div {
pointer-events: auto;
}
}
> .layout__region--second {
position: absolute;
z-index: 1;
top: 0;
width: 100vw;
.leaflet-container {
// add map style here
}
}
> .layout__region--third {
padding-right: $body-margin-x;
height: 100%;
grid-column: 13 / span 4;
position: relative;
z-index: 2;
background: linear-gradient(to right, transparent, #faf1eb);
display: flex;
align-items: center;
justify-content: flex-end;
pointer-events: none;
> div {
pointer-events: auto;
ul {
list-style: none;
> li > div {
display: flex;
justify-content: flex-end;
a {
text-decoration: none;
color: $main-color;
font-family: 'Joost', sans-serif;
font-weight: bold;
font-size: $m-font-size;
display: inline-block;
margin: 15px 0;
text-align: right;
}
}
}
}
}
}
} }
} }
> #etape-modale { > #etape-modale > div {
z-index: 2; z-index: 2;
position: absolute; position: relative;
top: 10vh; top: 15vh;
left: 25vw; left: 25vw;
width: 50vw; width: 50vw;
height: 80vh;
background-color: rgba(255,255,255,0.5); background-color: rgba(255,255,255,0.5);
} }
} }

View File

@ -36,21 +36,23 @@
#} #}
{% set heading_id = attributes.id ~ '-menu'|clean_id %} {% set heading_id = attributes.id ~ '-menu'|clean_id %}
<nav role="navigation" aria-labelledby="{{ heading_id }}"{{ attributes|without('role', 'aria-labelledby') }}> <nav role="navigation" aria-labelledby="{{ heading_id }}"{{ attributes|without('role', 'aria-labelledby') }}>
{# Label. If not displayed, we still provide it for screen readers. #} <div>
{% if not configuration.label_display %} {# Label. If not displayed, we still provide it for screen readers. #}
{% set title_attributes = title_attributes.addClass('visually-hidden') %} {% if not configuration.label_display %}
{% endif %} {% set title_attributes = title_attributes.addClass('visually-hidden') %}
{{ title_prefix }} {% endif %}
<h2{{ title_attributes.setAttribute('id', heading_id) }}>{{ configuration.label }}</h2> {{ title_prefix }}
<div id="hamburger"> <h2{{ title_attributes.setAttribute('id', heading_id) }}>{{ configuration.label }}</h2>
<div></div> <div id="hamburger">
<div></div> <div></div>
<div></div> <div></div>
</div> <div></div>
{{ title_suffix }} </div>
{{ title_suffix }}
{# Menu. #} {# Menu. #}
{% block content %} {% block content %}
{{ content }} {{ content }}
{% endblock %} {% endblock %}
</div>
</nav> </nav>