Compare commits
3 Commits
3e7d4540b7
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| eda3c4058c | |||
| 2f0e135fe6 | |||
| 93c50e5cd7 |
+4
-17
@@ -1,5 +1,4 @@
|
|||||||
import { Activity, ShieldCheck, Users, Clock3 } from "lucide-react";
|
import { Activity, ShieldCheck, Users, Clock3 } from "lucide-react";
|
||||||
import Image from "next/image";
|
|
||||||
import { AppShell } from "@/components/layout/app-shell";
|
import { AppShell } from "@/components/layout/app-shell";
|
||||||
import { GlassCard } from "@/components/ui/glass-card";
|
import { GlassCard } from "@/components/ui/glass-card";
|
||||||
import { prisma } from "@/lib/prisma";
|
import { prisma } from "@/lib/prisma";
|
||||||
@@ -28,22 +27,10 @@ export default async function HomePage() {
|
|||||||
return (
|
return (
|
||||||
<AppShell>
|
<AppShell>
|
||||||
<div className="space-y-6">
|
<div className="space-y-6">
|
||||||
<header className="flex flex-col gap-4 pt-2 sm:flex-row sm:items-center">
|
<header className="pt-2">
|
||||||
<div className="flex h-16 w-16 shrink-0 items-center justify-center rounded-2xl bg-white p-3 shadow-glow">
|
<p className="text-sm font-semibold uppercase tracking-[0.2em] text-brand-orange">Dashboard</p>
|
||||||
<Image
|
<h1 className="mt-2 text-3xl font-black leading-tight sm:text-4xl">Welcome, {user?.fullName}</h1>
|
||||||
src="/4tech_logo.png"
|
<p className="mt-2 text-white/55">4TECH user access and account overview.</p>
|
||||||
alt="4TECH logo"
|
|
||||||
width={52}
|
|
||||||
height={52}
|
|
||||||
className="h-full w-full object-contain"
|
|
||||||
priority
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<p className="text-sm font-semibold uppercase tracking-[0.2em] text-brand-orange">Dashboard</p>
|
|
||||||
<h1 className="mt-2 text-3xl font-black sm:text-4xl">Welcome, {user?.fullName}</h1>
|
|
||||||
<p className="mt-2 text-white/55">4TECH user access and account overview.</p>
|
|
||||||
</div>
|
|
||||||
</header>
|
</header>
|
||||||
<section className="grid gap-4 sm:grid-cols-2 xl:grid-cols-4">
|
<section className="grid gap-4 sm:grid-cols-2 xl:grid-cols-4">
|
||||||
{cards.map((card) => (
|
{cards.map((card) => (
|
||||||
|
|||||||
@@ -15,18 +15,17 @@ export default async function LoginPage() {
|
|||||||
<div className="w-full max-w-md">
|
<div className="w-full max-w-md">
|
||||||
<GlassCard className="p-7 sm:p-8">
|
<GlassCard className="p-7 sm:p-8">
|
||||||
<div className="mb-8 text-center">
|
<div className="mb-8 text-center">
|
||||||
<div className="mx-auto mb-4 flex h-20 w-20 items-center justify-center rounded-2xl bg-white p-3 shadow-glow">
|
<div className="mx-auto mb-5 h-60 w-60 max-w-full">
|
||||||
<Image
|
<Image
|
||||||
src="/4tech_logo.png"
|
src="/4tech_logo.png"
|
||||||
alt="4TECH logo"
|
alt="4TECH logo"
|
||||||
width={64}
|
width={240}
|
||||||
height={64}
|
height={240}
|
||||||
className="h-full w-full object-contain"
|
className="h-full w-full object-contain"
|
||||||
priority
|
priority
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<h1 className="text-3xl font-black tracking-wide">4TECH</h1>
|
<p className="text-sm text-white/55">INNOVATION CO., LTD.</p>
|
||||||
<p className="mt-2 text-sm text-white/55">4TECH INNOVATION CO., LTD.</p>
|
|
||||||
</div>
|
</div>
|
||||||
<LoginForm />
|
<LoginForm />
|
||||||
</GlassCard>
|
</GlassCard>
|
||||||
|
|||||||
@@ -23,21 +23,17 @@ export async function AppShell({ children }: { children: React.ReactNode }) {
|
|||||||
<main className="brand-bg min-h-screen">
|
<main className="brand-bg min-h-screen">
|
||||||
<div className="mx-auto flex min-h-screen w-full max-w-7xl flex-col gap-6 p-4 md:flex-row md:p-6">
|
<div className="mx-auto flex min-h-screen w-full max-w-7xl flex-col gap-6 p-4 md:flex-row md:p-6">
|
||||||
<aside className="glass flex h-fit flex-col rounded-2xl p-4 md:sticky md:top-6 md:w-64">
|
<aside className="glass flex h-fit flex-col rounded-2xl p-4 md:sticky md:top-6 md:w-64">
|
||||||
<Link href="/home" className="mb-6 flex items-center gap-3">
|
<Link href="/home" className="mb-8 flex justify-center">
|
||||||
<div className="flex h-12 w-12 items-center justify-center rounded-2xl bg-white p-2 shadow-glow">
|
<div className="h-28 w-48">
|
||||||
<Image
|
<Image
|
||||||
src="/4tech_logo.png"
|
src="/4tech_logo.png"
|
||||||
alt="4TECH logo"
|
alt="4TECH logo"
|
||||||
width={40}
|
width={192}
|
||||||
height={40}
|
height={112}
|
||||||
className="h-full w-full object-contain"
|
className="h-full w-full object-contain"
|
||||||
priority
|
priority
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
<p className="text-lg font-black tracking-wide">4TECH</p>
|
|
||||||
<p className="text-xs text-white/50">Internal System</p>
|
|
||||||
</div>
|
|
||||||
</Link>
|
</Link>
|
||||||
<nav className="grid gap-2">
|
<nav className="grid gap-2">
|
||||||
{nav.map((item) => (
|
{nav.map((item) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user