feat: update layout and page components with personalized content and new UI structure

This commit is contained in:
asepharyana
2026-07-23 12:47:52 +07:00
parent d94524b70d
commit e529e8c2e6
2 changed files with 123 additions and 51 deletions
+3 -2
View File
@@ -13,8 +13,9 @@ const geistMono = Geist_Mono({
});
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: "Asep Haryana Saputra — Hub",
description:
"Personal portfolio and infrastructure monitoring dashboard by Asep Haryana Saputra.",
};
export default function RootLayout({
+120 -49
View File
@@ -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() {
return (
<div className="flex flex-col flex-1 items-center justify-center bg-zinc-50 font-sans dark:bg-black">
<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">
<Image
className="dark:invert"
src="/next.svg"
alt="Next.js logo"
width={100}
height={20}
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>
<p className="max-w-md text-lg leading-8 text-zinc-600 dark:text-zinc-400">
Looking for a starting point or more instructions? Head over to{" "}
<a
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>
<div className="flex flex-1 flex-col">
{/* Hero */}
<section className="flex flex-col items-center justify-center px-6 py-24 text-center sm:py-32">
<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">
AH
</div>
<div className="flex flex-col gap-4 text-base font-medium sm:flex-row">
<h1 className="max-w-2xl text-4xl font-semibold tracking-tight sm:text-5xl">
Asep Haryana Saputra
</h1>
<p className="mt-3 max-w-md text-lg text-muted-foreground">
Software engineer building resilient, observable infrastructure for
personal and production systems.
</p>
<div className="mt-8 flex flex-wrap items-center justify-center gap-3">
<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="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
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"
>
<Image
className="dark:invert"
src="/vercel.svg"
alt="Vercel logomark"
width={16}
height={16}
/>
Deploy Now
Dashboard
<ArrowRight className="size-4" />
</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://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
href="https://github.com/asepharyana"
target="_blank"
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>
</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&apos;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">
&copy; {new Date().getFullYear()} Asep Haryana Saputra. Built with
Next.js, shadcn/ui, and a lot of Docker.
</footer>
</div>
);
}