Skip to content

Commit

Permalink
Merge pull request #13 from winterofcode/coc
Browse files Browse the repository at this point in the history
Coc
  • Loading branch information
subho004 authored Jan 7, 2024
2 parents ef327a9 + f167f43 commit 72c3b8d
Show file tree
Hide file tree
Showing 6 changed files with 316 additions and 6 deletions.
15 changes: 12 additions & 3 deletions src/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ import wocLogo from "../../assets/wocLogo1.png";
// @ts-ignore
import gdscLogo from "../../assets/gdscLogo1.png";
import footerData from "../../constants/footerData";
import { Link } from "react-router-dom";

const Footer = () => {
const openInNewWindow = (url) => {
window.open(url, "_blank");
};
return (
<div className="footer" >
<div className="footer">
<div className="footer_top">
<div className="footer_logo">
<div className="footer_logo_first">
Expand All @@ -30,12 +31,13 @@ const Footer = () => {
style={{ cursor: "pointer" }}
onClick={() => openInNewWindow(footerData.instagram)}
/>
<LinkedinOutlined
<LinkedinOutlined
className="footer_logo_socials_icons2"
style={{ cursor: "pointer" }}
onClick={() => openInNewWindow(footerData.linkedin)}
/>
<YoutubeOutlined className="footer_logo_socials_icons3"
<YoutubeOutlined
className="footer_logo_socials_icons3"
style={{ cursor: "pointer" }}
onClick={() => openInNewWindow(footerData.youtube̦)}
/>
Expand All @@ -45,6 +47,13 @@ const Footer = () => {
onClick={() => openInNewWindow(footerData.twitter)}
/>
</div>
<div className="footer_coc">
<Link to="/coc">Code of Conduct</Link>
<p className="footer_coc_email">Email us for more details</p>
<a href="mailto: [email protected]" className="email_2">
[email protected]
</a>
</div>
</div>
<div className="footer_resources">
<h1 className="footer_resources_heading">Resources</h1>
Expand Down
58 changes: 55 additions & 3 deletions src/components/Footer/Footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,56 @@
box-sizing: border-box;
position: relative;
z-index: 2;

@media screen and (max-width: 560px) {
padding: 20px 20px;
}
}

.footer_top {
display: flex;
justify-content: space-between;
align-items: center;
gap: 24px;
margin-bottom: 80px;

@media screen and (max-width: 560px) {
flex-direction: column;
justify-content: center;
justify-content: space-between;
margin-bottom: 30px;
align-items: flex-start;
}
}

.footer_logo_first {
display: flex;
align-items: center;
}

.footer_logo {
max-width: 33.33%;
display: flex;
flex-direction: column;
align-items: center;

@media screen and (max-width: 560px) {
max-width: 100%;
justify-content: center;
align-items: center;
}
}

.footer_woc_logo {
width: 40px;
height: 40px;
margin-right: 10px;

@media screen and (max-width: 560px) {
width: 50px;
height: 50px;
}
}

.footer_logo_text {
font-size: 20px;
font-weight: 600;
Expand All @@ -62,13 +71,16 @@
align-items: center;
justify-content: center;
margin-top: 10px;

p {
font-size: 10px;

@media screen and (max-width: 560px) {
font-size: 15px;
}
}
}

.footer_logo_socials {
margin-top: 10px;
display: flex;
Expand All @@ -77,32 +89,40 @@
max-width: 100%;
gap: 8px;
}

.footer_logo_socials_icons1 {
font-size: 25px;

@media screen and (max-width: 560px) {
font-size: 15px;
background: rgba(255, 255, 255, 0.2);
border-radius: 100%;
}
}

.footer_logo_socials_icons2 {
font-size: 25px;

@media screen and (max-width: 560px) {
font-size: 15px;
background: rgba(255, 255, 255, 0.2);
border-radius: 100%;
}
}

.footer_logo_socials_icons3 {
font-size: 24px;

@media screen and (max-width: 560px) {
font-size: 16px;
background: rgba(255, 255, 255, 0.2);
border-radius: 100%;
}
}

.footer_resources {
max-width: 33.33%;

@media screen and (max-width: 560px) {
max-width: 100%;
display: flex;
Expand All @@ -113,15 +133,18 @@
margin-top: 20px;
}
}

.footer_resources_heading {
margin: 0;
margin-bottom: 5px;
font-size: 20px;

@media screen and (max-width: 560px) {
font-size: 18px;
margin-bottom: 12px;
}
}

.footer_resources_text {
margin: 8px 0px;
font-size: 16px;
Expand All @@ -131,8 +154,10 @@
margin: 6px 0px;
}
}

.footer_socials {
max-width: 33%;

@media screen and (max-width: 560px) {
max-width: 100%;
display: flex;
Expand All @@ -141,41 +166,68 @@
align-items: flex-start;
}
}

.footer_socials_heading {
margin: 0;
margin-bottom: 5px;
font-size: 20px;

@media screen and (max-width: 560px) {
font-size: 18px;
margin-bottom: 12px;
}
}

.footer_socials_text {
margin: 8px 0px;
font-size: 16px;

@media screen and (max-width: 560px) {
font-size: 12px;
margin: 6px 0px ;
margin: 6px 0px;
}
}

.footer_bottom {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;

}

.footer_bottom img {
width: 50%;

@media screen and (max-width: 560px) {
width: 100%;
}
}

.footer_bottom p {
margin: 10px 20px;
font-size: 16px;

@media screen and (max-width: 560px) {
font-size: 14px;
}
}

.footer_coc {
margin-top: 20px;

.footer_coc_email {
color: #87a0f9;
margin-top: 10px;
margin-bottom: 10px;
}

.email_2 {
color: #ffffff;
text-transform: lowercase;
font-weight: 600;
}

@media screen and (max-width: 560px) {
font-size: 15px;
}
}
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ body {
color: white !important;
}
}

6 changes: 6 additions & 0 deletions src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import NotFound404 from "utils/NotFound404/NotFound404.jsx";
import Home from "pages/Home/Home.jsx";
import Team from "pages/Team/Team.jsx";
import MainLayout from "components/Layout/MainLayout.jsx";
import Coc from "pages/Coc/Coc.jsx";


const routes = [
{
Expand All @@ -21,6 +23,10 @@ const routes = [
path: "/team",
element: <Team />,
},
{
path: "/coc",
element:<Coc/>
}
],
},
{
Expand Down
Loading

0 comments on commit 72c3b8d

Please sign in to comment.