- Upgrade : Svelte 5.0.0, Vite 7.0.4, @sveltejs/vite-plugin-svelte 6.0.0 - Migration syntaxe Svelte 5 : $derived, $props(), onclick, mount() - Navbar identique au site source avec logo GIF et menu animé - Page Home avec vidéo plein écran et lignes verticales - CSS modulaire organisé en fichiers séparés (variables, fonts, layout, buttons, etc.) - Assets copiés : fonts Danzza, vidéos, icônes Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
53 lines
1 KiB
CSS
53 lines
1 KiB
CSS
/* Button */
|
|
.button {
|
|
width: 14vmax;
|
|
min-width: 130px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: sticky;
|
|
z-index: 1;
|
|
padding: 12px 16px;
|
|
transition: 0.5s ease-out;
|
|
font-family: "Danzza Bold";
|
|
background-color: var(--color-primary);
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button:hover {
|
|
background-position: left;
|
|
background-color: transparent;
|
|
outline: solid 2px var(--color-primary);
|
|
}
|
|
|
|
.button p {
|
|
color: black;
|
|
margin: 0;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
.button:hover p {
|
|
color: var(--color-primary) !important;
|
|
}
|
|
|
|
.earth-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
background-image: url('/assets/img/icon-earth-green.png');
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
margin-right: 8px;
|
|
transition: filter 0.3s;
|
|
}
|
|
|
|
.button:hover .earth-icon {
|
|
filter: brightness(0) saturate(100%) invert(77%) sepia(82%) saturate(507%) hue-rotate(91deg) brightness(101%) contrast(97%);
|
|
}
|
|
|
|
/* Clickable elements */
|
|
.clickable {
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|