changed footer

This commit is contained in:
mmacierzanka committed 2021-10-08 20:38:21 +02:00
1 parent 577564691e
commit 2be8cbd3b0
3 files changed
+27 -23

No files matched your search

+12 -10
View File
@@ -41,16 +41,18 @@ export const App = () => {
return ( return (
<Router> <Router>
<Navbar /> <Navbar />
<Switch> <div style={{ minHeight: "88vh" }}>
<Route exact path="/dashboard" component={Dashboard} /> <Switch>
<Route exact path="/credits" component={Credits} /> <Route exact path="/dashboard" component={Dashboard} />
<Route exact path="/"> <Route exact path="/credits" component={Credits} />
<Home /> <Route exact path="/">
</Route> <Home />
<Route exact path="/create" component={CreateEvent} /> </Route>
{routes} <Route exact path="/create" component={CreateEvent} />
<Route component={NotFound} /> {routes}
</Switch> <Route component={NotFound} />
</Switch>
</div>
<Footer /> <Footer />
</Router> </Router>
); );
+1 -1
View File
@@ -5,7 +5,7 @@ export const Footer = () => {
return ( return (
<div className={styles.footer}> <div className={styles.footer}>
<Link aria-label="Credits" to="/credits" style={{ textDecoration: "none" }}> <Link aria-label="Credits" to="/credits" style={{ textDecoration: "none" }}>
<span className={styles.txt}>credits</span> <span className={styles.txt}>Credits</span>
</Link> </Link>
</div> </div>
); );
+14 -12
View File
@@ -1,15 +1,17 @@
@import "../../index.scss"; @import "../../index.scss";
.footer{
text-align:right; .footer {
width: 100%;; position: relative;
height: 4vh; text-align: center;
width: 100%;
margin: 5px 0;
} }
.txt{ .txt {
color:rgba(0, 0, 0, 0.70); color: rgb(100, 100, 100);
margin-right: 4vw; font-size: 0.9em;
font-size: 1.2em; cursor: pointer;
cursor:pointer; transition: color 0.3s ease;
&:hover{ &:hover {
color:black; color: black;
} }
} }