BS-002 Establish public marketing routes and navigation
This commit is contained in:
@@ -1,33 +1,21 @@
|
||||
import styles from "./Footer.module.scss";
|
||||
import { Container } from "react-bootstrap";
|
||||
import { NavLink } from "react-router-dom";
|
||||
import { site } from "../../config/site";
|
||||
import styles from "./Footer.module.scss";
|
||||
|
||||
const Footer = () => {
|
||||
return (
|
||||
<footer className={styles.footer}>
|
||||
<nav className={styles.links} aria-label="Footer navigation">
|
||||
<NavLink to="/contact">Contact</NavLink>
|
||||
<NavLink to="/privacy">Privacy</NavLink>
|
||||
<NavLink to="/terms">Terms</NavLink>
|
||||
</nav>
|
||||
<div className={styles.developerSlot}>
|
||||
<a
|
||||
href={site.developer.url}
|
||||
aria-label={site.developer.linkLabel}
|
||||
rel="noreferrer"
|
||||
>
|
||||
<img
|
||||
src={site.developer.logoPath}
|
||||
alt={site.developer.name}
|
||||
className={styles.developerLogo}
|
||||
/>
|
||||
export default function Footer() {
|
||||
return <footer className={styles.footer}>
|
||||
<Container>
|
||||
<div className={styles.footerRow}>
|
||||
<p className={styles.copyright}>© {new Date().getFullYear()} BortStack</p>
|
||||
<nav className={styles.links} aria-label="Footer navigation">
|
||||
<NavLink to="/contact">Contact</NavLink>
|
||||
<NavLink to="/privacy">Privacy</NavLink>
|
||||
</nav>
|
||||
<a href={site.developer.url} aria-label={site.developer.linkLabel} rel="noreferrer" className={styles.developerSlot}>
|
||||
<img src={site.developer.logoPath} alt={site.developer.name} className={styles.developerLogo} />
|
||||
</a>
|
||||
</div>
|
||||
<p className={styles.copyright}>
|
||||
© {new Date().getFullYear()} Web App
|
||||
</p>
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
|
||||
export default Footer;
|
||||
</Container>
|
||||
</footer>;
|
||||
}
|
||||
|
||||
@@ -1,28 +1,22 @@
|
||||
import { Container, Navbar } from "react-bootstrap";
|
||||
import { useState } from "react";
|
||||
import { Container, Nav, Navbar } from "react-bootstrap";
|
||||
import { NavLink } from "react-router-dom";
|
||||
import Logo from "../Logo/Logo";
|
||||
import styles from "./Header.module.scss";
|
||||
import PageNav from "../PageNav/PageNav"
|
||||
import Logo from "../Logo/Logo"
|
||||
import { useAuth } from "../../contexts/AuthContext";
|
||||
import GuestNav from "../GuestNav/GuestNav";
|
||||
|
||||
|
||||
const Header = () => {
|
||||
const { user } = useAuth()
|
||||
|
||||
return (
|
||||
<Navbar expand="sm" className={styles.header} variant="dark">
|
||||
<Container>
|
||||
export default function Header() {
|
||||
const [expanded, setExpanded] = useState(false);
|
||||
return <Navbar variant="dark" expand="md" expanded={expanded} onToggle={setExpanded} className={styles.header} aria-label="Main navigation">
|
||||
<Container>
|
||||
<Navbar.Brand as="div"><Logo /></Navbar.Brand>
|
||||
<Navbar.Toggle aria-controls="navbar-nav" />
|
||||
<Navbar.Collapse id="navbar-nav" className={styles.navbarCollapse}>
|
||||
{
|
||||
user ? <PageNav /> : <GuestNav />
|
||||
}
|
||||
|
||||
<Navbar.Toggle aria-controls="main-navigation" aria-expanded={expanded} />
|
||||
<Navbar.Collapse id="main-navigation" className={styles.navbarCollapse}>
|
||||
<Nav>
|
||||
{["Services", "Projects", "About", "Contact"].map(label => (
|
||||
<Nav.Link as={NavLink} key={label} to={`/${label.toLowerCase()}`} onClick={() => setExpanded(false)}>{label}</Nav.Link>
|
||||
))}
|
||||
</Nav>
|
||||
</Navbar.Collapse>
|
||||
</Container>
|
||||
</Navbar>
|
||||
)
|
||||
</Container>
|
||||
</Navbar>;
|
||||
}
|
||||
|
||||
export default Header
|
||||
|
||||
Reference in New Issue
Block a user