-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathFooter.tsx
More file actions
67 lines (63 loc) · 2.11 KB
/
Footer.tsx
File metadata and controls
67 lines (63 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import footer from './Footer.module.scss';
import { useContext } from 'react';
import { Link } from 'react-router-dom';
import cn from 'classnames';
import { ScrollToSectContext } from '../../contexts/ScrollToSectContext';
export const Footer = () => {
const { scrollToSect } = useContext(ScrollToSectContext);
return (
<footer className={footer.footer}>
<div className="frame">
<div className="container">
<div className={footer.footer__content}>
<div className={footer.footer__logo__container}>
<Link
to="/"
className={footer.footer__logo}
onClick={() => scrollToSect('top')}
></Link>
</div>
<nav className={cn(footer.footer__nav, footer.nav)}>
<ul className={footer.nav__list}>
<li className={footer.nav__item}>
<Link
to="https://github.com/PolianskyiDmytro/react_phone-catalog"
target="_blank"
className={footer.nav__link}
>
Github
</Link>
</li>
<li className={footer.nav__item}>
<Link
to="https://polianskyidmytro.github.io/PolianskyiDmytroCV/"
target="_blank"
className={footer.nav__link}
>
Contacts
</Link>
</li>
<li className={footer.nav__item}>
<Link
to="https://regulatoryinfo.apple.com/regulatorydata"
target="_blank"
className={footer.nav__link}
>
rights
</Link>
</li>
</ul>
</nav>
<button
type="button"
className={footer['footer__to-top']}
onClick={() => scrollToSect('top')}
>
Back to top
</button>
</div>
</div>
</div>
</footer>
);
};