tunnel: {

création structure hors vue (et sans js sur pc) pour infos 
essentielles
     création de l'interactivité pour indiquer l'ouverture du lieu (sans 
'backend', automatisation et lien avec capteur à faire)
     liens inactifs pour l'instant
     infos pour remplir et prévisualiser à mettre à jour en fonction de 
ce qu'on décide ^^
          c'est tout pour cette fois
}
This commit is contained in:
2026-07-03 17:27:45 +02:00
parent 8bea3c547e
commit bcfc5b318f
41 changed files with 1579 additions and 423 deletions
+575 -287
View File
@@ -1,296 +1,584 @@
:root {
--text: #6b6375;
--text-h: #08060d;
--bg: #fff;
--border: #e5e4e7;
--code-bg: #f4f3ec;
--accent: #aa3bff;
--accent-bg: rgba(170, 59, 255, 0.1);
--accent-border: rgba(170, 59, 255, 0.5);
--social-bg: rgba(244, 243, 236, 0.5);
--shadow:
rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
--sans: system-ui, 'Segoe UI', Roboto, sans-serif;
--heading: system-ui, 'Segoe UI', Roboto, sans-serif;
--mono: ui-monospace, Consolas, monospace;
font: 18px/145% var(--sans);
letter-spacing: 0.18px;
color-scheme: light dark;
color: var(--text);
background: var(--bg);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@media (max-width: 1024px) {
font-size: 16px;
}
:root[data-theme="closed"]{
--back-color: #FFFF4D;
--main-color: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--text: #9ca3af;
--text-h: #f3f4f6;
--bg: #16171d;
--border: #2e303a;
--code-bg: #1f2028;
--accent: #c084fc;
--accent-bg: rgba(192, 132, 252, 0.15);
--accent-border: rgba(192, 132, 252, 0.5);
--social-bg: rgba(47, 48, 58, 0.5);
--shadow:
rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
}
#social .button-icon {
filter: invert(1) brightness(2);
}
:root[data-theme="open"]{
--back-color: #00FF44;
--main-color: #000000;
}
body {
/*====================Typo*/
@font-face {
font-family: 'karrik';
src: url('./typo/Karrik-Italic.woff2').format('woff2');
font-style: italic;
}
@font-face {
font-family: 'karrik';
src: url('./typo/Karrik-Regular.woff2') format('woff2');
font-style: normal;
}
@font-face {
font-family: 'velvelyne';
src: url('./typo/Velvelyne-Light.ttf') format('truetype');
font-weight: normal;
}
@font-face {
font-family: 'avara';
src: url('./typo/Avara-Black.woff2') format('woff2');
}
@font-face {
font-family: 'pressStart2P';
src: url('./typo/PressStart2P-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'velvelyne';
src:url('./typo/Velvelyne-Bold.ttf') format('truetype');
font-weight: bold;
}
/*===================Animation*/
@keyframes blink {
0% { color: var(--back-color);}
15% { color: var(--main-color);}
35% { color: var(--main-color);}
50% { color: var(--back-color);}
65% { color: var(--main-color);}
85% { color: var(--main-color);}
100% { color: var(--back-color);}
}
@keyframes blinkBack {
0% { background-color: var(--back-color);}
15% { background-color: var(--main-color);}
35% { background-color: var(--main-color);}
50% { background-color: var(--back-color);}
65% { background-color: var(--main-color);}
85% { background-color: var(--main-color);}
100% { background-color: var(--back-color);}
}
@keyframes blinkBorder {
0% { border-color: var(--main-color);}
15% { border-color: var(--accent-color);}
35% { border-color: var(--accent-color);}
50% { border-color: var(--main-color);}
65% { border-color: var(--accent-color);}
85% { border-color: var(--accent-color);}
100% { border-color: var(--main-color);}
}
@keyframes float {
0% { transform: translateY(0px); }
35% { transform: translateY(1px); }
50% { transform: translateY(-10px); }
65% { transform: translateY(1px); }
100% { transform: translateY(0px); }
}
/*=============Désact défault*/
input {
-webkit-appearance: none !important;
appearance: none !important;
}
a{
text-decoration: none;
color: inherit;
cursor: alias;
}
button{
cursor: cell;
}
a p{
cursor:inherit;
}
a button{
cursor: inherit;
}
p{
cursor: inherit;
pointer-events: none;
}
.dg{
display: none !important;
height: 0;
overflow: hidden;
}
/*==========================Moveable*/
.moveable-control-box {
display: none !important;
}
/*=============Body & background*/
html, body{
margin: 0;
}
h1,
h2 {
font-family: var(--heading);
font-weight: 500;
color: var(--text-h);
}
h1 {
font-size: 56px;
letter-spacing: -1.68px;
margin: 32px 0;
@media (max-width: 1024px) {
font-size: 36px;
margin: 20px 0;
}
}
h2 {
font-size: 24px;
line-height: 118%;
letter-spacing: -0.24px;
margin: 0 0 8px;
@media (max-width: 1024px) {
font-size: 20px;
}
}
p {
margin: 0;
}
code,
.counter {
font-family: var(--mono);
display: inline-flex;
border-radius: 4px;
color: var(--text-h);
}
code {
font-size: 15px;
line-height: 135%;
padding: 4px 8px;
background: var(--code-bg);
}
.counter {
font-size: 16px;
padding: 5px 10px;
border-radius: 5px;
color: var(--accent);
background: var(--accent-bg);
border: 2px solid transparent;
transition: border-color 0.3s;
margin-bottom: 24px;
&:hover {
border-color: var(--accent-border);
}
&:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
}
.hero {
position: relative;
.base,
.framework,
.vite {
inset-inline: 0;
margin: 0 auto;
}
.base {
width: 170px;
position: relative;
z-index: 0;
}
.framework,
.vite {
position: absolute;
}
.framework {
z-index: 1;
top: 34px;
height: 28px;
transform: perspective(2000px) rotateZ(300deg) rotateX(44deg) rotateY(39deg)
scale(1.4);
}
.vite {
z-index: 0;
top: 107px;
height: 26px;
width: auto;
transform: perspective(2000px) rotateZ(300deg) rotateX(40deg) rotateY(39deg)
scale(0.8);
}
}
#app {
width: 1126px;
max-width: 100%;
margin: 0 auto;
text-align: center;
border-inline: 1px solid var(--border);
min-height: 100svh;
display: flex;
flex-direction: column;
box-sizing: border-box;
}
#center {
display: flex;
flex-direction: column;
gap: 25px;
place-content: center;
place-items: center;
flex-grow: 1;
@media (max-width: 1024px) {
padding: 32px 20px 24px;
gap: 18px;
}
}
#next-steps {
display: flex;
border-top: 1px solid var(--border);
text-align: left;
& > div {
flex: 1 1 0;
padding: 32px;
@media (max-width: 1024px) {
padding: 24px 20px;
}
}
.icon {
margin-bottom: 16px;
width: 22px;
height: 22px;
}
@media (max-width: 1024px) {
flex-direction: column;
text-align: center;
}
}
#docs {
border-right: 1px solid var(--border);
@media (max-width: 1024px) {
border-right: none;
border-bottom: 1px solid var(--border);
}
}
#next-steps ul {
list-style: none;
padding: 0;
display: flex;
gap: 8px;
margin: 32px 0 0;
.logo {
height: 18px;
}
a {
color: var(--text-h);
font-size: 16px;
border-radius: 6px;
background: var(--social-bg);
display: flex;
padding: 6px 12px;
align-items: center;
gap: 8px;
text-decoration: none;
transition: box-shadow 0.3s;
&:hover {
box-shadow: var(--shadow);
}
.button-icon {
height: 18px;
width: 18px;
}
}
@media (max-width: 1024px) {
margin-top: 20px;
flex-wrap: wrap;
justify-content: center;
li {
flex: 1 1 calc(50% - 8px);
}
a {
width: 100%;
justify-content: center;
box-sizing: border-box;
}
}
}
#spacer {
height: 88px;
border-top: 1px solid var(--border);
@media (max-width: 1024px) {
height: 48px;
}
}
.ticks {
position: relative;
background-color: var(--main-color);
width: 100%;
&::before,
&::after {
content: '';
position: absolute;
top: -4.5px;
border: 5px solid transparent;
}
&::before {
left: 0;
border-left-color: var(--border);
}
&::after {
right: 0;
border-right-color: var(--border);
}
height:100%;
position: fixed;
inset: 0;
overflow-x: hidden;
overflow-y: scroll;
display: block;
scrollbar-color: var(--back-color) var(--main-color);
scrollbar-width: thin;
z-index: -33;
}
#mainContainer{
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
width: 100%;
height: auto;
gap: 0;
}
/*=====================BUTTONS*/
.textBtnStyle{
font-family: 'karrik';
font-size: 13.12px;
background-color: var(--back-color);
color: var(--main-color);
border-color: var(--main-color);
border-style: solid;
border-width: 1.75px;
border-radius: 16.1px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
}
.textBtnStyle:hover{
background-color: var(--main-color);
color: var(--back-color);
}
.iconBtnStyle{
background-color: var(--back-color);
color: var(--main-color);
border-color: var(--main-color);
border-style: solid;
border-width: thin;
border-radius: 0;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
}
.iconBtnStyle:hover{
background-color: var(--main-color);
color: var(--back-color);
}
/*=============INTERFACE*/
.uiStyle{
background-color: var(--back-color);
border-color: var(--main-color);
border-style: solid;
border-width: thin;
}
.icon{
height: 16.1px;
width: auto;
fill: currentColor;
pointer-events: none;
}
#topBar{
position: relative;
top: 0;
left: 0;
width: 100vw;
height: 50px;
z-index: 3;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
color: var(--main-color);
padding-left: 7.77px;
padding-right: 16.1px;
gap: 7.77px;
box-sizing: border-box;
p{
font-family: 'velvelyne';
font-size: 40px;
font-weight: bold;
padding-top: 7.77px;
}
#mainLogo{
height: auto;
width: 50px;
}
.left{
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
width: auto;
gap: 7.77px;
height: 100%;
}
.right{
display: none;
visibility: collapse;
flex-direction: column;
align-items: center;
justify-content: space-around;
width:33%;
height: 200px;
position: absolute;
top: 55px;
right: 7.77px;
z-index: 3;
.textBtnStyle{
width: 16.1%;
min-width: 93px;
height: 33px;
text-transform: uppercase;
}
.textBtnStyle:hover{
border-color: var(--back-color);
}
}
.iconBtnStyle{
width: 33px;
height: 33px;
}
#menuBtn{
.icon.rotated{
transform: rotate(0);
}
.icon{
transform: rotate(45deg);
}
}
@media(min-width: 700px){
#menuBtn{
display: none;
visibility: collapse;
}
.right{
display: flex;
visibility: visible;
flex-direction: row;
align-items: center;
justify-content: space-around;
width:70%;
height: 100%;
position: relative;
top: 0;
left: 0;
}
}
}
#mainInfo{
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 2fr 1fr;
grid-template-areas:
"topL topR"
"midL midR"
"botL botR";
box-sizing: border-box;
width: 100vw;
height: auto;
align-items: stretch;
@media(min-width: 700px){
height: 90vh;
}
.uiStyle{
width:100%;
height: auto;
padding-left: 7.77px;
box-sizing: border-box;
font-family: 'velvelyne';
font-size: 13.12px;
font-weight: bold;
}
#planContainer{
width: 200%;
height: auto;
color: var(--back-color);
display: flex;
flex-direction: column;
align-items: center;
#plan{
position: relative;
width: 90%;
margin-bottom: 13.12px;
}
#fleche{
position: absolute;
width: 90%;
fill: currentColor;
z-index: -1;
}
@media(max-width: 700px){
grid-row: 2;
grid-column: 1 / 2;
}
}
#title{
grid-area: topL;
font-size: 22px;
line-height: .7;
height: 100%;
#desc{
font-family: 'velvelyne';
font-style: normal;
font-size: 13.12px;
line-height: 1em;
text-transform: uppercase;
}
}
#address{
grid-area: topR;
font-family: 'karrik';
color: var(--back-color);
font-style: normal;
font-size: 13.12px;
line-height: 1em;
text-transform: uppercase;
padding-left: 13.12px;
#hackerLogo{
width: 77px;
height: auto;
align-self: end;
position: absolute;
right: 13.12px;
top: 117px;
}
}
#openingHours{
grid-area: botL;
text-align: right;
padding-right: 13.12px;
font-weight: normal;
line-height: 1em;
margin-top: -13.12px;
strong{
font-weight: bold;
}
}
#lolOpener{
grid-area: botR;
font-weight: normal;
padding-right: 7.77px;
line-height: 1em;
display: flex;
flex-direction: column;
align-items: flex-start;
position: relative;
gap: 0;
height: auto;
#lolStatus{
width:90%;
height: 44px;
border-color: var(--main-color);
border-style: solid;
border-width: thin;
border-radius: 0;
align-self: center;
margin-bottom: 7.77px;
}
}
@media(min-width: 700px){
grid-template-columns: 1fr 2fr;
grid-template-rows: 1fr 1.61fr 77px;
height: auto;
.uiStyle{
font-size: 16.1px;
}
#planContainer{
width: 100vh;
grid-row: 2;
grid-column: 2;
margin-left: 0;
margin-top: -88px;
@media(min-width: 1300px){
margin-top: -117px;
margin-bottom: 77px;
}
#plan{
width:90%;
height: auto;
}
#fleche{
width:60%;
height: auto;
}
}
#openingHours{
grid-area: midL;
height: 60%
}
#lolOpener{
width: 300%;
grid-column: 1 / 2;
grid-row: 3;
flex-direction: row;
gap: 7.77px;
align-items: center;
justify-content: space-between;
padding-left: 16.1px;
height: 77px;
#lolStatus{
width: 44%;
align-self: center;
margin-top: 7.77px;
}
}
#title{
margin-bottom: 3.33px;
font-size: 27px;
line-height: 0;
#desc{
font-size: 16.1px;
}
}
#address #hackerLogo{
grid-area: midL;
position: relative;
top: 0;
left: 7.77px;
right: unset;
}
}
@media(min-width: 1300px){
.uiStyle{
font-size: 16.1px;
}
#lolOpener{
font-size: 22px;
}
#address{
font-size: 22px;
#hackerLogo{
width: 117px;
}
}
#openingHours{
font-size: 33px;
}
#title{
margin-bottom: 3.33px;
font-size: 44px;
line-height: 0;
#desc{
font-size: 22px;
}
}
}
}
#aboutSection{
position: relative;
top: 0;
left: 0;
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: flex-start;
box-sizing: border-box;
#aboutText{
width: 60%;
height: 100%;
overflow-y: scroll;
padding-left: 4.44px;
padding-right: 13.12px;
box-sizing: border-box;
p{
font-family: 'velvelyne';
font-weight: normal;
font-size: 13.12px;
color: var(--main-color);
}
}
#eventSection{
width: 40%;
height: auto;
#title{
height: 44px;
padding-top: 7.77px;
padding-left: 7.77px;
box-sizing: border-box;
font-family: 'karrik';
font-style: italic;
font-size: 13.12px;
text-transform: uppercase;
color: var(--main-color);
}
}
}