Skip to content

Commit b6c7f29

Browse files
authored
Merge pull request #19 from codeunia-dev/announcementmodal
Implement special announcement dialog
2 parents 33edccc + 0670a4d commit b6c7f29

File tree

3 files changed

+55
-14
lines changed

3 files changed

+55
-14
lines changed

app/page.tsx

Lines changed: 55 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,69 @@
11
"use client"
22

3+
import React, { useState } from "react";
34
import Header from "@/components/header";
45
import { StickyBanner } from "@/components/ui/sticky-banner";
56
import { HeroSection2 } from "@/components/home/HeroSection2"
67
import { FeaturesSection } from "@/components/home/FeaturesSection"
78
import { CommunitySpotlight } from "@/components/home/CommunitySpotlight"
89
import { LatestContentPreview } from "@/components/home/LatestContentPreview"
910
import Footer from "@/components/footer";
11+
import {
12+
Dialog,
13+
DialogContent,
14+
DialogHeader,
15+
DialogTitle,
16+
DialogDescription,
17+
} from "@/components/ui/dialog";
1018

1119
export default function Home() {
20+
const [open, setOpen] = useState(true);
21+
22+
const handleClose = () => {
23+
setOpen(false);
24+
};
25+
1226
return (
13-
<main className="flex min-h-screen flex-col items-center justify-between">
14-
<Header/>
15-
<StickyBanner className="sticky top-16 bg-gradient-to-r from-yellow-300 to-yellow-400 text-yellow-900 font-medium shadow-md">
16-
<span className="mr-2">🚧</span>
17-
This site is under active development. Features and content may change!
18-
</StickyBanner>
19-
<div className="w-full max-w-[2000px]">
20-
<HeroSection2 />
21-
<FeaturesSection />
22-
<CommunitySpotlight />
23-
<LatestContentPreview />
24-
</div>
25-
<Footer/>
26-
</main>
27+
<>
28+
<Dialog open={open} onOpenChange={(val) => { if (!val) handleClose(); }}>
29+
<DialogContent showCloseButton>
30+
<DialogHeader>
31+
<DialogTitle>Special Announcement!</DialogTitle>
32+
<DialogDescription>
33+
<div className="flex flex-col items-center gap-4">
34+
<img src="/images/colab/collabtest.jpg" alt="Orbo AI Collaboration" className="rounded-lg w-full max-w-xs object-cover" />
35+
<div className="text-base text-center">
36+
<b>We are thrilled to announce a special collaboration with Orbo AI!</b><br/>
37+
Manoj, co-founder of Orbo AI (as seen on Shark Tank India), will be joining RealityCode for an exclusive online session and fireside chat. Gain unique insights into startup journeys and co-founder alignment, straight from the innovators themselves!<br/><br/>
38+
Stay tuned for more details. We are excited to support the next generation of innovators with Orbo AI!
39+
</div>
40+
<a
41+
href="https://unstop.com/p/realitycode-by-codeunia-codeunia-148838"
42+
target="_blank"
43+
rel="noopener noreferrer"
44+
className="mt-4 px-6 py-2 bg-yellow-400 hover:bg-yellow-500 text-yellow-900 font-bold rounded shadow transition-colors duration-200"
45+
>
46+
Register Now
47+
</a>
48+
</div>
49+
</DialogDescription>
50+
</DialogHeader>
51+
</DialogContent>
52+
</Dialog>
53+
<main className="flex min-h-screen flex-col items-center justify-between">
54+
<Header/>
55+
<StickyBanner className="sticky top-16 bg-gradient-to-r from-yellow-300 to-yellow-400 text-yellow-900 font-medium shadow-md">
56+
<span className="mr-2">🚧</span>
57+
This site is under active development. Features and content may change!
58+
</StickyBanner>
59+
<div className="w-full max-w-[2000px]">
60+
<HeroSection2 />
61+
<FeaturesSection />
62+
<CommunitySpotlight />
63+
<LatestContentPreview />
64+
</div>
65+
<Footer/>
66+
</main>
67+
</>
2768
)
2869
}

public/images/colab/collabtest.jpg

61.7 KB
Loading

public/images/team/tanvi.jpeg

-65.4 KB
Loading

0 commit comments

Comments
 (0)