|
1 | | -// External imports |
2 | | -import React, { Fragment } from "react"; |
3 | | -import { Link } from "react-router-dom"; |
4 | | - |
5 | | -// Internal imports |
6 | | -import { Button } from "../Buttons/Button"; |
7 | | -import { logoHorizontalOnDark, logoStackedOnDark } from "assets/images/images"; |
8 | | - |
9 | | -interface menuObject { |
10 | | - name?: string; |
11 | | - link: string; |
12 | | -} |
13 | | - |
14 | | -const menuItems: menuObject[] = [ |
15 | | - { name: "Credits", link: "credits" }, |
16 | | - { name: "Sitemap", link: "#" }, |
17 | | - { name: "Join Us", link: "qualifier/1" }, |
18 | | -]; |
19 | | - |
20 | | -function FooterNav() { |
21 | | - const Logo = () => { |
22 | | - return ( |
23 | | - <a className="footer-icons-on-dark" href="/" rel="noopener noreferrer"> |
24 | | - <img |
25 | | - className="logo-desktop-footer" |
26 | | - src={logoHorizontalOnDark} |
27 | | - alt="Civic Tech Jobs - Home" |
28 | | - /> |
29 | | - <img |
30 | | - className="logo-mobile-footer" |
31 | | - src={logoStackedOnDark} |
32 | | - alt="Civic Tech Jobs - Home" |
33 | | - /> |
34 | | - </a> |
35 | | - ); |
36 | | - }; |
37 | | - |
38 | | - return ( |
39 | | - <footer className="footer-nav flex-container"> |
40 | | - <Logo /> |
41 | | - <nav |
42 | | - className="footer-menu flex-container" |
43 | | - aria-label="footer-navigation" |
44 | | - > |
45 | | - {menuItems.map((item, index) => { |
46 | | - return ( |
47 | | - <Fragment key={index}> |
48 | | - <div className="footer-menu-vertical-line"></div> |
49 | | - <Link className="footer-links" to={item.link}> |
50 | | - {item.name} |
51 | | - </Link> |
52 | | - </Fragment> |
53 | | - ); |
54 | | - })} |
55 | | - </nav> |
56 | | - <div className="footer-donate-button flex-container"> |
57 | | - <Button |
58 | | - color="primary-dark" |
59 | | - href="https://www.hackforla.org/donate/" |
60 | | - size="sm" |
61 | | - > |
62 | | - Donate |
63 | | - </Button> |
64 | | - </div> |
65 | | - </footer> |
66 | | - ); |
67 | | -} |
68 | | - |
69 | | -export { FooterNav }; |
| 1 | +// External imports |
| 2 | +import React, { Fragment } from "react"; |
| 3 | +import { Link } from "react-router-dom"; |
| 4 | + |
| 5 | +// Internal imports |
| 6 | +import { Button } from "components/components"; |
| 7 | +import { logoHorizontalOnDark, logoStackedOnDark } from "assets/images/images"; |
| 8 | + |
| 9 | +interface menuObject { |
| 10 | + name?: string; |
| 11 | + link: string; |
| 12 | +} |
| 13 | + |
| 14 | +const menuItems: menuObject[] = [ |
| 15 | + { name: "Credits", link: "credits" }, |
| 16 | + { name: "Sitemap", link: "#" }, |
| 17 | + { name: "Join Us", link: "qualifier/1" }, |
| 18 | +]; |
| 19 | + |
| 20 | +const Logo = () => { |
| 21 | + return ( |
| 22 | + <Link className="block" to="/"> |
| 23 | + <img |
| 24 | + className="hidden sm:block" |
| 25 | + src={logoHorizontalOnDark} |
| 26 | + alt="Civic Tech Jobs - Home" |
| 27 | + /> |
| 28 | + <img |
| 29 | + className="sm:hidden" |
| 30 | + src={logoStackedOnDark} |
| 31 | + alt="Civic Tech Jobs - Home" |
| 32 | + /> |
| 33 | + </Link> |
| 34 | + ); |
| 35 | +}; |
| 36 | + |
| 37 | +function FooterNav() { |
| 38 | + return ( |
| 39 | + <footer className="box-border flex flex-col items-center gap-6 bg-blue-dark py-8 lg:flex-row lg:px-[176px]"> |
| 40 | + <Logo /> |
| 41 | + <nav |
| 42 | + className="flex max-lg:order-3 max-lg:w-[220px]" |
| 43 | + aria-label="footer-navigation" |
| 44 | + > |
| 45 | + {menuItems.map((item, index) => { |
| 46 | + return ( |
| 47 | + <Fragment key={index}> |
| 48 | + <div className="visible m-auto block w-5 rotate-90 border border-white first:hidden lg:invisible lg:w-p5 lg:first:visible lg:first:block"></div> |
| 49 | + <Link className="text-[16px] font-bold text-white" to={item.link}> |
| 50 | + {item.name} |
| 51 | + </Link> |
| 52 | + </Fragment> |
| 53 | + ); |
| 54 | + })} |
| 55 | + </nav> |
| 56 | + <div className="mx-0 flex lg:ml-auto"> |
| 57 | + <Button |
| 58 | + color="primary-dark" |
| 59 | + href="https://www.hackforla.org/donate/" |
| 60 | + size="sm" |
| 61 | + > |
| 62 | + Donate |
| 63 | + </Button> |
| 64 | + </div> |
| 65 | + </footer> |
| 66 | + ); |
| 67 | +} |
| 68 | + |
| 69 | +export default FooterNav; |
0 commit comments