Footer done

This commit is contained in:
2022-02-03 21:03:39 -03:00
parent 9f4ceb14e2
commit 1a3bab6484
3 changed files with 63 additions and 13 deletions

View File

@@ -12,6 +12,7 @@ import {
import Crypto from './components/Crypto/Crypto'; import Crypto from './components/Crypto/Crypto';
import CryptoGalleryContainer from './components/CryptoGallery/CryptoGalleryContainer' import CryptoGalleryContainer from './components/CryptoGallery/CryptoGalleryContainer'
import Footer from './components/Footer/Footer';
function App() { function App() {
@@ -22,17 +23,17 @@ function App() {
return ( return (
<GlobalStyles> <GlobalStyles>
<Router>
<Router> <Switch>
<Switch> <Route path="/crypto/:cryptoID">
<Route path="/crypto/:cryptoID"> <Crypto />
<Crypto /> </Route>
</Route> <Route path="/">
<Route path="/"> <CryptoGalleryContainer />
<CryptoGalleryContainer /> </Route>
</Route> </Switch>
</Switch> </Router>
</Router> <Footer/>
</GlobalStyles> </GlobalStyles>
); );
} }

View File

@@ -49,10 +49,9 @@ const CryptoGalleryItem = ({CryptoStyles, data, cryptoPrices, dates, index, cryp
lg={4} lg={4}
md={6} md={6}
sm={12} sm={12}
onClick={() => {if (!loading) history.push(`/crypto/${data.id}`)}}
style={{cursor: loading ? 'initial' : 'clicker'}} style={{cursor: loading ? 'initial' : 'clicker'}}
> >
<Card className="card"> <Card className="card" onClick={() => {if (!loading) history.push(`/crypto/${data.id}`)}}>
<CardContent <CardContent
className="container" className="container"
> >

View File

@@ -0,0 +1,50 @@
import React from 'react'
/**
*
* .made-with-love a {
color: #f7f7f7
}
.made-with-love {
color:rgb(185, 185, 185);
margin-top: auto;
width: 100%;
padding-top: 5vh;
padding-bottom: 5vh;
padding-left: 3vw;
box-sizing: border-box;
}
.made-with-love.dark-mode-component {
background-color: $main-color-dark;
}
*/
const Footer = () => {
return (
<footer
style={{
fontFamily: "Raleway",
color:"#fff",
marginTop: "3vh",
width: "100%",
paddingTop: "4vh",
paddingBottom: "4vh",
paddingLeft: "3vw",
boxSizing: "border-box",
backgroundColor: "#00000036"
}}
>
Made with 💓 by <a style={{color: "#1f5ebd"}} href="https://porfolio-franp.netlify.app" rel="noreferrer" target="_blank">Francisco Pessano</a>
</footer>
)
}
export default Footer