-
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.
Merge pull request #7 from Robert-M-Lucas/dev-SCRUM-35
Dev scrum 35
- Loading branch information
Showing
2 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
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,10 +1,26 @@ | ||
export function Footer() { | ||
return <footer className="py-3 my-4"> | ||
<hr/> | ||
<ul className="nav justify-content-center pb-3 mb-3"> | ||
<li className="nav-item"><a href="/" className="nav-link px-2 text-muted">Home</a></li> | ||
<li className="nav-item"><a href="/index#contact" className="nav-link px-2 text-muted">Contact</a></li> | ||
</ul> | ||
<p className="text-center text-muted">Sample Footer © 2024 Group 19 Inc.</p> | ||
import {Link} from "react-router-dom"; | ||
|
||
|
||
type HeightUnit = 'px' | 'rem' | 'vh'; | ||
type HeightProp = `${number}${HeightUnit}` | "0"; | ||
|
||
interface Props { | ||
margin?: HeightProp; | ||
} | ||
|
||
export function Footer({margin = "0"}: Props) { | ||
return <footer style={{marginTop: margin}}> | ||
<hr className="my-0 w-100"/> | ||
|
||
<div style={{padding: "2.5rem 0"}}> | ||
<ul className="nav justify-content-center pt-0 mt-0 pb-3 mb-3"> | ||
<li className="nav-item"><Link to="/" className="nav-link px-2 text-muted py-0">Home</Link></li> | ||
<li className="nav-item"><Link to="/dash" className="nav-link px-2 text-muted py-0">Dashboard</Link></li> | ||
<li className="nav-item"><Link to="#" className="nav-link px-2 text-muted py-0" onClick={() => window.scrollTo(0, 0)}> | ||
Top | ||
</Link></li> | ||
</ul> | ||
<p className="text-center text-muted mb-0">Budget-19 © 2024 Group 19 Inc.</p> | ||
</div> | ||
</footer>; | ||
} |