generated from chiffre-io/template-library
-
-
Notifications
You must be signed in to change notification settings - Fork 161
/
Copy pathbanners.tsx
81 lines (77 loc) · 2.63 KB
/
banners.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import { Banner } from 'fumadocs-ui/components/banner'
import Link from 'next/link'
import { Suspense } from 'react'
import { Countdown } from '../components/countdown'
import { ReactParisLogo } from '../components/react-paris'
// Note: top-level banners go into src/app/layout.tsx
// Note: sidebar banners go into src/app/docs/layout.tsx & playground/layout.tsx
export function NuqsV2AnnouncementTopBanner() {
return (
<Banner
variant="rainbow"
className="text-md gap-4 font-semibold"
id="nuqs-2-announcement"
>
<span aria-hidden>🎉</span>
<Link
href="/blog/nuqs-2"
className="decoration-slice decoration-1 transition-all hover:underline hover:underline-offset-8 focus-visible:underline focus-visible:outline-none"
prefetch={false}
>
Announcing nuqs version 2
</Link>
<span aria-hidden>🎉</span>
</Banner>
)
}
export function NuqsV2AnnouncementSidebarBanner() {
return (
<div className="my-2 flex justify-center gap-2 rounded-lg border border-blue-500/40 bg-blue-100/50 py-2.5 font-semibold dark:bg-blue-700/10">
<span aria-hidden>🎉</span>
<Link
href="/blog/nuqs-2"
className="text-blue-900 hover:underline focus-visible:underline focus-visible:outline-none dark:text-blue-100"
prefetch={false}
>
Announcing nuqs v2 !
</Link>
<span aria-hidden>🎉</span>
</div>
)
}
export function ReactParis2025SideBanner() {
return (
<div className="my-2 flex flex-col items-center gap-1.5 rounded-lg border border-gray-500/40 bg-gray-100/50 px-2 py-4 dark:bg-gray-700/10">
<p className="text-muted-foreground">🗣️ nuqs will be featured at</p>
<div className="flex gap-2">
<ReactParisLogo className="h-12" />
<p className="mr-1">
<span className="text-lg font-bold uppercase text-[#002654] dark:text-[#00acff]">
React
</span>{' '}
<span className="text-lg uppercase text-[#cd1126] dark:text-[#fe6497]">
Paris
</span>{' '}
<span className="text-lg">'25</span>
<br />
<a
href="https://react.paris/#tickets"
className="text-sm hover:underline"
>
Get your ticket now!
</a>
</p>
</div>
<Suspense>
<Countdown
targetDate={new Date('2025-03-20T15:00:00+01:00')}
className="my-2"
/>
</Suspense>
<p className="text-center text-xs text-muted-foreground">
Use the code <code>Francois_Paris</code> for a 20% discount on your
ticket.
</p>
</div>
)
}