Home Page and Login Logic

This commit is contained in:
Sir Blob
2025-01-26 02:28:51 -05:00
parent b86f1174bd
commit bef4b48b1b
8 changed files with 106 additions and 258 deletions

View File

@@ -22,61 +22,3 @@ export default function RootLayout({ children }: { children: React.ReactNode })
</html> </html>
) )
} }
/*
import type { Metadata } from "next"
import { Inter } from "next/font/google"
import "./globals.css"
import { Mic } from "lucide-react"
const inter = Inter({ subsets: ["latin"] })
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en">
<body className={inter.className}>
<div className="flex flex-col min-h-screen">
<header className="bg-primary text-primary-foreground shadow-md">
<div className="container mx-auto px-4 py-4 flex items-center justify-between">
<div className="flex items-center space-x-2">
<Mic className="h-6 w-6" />
<h1 className="text-2xl font-bold">PostCare</h1>
</div>
<nav>
<ul className="flex space-x-4">
<li>
<a href="#" className="hover:underline">
Home
</a>
</li>
<li>
<a href="#" className="hover:underline">
About
</a>
</li>
<li>
<a href="#" className="hover:underline">
Contact
</a>
</li>
</ul>
</nav>
</div>
</header>
<main className="flex-grow">{children}</main>
<footer className="bg-muted mt-8">
<div className="container mx-auto px-4 py-6 text-center">
</div>
</footer>
</div>
</body>
</html>
)
}
*/

View File

@@ -37,8 +37,8 @@ export default function LoginPage() {
return ( return (
<div className="min-h-screen flex bg-gray-100"> <div className="min-h-screen flex bg-neutral-200 dark:bg-neutral-900">
<Card className="h-1/4 w-1/4 mx-auto my-20"> <Card className="h-1/4 w-1/4 mx-auto my-20 bg-neutral-100 dark:bg-neutral-950 ">
<CardHeader className="text-center"> <CardHeader className="text-center">
<CardTitle>Welcome</CardTitle> <CardTitle>Welcome</CardTitle>
<CardDescription>Choose your login type</CardDescription> <CardDescription>Choose your login type</CardDescription>

View File

@@ -1,7 +1,7 @@
"use client" "use client"
import { Hero } from "@/components/hero"; import { Hero } from "@/components/hero";
import { Facts } from "@/components/facts"; import { HeroOne } from "@/components/heroOne";
import Link from "next/link"; import Link from "next/link";
@@ -10,7 +10,7 @@ export default function Home() {
<div className="items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]"> <div className="items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
<Hero /> <Hero />
<Facts /> <HeroOne />
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', height: '100vh' }}> <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', height: '100vh' }}>
<Link href="/transcribe"> <Link href="/transcribe">
@@ -20,85 +20,3 @@ export default function Home() {
</div> </div>
); );
} }
/*
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;
--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;
--popover: 0 0% 100%;
--popover-foreground: 222.2 84% 4.9%;
--card: 0 0% 100%;
--card-foreground: 222.2 84% 4.9%;
--border: 214.3 31.8% 91.4%;
--input: 214.3 31.8% 91.4%;
--primary: 222.2 47.4% 11.2%;
--primary-foreground: 210 40% 98%;
--secondary: 210 40% 96.1%;
--secondary-foreground: 222.2 47.4% 11.2%;
--accent: 210 40% 96.1%;
--accent-foreground: 222.2 47.4% 11.2%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
--ring: 215 20.2% 65.1%;
--radius: 0.5rem;
}
.dark {
--background: 222.2 84% 4.9%;
--foreground: 210 40% 98%;
--muted: 217.2 32.6% 17.5%;
--muted-foreground: 215 20.2% 65.1%;
--popover: 222.2 84% 4.9%;
--popover-foreground: 210 40% 98%;
--card: 222.2 84% 4.9%;
--card-foreground: 210 40% 98%;
--border: 217.2 32.6% 17.5%;
--input: 217.2 32.6% 17.5%;
--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 11.2%;
--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;
--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 85.7% 97.3%;
--ring: 217.2 32.6% 17.5%;
}
}
@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
}
*/

View File

