Skip to content

Commit ccc3cbb

Browse files
committed
fix: empty status
1 parent eef2a26 commit ccc3cbb

File tree

1 file changed

+42
-25
lines changed

1 file changed

+42
-25
lines changed

apps/docs/app/(home)/blog/page.tsx

Lines changed: 42 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import type { Metadata } from 'next';
88
import Image from 'next/image';
99
import Link from 'next/link';
1010
import { Footer } from '@/components/footer';
11+
import { SciFiButton } from '@/components/landing/scifi-btn';
1112
import Section from '@/components/landing/section';
1213
import { Spotlight } from '@/components/landing/spotlight';
1314
import { getPosts } from '@/lib/blog-query';
@@ -219,32 +220,48 @@ export default async function BlogPage() {
219220
))}
220221
</div>
221222
) : (
222-
<div className="group relative rounded border border-border bg-card/50 p-12 text-center backdrop-blur-sm">
223-
<h3 className="mb-4 font-semibold text-foreground text-xl">
224-
No Posts Yet
225-
</h3>
226-
<p className="text-muted-foreground">
227-
We're working on some amazing content. Check back soon for
228-
insights on privacy-first analytics and modern web development.
229-
</p>
230-
231-
{/* Sci-fi corners */}
232-
<div className="pointer-events-none absolute inset-0">
233-
<div className="absolute top-0 left-0 h-2 w-2 group-hover:animate-[cornerGlitch_0.6s_ease-in-out]">
234-
<div className="absolute top-0 left-0.5 h-0.5 w-1.5 origin-left bg-foreground" />
235-
<div className="absolute top-0 left-0 h-2 w-0.5 origin-top bg-foreground" />
236-
</div>
237-
<div className="-scale-x-[1] absolute top-0 right-0 h-2 w-2 group-hover:animate-[cornerGlitch_0.6s_ease-in-out]">
238-
<div className="absolute top-0 left-0.5 h-0.5 w-1.5 origin-left bg-foreground" />
239-
<div className="absolute top-0 left-0 h-2 w-0.5 origin-top bg-foreground" />
240-
</div>
241-
<div className="-scale-y-[1] absolute bottom-0 left-0 h-2 w-2 group-hover:animate-[cornerGlitch_0.6s_ease-in-out]">
242-
<div className="absolute top-0 left-0.5 h-0.5 w-1.5 origin-left bg-foreground" />
243-
<div className="absolute top-0 left-0 h-2 w-0.5 origin-top bg-foreground" />
223+
<div className="mx-auto max-w-lg">
224+
<div className="group relative">
225+
<div className="relative rounded border border-border bg-card/50 p-8 text-center backdrop-blur-sm transition-all duration-300 hover:border-border/80 hover:bg-card/70 sm:p-12">
226+
<TagIcon
227+
className="mx-auto mb-4 h-12 w-12 text-muted-foreground transition-colors duration-300 group-hover:text-foreground sm:h-16 sm:w-16"
228+
weight="duotone"
229+
/>
230+
<h1 className="mb-3 text-balance font-semibold text-2xl leading-tight tracking-tight sm:text-3xl md:text-4xl">
231+
No Posts Yet
232+
</h1>
233+
<p className="mb-6 font-medium text-muted-foreground text-sm leading-relaxed tracking-tight sm:text-base">
234+
We're working on some amazing content. Check back soon for
235+
insights on privacy-first analytics and modern web
236+
development.
237+
</p>
238+
<div className="flex flex-col gap-3 sm:flex-row sm:justify-center">
239+
<SciFiButton asChild className="flex-1 sm:flex-initial">
240+
<Link aria-label="Back to home" href="/">
241+
Back to Home
242+
</Link>
243+
</SciFiButton>
244+
</div>
244245
</div>
245-
<div className="-scale-[1] absolute right-0 bottom-0 h-2 w-2 group-hover:animate-[cornerGlitch_0.6s_ease-in-out]">
246-
<div className="absolute top-0 left-0.5 h-0.5 w-1.5 origin-left bg-foreground" />
247-
<div className="absolute top-0 left-0 h-2 w-0.5 origin-top bg-foreground" />
246+
247+
{/* Sci-fi corners */}
248+
<div className="pointer-events-none absolute inset-0">
249+
<div className="absolute top-0 left-0 h-2 w-2 group-hover:animate-[cornerGlitch_0.6s_ease-in-out]">
250+
<div className="absolute top-0 left-0.5 h-0.5 w-1.5 origin-left bg-foreground" />
251+
<div className="absolute top-0 left-0 h-2 w-0.5 origin-top bg-foreground" />
252+
</div>
253+
<div className="-scale-x-[1] absolute top-0 right-0 h-2 w-2 group-hover:animate-[cornerGlitch_0.6s_ease-in-out]">
254+
<div className="absolute top-0 left-0.5 h-0.5 w-1.5 origin-left bg-foreground" />
255+
<div className="absolute top-0 left-0 h-2 w-0.5 origin-top bg-foreground" />
256+
</div>
257+
<div className="-scale-y-[1] absolute bottom-0 left-0 h-2 w-2 group-hover:animate-[cornerGlitch_0.6s_ease-in-out]">
258+
<div className="absolute top-0 left-0.5 h-0.5 w-1.5 origin-left bg-foreground" />
259+
<div className="absolute top-0 left-0 h-2 w-0.5 origin-top bg-foreground" />
260+
</div>
261+
<div className="-scale-[1] absolute right-0 bottom-0 h-2 w-2 group-hover:animate-[cornerGlitch_0.6s_ease-in-out]">
262+
<div className="absolute top-0 left-0.5 h-0.5 w-1.5 origin-left bg-foreground" />
263+
<div className="absolute top-0 left-0 h-2 w-0.5 origin-top bg-foreground" />
264+
</div>
248265
</div>
249266
</div>
250267
</div>

0 commit comments

Comments
 (0)