feat: update layout and page components with personalized content and new UI structure
This commit is contained in:
+3
-2
@@ -13,8 +13,9 @@ const geistMono = Geist_Mono({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Create Next App",
|
title: "Asep Haryana Saputra — Hub",
|
||||||
description: "Generated by create next app",
|
description:
|
||||||
|
"Personal portfolio and infrastructure monitoring dashboard by Asep Haryana Saputra.",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
|
|||||||
+119
-48
@@ -1,65 +1,136 @@
|
|||||||
import Image from "next/image";
|
import {
|
||||||
|
Activity,
|
||||||
|
ArrowRight,
|
||||||
|
BarChart3,
|
||||||
|
Container,
|
||||||
|
Cpu,
|
||||||
|
ExternalLink,
|
||||||
|
} from "lucide-react";
|
||||||
|
|
||||||
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||||
|
|
||||||
|
const features = [
|
||||||
|
{
|
||||||
|
icon: Container,
|
||||||
|
title: "Service Health",
|
||||||
|
description: "Real-time Docker container status across the cluster.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: BarChart3,
|
||||||
|
title: "Request Metrics",
|
||||||
|
description: "RPS, latency, and error rates scraped from Traefik.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: Cpu,
|
||||||
|
title: "System Resources",
|
||||||
|
description: "CPU, memory, disk, and network on each VPS node.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: Activity,
|
||||||
|
title: "Distributed Tracing",
|
||||||
|
description: "Jaeger trace visualization for service-to-service calls.",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col flex-1 items-center justify-center bg-zinc-50 font-sans dark:bg-black">
|
<div className="flex flex-1 flex-col">
|
||||||
<main className="flex flex-1 w-full max-w-3xl flex-col items-center justify-between py-32 px-16 bg-white dark:bg-black sm:items-start">
|
{/* Hero */}
|
||||||
<Image
|
<section className="flex flex-col items-center justify-center px-6 py-24 text-center sm:py-32">
|
||||||
className="dark:invert"
|
<div className="mb-6 flex size-14 items-center justify-center rounded-2xl bg-gradient-to-br from-blue-500 to-purple-600 text-xl font-bold text-white shadow-lg shadow-blue-500/20">
|
||||||
src="/next.svg"
|
AH
|
||||||
alt="Next.js logo"
|
</div>
|
||||||
width={100}
|
<h1 className="max-w-2xl text-4xl font-semibold tracking-tight sm:text-5xl">
|
||||||
height={20}
|
Asep Haryana Saputra
|
||||||
priority
|
|
||||||
/>
|
|
||||||
<div className="flex flex-col items-center gap-6 text-center sm:items-start sm:text-left">
|
|
||||||
<h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
|
|
||||||
To get started, edit the page.tsx file.
|
|
||||||
</h1>
|
</h1>
|
||||||
<p className="max-w-md text-lg leading-8 text-zinc-600 dark:text-zinc-400">
|
<p className="mt-3 max-w-md text-lg text-muted-foreground">
|
||||||
Looking for a starting point or more instructions? Head over to{" "}
|
Software engineer building resilient, observable infrastructure for
|
||||||
<a
|
personal and production systems.
|
||||||
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
||||||
className="font-medium text-zinc-950 dark:text-zinc-50"
|
|
||||||
>
|
|
||||||
Templates
|
|
||||||
</a>{" "}
|
|
||||||
or the{" "}
|
|
||||||
<a
|
|
||||||
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
||||||
className="font-medium text-zinc-950 dark:text-zinc-50"
|
|
||||||
>
|
|
||||||
Learning
|
|
||||||
</a>{" "}
|
|
||||||
center.
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
<div className="mt-8 flex flex-wrap items-center justify-center gap-3">
|
||||||
<div className="flex flex-col gap-4 text-base font-medium sm:flex-row">
|
|
||||||
<a
|
<a
|
||||||
className="flex h-12 w-full items-center justify-center gap-2 rounded-full bg-foreground px-5 text-background transition-colors hover:bg-[#383838] dark:hover:bg-[#ccc] md:w-[158px]"
|
href="/dashboard"
|
||||||
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
className="inline-flex h-9 items-center justify-center gap-1.5 rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground whitespace-nowrap transition-colors hover:bg-primary/80"
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>
|
>
|
||||||
<Image
|
Dashboard
|
||||||
className="dark:invert"
|
<ArrowRight className="size-4" />
|
||||||
src="/vercel.svg"
|
|
||||||
alt="Vercel logomark"
|
|
||||||
width={16}
|
|
||||||
height={16}
|
|
||||||
/>
|
|
||||||
Deploy Now
|
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
className="flex h-12 w-full items-center justify-center rounded-full border border-solid border-black/[.08] px-5 transition-colors hover:border-transparent hover:bg-black/[.04] dark:border-white/[.145] dark:hover:bg-[#1a1a1a] md:w-[158px]"
|
href="https://github.com/asepharyana"
|
||||||
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
|
className="inline-flex h-9 items-center justify-center gap-1.5 rounded-lg border border-border bg-background px-5 text-sm font-medium whitespace-nowrap transition-colors hover:bg-muted hover:text-foreground"
|
||||||
>
|
>
|
||||||
Documentation
|
GitHub
|
||||||
|
<ExternalLink className="size-4" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</section>
|
||||||
|
|
||||||
|
{/* About */}
|
||||||
|
<section className="mx-auto flex w-full max-w-3xl flex-col gap-8 px-6 pb-24">
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>About This Hub</CardTitle>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent className="text-muted-foreground">
|
||||||
|
<p>
|
||||||
|
This is the control center for Asep Haryana Saputra's
|
||||||
|
infrastructure. It monitors Docker containers, Traefik request
|
||||||
|
metrics, Prometheus system resources, and Jaeger distributed
|
||||||
|
traces across a multi-VPS deployment orchestrated with Dapr and
|
||||||
|
NATS.
|
||||||
|
</p>
|
||||||
|
<p className="mt-3">
|
||||||
|
The stack runs on Tailscale-connected VPS nodes with automatic
|
||||||
|
service discovery, TLS termination via Traefik, and real-time
|
||||||
|
streaming telemetry through JetStream-backed Dapr pub/sub.
|
||||||
|
</p>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
|
||||||
|
{/* Features */}
|
||||||
|
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2">
|
||||||
|
{features.map((f) => {
|
||||||
|
const Icon = f.icon;
|
||||||
|
return (
|
||||||
|
<Card key={f.title} size="sm">
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle className="flex items-center gap-2">
|
||||||
|
<Icon className="size-4 text-blue-500" />
|
||||||
|
{f.title}
|
||||||
|
</CardTitle>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent className="text-sm text-muted-foreground">
|
||||||
|
{f.description}
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* CTA */}
|
||||||
|
<Card>
|
||||||
|
<CardContent className="flex flex-col items-center gap-4 py-8 text-center">
|
||||||
|
<p className="text-base font-medium">
|
||||||
|
Ready to see the live infrastructure?
|
||||||
|
</p>
|
||||||
|
<a
|
||||||
|
href="/dashboard"
|
||||||
|
className="inline-flex h-9 items-center justify-center gap-1.5 rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground whitespace-nowrap transition-colors hover:bg-primary/80"
|
||||||
|
>
|
||||||
|
Open Dashboard
|
||||||
|
<ArrowRight className="size-4" />
|
||||||
|
</a>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{/* Footer */}
|
||||||
|
<footer className="mt-auto border-t py-6 text-center text-xs text-muted-foreground">
|
||||||
|
© {new Date().getFullYear()} Asep Haryana Saputra. Built with
|
||||||
|
Next.js, shadcn/ui, and a lot of Docker.
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user