|
1 | | -import { Inter as FontSans } from "next/font/google"; |
2 | | -import { useState } from "react"; |
| 1 | +// this is the path to this page |
| 2 | +// src/pages/index.tsx |
3 | 3 |
|
4 | | -import { usePings } from "@/hooks/pings"; |
5 | | -import { cn } from "@/lib/utils"; |
6 | | - |
7 | | -import { Button } from "../components/ui/button"; |
8 | | - |
9 | | -const fontSans = FontSans({ |
10 | | - subsets: ["latin"], |
11 | | - variable: "--font-sans", |
12 | | -}); |
13 | | - |
14 | | -export default function Home() { |
15 | | - const [clicked, setClicked] = useState(false); |
16 | | - const { data, isLoading } = usePings({ |
17 | | - enabled: clicked, |
18 | | - }); |
| 4 | +import ButtonGoOrganizationDashboard from "../components/ui/button_go_organization_dashboard"; |
19 | 5 |
|
| 6 | +// this is a react functional component |
| 7 | +// it returns a html element that will render the jsx inside it |
| 8 | +const LandingPage = () => { |
20 | 9 | return ( |
21 | | - <main |
22 | | - className={cn( |
23 | | - "flex min-h-screen flex-col items-center gap-4 p-24 font-sans", |
24 | | - fontSans.variable, |
25 | | - )} |
| 10 | + <div |
| 11 | + // Simple inline styles for centering content |
| 12 | + style={{ |
| 13 | + display: "flex", |
| 14 | + flexDirection: "column", |
| 15 | + alignItems: "center", |
| 16 | + justifyContent: "center", |
| 17 | + minHeight: "100vh", |
| 18 | + textAlign: "center", |
| 19 | + }} |
26 | 20 | > |
27 | | - <h1 className="text-3xl text-primary">Test title</h1> |
28 | | - <Button onClick={() => setClicked(true)}> |
29 | | - {isLoading ? "Loading" : "Ping"} |
30 | | - </Button> |
31 | | - <p> |
32 | | - Response from server: <span>{data as string}</span> |
33 | | - </p> |
34 | | - </main> |
| 21 | + <h1>Welcome to the Inventory Management System</h1> |
| 22 | + <p>This is the main landing page for your application.</p> |
| 23 | + |
| 24 | + {/* The Next.js Link component handles navigation. |
| 25 | + href="/dashboard" will take us to the page we just renamed. |
| 26 | + */} |
| 27 | + |
| 28 | + <ButtonGoOrganizationDashboard /> |
| 29 | + </div> |
35 | 30 | ); |
36 | | -} |
| 31 | +}; |
| 32 | + |
| 33 | +export default LandingPage; |
0 commit comments