MCPcopy Create free account
hub / github.com/PageAI-Pro/page-ui / Header

Function Header

components/shared/Header.tsx:12–155  ·  view source on GitHub ↗
({ className }: { className?: string })

Source from the content-addressed store, hash-verified

10import { CtaButton } from '@/components/shared/ui/cta-button';
11
12const Header = ({ className }: { className?: string }) => {
13 return (
14 <>
15 {/* <div className="w-full flex gap-4 items-center justify-center p-4 bg-purple-950">
16 <section
17 className={cn(
18 'wide-container !py-0 flex justify-between items-center'
19 )}
20 >
21 <p className="text-white text-sm">
22 <span className="font-bold">
23 Today is PageAI launch day!{' '}
24 <span className="text-primary-400">🚀</span>
25 </span>
26 <span className="hidden lg:flex">
27 The best AI landing page builder is launching on Product Hunt. Any
28 support would be greatly appreciated!
29 </span>
30 </p>
31 <a
32 href="https://www.producthunt.com/products/page-ai-websites-a-human-would-build?embed=true&utm_source=badge-featured&utm_medium=badge&utm_source=badge-page&#0045;ai&#0045;websites&#0045;a&#0045;human&#0045;would&#0045;build"
33 target="_blank"
34 className="shrink-0"
35 >
36 <img
37 src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=962284&theme=light&t=1749673353125"
38 alt="Page&#0032;AI&#0032;⋅&#0032;Websites&#0032;a&#0032;human&#0032;would&#0032;build - Prompt&#0032;to&#0032;design&#0032;&#0038;&#0032;clean&#0032;code&#0032;in&#0032;5&#0032;min&#0032;⋅&#0032;Deploy&#0032;with&#0032;1&#0032;click | Product Hunt"
39 width={250}
40 height={54}
41 className="w-40 lg:w-52 h-auto"
42 />
43 </a>
44 </section>
45 </div> */}
46
47 <div className="w-full flex gap-4 items-center justify-center px-1 py-4 md:p-4 bg-purple-800 shadow-[0_0_10px_rgba(0,0,0,0.1)]">
48 <section
49 className={cn(
50 'wide-container !py-0 flex justify-between items-center gap-4'
51 )}
52 >
53 <p className="text-white text-xs md:text-base">
54 <span className="font-semibold">New!</span> An AI that builds
55 production-ready websites using Page UI.
56 </p>
57
58 <CtaButton asChild className="shrink-0">
59 <a
60 href="https://pageai.pro"
61 target="_blank"
62 rel="noopener noreferrer"
63 className="shrink-0 inline-flex items-center h-10 text-xs md:text-base"
64 >
65 Try Page AI →
66 </a>
67 </CtaButton>
68 </section>
69 </div>

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected