-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathFooter.tsx
105 lines (92 loc) · 2.63 KB
/
Footer.tsx
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import React from "react";
import Image from "next/image";
import styled from "styled-components";
import CSESocLogo from "../../../public/assets/logo_white.svg";
import DiscordLogo from "../../../public/assets/socials/discord.svg";
import FacebookLogo from "../../../public/assets/socials/facebook.svg";
import InstagramLogo from "../../../public/assets/socials/instagram.svg";
import YoutubeLogo from "../../../public/assets/socials/youtube.svg";
import SpotifyLogo from "../../../public/assets/socials/spotify.svg";
import Link from "next/link";
import { device } from "../../styles/device";
export const ImagesContainer = styled.div`
width: 100%;
right: 0;
display: flex;
justify-content: space-between;
@media ${device.tablet} {
width: 75%;
float: right;
}
`
const FooterComponent = styled.footer`
background-color: #A09FE3;
width: 100vw;
padding: 2rem;
display: flex;
flex-direction: column;
position: static;
bottom: 0;
@media ${device.tablet} {
flex-direction: row;
}
`;
const Logo = styled.div`
width: 50%;
display: flex;
padding-bottom: 5vmin;
@media ${device.tablet} {
padding-bottom: 0vmin;
width: 75%;
padding-left: 10vmin;
}
`;
const Details = styled.div`
width: 100%;
text-align: left;
color: white;
font-size: min(3vmin, 32px);
line-height: min(3.5vmin, 45px);
@media ${device.tablet} {
width: 40%;
text-align: right;
padding-right: 10vmin;
}
`;
const Footer: React.FC<{}> = () => {
return (
<FooterComponent>
<Logo>
<Image src={CSESocLogo} alt="CSESoc" />
</Logo>
<Details>
<div>
B03 CSE Building K17, UNSW
<br />
<br /><br />
<ImagesContainer>
<Link href="https://discord.gg/AM4GB5zuB6">
<Image src={DiscordLogo} alt="CSESoc Discord" />
</Link>
<Link href="https://www.facebook.com/csesoc/">
<Image src={FacebookLogo} alt="CSESoc Facebook" />
</Link>
<Link href="https://www.instagram.com/csesoc_unsw/?hl=en">
<Image src={InstagramLogo} alt="CSESoc Instagram" />
</Link>
<Link href="https://www.youtube.com/c/CSESocUNSW">
<Image src={YoutubeLogo} alt="CSESoc Youtube" />
</Link>
<Link href="https://open.spotify.com/show/2h9OxTkeKNznIfNqMMYcxj">
<Image src={SpotifyLogo} alt="Echo Podcast" />
</Link>
</ImagesContainer>
<br /><br />
© 2022 — CSESoc UNSW
</div>
</Details>
</FooterComponent>
);
};
export default Footer;