Skip to content

Commit

Permalink
Add footer (WIP), edit body style
Browse files Browse the repository at this point in the history
  • Loading branch information
emscb committed Apr 7, 2024
1 parent 6551ab2 commit 6dbca8a
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
48 changes: 48 additions & 0 deletions src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import React from "react";
import styled from "styled-components";

const Footer = () => {
return (
<Container>
<Sponsors></Sponsors>
<About></About>
<Fixed></Fixed>
</Container>
);
};

export default Footer;

const Container = styled.div`
width: 100%;
position: absolute;
bottom: 0;
`;

const Sponsors = styled.div`
//////////////////////////
background-color: deeppink;
//////////////////////////
`;

const About = styled.div`
width: 100%;
height: 12rem;
//////////////////////////
background-color: gray;
//////////////////////////
`;

const Fixed = styled.div`
position: fixed;
bottom: 0;
width: 100%;
height: 2.5rem;
//////////////////////////
background-color: skyblue;
//////////////////////////
`;
2 changes: 1 addition & 1 deletion src/components/Nav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const Container = styled.div`
align-items: center;
/////////////////////////
border: 1px solid black;
background-color: bisque;
/////////////////////////
`;

Expand Down
2 changes: 2 additions & 0 deletions src/routes.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Footer from "components/Footer";
import Nav from "components/Nav";
import Home from "pages/Home";
import SponsorList from "pages/Sponsor";
Expand All @@ -14,6 +15,7 @@ const Router = () => {
<Route path="/404" />
<Route path="*" element={<Navigate replace to={"/404"} />} />
</Routes>
<Footer />
</BrowserRouter>
);
};
Expand Down
4 changes: 3 additions & 1 deletion src/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
body {
margin: 0 16px;
margin: 0;

min-height: 100vh;

position: relative;
}

0 comments on commit 6dbca8a

Please sign in to comment.