diff --git a/app/[domain]/[slug]/page.tsx b/app/[domain]/[slug]/page.tsx index 1b1ab5c..8c4faf5 100644 --- a/app/[domain]/[slug]/page.tsx +++ b/app/[domain]/[slug]/page.tsx @@ -49,13 +49,13 @@ export default async function SitePostPage({ <>
-

+

{toDateString(data.createdAt)}

-

+

{data.title}

-

+

{data.description}

@@ -79,7 +79,7 @@ export default async function SitePostPage({ width={80} /> ) : ( -
+
?
)} @@ -110,17 +110,17 @@ export default async function SitePostPage({ className="absolute inset-0 flex items-center" aria-hidden="true" > -
+
- + Continue Reading
)} {data.adjacentPosts && ( -
+
{data.adjacentPosts.map((data, index) => ( ))} diff --git a/app/[domain]/layout.tsx b/app/[domain]/layout.tsx index 79c25b3..7531956 100644 --- a/app/[domain]/layout.tsx +++ b/app/[domain]/layout.tsx @@ -106,7 +106,7 @@ export default async function SiteLayout({ return (
-
+
diff --git a/app/[domain]/page.tsx b/app/[domain]/page.tsx index 9be83d2..4fe81b2 100644 --- a/app/[domain]/page.tsx +++ b/app/[domain]/page.tsx @@ -38,10 +38,10 @@ export default async function SiteHomePage({ />
-

+

{posts[0].title}

-

+

{posts[0].description}

@@ -55,16 +55,16 @@ export default async function SiteHomePage({ src={data.user?.image} /> ) : ( -
+
?
)}
-

+

{data.user?.name}

-
-

+

+

{toDateString(posts[0].createdAt)}

@@ -78,15 +78,25 @@ export default async function SiteHomePage({ src="https://illustrations.popsy.co/gray/success.svg" width={400} height={400} + className="dark:hidden" /> -

No posts yet.

+ missing post +

+ No posts yet. +

)}
{posts.length > 1 && (
-

+

More stories

diff --git a/app/app/(dashboard)/site/[id]/settings/layout.tsx b/app/app/(dashboard)/site/[id]/settings/layout.tsx index 9146cd7..864596d 100644 --- a/app/app/(dashboard)/site/[id]/settings/layout.tsx +++ b/app/app/(dashboard)/site/[id]/settings/layout.tsx @@ -41,7 +41,7 @@ export default async function SiteAnalyticsLayout({ } target="_blank" rel="noreferrer" - className="truncate rounded-md bg-stone-100 px-2 py-1 text-sm font-medium text-stone-600 transition-colors hover:bg-stone-200 dark:bg-stone-800 dark:text-stone-400" + className="truncate rounded-md bg-stone-100 px-2 py-1 text-sm font-medium text-stone-600 transition-colors hover:bg-stone-200 dark:bg-stone-800 dark:text-stone-400 dark:hover:bg-stone-700" > {url} ↗ diff --git a/components/blog-card.tsx b/components/blog-card.tsx index 5c2a44f..7698a6a 100644 --- a/components/blog-card.tsx +++ b/components/blog-card.tsx @@ -14,28 +14,24 @@ interface BlogCardProps { export default function BlogCard({ data }: BlogCardProps) { return ( -
- {data.image ? ( - - ) : ( -
- ? -
- )} -
-

{data.title}

-

+

+ +
+

+ {data.title} +

+

{data.description}

-

+

Published {toDateString(data.createdAt)}

diff --git a/components/cta.tsx b/components/cta.tsx index aad4661..c9cc8b4 100644 --- a/components/cta.tsx +++ b/components/cta.tsx @@ -8,14 +8,14 @@ export default function CTA() {
-

+

Platforms Starter Kit Demo

This is a demo site showcasing how to build a multi-tenant application with{" "} {/* @ts-ignore */} diff --git a/components/modal/create-site.tsx b/components/modal/create-site.tsx index eb02898..2cced14 100644 --- a/components/modal/create-site.tsx +++ b/components/modal/create-site.tsx @@ -46,24 +46,28 @@ export default function CreateSiteModal() { } }) } - className="w-full rounded-md bg-white md:max-w-md md:border md:border-stone-200 md:shadow" + className="w-full rounded-md bg-white dark:bg-black md:max-w-md md:border md:border-stone-200 md:shadow dark:md:border-stone-700" >

-

Create a new site

+

Create a new site

-
@@ -85,9 +89,9 @@ export default function CreateSiteModal() { pattern="[a-zA-Z0-9\-]+" // only allow lowercase letters, numbers, and dashes maxLength={32} required - className="w-full rounded-l-lg border border-stone-200 bg-stone-50 px-4 py-2 text-sm text-stone-600 placeholder:text-stone-400 focus:border-black focus:outline-none focus:ring-black" + className="w-full rounded-l-lg border border-stone-200 bg-stone-50 px-4 py-2 text-sm text-stone-600 placeholder:text-stone-400 focus:border-black focus:outline-none focus:ring-black dark:border-stone-600 dark:bg-black dark:text-white dark:placeholder-stone-700 dark:focus:ring-white" /> -
+
.{process.env.NEXT_PUBLIC_ROOT_DOMAIN}
@@ -107,11 +111,11 @@ export default function CreateSiteModal() { onChange={(e) => setData({ ...data, description: e.target.value })} maxLength={140} rows={3} - className="w-full rounded-md border border-stone-200 bg-stone-50 px-4 py-2 text-sm text-stone-600 placeholder:text-stone-400 focus:border-black focus:outline-none focus:ring-black" + className="w-full rounded-md border border-stone-200 bg-stone-50 px-4 py-2 text-sm text-stone-600 placeholder:text-stone-400 focus:border-black focus:outline-none focus:ring-black dark:border-stone-600 dark:bg-black dark:text-white dark:placeholder-stone-700 dark:focus:ring-white" />
-
+
@@ -124,8 +128,8 @@ function CreateSiteFormButton() { className={clsx( "flex h-10 w-full items-center justify-center space-x-2 rounded-md border text-sm transition-all focus:outline-none", pending - ? "cursor-not-allowed border-stone-200 bg-stone-100 text-stone-400" - : "border-black bg-black text-white hover:bg-white hover:text-black", + ? "cursor-not-allowed border-stone-200 bg-stone-100 text-stone-400 dark:border-stone-700 dark:bg-stone-800 dark:text-stone-300" + : "border-black bg-black text-white hover:bg-white hover:text-black dark:border-stone-700 dark:hover:border-stone-200 dark:hover:bg-black dark:hover:text-white dark:active:bg-stone-800", )} disabled={pending} > diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c2f4b7d..00cb802 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -372,6 +372,14 @@ packages: '@babel/types': 7.22.5 dev: false + /@babel/parser@7.22.6: + resolution: {integrity: sha512-EIQu22vNkceq3LbjAq7knDf/UmtI2qbcNI8GRBlijez6TpQLvSodJPYfydQmNA5buwkxxxa/PVI44jjYZ+/cLw==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + '@babel/types': 7.22.5 + dev: false + /@babel/plugin-proposal-export-namespace-from@7.18.9(@babel/core@7.22.5): resolution: {integrity: sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==} engines: {node: '>=6.9.0'} @@ -1622,7 +1630,7 @@ packages: /@vue/compiler-core@3.3.4: resolution: {integrity: sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==} dependencies: - '@babel/parser': 7.22.5 + '@babel/parser': 7.22.6 '@vue/shared': 3.3.4 estree-walker: 2.0.2 source-map-js: 1.0.2 @@ -1638,14 +1646,14 @@ packages: /@vue/compiler-sfc@3.3.4: resolution: {integrity: sha512-6y/d8uw+5TkCuzBkgLS0v3lSM3hJDntFEiUORM11pQ/hKvkhSKZrXW6i69UyXlJQisJxuUEJKAWEqWbWsLeNKQ==} dependencies: - '@babel/parser': 7.22.5 + '@babel/parser': 7.22.6 '@vue/compiler-core': 3.3.4 '@vue/compiler-dom': 3.3.4 '@vue/compiler-ssr': 3.3.4 '@vue/reactivity-transform': 3.3.4 '@vue/shared': 3.3.4 estree-walker: 2.0.2 - magic-string: 0.30.0 + magic-string: 0.30.1 postcss: 8.4.24 source-map-js: 1.0.2 dev: false @@ -1660,11 +1668,11 @@ packages: /@vue/reactivity-transform@3.3.4: resolution: {integrity: sha512-MXgwjako4nu5WFLAjpBnCj/ieqcjE2aJBINUNQzkZQfzIZA4xn+0fV1tIYBJvvva3N3OvKGofRLvQIwEQPpaXw==} dependencies: - '@babel/parser': 7.22.5 + '@babel/parser': 7.22.6 '@vue/compiler-core': 3.3.4 '@vue/shared': 3.3.4 estree-walker: 2.0.2 - magic-string: 0.30.0 + magic-string: 0.30.1 dev: false /@vue/reactivity@3.3.4: @@ -4040,8 +4048,8 @@ packages: react: 18.2.0 dev: false - /magic-string@0.30.0: - resolution: {integrity: sha512-LA+31JYDJLs82r2ScLrlz1GjSgu66ZV518eyWT+S8VhyQn/JL0u9MeBOvQMGYiPk1DBiSN9DDMOcXvigJZaViQ==} + /magic-string@0.30.1: + resolution: {integrity: sha512-mbVKXPmS0z0G4XqFDCTllmDQ6coZzn94aMlb0o/A4HEHJCKcanlDZwYJgwnkmgD3jyWhUgj9VsPrfd972yPffA==} engines: {node: '>=12'} dependencies: '@jridgewell/sourcemap-codec': 1.4.15 diff --git a/styles/globals.css b/styles/globals.css index aec6554..34e5ec2 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -2,6 +2,12 @@ @tailwind components; @tailwind utilities; +@media (prefers-color-scheme: dark) { + body { + background-color: #000000; + } +} + @layer utilities { .overflow-hidden { -webkit-mask-image: -webkit-radial-gradient(white, black);