feat: navbar
This commit is contained in:
+98
-6
@@ -193,9 +193,84 @@ svg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.home-nav {
|
.home-nav {
|
||||||
|
position: relative;
|
||||||
|
isolation: isolate;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
min-height: 76px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
padding: 10px 12px;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 24px;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 1px solid rgb(168 245 255 / 22%);
|
||||||
|
border-radius: 14px;
|
||||||
|
background:
|
||||||
|
linear-gradient(110deg, rgb(0 231 255 / 8%), transparent 34%),
|
||||||
|
rgb(9 14 31 / 82%);
|
||||||
|
box-shadow:
|
||||||
|
0 16px 44px rgb(0 0 0 / 32%),
|
||||||
|
inset 0 0 0 1px rgb(255 255 255 / 4%);
|
||||||
|
backdrop-filter: blur(16px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-nav::after {
|
||||||
|
position: absolute;
|
||||||
|
right: 12%;
|
||||||
|
bottom: -1px;
|
||||||
|
left: 12%;
|
||||||
|
z-index: -1;
|
||||||
|
height: 1px;
|
||||||
|
background: linear-gradient(90deg, transparent, rgb(0 231 255 / 80%), transparent);
|
||||||
|
box-shadow: 0 0 18px rgb(0 231 255 / 70%);
|
||||||
|
content: "";
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-nav-links {
|
||||||
|
display: flex;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-nav-link {
|
||||||
|
display: inline-flex;
|
||||||
|
min-height: 44px;
|
||||||
|
padding: 0 18px;
|
||||||
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
border: 1px solid rgb(168 245 255 / 20%);
|
||||||
|
border-radius: 8px;
|
||||||
|
color: #d8fbff;
|
||||||
|
font-family: var(--font-fredoka), var(--font-geist-sans), sans-serif;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0.01em;
|
||||||
|
line-height: 1;
|
||||||
|
transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-nav-link:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
border-color: rgb(168 245 255 / 65%);
|
||||||
|
background: rgb(0 231 255 / 10%);
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-nav-link[aria-current="page"] {
|
||||||
|
background: rgb(0 231 255 / 8%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-nav-link--docs {
|
||||||
|
border-color: #fff;
|
||||||
|
background: #fff;
|
||||||
|
color: #09101f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-nav-link--docs:hover {
|
||||||
|
border-color: #a8f5ff;
|
||||||
|
background: #a8f5ff;
|
||||||
|
color: #06111a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-lockup,
|
.brand-lockup,
|
||||||
@@ -207,6 +282,7 @@ svg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.brand-lockup {
|
.brand-lockup {
|
||||||
|
min-width: 0;
|
||||||
color: #a8f5ff;
|
color: #a8f5ff;
|
||||||
font-family: var(--font-fredoka), var(--font-geist-sans), sans-serif;
|
font-family: var(--font-fredoka), var(--font-geist-sans), sans-serif;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
@@ -215,6 +291,7 @@ svg {
|
|||||||
|
|
||||||
.brand-mark {
|
.brand-mark {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
flex: 0 0 auto;
|
||||||
width: 54px;
|
width: 54px;
|
||||||
height: 54px;
|
height: 54px;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
@@ -421,10 +498,11 @@ svg {
|
|||||||
border: 2px solid rgb(255 255 255 / 20%);
|
border: 2px solid rgb(255 255 255 / 20%);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background: var(--service-accent);
|
background: var(--service-accent);
|
||||||
color: #06111a;
|
color: #fff;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
text-shadow: 0 2px 0 rgb(0 0 0 / 24%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.service-action-label {
|
.service-action-label {
|
||||||
@@ -434,23 +512,18 @@ svg {
|
|||||||
|
|
||||||
.service-card--jellyfin .service-action {
|
.service-card--jellyfin .service-action {
|
||||||
background: linear-gradient(180deg, #a95cff, #7d3cff);
|
background: linear-gradient(180deg, #a95cff, #7d3cff);
|
||||||
color: #fff;
|
|
||||||
text-shadow: 0 2px 0 rgb(0 0 0 / 24%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.service-card--seerr .service-action {
|
.service-card--seerr .service-action {
|
||||||
background: linear-gradient(180deg, #ffd166, #ff6b8a);
|
background: linear-gradient(180deg, #ffd166, #ff6b8a);
|
||||||
color: #170b14;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.service-card--minecraft .service-action {
|
.service-card--minecraft .service-action {
|
||||||
background: linear-gradient(180deg, #35f48a, #13ca69);
|
background: linear-gradient(180deg, #35f48a, #13ca69);
|
||||||
color: #041411;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.service-card--astroneer .service-action {
|
.service-card--astroneer .service-action {
|
||||||
background: linear-gradient(180deg, #ffd66b, #ff9f43);
|
background: linear-gradient(180deg, #ffd66b, #ff9f43);
|
||||||
color: #1a1025;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.service-action svg {
|
.service-action svg {
|
||||||
@@ -1303,6 +1376,25 @@ h2.pixel-heading {
|
|||||||
padding-top: 24px;
|
padding-top: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.home-nav {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-lockup {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-nav-links {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-nav-link {
|
||||||
|
flex: 1;
|
||||||
|
padding: 0 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.brand-lockup {
|
.brand-lockup {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,6 @@ export const minecraftServer = {
|
|||||||
|
|
||||||
export const astroneerServer = {
|
export const astroneerServer = {
|
||||||
name: "Astroneer",
|
name: "Astroneer",
|
||||||
address: "astroneer.leonmorival.xyz",
|
address: "89.167.35.217",
|
||||||
access: "Serveur dédié",
|
access: "Serveur dédié",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -58,8 +58,6 @@ export default function MinecraftPage() {
|
|||||||
/>
|
/>
|
||||||
<div className="minecraft-hero-content">
|
<div className="minecraft-hero-content">
|
||||||
<h1 id="minecraft-title">Minecraft Survie</h1>
|
<h1 id="minecraft-title">Minecraft Survie</h1>
|
||||||
<p>Un monde privé pour construire, explorer et jouer entre amis.</p>
|
|
||||||
|
|
||||||
<div className="server-address block-panel">
|
<div className="server-address block-panel">
|
||||||
<DiamondIcon />
|
<DiamondIcon />
|
||||||
<span>{minecraftServer.address}</span>
|
<span>{minecraftServer.address}</span>
|
||||||
|
|||||||
+15
-13
@@ -10,23 +10,31 @@ import { astroneerServer, siteConfig } from "./lib/server-config";
|
|||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<main className="stellar-page home-page">
|
<main className="stellar-page home-page">
|
||||||
<section className="home-shell" aria-labelledby="home-title">
|
<section className="home-shell lg:justify-center" aria-label="Services privés de Leon">
|
||||||
<nav className="home-nav" aria-label="Navigation principale">
|
<nav className="home-nav" aria-label="Navigation principale">
|
||||||
<Link href="/" className="brand-lockup" aria-label="Accueil">
|
<Link href="/" className="brand-lockup" aria-label="Accueil">
|
||||||
<span className="brand-mark">L</span>
|
<span className="brand-mark">L</span>
|
||||||
<span>{siteConfig.name}</span>
|
<span>{siteConfig.name}</span>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
|
<div className="home-nav-links">
|
||||||
|
<Link href="/" className="home-nav-link" aria-current="page">
|
||||||
|
Accueil
|
||||||
|
</Link>
|
||||||
|
<Link href="/docs" className="home-nav-link home-nav-link--docs">
|
||||||
|
Documentation
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div className="home-hero">
|
{/*<div className="home-hero">*/}
|
||||||
<h1 id="home-title">{siteConfig.title}</h1>
|
{/* <h1 id="home-title">{siteConfig.title}</h1>*/}
|
||||||
<p>{siteConfig.description}</p>
|
{/*</div>*/}
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="service-grid" aria-label="Services disponibles">
|
<div className="service-grid" aria-label="Services disponibles">
|
||||||
<HomeElement
|
<HomeElement
|
||||||
title="Jellyfin"
|
title="Momostreaming"
|
||||||
description="Films, séries et bibliothèque privée."
|
description="Films et Séries"
|
||||||
href={siteConfig.jellyfinUrl}
|
href={siteConfig.jellyfinUrl}
|
||||||
actionLabel="Ouvrir"
|
actionLabel="Ouvrir"
|
||||||
variant="jellyfin"
|
variant="jellyfin"
|
||||||
@@ -66,12 +74,6 @@ export default function Home() {
|
|||||||
<AstroneerIcon />
|
<AstroneerIcon />
|
||||||
</HomeElement>
|
</HomeElement>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="home-footer-hint" aria-hidden="true">
|
|
||||||
<span />
|
|
||||||
<strong>Services privés</strong>
|
|
||||||
<span />
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user