@@ -2,69 +2,85 @@
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
body {
font-family: Arial, Helvetica, sans-serif;
}
@layer base { @layer base {
:root { :root {
--background: 0 0% 100%; --background: 0 0% 100%;
--foreground: 222.2 84% 4.9%; --foreground: 0 0% 3.9%;
--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;
--popover: 0 0% 100%;
--popover-foreground: 222.2 84% 4.9%;
--card: 0 0% 100%; --card: 0 0% 100%;
--card-foreground: 222.2 84% 4.9%; --card-foreground: 0 0% 3.9%;
--popover: 0 0% 100%;
--border: 214.3 31.8% 91.4%; --popover-foreground: 0 0% 3.9%;
--input: 214.3 31.8% 91.4%; --primary: 0 0% 9%;
--primary-foreground: 0 0% 98%;
--primary: 222.2 47.4% 11.2%; --secondary: 0 0% 96.1%;
--primary-foreground: 210 40% 98%; --secondary-foreground: 0 0% 9%;
--muted: 0 0% 96.1%;
--secondary: 210 40% 96.1%; --muted-foreground: 0 0% 45.1%;
--secondary-foreground: 222.2 47.4% 11.2%; --accent: 0 0% 96.1%;
--accent-foreground: 0 0% 9%;
--accent: 210 40% 96.1%;
--accent-foreground: 222.2 47.4% 11.2%;
--destructive: 0 84.2% 60.2%; --destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%; --destructive-foreground: 0 0% 98%;
--border: 0 0% 89.8%;
--ring: 215 20.2% 65.1%; --input: 0 0% 89.8%;
--ring: 0 0% 3.9%;
--chart-1: 12 76% 61%;
--chart-2: 173 58% 39%;
--chart-3: 197 37% 24%;
--chart-4: 43 74% 66%;
--chart-5: 27 87% 67%;
--radius: 0.5rem; --radius: 0.5rem;
--sidebar-background: 0 0% 98%;
--sidebar-foreground: 240 5.3% 26.1%;
--sidebar-primary: 240 5.9% 10%;
--sidebar-primary-foreground: 0 0% 98%;
--sidebar-accent: 240 4.8% 95.9%;
--sidebar-accent-foreground: 240 5.9% 10%;
--sidebar-border: 220 13% 91%;
--sidebar-ring: 217.2 91.2% 59.8%;
} }
.dark { .dark {
--background: 222.2 84% 4.9%; --background: 0 0% 3.9%;
--foreground: 210 40% 98%; --foreground: 0 0% 98%;
--card: 0 0% 3.9%;
--muted: 217.2 32.6% 17.5%; --card-foreground: 0 0% 98%;
--muted-foreground: 215 20.2% 65.1%; --popover: 0 0% 3.9%;
--popover-foreground: 0 0% 98%;
--popover: 222.2 84% 4.9%; --primary: 0 0% 98%;
--popover-foreground: 210 40% 98%; --primary-foreground: 0 0% 9%;
--secondary: 0 0% 14.9%;
--card: 222.2 84% 4.9%; --secondary-foreground: 0 0% 98%;
--card-foreground: 210 40% 98%; --muted: 0 0% 14.9%;
--muted-foreground: 0 0% 63.9%;
--border: 217.2 32.6% 17.5%; --accent: 0 0% 14.9%;
--input: 217.2 32.6% 17.5%; --accent-foreground: 0 0% 98%;
--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 11.2%;
--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;
--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;
--destructive: 0 62.8% 30.6%; --destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 85.7% 97.3%; --destructive-foreground: 0 0% 98%;
--border: 0 0% 14.9%;
--ring: 217.2 32.6% 17.5%; --input: 0 0% 14.9%;
--ring: 0 0% 83.1%;
--chart-1: 220 70% 50%;
--chart-2: 160 60% 45%;
--chart-3: 30 80% 55%;
--chart-4: 280 65% 60%;
--chart-5: 340 75% 55%;
--sidebar-background: 240 5.9% 10%;
--sidebar-foreground: 240 4.8% 95.9%;
--sidebar-primary: 224.3 76.3% 48%;
--sidebar-primary-foreground: 0 0% 100%;
--sidebar-accent: 240 3.7% 15.9%;
--sidebar-accent-foreground: 240 4.8% 95.9%;
--sidebar-border: 240 3.7% 15.9%;
--sidebar-ring: 217.2 91.2% 59.8%;
}
.centered-content {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
width: 100vw;
} }
} }

