diff --git a/src/app/(private)/saved-themes/page.tsx b/src/app/(private)/saved-themes/page.tsx index 955e1df..e78b6f2 100644 --- a/src/app/(private)/saved-themes/page.tsx +++ b/src/app/(private)/saved-themes/page.tsx @@ -8,7 +8,7 @@ export default async function SavedThemesPage() { const themes = userId ? await getThemesByUserId(userId) : [] return ( -
+

Your Saved Themes

diff --git a/src/app/discover/loading.tsx b/src/app/discover/loading.tsx new file mode 100644 index 0000000..f250e76 --- /dev/null +++ b/src/app/discover/loading.tsx @@ -0,0 +1,13 @@ +import { Loader2 } from 'lucide-react' + +// src/app/saved-themes/loading.tsx +export default function Loading() { + return ( +
+
+ +

Loading themes...

+
+
+ ) +} diff --git a/src/app/discover/page.tsx b/src/app/discover/page.tsx index ece834d..3625098 100644 --- a/src/app/discover/page.tsx +++ b/src/app/discover/page.tsx @@ -1,4 +1,5 @@ import Discover from '@/components/Discover' +import { DotPattern } from '@/components/ui/dot-pattern' import { getPublicThemes } from '@/lib/db/themes' @@ -7,9 +8,10 @@ export default async function DiscoverPage() { return (
-
-

Discover Themes

- +
+
+ +
) diff --git a/src/components/Discover.tsx b/src/components/Discover.tsx index bd28b9c..b343899 100644 --- a/src/components/Discover.tsx +++ b/src/components/Discover.tsx @@ -3,15 +3,24 @@ import { SavedTheme } from '@/lib/types/colors' import ThemeCardPublic from './ThemeCardPublic' import ThemePreviewSmall from './ThemePreviewSmall' +import { DotPattern } from './ui/dot-pattern' import { useState } from 'react' export default function Discover({ themes }: { themes: SavedTheme[] }) { const [selectedTheme, setSelectedTheme] = useState(themes[0]) return ( -
- - -
+
+
+ +
+

Discover new themes

+

+ made by the community +

+
+ +
+
{themes.map((theme) => ( = ({ className="rounded-lg shadow-md overflow-hidden" onClick={() => onPreview(theme)} > -
- {/*
-
*/} +
= ({ />
-
+

= ({

- diff --git a/src/components/ThemeCardPublic.tsx b/src/components/ThemeCardPublic.tsx index 6b2c7cf..0c49255 100644 --- a/src/components/ThemeCardPublic.tsx +++ b/src/components/ThemeCardPublic.tsx @@ -33,15 +33,7 @@ const ThemeCardPublic: React.FC = ({ className="rounded-lg shadow-md overflow-hidden" onClick={() => onClick(theme)} > -
- {/*
-
*/} +
= ({ > {theme.name} -
-
- - -
-
+ +