-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(layout): build navbar and footer components
- Loading branch information
1 parent
df7ef6b
commit 05a4d99
Showing
26 changed files
with
433 additions
and
70 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* /index.html 200 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,40 @@ | ||
.App { | ||
text-align: center; | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
.App-logo { | ||
height: 40vmin; | ||
pointer-events: none; | ||
::-webkit-scrollbar { | ||
width: 5px; | ||
height: 5px; | ||
background-color: rgba(248, 248, 248, 1); | ||
} | ||
|
||
@media (prefers-reduced-motion: no-preference) { | ||
.App-logo { | ||
animation: App-logo-spin infinite 20s linear; | ||
} | ||
} | ||
|
||
.App-header { | ||
background-color: #282c34; | ||
min-height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: calc(10px + 2vmin); | ||
color: white; | ||
::-webkit-scrollbar-thumb { | ||
background-color: rgba(183, 5, 105, 1); | ||
border-radius: 20px; | ||
} | ||
|
||
.App-link { | ||
color: #61dafb; | ||
.logo { | ||
background-image: url("./assets/images/SCA-LOGO.png"); | ||
background-repeat: no-repeat; | ||
background-position: center center; | ||
background-size: contain; | ||
} | ||
|
||
@keyframes App-logo-spin { | ||
from { | ||
transform: rotate(0deg); | ||
@media (max-width: 1023px) { | ||
.menu-items { | ||
top: 78px; | ||
left: 0; | ||
right: 0; | ||
background-color: white; | ||
position: fixed; | ||
padding: 20px; | ||
transform: translateX(1000px); | ||
transition: all 0.3s ease-in-out; | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
|
||
.open-nav { | ||
transform: translateX(0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import scaLogo from "./SCA-LOGO.png"; | ||
|
||
export { scaLogo }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
import React from "react"; | ||
import { scaLogo } from "../../assets/images"; | ||
import { Link } from "react-router-dom"; | ||
import { aboutUsLinks, communityLinks } from "../../utils/appData"; | ||
import { | ||
FaLinkedinIn, | ||
FaFacebookF, | ||
FaYoutube, | ||
FaInstagram, | ||
FaTwitter, | ||
} from "react-icons/fa6"; | ||
|
||
const Footer = () => { | ||
return ( | ||
<section className="bg-whiteSmoke w-full font-libreFranklin"> | ||
<div className="w-[90%] mx-auto max-w-[1280px] md:flex md:items-center md:justify-between pt-10 pb-8 md:pt-20"> | ||
<figure className="hidden md:block w-[58px] h-[90px]"> | ||
<img src={scaLogo} alt="SCA-LOGO" className="w-full h-full" /> | ||
</figure> | ||
|
||
<div className="flex flex-col md:flex-row md:items-start md:justify-end gap-10 md:gap-40"> | ||
<article className=""> | ||
<h2 className="text-xl md:text-[32px] font-bold capitalize mb-6"> | ||
about us | ||
</h2> | ||
|
||
<ul className="flex flex-col gap-5"> | ||
{aboutUsLinks.map((menu, i) => ( | ||
<li | ||
className="text-base font-normal hover:text-primaryPink" | ||
key={i} | ||
> | ||
<Link to={menu.path}>{menu.pathname}</Link> | ||
</li> | ||
))} | ||
</ul> | ||
</article> | ||
<article className=""> | ||
<h2 className="text-xl md:text-[32px] font-bold capitalize mb-6"> | ||
community | ||
</h2> | ||
<ul className="flex flex-col gap-5"> | ||
{communityLinks.map((menu, i) => ( | ||
<li | ||
className="text-base font-normal hover:text-primaryPink" | ||
key={i} | ||
> | ||
<Link to={menu.path}>{menu.pathname}</Link> | ||
</li> | ||
))} | ||
</ul> | ||
|
||
<ul className="mt-5 flex items-center gap-4"> | ||
<li className="w-[31px] h-[31px] flex items-center justify-center rounded-[50%] bg-black"> | ||
<Link to="#" className=" text-white"> | ||
<FaLinkedinIn /> | ||
</Link> | ||
</li> | ||
<li className="w-[31px] h-[31px] flex items-center justify-center rounded-[50%] bg-black"> | ||
<Link to="#" className=" text-white"> | ||
<FaFacebookF /> | ||
</Link> | ||
</li> | ||
<li className="w-[31px] h-[31px] flex items-center justify-center rounded-[50%] bg-black"> | ||
<Link to="#" className=" text-white"> | ||
<FaYoutube /> | ||
</Link> | ||
</li> | ||
<li className="w-[31px] h-[31px] flex items-center justify-center rounded-[50%] bg-black"> | ||
<Link to="#" className=" text-white"> | ||
<FaInstagram /> | ||
</Link> | ||
</li> | ||
<li className="w-[31px] h-[31px] flex items-center justify-center rounded-[50%] bg-black"> | ||
<Link to="#" className=" text-white"> | ||
<FaTwitter /> | ||
</Link> | ||
</li> | ||
</ul> | ||
</article> | ||
</div> | ||
</div> | ||
|
||
<div className="bg-black py-6 px-5"> | ||
<p className="text-white text-base text-center w-full"> | ||
All rights reserved. She Code Africa 2024. | ||
</p> | ||
</div> | ||
</section> | ||
); | ||
}; | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import GlobalLayout from "./layouts/GlobalLayout"; | ||
|
||
export { GlobalLayout }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from "react"; | ||
import NavigationBar from "../navbar"; | ||
import Footer from "../footer"; | ||
|
||
const GlobalLayout = ({ children }) => { | ||
return ( | ||
<> | ||
<NavigationBar /> | ||
<section className="w-[90%] max-w-[1280px] mx-auto text-sealBrown overflow-hidden py-24 min-h-[90vh]"> | ||
{children} | ||
</section> | ||
<Footer /> | ||
</> | ||
); | ||
}; | ||
|
||
export default GlobalLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from "react"; | ||
import { Link, useLocation } from "react-router-dom"; | ||
import { FaAngleDown } from "react-icons/fa6"; | ||
|
||
const MenuLinks = ({ menuItem }) => { | ||
const { pathname } = useLocation(); | ||
|
||
return ( | ||
<> | ||
{menuItem.isDropdown ? ( | ||
<li | ||
className={`text-base font-medium cursor-pointer relative ${ | ||
pathname === menuItem.path && "text-primaryPink font-bold" | ||
}`} | ||
> | ||
<Link to={menuItem.path} className="flex gap-1 items-center"> | ||
<span className="">{menuItem.pathname}</span> | ||
<button className=""> | ||
<FaAngleDown /> | ||
{/* {showDropdown ? <FaAngleUp /> : <FaAngleDown />} */} | ||
</button> | ||
</Link> | ||
</li> | ||
) : ( | ||
<li | ||
className={`text-base font-medium ${ | ||
pathname === menuItem.path && "text-primaryPink font-bold" | ||
}`} | ||
> | ||
<Link to={menuItem.path}>{menuItem.pathname}</Link> | ||
</li> | ||
)} | ||
</> | ||
); | ||
}; | ||
|
||
export default MenuLinks; |
Oops, something went wrong.