Skip to content

Commit abd9ed4

Browse files
committed
Add modal for submitting freelance and internship details with updated titles and iframe source
1 parent 60d9883 commit abd9ed4

File tree

2 files changed

+45
-11
lines changed

2 files changed

+45
-11
lines changed

src/Page/OpportunitiesHub/Freelancing.jsx

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ import Marquee from 'react-fast-marquee';
77
import Freelance from './FreelanceList';
88

99
const Navbar = () => {
10+
const [isModalOpen, setIsModalOpen] = useState(false);
11+
1012
return (
11-
<nav className="sticky top-0 z-50 w-full bg-gray-800 text-white shadow-md">
13+
<nav className="sticky top-0 z-50 w-full bg-gray-900 text-white shadow-md">
1214
<div className="mx-auto flex max-w-7xl items-center justify-between px-4 py-3">
1315
<a href="/opportunities">
1416
<button className="flex items-center gap-2 rounded-full border border-white p-2 hover:bg-gray-700">
@@ -17,10 +19,49 @@ const Navbar = () => {
1719
</button>
1820
</a>
1921

22+
<div className="flex items-center justify-center">
23+
<StyledButton onClick={() => setIsModalOpen(true)}>
24+
<div className="blob1" />
25+
<div className="inner">Spotlight Your Freelance Need Globally!</div>
26+
</StyledButton>
27+
</div>
28+
2029
<div className="text-2xl font-bold">
2130
<img src="./DevDisplay ICON.png" alt="DevDisplay" className="h-12 w-12" />
2231
</div>
2332
</div>
33+
34+
{isModalOpen && (
35+
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50">
36+
<div className="w-full max-w-md rounded-lg bg-gray-800 p-6 text-white">
37+
<div className="mb-4 flex items-center justify-between">
38+
<h2 className="text-xl font-semibold">Submit The Freelancing Details!</h2>
39+
<button onClick={() => setIsModalOpen(false)} className="text-gray-400 hover:text-white">
40+
X
41+
</button>
42+
</div>
43+
44+
<iframe
45+
src="https://tally.so/embed/mOV7Gp?alignLeft=1&hideTitle=1&transparentBackground=1&dynamicHeight=1"
46+
width="100%"
47+
height="500px"
48+
frameBorder="0"
49+
title="Tally Form"
50+
className="rounded-lg"
51+
></iframe>
52+
53+
<div className="mt-4 flex justify-end">
54+
<button
55+
type="button"
56+
onClick={() => setIsModalOpen(false)}
57+
className="rounded-lg bg-gray-700 px-4 py-2 text-white transition-colors hover:bg-gray-600"
58+
>
59+
Close
60+
</button>
61+
</div>
62+
</div>
63+
</div>
64+
)}
2465
</nav>
2566
);
2667
};

src/Page/OpportunitiesHub/Internships.jsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const Navbar = () => {
2222
<div className="flex items-center justify-center">
2323
<StyledButton onClick={() => setIsModalOpen(true)}>
2424
<div className="blob1" />
25-
<div className="inner">Spotlight Your Competition Globally!</div>
25+
<div className="inner">Spotlight Your Internship Globally!</div>
2626
</StyledButton>
2727
</div>
2828

@@ -35,14 +35,14 @@ const Navbar = () => {
3535
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50">
3636
<div className="w-full max-w-md rounded-lg bg-gray-800 p-6 text-white">
3737
<div className="mb-4 flex items-center justify-between">
38-
<h2 className="text-xl font-semibold">Submit The Competition Details!</h2>
38+
<h2 className="text-xl font-semibold">Submit The Internship Details!</h2>
3939
<button onClick={() => setIsModalOpen(false)} className="text-gray-400 hover:text-white">
4040
X
4141
</button>
4242
</div>
4343

4444
<iframe
45-
src="#"
45+
src="https://tally.so/embed/mOV7Gp?alignLeft=1&hideTitle=1&transparentBackground=1&dynamicHeight=1"
4646
width="100%"
4747
height="500px"
4848
frameBorder="0"
@@ -71,14 +71,7 @@ const Hero = () => {
7171
return (
7272
<section className="hero-section mb-0 flex min-h-[10vh] flex-col items-center justify-center text-white">
7373
<div className="flex w-full flex-col items-center justify-center px-8 text-center">
74-
{/* <h2 className="mb-4 text-6xl font-bold">
75-
Opportunities <span className="text-[#00a6fb]">Hub</span>
76-
</h2> */}
77-
{/* <p className="text-md md:text-md mx-auto max-w-2xl">
78-
One Platform, Endless Tech Opportunities
79-
</p> */}
8074
<div className="my-6"></div>
81-
{/* <h1 className="mb-2 text-6xl font-bold tracking-widest md:text-4xl"><span className="text-[#00a6fb]">Unlock All Tech Opportunities in One Place</span></h1> */}
8275
<StyledWrapper>
8376
<div className="modgp relative inline-block w-full py-3">
8477
<div className="relative">

0 commit comments

Comments
 (0)