bugfix: the whole theming structure overhauled. light/dark mode icon added.
This commit is contained in:
@@ -3,23 +3,24 @@
|
||||
import Link from 'next/link';
|
||||
import { useAuth } from '@/lib/hooks/useAuth';
|
||||
import { Button } from '@/components/ui/Button';
|
||||
import { ThemeToggle } from '@/components/ui/ThemeToggle';
|
||||
import { Building2, Beaker, Calendar, Shield, Clock, Users } from 'lucide-react';
|
||||
|
||||
export default function HomePage() {
|
||||
const { user } = useAuth();
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-background-primary">
|
||||
<div className="min-h-screen app-web-bg text-text-primary">
|
||||
|
||||
{/* Header */}
|
||||
<header className="border-b border-border bg-background-secondary/80 backdrop-blur-sm fixed top-0 w-full z-10">
|
||||
<header className="border-b border-border/70 bg-background-secondary/65 backdrop-blur-sm fixed top-0 w-full z-10">
|
||||
<div className="container mx-auto px-4 py-4 flex justify-between items-center">
|
||||
|
||||
<div className="text-2xl font-semibold text-primary">
|
||||
<div className="text-2xl font-semibold text-text-primary">
|
||||
DyoLink
|
||||
</div>
|
||||
|
||||
<div className="flex gap-3">
|
||||
<div className="flex items-center gap-3">
|
||||
<ThemeToggle />
|
||||
{user ? (
|
||||
<Link href="/today">
|
||||
<Button variant="primary">Dashboard</Button>
|
||||
@@ -44,7 +45,7 @@ export default function HomePage() {
|
||||
|
||||
<div className="max-w-4xl mx-auto text-center">
|
||||
|
||||
<h1 className="text-5xl md:text-6xl font-semibold text-text-primary mb-6 leading-tight">
|
||||
<h1 className="text-5xl md:text-6xl font-semibold mb-6 leading-tight">
|
||||
Connect Dental Clinics & Labs
|
||||
<span className="text-primary"> Seamlessly</span>
|
||||
</h1>
|
||||
@@ -66,32 +67,32 @@ export default function HomePage() {
|
||||
{/* Features */}
|
||||
<div className="mt-20 grid md:grid-cols-3 gap-6">
|
||||
<FeatureCard
|
||||
icon={<Building2 className="h-6 w-6" />}
|
||||
icon={<Building2 className="h-6 w-6 icon-flat" />}
|
||||
title="For Clinics"
|
||||
description="Manage patients, appointments, and send cases to labs instantly."
|
||||
/>
|
||||
<FeatureCard
|
||||
icon={<Beaker className="h-6 w-6" />}
|
||||
icon={<Beaker className="h-6 w-6 icon-flat" />}
|
||||
title="For Labs"
|
||||
description="Receive cases, track progress, and communicate with clinics."
|
||||
/>
|
||||
<FeatureCard
|
||||
icon={<Users className="h-6 w-6" />}
|
||||
icon={<Users className="h-6 w-6 icon-flat" />}
|
||||
title="Team Management"
|
||||
description="Add up to 5 team members during trial. Scale as you grow."
|
||||
/>
|
||||
<FeatureCard
|
||||
icon={<Calendar className="h-6 w-6" />}
|
||||
icon={<Calendar className="h-6 w-6 icon-flat" />}
|
||||
title="30-Day Trial"
|
||||
description="Full access to all features. No credit card required."
|
||||
/>
|
||||
<FeatureCard
|
||||
icon={<Clock className="h-6 w-6" />}
|
||||
icon={<Clock className="h-6 w-6 icon-flat" />}
|
||||
title="Real-time Updates"
|
||||
description="Get instant notifications on case status changes."
|
||||
/>
|
||||
<FeatureCard
|
||||
icon={<Shield className="h-6 w-6" />}
|
||||
icon={<Shield className="h-6 w-6 icon-flat" />}
|
||||
title="Secure & Compliant"
|
||||
description="HIPAA-compliant with enterprise-grade security."
|
||||
/>
|
||||
@@ -100,7 +101,7 @@ export default function HomePage() {
|
||||
</main>
|
||||
|
||||
{/* Footer */}
|
||||
<footer className="border-t border-border bg-background-secondary">
|
||||
<footer className="border-t border-border/70 bg-background-secondary/80">
|
||||
<div className="container mx-auto px-4 py-8 flex flex-col md:flex-row justify-between items-center text-sm text-text-secondary">
|
||||
|
||||
<div>© 2026 DyoLink. All rights reserved.</div>
|
||||
@@ -130,7 +131,7 @@ function FeatureCard({
|
||||
description: string;
|
||||
}) {
|
||||
return (
|
||||
<div className="bg-background-card border border-border rounded-2xl p-5 transition-all hover:border-primary hover:shadow-[0_0_20px_rgba(0,194,255,0.15)]">
|
||||
<div className="surface-card p-5 transition-all hover:border-primary/70 hover:shadow-[0_0_20px_rgba(0,194,255,0.12)]">
|
||||
|
||||
<div className="text-primary mb-4">
|
||||
{icon}
|
||||
|
||||
Reference in New Issue
Block a user