Download react-crypto-tracker/src/components/Banner/Banner.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-crypto-tracker/src/components/Banner/Banner.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-crypto-tracker/src/components/Banner/Banner.js
-
curl -L -o Banner.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-crypto-tracker/src/components/Banner/Banner.js
1.44 kB
| import { Container, makeStyles, Typography } from "@material-ui/core"; | |
| import Carousel from "./Carousel"; | |
| const useStyles = makeStyles((theme) => ({ | |
| banner: { | |
| backgroundImage: "url(./banner2.jpg)", | |
| }, | |
| bannerContent: { | |
| height: 400, | |
| display: "flex", | |
| flexDirection: "column", | |
| paddingTop: 25, | |
| justifyContent: "space-around", | |
| }, | |
| tagline: { | |
| display: "flex", | |
| height: "40%", | |
| flexDirection: "column", | |
| justifyContent: "center", | |
| textAlign: "center", | |
| }, | |
| carousel: { | |
| height: "50%", | |
| display: "flex", | |
| alignItems: "center", | |
| }, | |
| })); | |
| function Banner() { | |
| const classes = useStyles(); | |
| return ( | |
| <div className={classes.banner}> | |
| <Container className={classes.bannerContent}> | |
| <div className={classes.tagline}> | |
| <Typography | |
| variant="h2" | |
| style={{ | |
| fontWeight: "bold", | |
| marginBottom: 15, | |
| fontFamily: "Montserrat", | |
| }} | |
| > | |
| Crypto Hunter | |
| </Typography> | |
| <Typography | |
| variant="subtitle2" | |
| style={{ | |
| color: "darkgrey", | |
| textTransform: "capitalize", | |
| fontFamily: "Montserrat", | |
| }} | |
| > | |
| Get all the Info regarding your favorite Crypto Currency | |
| </Typography> | |
| </div> | |
| <Carousel /> | |
| </Container> | |
| </div> | |
| ); | |
| } | |
| export default Banner; | |