initial prototype

feat-steffe
Antonio De Lucreziis 2 months ago
parent 75d2bb00ca
commit 451f68e556

@ -0,0 +1,95 @@
---
import Footer from '@/components/Footer.astro'
import Header from '@/components/Header.astro'
import BaseLayout from '@/layouts/BaseLayout.astro'
---
<BaseLayout title="Cluster Steffè | PHC" pageTags={'steffe'}>
<Header />
<div class="steffe-layout">
<div class="docs-navigation">
<div class="nav-item active">
<a href="/steffe">Documentazione</a>
</div>
<div class="nav-item">
<a href="/steffe/monitoring">Monitoring</a>
</div>
<div class="nav-item">
<a href="/steffe/installazione">Installazione</a>
</div>
<div class="nav-item">
<a href="/steffe/risorse">Risorse</a>
</div>
<div class="nav-item">
<a href="/steffe/contatti">Contatti</a>
</div>
<div class="nav-item">
<a href="/steffe/faq">FAQ</a>
</div>
</div>
<div class="docs-content">
<main class="article card large">
<div class="text">
<h1>Documentazione</h1>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nostrum pariatur officiis,
delectus nisi voluptates dolore eaque quas vitae nesciunt nobis sequi architecto
deleniti cupiditate doloribus, quisquam hic esse perspiciatis tempore.
</p>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nostrum pariatur officiis,
delectus nisi voluptates dolore eaque quas vitae nesciunt nobis sequi architecto
deleniti cupiditate doloribus, quisquam hic esse perspiciatis tempore.
</p>
<h2>Some subtitle here</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nostrum pariatur officiis,
delectus nisi voluptates dolore eaque quas vitae nesciunt nobis sequi architecto
deleniti cupiditate doloribus, quisquam hic esse perspiciatis tempore.
</p>
<!-- <h2>Some subtitle here</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nostrum pariatur officiis,
delectus nisi voluptates dolore eaque quas vitae nesciunt nobis sequi architecto
deleniti cupiditate doloribus, quisquam hic esse perspiciatis tempore.
</p>
<h2>Some subtitle here</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nostrum pariatur officiis,
delectus nisi voluptates dolore eaque quas vitae nesciunt nobis sequi architecto
deleniti cupiditate doloribus, quisquam hic esse perspiciatis tempore.
</p>
<h2>Some subtitle here</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nostrum pariatur officiis,
delectus nisi voluptates dolore eaque quas vitae nesciunt nobis sequi architecto
deleniti cupiditate doloribus, quisquam hic esse perspiciatis tempore.
</p> -->
</div>
</main>
</div>
<div class="title">
<h1>Cluster Steffé</h1>
</div>
<div class="monitoring">
<div class="card">
<div class="title">Current Status</div>
<div class="nodes-status">
{
Array.from({ length: 30 }, (_, i) => (
<div
class:list={['node-status-dot', Math.random() < 0.75 ? 'online' : 'offline']}
style={{ '--node-random-delay': `${Math.random() * 1}s` }}
>
<div class="label">
<span>steffe{i + 1}</span>
</div>
</div>
))
}
</div>
</div>
</div>
</div>
<Footer />
</BaseLayout>

@ -818,4 +818,161 @@
} }
} }
} }
.steffe-layout {
display: grid;
grid-template-columns: minmax(15rem, auto) minmax(50rem, auto) minmax(auto, 20rem);
grid-template-rows: auto 1fr;
grid-template-areas:
'docs-navigation docs-content title'
'docs-navigation docs-content monitoring';
padding: 2rem;
gap: 2rem;
place-content: center;
min-height: 100%;
--card-base: #a2d4f3;
> .docs-navigation {
grid-area: docs-navigation;
display: grid;
grid-auto-flow: row;
gap: 1.25rem;
align-content: start;
& > .nav-item {
padding: 1rem;
background: oklch(from #a2d4f3 calc(l + 0.05) calc(c - 0.02) h);
@include neo-brutalist-card(3px, 3px);
font-weight: 600;
cursor: pointer;
&:hover {
background: oklch(from #a2d4f3 calc(l + 0.01) calc(c - 0.01) h);
}
&.active {
background: oklch(from #a2d4f3 calc(l - 0.1) calc(c + 0.04) h);
@include neo-brutalist-card(3px, 1px);
transform: translate(2px, 2px);
&:hover {
background: oklch(from #a2d4f3 calc(l - 0.15) calc(c + 0.04) h);
}
}
}
}
> .docs-content {
grid-area: docs-content;
min-height: 100%;
& > .card {
min-height: 100%;
}
}
> .title {
grid-area: title;
place-self: center;
padding-top: 2rem;
h1 {
line-height: 1;
}
}
> .monitoring {
grid-area: monitoring;
> .card {
display: grid;
grid-auto-flow: row;
}
}
}
.nodes-status {
display: grid;
grid-template-columns: repeat(auto-fill, 1rem);
grid-auto-flow: row;
gap: 0.25rem;
& > .node-status-dot {
width: 1rem;
height: 1rem;
border-radius: 0.25rem;
@include neo-brutalist-card(2px, 2px);
&.online {
background: #0d0;
animation: pluse-online 1s infinite ease-in-out alternate;
animation-delay: calc(-1 * var(--node-random-delay, 0s));
}
&.offline {
background: #e00;
}
position: relative;
// --tooltip-color: oklch(from orange calc(l + 0.1) c h);
--tooltip-color: royalblue;
& > .label {
position: absolute;
display: none;
}
&:hover {
border-color: var(--tooltip-color);
& > .label {
display: grid;
pointer-events: none;
bottom: calc(100% + 4px);
left: 0;
padding: 0.125rem 0.25rem;
background: var(--tooltip-color);
color: #eee;
border-radius: 0.25rem;
font-size: 15px;
font-family: 'Iosevka', monospace;
@include neo-brutalist-card(2px, 1px);
}
}
}
}
}
@keyframes pluse-online {
0% {
background: #0a0;
}
100% {
background: #0e0;
}
} }

@ -637,6 +637,10 @@
} }
} }
.steffe {
background: oklch(from #a2d4f3 calc(l + 0.3) calc(c - 0.03) h);
}
// //
// Meta // Meta
// //

Loading…
Cancel
Save