View File

@@ -1,41 +0,0 @@
"use client"
import Link from "next/link"
import { Button } from "@/components/ui/button"
export function Hero1() {
return (
<section className="mx-auto my-auto bg-white dark:bg-gray-900">
<div className="grid max-w-screen-xl px-4 py-8 mx-auto lg:gap-8 xl:gap-0 lg:py-16 lg:grid-cols-12">
<div className="mr-auto place-self-center lg:col-span-7">
<h1 className="max-w-2xl mb-4 text-4xl font-extrabold tracking-tight leading-none md:text-5xl xl:text-6xl dark:text-white">
Revolutionize Your HealthCare
</h1>
<p className="max-w-2xl mb-6 font-light text-gray-500 lg:mb-8 md:text-lg lg:text-xl dark:text-gray-400">
Improving your recovery journey with personalized care.
</p>
<Button>
<Link
href="/get-started"
className="inline-flex items-center justify-center px-5 py-3 mr-3 text-base font-medium text-center rounded-lg bg-primary-700 hover:bg-primary-800 "
>
Get started
<svg
className="w-5 h-5 ml-2 -mr-1"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
fillRule="evenodd"
d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z"
clipRule="evenodd"
></path>
</svg>
</Link>
</Button>
</div>
</div>
</section>
)
}

View File

@@ -5,7 +5,7 @@ import { Button } from "@/components/ui/button"
export function Hero() { export function Hero() {
return ( return (
<section className="mx-auto my-auto bg-white dark:bg-gray-900"> <section className="mx-auto my-auto bg-white dark:bg-neutral-950">
<div className="grid max-w-screen-xl px-4 py-8 mx-auto lg:gap-8 xl:gap-0 lg:py-16 lg:grid-cols-12"> <div className="grid max-w-screen-xl px-4 py-8 mx-auto lg:gap-8 xl:gap-0 lg:py-16 lg:grid-cols-12">
<div className="mr-auto place-self-center lg:col-span-7"> <div className="mr-auto place-self-center lg:col-span-7">
<h1 className="max-w-2xl mb-4 text-4xl font-extrabold tracking-tight leading-none md:text-5xl xl:text-6xl dark:text-white"> <h1 className="max-w-2xl mb-4 text-4xl font-extrabold tracking-tight leading-none md:text-5xl xl:text-6xl dark:text-white">

View File

@@ -0,0 +1,19 @@
"use client"
export function HeroOne() {
return (
<section className="bg-white dark:bg-neutral-950 w-full">
<div className="grid max-w-screen-xl px-4 py-8 mx-auto">
<div className="ml-auto place-self-center lg:col-span-7 text-right">
<h1 className="max-w-2xl mb-4 text-4xl font-extrabold tracking-tight leading-none md:text-5xl xl:text-6xl dark:text-white">
Our Mission
</h1>
<p className="max-w-2xl mb-6 font-light text-gray-500 lg:mb-8 md:text-lg lg:text-xl dark:text-gray-400">
We are a team of passionate individuals dedicated to making a positive impact in the world.
We want to inspire an age of easier communication and collaboration bewteen doctors and patients.
</p>
</div>
</div>
</section>
)
}

View File

@@ -21,12 +21,6 @@ export function Navbar() {
<span className="hidden font-bold sm:inline-block">PostCare</span> <span className="hidden font-bold sm:inline-block">PostCare</span>
</Link> </Link>
<nav className="flex items-center space-x-6 text-sm font-medium"> <nav className="flex items-center space-x-6 text-sm font-medium">
<Link href="/about" className="transition-colors hover:text-foreground/80 text-foreground/60">
Mission
</Link>
<Link href="/products" className="transition-colors hover:text-foreground/80 text-foreground/60">
Map
</Link>
<Link href="/transcribe" className="transition-colors hover:text-foreground/80 text-foreground/60"> <Link href="/transcribe" className="transition-colors hover:text-foreground/80 text-foreground/60">
Transcribe Transcribe
</Link> </Link>