]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/app/Footer.js
41d0f7ad4233fc3b9ae4f7f3acd9166ada3fb02f
[alttp.git] / resources / js / components / app / Footer.js
1 import React from 'react';
2 import { Col, Nav, Row } from 'react-bootstrap';
3 import { useTranslation } from 'react-i18next';
4 import { LinkContainer } from 'react-router-bootstrap';
5
6 import PrivacyDialog from './PrivacyDialog';
7
8 const Footer = () => {
9         const [showDialog, setShowDialog] = React.useState(false);
10
11         const { t } = useTranslation();
12
13         return <footer className="bg-dark mt-5 px-3 py-5">
14                 <Row>
15                         <Col md={4}>
16                                 <h5>{t('footer.competitions')}</h5>
17                                 <Nav as="ul" className="flex-column">
18                                         <Nav.Item as="li">
19                                                 <LinkContainer to="/tournaments/6">
20                                                         <Nav.Link className="p-0 text-muted" href="/tournaments/6">
21                                                                 Deutsche ALttP Community - Seed der Woche
22                                                         </Nav.Link>
23                                                 </LinkContainer>
24                                         </Nav.Item>
25                                 </Nav>
26                         </Col>
27                         <Col md={4}>
28                                 <h5>{t('footer.resources')}</h5>
29                                 <Nav as="ul" className="flex-column">
30                                         <Nav.Item as="li">
31                                                 <Nav.Link
32                                                         className="p-0 text-muted"
33                                                         href="https://alttp-wiki.net/"
34                                                         target="_blank"
35                                                 >
36                                                         {t('footer.alttpwiki')}
37                                                 </Nav.Link>
38                                         </Nav.Item>
39                                         <Nav.Item as="li">
40                                                 <LinkContainer to="/tech">
41                                                         <Nav.Link className="p-0 text-muted" href="/tech">
42                                                                 {t('footer.tech')}
43                                                         </Nav.Link>
44                                                 </LinkContainer>
45                                         </Nav.Item>
46                                         <Nav.Item as="li">
47                                                 <LinkContainer to="/map">
48                                                         <Nav.Link className="p-0 text-muted" href="/map">
49                                                                 {t('footer.map')}
50                                                         </Nav.Link>
51                                                 </LinkContainer>
52                                         </Nav.Item>
53                                         <Nav.Item as="li">
54                                                 <Nav.Link
55                                                         className="p-0 text-muted"
56                                                         href="https://glitchmaps.mfns.dev/"
57                                                         target="_blank"
58                                                 >
59                                                         {t('footer.muffins')}
60                                                 </Nav.Link>
61                                         </Nav.Item>
62                                         <Nav.Item as="li">
63                                                 <LinkContainer to="/schedule">
64                                                         <Nav.Link className="p-0 text-muted" href="/schedule">
65                                                                 {t('footer.schedule')}
66                                                         </Nav.Link>
67                                                 </LinkContainer>
68                                         </Nav.Item>
69                                         <Nav.Item as="li">
70                                                 <Nav.Link
71                                                         className="p-0 text-muted"
72                                                         href="https://wiki.supermetroid.run/"
73                                                         target="_blank"
74                                                 >
75                                                         {t('footer.smwiki')}
76                                                 </Nav.Link>
77                                         </Nav.Item>
78                                 </Nav>
79                         </Col>
80                         <Col md={4}>
81                                 <h5>{t('footer.info')}</h5>
82                                 <Nav as="ul" className="flex-column">
83                                         <Nav.Item as="li">
84                                                 <Nav.Link
85                                                         className="p-0 text-muted"
86                                                         onClick={() => { setShowDialog(true); }}
87                                                 >
88                                                         {t('footer.privacy')}
89                                                 </Nav.Link>
90                                         </Nav.Item>
91                                         <Nav.Item as="li">
92                                                 <Nav.Link
93                                                         className="p-0 text-muted"
94                                                         href="https://discord.gg/5zuANcS"
95                                                         target="_blank"
96                                                 >
97                                                         {t('footer.alttpde')}
98                                                 </Nav.Link>
99                                         </Nav.Item>
100                                         <Nav.Item as="li">
101                                                 <Nav.Link
102                                                         className="p-0 text-muted"
103                                                         href="https://discord.com/invite/GGdrbnQmVs"
104                                                         target="_blank"
105                                                 >
106                                                         {t('footer.smd')}
107                                                 </Nav.Link>
108                                         </Nav.Item>
109                                         <Nav.Item as="li">
110                                                 <Nav.Link
111                                                         className="p-0 text-muted"
112                                                         href="https://discord.gg/hVw5Zeq"
113                                                         target="_blank"
114                                                 >
115                                                         {t('footer.connect')}
116                                                 </Nav.Link>
117                                         </Nav.Item>
118                                 </Nav>
119                         </Col>
120                 </Row>
121                 <p className="pt-5 text-center text-muted">{t('footer.contact')}</p>
122                 <PrivacyDialog onHide={() => { setShowDialog(false); }} show={showDialog} />
123         </footer>;
124 };
125
126 export default Footer;