Skip to content

Commit

Permalink
Merge pull request #144 from lucyjemutai/footer
Browse files Browse the repository at this point in the history
 ensure the footer is fixed across the page
  • Loading branch information
lucyjemutai authored Sep 24, 2024
2 parents 1debe0c + e688509 commit 6522fe5
Showing 1 changed file with 74 additions and 71 deletions.
145 changes: 74 additions & 71 deletions components/footer.js
Original file line number Diff line number Diff line change
@@ -1,75 +1,78 @@
import * as React from 'react';
import Box from '@mui/material/Box';
import Link from 'next/link';
import * as React from "react";
import Box from "@mui/material/Box";
import Link from "next/link";

export default function Footer() {
return (
<Box
component="footer"
sx={{
backgroundColor: "#fcfcfc",
width: "100%",
height: "80px",
position: "absolute",
display: "flex",
alignItems: "center",
justifyContent: "center",
zIndex: 1000,
}}
return (
<Box
component="footer"
sx={{
backgroundColor: "#fcfcfc",
width: "100%",
height: "80px",
position: "fixed",
bottom: 0,
display: "flex",
alignItems: "center",
justifyContent: "center",
zIndex: 1000,
}}
>
<Box
sx={{
display: "flex",
flexDirection: "row",
justifyContent: "center",
gap: 2,
}}
>
<Link
style={{
fontWeight: "500",
textDecoration: "none",
color: "#334",
fontSize: "1.1em",
}}
href={"/about"}
>
<Box
sx={{
display: "flex",
flexDirection: "row",
justifyContent: "center",
gap: 2,
}}
>
<Link
style={{
fontWeight: "500",
textDecoration: "none",
color: "#334",
fontSize: "1.1em",
}}
href={"/about"}
>
About
</Link>
<Link
style={{
fontWeight: "500",
textDecoration: "none",
color: "#334",
fontSize: "1.1em",
}}
href={"/resources"}
>
Resources
</Link>
<Link
style={{
fontWeight: "500",
textDecoration: "none",
color: "#334",
fontSize: "1.1em",
}}
href={"/knowledgebase"}
>
Knowledge base
</Link>
<Link
style={{
fontWeight: "500",
textDecoration: "none",
color: "#334",
fontSize: "1.1em",
}}
href={"/help"}
>
Help &amp; guides
</Link>
</Box>
</Box>
);
About
</Link>
<Link
style={{
fontWeight: "500",
textDecoration: "none",
color: "#334",
fontSize: "1.1em",
}}
href={"/resources"}
>
Resources
</Link>
<Link
style={{
fontWeight: "500",
textDecoration: "none",
color: "#334",
fontSize: "1.1em",
}}
href={"/knowledgebase"}
>
Knowledge base
</Link>
<Link
style={{
fontWeight: "500",
textDecoration: "none",
color: "#334",
fontSize: "1.1em",
}}
href="https://knhts-staging.health.go.ke/moh-healthdocs/books/kenya-national-health-terminology-service"
target="_blank"
rel="noopener noreferrer"
>
Help &amp; guides
</Link>
</Box>
</Box>
);
}

0 comments on commit 6522fe5

Please sign in to comment.