-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAdviceView.tsx
142 lines (129 loc) · 3.35 KB
/
AdviceView.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
import Image from "next/image";
import styled from "styled-components";
import InfoCard from "./InfoCard";
import Example from "../../../assets/example.png";
import MakingFriends from "../../../assets/makingfriends.png";
import FirstDay from "../../../assets/firstday.png";
import WishIKnew from "../../../assets/wishiknew.png";
import StudyTips from "../../../assets/studytips.png";
import { device } from "../../../styles/device";
const MainButton = styled.button`
display: flex;
justify-content: center;
align-items: center;
outline: none;
border: 0;
border-radius: 5px;
font-weight: bold;
color: white;
background-color: #beb8e7;
cursor: pointer;
:hover {
background-image: linear-gradient(rgb(0 0 0/40%) 0 0);
}
height: 48px;
width: 288px;
font-size: 18px;
@media ${device.laptop} {
height: 60px;
width: 320px;
font-size: 20px;
}
@media ${device.laptopL} {
height: 80px;
width: 400px;
font-size: 26px;
}
@media ${device.desktop} {
height: 100px;
width: 480px;
font-size: 30px;
}
`;
const MainContainer = styled.div`
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
`;
const InfoCardsContainer = styled.div`
display: flex;
flex-direction: column;
overflow-y: auto;
height: 70vh;
@media ${device.laptop} {
justify-content: space-around;
flex-direction: row;
position: relative;
height: fit-content;
}
`;
const MainButtonContainer = styled.div`
display: flex;
align-items: center;
justify-content: space-around;
padding-top: 12px;
@media ${device.laptop} {
padding-top: 36px;
}
@media ${device.laptopL} {
padding-top: 48px;
}
@media ${device.desktop} {
padding-top: 56px;
}
`;
const info = [
{
title: "A Guide to Making Friends at UNSW",
text: "In this video, get all the real tips from your peers on ways to make new friends at UNSW!",
image: MakingFriends,
link: "https://media.csesoc.org.au/making-friends/",
},
{
title: "CSESoc Subcom",
text: "Pack your bag for the first day of uni and we'll tell you what CSESoc Subcom to join!",
image: FirstDay,
link: "https://media.csesoc.org.au/quiz-subcom/",
},
{
title: "Optimise Your Study Life",
text: "The first of a two-part series, Alex has compiled all the tips and habits you need to optimise your study life!",
image: StudyTips,
link: "https://media.csesoc.org.au/study-tips-and-habits/",
},
{
title: "What I wish I knew as a First Year",
text: "Join Raathan, Sunny, Paul, Angeni and Ryan as they discuss their first year university experiences!",
image: WishIKnew,
link: "https://media.csesoc.org.au/2020-roundtable/",
},
];
export default function AdviceView() {
return (
<MainContainer>
<InfoCardsContainer>
{info.map((info, index) => (
<InfoCard
key={index}
title={info.title}
text={info.text}
image={info.image}
link={info.link}
/>
))}
</InfoCardsContainer>
<MainButtonContainer>
<MainButton
as="a"
href="https://media.csesoc.org.au/first-year-guide/"
target="_blank"
rel="noreferrer"
>
Check out our First Year Guide
</MainButton>
</MainButtonContainer>
</MainContainer>
);
}