Skip to content

Commit 8375c6b

Browse files
committed
update meta, add root page
1 parent d7d1def commit 8375c6b

File tree

5 files changed

+42
-7
lines changed

5 files changed

+42
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## shadcn/ui radix colors theme generator
22

3-
Generate custom CSS themes for shadcn/ui effortlessly using vibrant palettes from [Radix Colors](https://www.radix-ui.com/colors).
3+
Generate custom themes for shadcn/ui using vibrant palettes from Radix Colors with ease.
44

55
https://ui.ewgenius.me/shadcn-radix-colors
66

app/layout.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { ThemeProvider } from "@/components/theme-provider";
66
import { TooltipProvider } from "@/components/ui/tooltip";
77

88
export const metadata: Metadata = {
9-
title: "Create Next App",
10-
description: "Generated by create next app",
9+
title: "ewgenius/ui",
1110
};
1211

1312
export default function RootLayout({

app/page.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { ArrowRight } from "lucide-react";
2+
import Link from "next/link";
3+
4+
export default function HomePage() {
5+
return (
6+
<div className="flex flex-col gap-4 justify-center items-center min-h-screen">
7+
<Link
8+
href="/shadcn-radix-colors"
9+
className="flex items-center gap-2 hover:text-accent transition-colors"
10+
>
11+
shadcn-radix-colors <ArrowRight className="size-4" />
12+
</Link>
13+
</div>
14+
);
15+
}

app/shadcn-radix-colors/page.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
import type { Metadata } from "next";
12
import { Suspense } from "react";
23
import { ThemeGenerator } from "./theme-generator";
34

5+
export const metadata: Metadata = {
6+
title: "ewgenius/ui - shadcn-radix-colors",
7+
description:
8+
"Generate custom themes for shadcn/ui using vibrant palettes from Radix Colors with ease.",
9+
};
10+
411
export default function ThemeGeneratorPage() {
512
return (
613
<Suspense>

app/shadcn-radix-colors/theme-generator.tsx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,19 @@ export function ThemeGenerator() {
116116
</div>
117117

118118
<div className="text-sm">
119-
Generate custom CSS themes for{" "}
119+
Generate custom themes for{" "}
120120
<a href="https://ui.shadcn.com" className="underline" target="_blank">
121121
shadcn/ui
122122
</a>{" "}
123-
components effortlessly using vibrant palettes from{" "}
123+
using vibrant palettes from{" "}
124124
<a
125125
href="https://www.radix-ui.com/colors"
126126
className="underline"
127127
target="_blank"
128128
>
129129
Radix Colors
130-
</a>
131-
.
130+
</a>{" "}
131+
with ease.
132132
</div>
133133

134134
<hr className="border-t" />
@@ -240,6 +240,20 @@ export function ThemeGenerator() {
240240
<ThemeCodePreview lightTheme={lightTheme} darkTheme={darkTheme} />
241241
</DialogContent>
242242
</Dialog>
243+
244+
<hr className="border-t" />
245+
246+
<div className="text-xs text-muted-foreground">
247+
Built by{" "}
248+
<a
249+
href="https://github.com/ewgenius"
250+
target="_blank"
251+
className="underline"
252+
>
253+
@ewgenius
254+
</a>
255+
.
256+
</div>
243257
</div>
244258

245259
<div className="md:h-screen p-8 flex flex-col gap-4 bg-base-2">

0 commit comments

Comments
 (0)