Download tabler-react/src/components/Site/SiteFooter.react.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 2.85 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Site/SiteFooter.react.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Site/SiteFooter.react.js
-
curl -L -o SiteFooter.react.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Site/SiteFooter.react.js
2.85 kB
| // @flow | |
| import * as React from "react"; | |
| import { Container, Grid, List } from "../../components"; | |
| export type Props = {| | |
| /** | |
| * An array of the 8 links displayed in the first footer bar | |
| */ | |
| +links?: Array<React.Node>, | |
| /** | |
| * The text block displayed next to the links | |
| */ | |
| +note?: string, | |
| /** | |
| * The content of the very bottom copyright notice space | |
| */ | |
| +copyright?: React.Node, | |
| /** | |
| * The content of the very bottom nav space | |
| */ | |
| +nav?: React.Node, | |
| |}; | |
| /** | |
| * The footer of your website | |
| */ | |
| const SiteFooter = ({ links, note, copyright, nav }: Props): React.Node => ( | |
| <React.Fragment> | |
| {(links || note) && ( | |
| <div className="footer"> | |
| <Container> | |
| <Grid.Row> | |
| <Grid.Col lg={8}> | |
| <Grid.Row> | |
| {links && ( | |
| <React.Fragment> | |
| <Grid.Col width={6} md={3}> | |
| <List unstyled={true} className="mb-0"> | |
| <List.Item>{links[0]}</List.Item> | |
| <List.Item>{links[1]}</List.Item> | |
| </List> | |
| </Grid.Col> | |
| <Grid.Col width={6} md={3}> | |
| <List unstyled={true} className="mb-0"> | |
| <List.Item>{links[2]}</List.Item> | |
| <List.Item>{links[3]}</List.Item> | |
| </List> | |
| </Grid.Col> | |
| <Grid.Col width={6} md={3}> | |
| <List unstyled={true} className="mb-0"> | |
| <List.Item>{links[4]}</List.Item> | |
| <List.Item>{links[5]}</List.Item> | |
| </List> | |
| </Grid.Col> | |
| <Grid.Col width={6} md={3}> | |
| <List unstyled={true} className="mb-0"> | |
| <List.Item>{links[6]}</List.Item> | |
| <List.Item>{links[7]}</List.Item> | |
| </List> | |
| </Grid.Col> | |
| </React.Fragment> | |
| )} | |
| </Grid.Row> | |
| </Grid.Col> | |
| <Grid.Col lg={4} className="mt-4 mt-lg-0"> | |
| {note} | |
| </Grid.Col> | |
| </Grid.Row> | |
| </Container> | |
| </div> | |
| )} | |
| {(nav || copyright) && ( | |
| <footer className="footer"> | |
| <Container> | |
| <Grid.Row className="align-items-center flex-row-reverse"> | |
| <Grid.Col auto={true} className="ml-auto"> | |
| <Grid.Row className="align-items-center">{nav}</Grid.Row> | |
| </Grid.Col> | |
| <Grid.Col width={12} lgAuto className="mt-3 mt-lg-0 text-center"> | |
| {copyright} | |
| </Grid.Col> | |
| </Grid.Row> | |
| </Container> | |
| </footer> | |
| )} | |
| </React.Fragment> | |
| ); | |
| SiteFooter.displayName = "Site.Footer"; | |
| export default SiteFooter; | |