Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions elelectron/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions elelectron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@
"clsx": "^2.1.1",
"electron-squirrel-startup": "^1.0.1",
"lucide-react": "^1.33.0",
"next-themes": "^0.4.6",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"react-router-dom": "^7.18.2",
"shadcn": "^4.18.0",
"sonner": "^2.0.8",
Comment on lines +44 to +49
"tailwind-merge": "^3.6.0",
"tw-animate-css": "^1.4.0"
},
Expand Down
26 changes: 23 additions & 3 deletions elelectron/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
import { Route, Routes, useNavigate } from "react-router-dom"

import { Button } from "@/components/ui/button"
import Dashboard from "@/pages/dashboard"
import Home from "@/pages/home"
import NotFound from "@/pages/notfound"

export default function App() {
const navigate = useNavigate()

return (
<main className="flex min-h-screen items-center justify-center">
<h1 className="text-3xl font-bold">MEOW</h1>
</main>
<div>
<nav className="flex gap-2 p-4">
<Button onClick={() => navigate("/")}>Home</Button>
<Button variant="outline" onClick={() => navigate("/dashboard")}>
Dashboard
</Button>
Comment on lines +13 to +17
</nav>

<Routes>
<Route path="/" element={<Home />} />
<Route path="/dashboard" element={<Dashboard />} />
<Route path="*" element={<NotFound />} />
</Routes>
</div>
)
}
114 changes: 114 additions & 0 deletions elelectron/src/components/ui/card.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
import * as React from "react"

import { cn } from "@/lib/utils"

function Card({
className,
size = "default",
...props
}) {
return (
<div
data-slot="card"
data-size={size}
className={cn(
"group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
className
)}
{...props} />
);
}

function CardHeader({
className,
...props
}) {
return (
<div
data-slot="card-header"
className={cn(
"group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",
className
)}
{...props} />
);
}

function CardTitle({
className,
...props
}) {
return (
<div
data-slot="card-title"
className={cn(
"font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",
className
)}
{...props} />
);
}

function CardDescription({
className,
...props
}) {
return (
<div
data-slot="card-description"
className={cn("text-sm text-muted-foreground", className)}
{...props} />
);
}

function CardAction({
className,
...props
}) {
return (
<div
data-slot="card-action"
className={cn(
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
className
)}
{...props} />
);
}

function CardContent({
className,
...props
}) {
return (
<div
data-slot="card-content"
className={cn("px-(--card-spacing)", className)}
{...props} />
);
}

function CardFooter({
className,
...props
}) {
return (
<div
data-slot="card-footer"
className={cn(
"flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",
className
)}
{...props} />
);
}

export {
Card,
CardHeader,
CardFooter,
CardTitle,
CardAction,
CardDescription,
CardContent,
}
Loading