Skip to content

Commit 72c3b8d

Browse files
authored
Merge pull request #13 from winterofcode/coc
Coc
2 parents ef327a9 + f167f43 commit 72c3b8d

File tree

6 files changed

+316
-6
lines changed

6 files changed

+316
-6
lines changed

src/components/Footer/Footer.jsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ import wocLogo from "../../assets/wocLogo1.png";
1111
// @ts-ignore
1212
import gdscLogo from "../../assets/gdscLogo1.png";
1313
import footerData from "../../constants/footerData";
14+
import { Link } from "react-router-dom";
1415

1516
const Footer = () => {
1617
const openInNewWindow = (url) => {
1718
window.open(url, "_blank");
1819
};
1920
return (
20-
<div className="footer" >
21+
<div className="footer">
2122
<div className="footer_top">
2223
<div className="footer_logo">
2324
<div className="footer_logo_first">
@@ -30,12 +31,13 @@ const Footer = () => {
3031
style={{ cursor: "pointer" }}
3132
onClick={() => openInNewWindow(footerData.instagram)}
3233
/>
33-
<LinkedinOutlined
34+
<LinkedinOutlined
3435
className="footer_logo_socials_icons2"
3536
style={{ cursor: "pointer" }}
3637
onClick={() => openInNewWindow(footerData.linkedin)}
3738
/>
38-
<YoutubeOutlined className="footer_logo_socials_icons3"
39+
<YoutubeOutlined
40+
className="footer_logo_socials_icons3"
3941
style={{ cursor: "pointer" }}
4042
onClick={() => openInNewWindow(footerData.youtube̦)}
4143
/>
@@ -45,6 +47,13 @@ const Footer = () => {
4547
onClick={() => openInNewWindow(footerData.twitter)}
4648
/>
4749
</div>
50+
<div className="footer_coc">
51+
<Link to="/coc">Code of Conduct</Link>
52+
<p className="footer_coc_email">Email us for more details</p>
53+
<a href="mailto: [email protected]" className="email_2">
54+
55+
</a>
56+
</div>
4857
</div>
4958
<div className="footer_resources">
5059
<h1 className="footer_resources_heading">Resources</h1>

src/components/Footer/Footer.scss

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,56 @@
66
box-sizing: border-box;
77
position: relative;
88
z-index: 2;
9+
910
@media screen and (max-width: 560px) {
1011
padding: 20px 20px;
1112
}
1213
}
14+
1315
.footer_top {
1416
display: flex;
1517
justify-content: space-between;
1618
align-items: center;
1719
gap: 24px;
1820
margin-bottom: 80px;
21+
1922
@media screen and (max-width: 560px) {
2023
flex-direction: column;
21-
justify-content: center;
24+
justify-content: space-between;
2225
margin-bottom: 30px;
2326
align-items: flex-start;
2427
}
2528
}
29+
2630
.footer_logo_first {
2731
display: flex;
2832
align-items: center;
2933
}
34+
3035
.footer_logo {
3136
max-width: 33.33%;
3237
display: flex;
3338
flex-direction: column;
3439
align-items: center;
40+
3541
@media screen and (max-width: 560px) {
3642
max-width: 100%;
3743
justify-content: center;
3844
align-items: center;
3945
}
4046
}
47+
4148
.footer_woc_logo {
4249
width: 40px;
4350
height: 40px;
4451
margin-right: 10px;
52+
4553
@media screen and (max-width: 560px) {
4654
width: 50px;
4755
height: 50px;
4856
}
4957
}
58+
5059
.footer_logo_text {
5160
font-size: 20px;
5261
font-weight: 600;
@@ -62,13 +71,16 @@
6271
align-items: center;
6372
justify-content: center;
6473
margin-top: 10px;
74+
6575
p {
6676
font-size: 10px;
77+
6778
@media screen and (max-width: 560px) {
6879
font-size: 15px;
6980
}
7081
}
7182
}
83+
7284
.footer_logo_socials {
7385
margin-top: 10px;
7486
display: flex;
@@ -77,32 +89,40 @@
7789
max-width: 100%;
7890
gap: 8px;
7991
}
92+
8093
.footer_logo_socials_icons1 {
8194
font-size: 25px;
95+
8296
@media screen and (max-width: 560px) {
8397
font-size: 15px;
8498
background: rgba(255, 255, 255, 0.2);
8599
border-radius: 100%;
86100
}
87101
}
102+
88103
.footer_logo_socials_icons2 {
89104
font-size: 25px;
105+
90106
@media screen and (max-width: 560px) {
91107
font-size: 15px;
92108
background: rgba(255, 255, 255, 0.2);
93109
border-radius: 100%;
94110
}
95111
}
112+
96113
.footer_logo_socials_icons3 {
97114
font-size: 24px;
115+
98116
@media screen and (max-width: 560px) {
99117
font-size: 16px;
100118
background: rgba(255, 255, 255, 0.2);
101119
border-radius: 100%;
102120
}
103121
}
122+
104123
.footer_resources {
105124
max-width: 33.33%;
125+
106126
@media screen and (max-width: 560px) {
107127
max-width: 100%;
108128
display: flex;
@@ -113,15 +133,18 @@
113133
margin-top: 20px;
114134
}
115135
}
136+
116137
.footer_resources_heading {
117138
margin: 0;
118139
margin-bottom: 5px;
119140
font-size: 20px;
141+
120142
@media screen and (max-width: 560px) {
121143
font-size: 18px;
122144
margin-bottom: 12px;
123145
}
124146
}
147+
125148
.footer_resources_text {
126149
margin: 8px 0px;
127150
font-size: 16px;
@@ -131,8 +154,10 @@
131154
margin: 6px 0px;
132155
}
133156
}
157+
134158
.footer_socials {
135159
max-width: 33%;
160+
136161
@media screen and (max-width: 560px) {
137162
max-width: 100%;
138163
display: flex;
@@ -141,41 +166,68 @@
141166
align-items: flex-start;
142167
}
143168
}
169+
144170
.footer_socials_heading {
145171
margin: 0;
146172
margin-bottom: 5px;
147173
font-size: 20px;
174+
148175
@media screen and (max-width: 560px) {
149176
font-size: 18px;
150177
margin-bottom: 12px;
151178
}
152179
}
180+
153181
.footer_socials_text {
154182
margin: 8px 0px;
155183
font-size: 16px;
156184

157185
@media screen and (max-width: 560px) {
158186
font-size: 12px;
159-
margin: 6px 0px ;
187+
margin: 6px 0px;
160188
}
161189
}
190+
162191
.footer_bottom {
163192
display: flex;
164193
justify-content: center;
165194
align-items: center;
166195
flex-direction: column;
167-
168196
}
197+
169198
.footer_bottom img {
170199
width: 50%;
200+
171201
@media screen and (max-width: 560px) {
172202
width: 100%;
173203
}
174204
}
205+
175206
.footer_bottom p {
176207
margin: 10px 20px;
177208
font-size: 16px;
209+
178210
@media screen and (max-width: 560px) {
179211
font-size: 14px;
180212
}
181213
}
214+
215+
.footer_coc {
216+
margin-top: 20px;
217+
218+
.footer_coc_email {
219+
color: #87a0f9;
220+
margin-top: 10px;
221+
margin-bottom: 10px;
222+
}
223+
224+
.email_2 {
225+
color: #ffffff;
226+
text-transform: lowercase;
227+
font-weight: 600;
228+
}
229+
230+
@media screen and (max-width: 560px) {
231+
font-size: 15px;
232+
}
233+
}

src/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ body {
2626
color: white !important;
2727
}
2828
}
29+

src/main.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import NotFound404 from "utils/NotFound404/NotFound404.jsx";
77
import Home from "pages/Home/Home.jsx";
88
import Team from "pages/Team/Team.jsx";
99
import MainLayout from "components/Layout/MainLayout.jsx";
10+
import Coc from "pages/Coc/Coc.jsx";
11+
1012

1113
const routes = [
1214
{
@@ -21,6 +23,10 @@ const routes = [
2123
path: "/team",
2224
element: <Team />,
2325
},
26+
{
27+
path: "/coc",
28+
element:<Coc/>
29+
}
2430
],
2531
},
2632
{

0 commit comments

Comments
 (0)