Skip to content

Commit 221a9d8

Browse files
authored
Merge pull request #11 from winterofcode/fix/navbar
Fix/navbar
2 parents 217c892 + fe758f5 commit 221a9d8

File tree

13 files changed

+217
-1298
lines changed

13 files changed

+217
-1298
lines changed

package-lock.json

Lines changed: 6 additions & 1200 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Footer/Footer.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import {
44
InstagramOutlined,
55
LinkedinOutlined,
66
YoutubeOutlined,
7-
TwitterOutlined,
87
} from "@ant-design/icons";
8+
import { FaXTwitter } from "react-icons/fa6";
99
// @ts-ignore
1010
import wocLogo from "../../assets/wocLogo1.png";
1111
// @ts-ignore
@@ -39,7 +39,7 @@ const Footer = () => {
3939
style={{ cursor: "pointer" }}
4040
onClick={() => openInNewWindow(footerData.youtube̦)}
4141
/>
42-
<TwitterOutlined
42+
<FaXTwitter
4343
className="footer_logo_socials_icons3"
4444
style={{ cursor: "pointer" }}
4545
onClick={() => openInNewWindow(footerData.twitter)}

src/components/Footer/Footer.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@
9494
}
9595
}
9696
.footer_logo_socials_icons3 {
97-
font-size: 25px;
97+
font-size: 24px;
9898
@media screen and (max-width: 560px) {
99-
font-size: 15px;
99+
font-size: 16px;
100100
background: rgba(255, 255, 255, 0.2);
101101
border-radius: 100%;
102102
}
@@ -124,7 +124,7 @@
124124
}
125125
.footer_resources_text {
126126
margin: 8px 0px;
127-
font-size: 14px;
127+
font-size: 16px;
128128

129129
@media screen and (max-width: 560px) {
130130
font-size: 12px;
@@ -152,7 +152,7 @@
152152
}
153153
.footer_socials_text {
154154
margin: 8px 0px;
155-
font-size: 14px;
155+
font-size: 16px;
156156

157157
@media screen and (max-width: 560px) {
158158
font-size: 12px;
@@ -174,8 +174,8 @@
174174
}
175175
.footer_bottom p {
176176
margin: 10px 20px;
177-
font-size: 14px;
177+
font-size: 16px;
178178
@media screen and (max-width: 560px) {
179-
font-size: 12px;
179+
font-size: 14px;
180180
}
181181
}

src/components/Navbar/Navbar.jsx

Lines changed: 45 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { RxCross2 } from "react-icons/rx";
55
// @ts-ignore
66
import logo from "../../assets/org-logo.png";
77
import "./Navbar.scss";
8-
import { Link, useLocation } from "react-router-dom";
8+
import { useLocation } from "react-router-dom";
99
import { HashLink } from "react-router-hash-link";
1010

1111
const Navbar = () => {
@@ -47,7 +47,6 @@ const Navbar = () => {
4747
}
4848
function closeNavMenu() {
4949
setShowNav(false);
50-
if (location.pathname !== "/") setNavBackground(false);
5150
}
5251

5352
return (
@@ -74,6 +73,7 @@ const Navbar = () => {
7473
border: "none",
7574
borderRadius: "20px 20px 0px 0px",
7675
boxShadow: "15px 15px 15px 15px black",
76+
overflow: "hidden",
7777
}}
7878
open={showNav}
7979
onClose={() => setShowNav(false)}
@@ -101,34 +101,48 @@ function NavMenu({ isInline = false, closeNavMenu = null }) {
101101
window.scrollTo({ top: yCoordinate + yOffset, behavior: "smooth" });
102102
}
103103
return (
104-
<ul className="menu" style={style}>
105-
<li>
106-
<a href="https://dscnsec.com/" target="_blank" rel="noreferrer">
107-
GDSC NSEC
108-
</a>
109-
</li>
110-
<li onClick={closeNavMenu}>
111-
<Link to="/team">Team</Link>
112-
</li>
113-
<li onClick={closeNavMenu}>
114-
<HashLink
115-
smooth
116-
to="/#organization"
117-
scroll={(el) => scrollWithOffset(el)}
118-
>
119-
Organization
120-
</HashLink>
121-
</li>
122-
<li onClick={closeNavMenu}>
123-
<HashLink smooth to="/#timeline" scroll={(el) => scrollWithOffset(el)}>
124-
Timeline
125-
</HashLink>
126-
</li>
127-
<li onClick={closeNavMenu}>
128-
<HashLink smooth to="/#faq" scroll={(el) => scrollWithOffset(el)}>
129-
FAQ
130-
</HashLink>
131-
</li>
132-
</ul>
104+
<div className="menu" style={style}>
105+
<a
106+
href="https://dscnsec.com/"
107+
target="_blank"
108+
rel="noreferrer"
109+
onClick={closeNavMenu}
110+
>
111+
GDSC NSEC
112+
</a>
113+
<HashLink
114+
smooth
115+
to="/team"
116+
scroll={(el) => scrollWithOffset(el)}
117+
onClick={closeNavMenu}
118+
>
119+
Team
120+
</HashLink>
121+
<HashLink
122+
smooth
123+
to="/#organization"
124+
scroll={(el) => scrollWithOffset(el)}
125+
onClick={closeNavMenu}
126+
>
127+
Organization
128+
</HashLink>
129+
<HashLink
130+
smooth
131+
to="/#timeline"
132+
scroll={(el) => scrollWithOffset(el)}
133+
onClick={closeNavMenu}
134+
>
135+
Timeline
136+
</HashLink>
137+
138+
<HashLink
139+
smooth
140+
to="/#faq"
141+
scroll={(el) => scrollWithOffset(el)}
142+
onClick={closeNavMenu}
143+
>
144+
FAQ
145+
</HashLink>
146+
</div>
133147
);
134148
}

src/components/Navbar/Navbar.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,25 @@ a {
4646
color: white;
4747
list-style: none;
4848
display: flex;
49+
overflow: hidden;
4950
}
50-
.menu li {
51+
.menu a {
5152
margin-left: 2em;
5253
cursor: pointer;
5354
}
54-
.navbar > .menu li a {
55+
.navbar > .menu a {
5556
color: white;
5657
}
5758

5859
@media (max-width: 900px) {
5960
.navbar {
6061
padding: 1.5rem 2rem;
6162
}
62-
.menu li {
63-
padding: 1em 0em;
63+
.navbar > .menu {
64+
display: none;
6465
}
65-
.menu li a {
66+
.menu a {
67+
padding: 0.9em 0em;
6668
color: #505050;
6769
}
6870
.logoImg {
@@ -80,7 +82,4 @@ a {
8082
padding: 0.5em;
8183
cursor: pointer;
8284
}
83-
.navbar > .menu {
84-
display: none;
85-
}
8685
}

src/constants/teamData.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,6 @@ export const teamData = [
3333
},
3434
],
3535
},
36-
{
37-
name: "Soham Dey",
38-
title: "Design Lead",
39-
image: soham,
40-
socials: [
41-
{
42-
url: "https://github.com/7sohamd/",
43-
title: "GitHub",
44-
icon: "https://img.icons8.com/3d-fluency/32/github.png",
45-
},
46-
{
47-
url: "https://www.linkedin.com/in/soham-dey-891332256?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_medium=ios_app",
48-
title: "LinkedIn",
49-
icon: "https://img.icons8.com/color/32/linkedin.png",
50-
},
51-
],
52-
},
5336
{
5437
name: "Sambaran Das",
5538
title: "ML Lead",
@@ -123,6 +106,23 @@ export const teamData = [
123106
},
124107
],
125108
},
109+
{
110+
name: "Soham Dey",
111+
title: "Design Lead",
112+
image: soham,
113+
socials: [
114+
{
115+
url: "https://github.com/7sohamd/",
116+
title: "GitHub",
117+
icon: "https://img.icons8.com/3d-fluency/32/github.png",
118+
},
119+
{
120+
url: "https://www.linkedin.com/in/soham-dey-891332256?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_medium=ios_app",
121+
title: "LinkedIn",
122+
icon: "https://img.icons8.com/color/32/linkedin.png",
123+
},
124+
],
125+
},
126126
{
127127
name: "Debojit Saha",
128128
title: "Web Lead",

src/partials/About/About.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ const About = () => {
2626
your formative years. Above all, we hope you get encouraged into the
2727
world of open source and develop more code for the benefit of all.
2828
</p>
29+
<a
30+
className="primary button"
31+
target="_blank"
32+
href="https://drive.google.com/file/d/17Tu1nqx1QqRqXSx2KHBnaiqolZ-sZuRB/view"
33+
rel="noreferrer"
34+
>
35+
See our Brochure
36+
</a>
2937
</div>
3038
);
3139
};

src/partials/About/About.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
font-size: 18px;
2121
text-align: center;
2222
}
23+
.button {
24+
display: inline-block;
25+
color: #fff;
26+
padding: 10px 30px;
27+
margin-top: 30px;
28+
font-size: 18px;
29+
cursor: pointer;
30+
border-radius: 10px;
31+
}
2332

2433
/* Responsive styles */
2534
@media (max-width: 768px) {
@@ -30,4 +39,8 @@
3039
.description {
3140
font-size: 16px;
3241
}
42+
.button {
43+
font-size: 15px;
44+
padding: 10px 20px;
45+
}
3346
}

src/partials/Apply/Apply.jsx

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import React from "react";
22
import "./Apply.scss";
3-
import { Button, Flex, message } from "antd";
4-
5-
// const boxStyle = {
6-
// width: '100%',
7-
// height: 120,
8-
// };
3+
import { Button, message } from "antd";
94

105
const Apply = () => {
6+
const openInNewWindow = (url) => {
7+
window.open(url, "_blank");
8+
};
9+
1110
return (
1211
<>
1312
<div className="box" id="organization">
@@ -25,9 +24,7 @@ const Apply = () => {
2524
type="primary"
2625
className="primary"
2726
onClick={() =>
28-
message.warning(
29-
"Applications for Organisations have not started yet."
30-
)
27+
openInNewWindow("https://forms.gle/wx1CKpzGCt6yXY6M7")
3128
}
3229
>
3330
Apply As Organisation
@@ -36,9 +33,7 @@ const Apply = () => {
3633
type="primary"
3734
className="primary"
3835
onClick={() =>
39-
message.warning(
40-
"Applications for Community Partners have not started yet."
41-
)
36+
openInNewWindow("https://forms.gle/uY693jkYamRQ6bfv5")
4237
}
4338
>
4439
Apply As Community Partner
@@ -49,9 +44,7 @@ const Apply = () => {
4944
type="primary"
5045
className="primary"
5146
onClick={() =>
52-
message.warning(
53-
"Applications for Mentors have not started yet."
54-
)
47+
openInNewWindow("https://forms.gle/VCjpHpUvyR6Abr2W9")
5548
}
5649
>
5750
Apply As Mentor

src/partials/FAQ/FAQ.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const FAQ = () => {
2929
Collapse: {
3030
headerPadding: "5px 10px",
3131
contentPadding: "2px 10px ",
32-
fontSize: isSmallScreen ? "14px" : "16px", // fixed syntax error
32+
fontSize: isSmallScreen ? "16px" : "18px", // fixed syntax error
3333
},
3434
Input: {
3535
colorPrimary: "#eb2f96",

0 commit comments

Comments
 (0)