6
6
7
7
<template >
8
8
<!-- Student Resources -->
9
- <div id =" resources" class =" content" >
9
+ <div id =" student- resources" class =" content" >
10
10
<v-container class =" resource--styles" >
11
11
<HeaderTitle title =" STUDENT RESOURCES" />
12
12
13
- <v-row no-gutters justify =" space-between" >
14
- <v-col xs =" 12" sm =" 7" >
15
- <a target =" _blank" :href =" resources.big_box_1.link" >
16
- <div data-cy =" resources-box" class =" box big" >
17
- <h2 >{{ resources.big_box_1.title }}</h2 >
18
- <h3 >{{ resources.big_box_1.description }}</h3 >
19
- <v-img data-cy =" resources-img" :src =" resources.big_box_1.src" contain class =" image" />
13
+ <v-row justify =" space-between" >
14
+ <v-col cols =" 12" sm =" 4" >
15
+ <!-- Jobs -->
16
+ <a target =" _blank" :href =" resources.jobs_board.link" >
17
+ <div data-cy =" resources-box" class =" box primary rounded-lg" >
18
+ <h2 >{{ resources.jobs_board.title }}</h2 >
19
+ <h3 >{{ resources.jobs_board.description }}</h3 >
20
+ <v-img
21
+ data-cy =" resources-img"
22
+ max-height =" 80px"
23
+ position =" top"
24
+ :src =" resources.jobs_board.src"
25
+ class =" image hidden-xs-only"
26
+ />
20
27
</div >
21
28
</a >
22
29
</v-col >
23
- <v-col xs =" 12" sm =" 4" >
24
- <a target =" _blank" :href =" resources.small_box_1.link" >
25
- <div data-cy =" resources-box" class =" box small rounded-lg hidden-xs-only" >
26
- <h2 >{{ resources.small_box_1.title }}</h2 >
27
- <v-img data-cy =" resources-img" :src =" resources.small_box_1.src" contain class =" image" />
30
+ <v-col cols =" 12" sm =" 4" >
31
+ <!-- CompClub -->
32
+ <a target =" _blank" :href =" resources.comp_club.link" >
33
+ <div data-cy =" resources-box" class =" box secondary rounded-lg" >
34
+ <h2 >{{ resources.comp_club.title }}</h2 >
35
+ <h3 class =" hidden-sm-above" >{{ resources.comp_club.description }}</h3 >
36
+ <div class =" flex-grow-1" ></div >
37
+ <v-img
38
+ data-cy =" resources-img"
39
+ max-height =" 80px"
40
+ position =" top"
41
+ :src =" resources.comp_club.src"
42
+ class =" image hidden-xs-only"
43
+ />
28
44
</div >
29
45
</a >
30
46
</v-col >
31
- <v-col xs =" 12" sm =" 4" >
32
- <a target =" _blank" :href =" resources.small_box_2.link" >
33
- <div data-cy =" resources-box" class =" box small rounded-lg hidden-xs-only" >
34
- <h2 >{{ resources.small_box_2.title }}</h2 >
35
- <v-img data-cy =" resources-img" :src =" resources.small_box_2.src" class =" image" />
47
+ <v-col cols =" 12" sm =" 4" >
48
+ <!-- Notangles -->
49
+ <a target =" _blank" :href =" resources.notangles.link" >
50
+ <div data-cy =" resources-box" class =" box primary rounded-lg" >
51
+ <h2 >{{ resources.notangles.title }}</h2 >
52
+ <h3 >{{ resources.notangles.description }}</h3 >
53
+ <v-img
54
+ data-cy =" resources-img"
55
+ max-height =" 80px"
56
+ :src =" resources.notangles.src"
57
+ position =" top"
58
+ class =" image hidden-xs-only"
59
+ />
36
60
</div >
37
61
</a >
38
62
</v-col >
39
- <v-col xs =" 12" sm =" 7" >
40
- <a target =" _blank" :href =" resources.small_box_2.link" >
41
- <div data-cy =" resources-box" class =" box big rounded-lg" >
42
- <h2 >{{ resources.big_box_2.title }}</h2 >
43
- <h3 >{{ resources.big_box_2.description }}</h3 >
44
- <v-img data-cy =" resources-img" :src =" resources.big_box_2.src" class =" image" />
63
+ <v-col cols =" 12" sm =" 12" >
64
+ <!-- Media -->
65
+ <a target =" _blank" :href =" resources.media.link" >
66
+ <div data-cy =" resources-box" class =" box secondary rounded-lg" >
67
+ <h2 >{{ resources.media.title }}</h2 >
68
+ <h3 >{{ resources.media.description }}</h3 >
69
+ <v-img
70
+ data-cy =" resources-img"
71
+ max-height =" 100px"
72
+ :src =" resources.media.src"
73
+ position =" top"
74
+ class =" image hidden-xs-only"
75
+ />
76
+ </div >
77
+ </a >
78
+ </v-col >
79
+ <v-col cols =" 12" sm =" 6" >
80
+ <!-- First year guide -->
81
+ <a target =" _blank" :href =" resources.fy_guide.link" >
82
+ <div data-cy =" resources-box" class =" box primary rounded-lg" >
83
+ <h2 >{{ resources.fy_guide.title }}</h2 >
84
+ <h3 >{{ resources.fy_guide.description }}</h3 >
85
+ <v-img
86
+ data-cy =" resources-img"
87
+ :src =" resources.fy_guide.src"
88
+ position =" top"
89
+ class =" image hidden-xs-only flex-grow-1"
90
+ />
91
+ </div >
92
+ </a >
93
+ </v-col >
94
+ <v-col cols =" 12" sm =" 6" >
95
+ <!-- Preenrollment guide -->
96
+ <a target =" _blank" :href =" resources.pe_guide.link" >
97
+ <div data-cy =" resources-box" class =" box secondary rounded-lg" >
98
+ <h2 >{{ resources.pe_guide.title }}</h2 >
99
+ <h3 >{{ resources.pe_guide.description }}</h3 >
100
+ <v-img
101
+ data-cy =" resources-img"
102
+ position =" top"
103
+ :src =" resources.pe_guide.src"
104
+ class =" image align hidden-xs-only"
105
+ />
45
106
</div >
46
107
</a >
47
108
</v-col >
@@ -59,27 +120,40 @@ export default {
59
120
},
60
121
data : () => ({
61
122
resources: {
62
- big_box_1 : {
123
+ jobs_board : {
63
124
link: ' https://jobsboard.csesoc.unsw.edu.au/login' ,
64
125
title: ' Job Board' ,
65
126
description: ' A place where CSESoc students can look for relevant job opportunities.' ,
66
127
src: require (' ../../assets/resource-job-board.png' )
67
128
},
68
- small_box_1 : {
129
+ fy_guide : {
69
130
link: ' https://media.csesoc.org.au/first-year-guide/' ,
70
131
title: ' First Year Guide' ,
132
+ description: ' The ultimate guide to conquering first year at CSE.' ,
71
133
src: require (' ../../assets/resource-first-year-guide.png' )
72
134
},
73
- small_box_2 : {
135
+ media : {
74
136
link: ' https://media.csesoc.org.au/' ,
75
137
title: ' CSESOC Media' ,
138
+ description: ' All things content' ,
76
139
src: require (' ../../assets/resource-media.png' )
77
140
},
78
- big_box_2: {
141
+ comp_club: {
142
+ link: ' https://compclub.csesoc.unsw.edu.au/' ,
143
+ title: ' Comp Club' ,
144
+ description: ' Promoting computing to high school students'
145
+ },
146
+ notangles: {
79
147
link: ' https://notangles.csesoc.unsw.edu.au/' ,
80
148
title: ' Notangles' ,
81
- description: ' Trimester timetabling tool - no more timetable tangles!' ,
149
+ description: ' Trimster timetabling tool - no more timetable tangles!' ,
82
150
src: require (' ../../assets/resource-notangles.png' )
151
+ },
152
+ pe_guide: {
153
+ link: ' https://media.csesoc.org.au/pre-enrolment-guide/' ,
154
+ title: ' Pre-enrolment Guide' ,
155
+ description: ' Learn how to get a headstart on uni' ,
156
+ src: require (' ../../assets/resource-pre-enrolment-guide.jpg' )
83
157
}
84
158
}
85
159
})
@@ -88,6 +162,9 @@ export default {
88
162
89
163
<style lang="scss" scoped>
90
164
// Student resources
165
+ .content {
166
+ padding-top : 50px ;
167
+ }
91
168
.resource--styles {
92
169
color : $light-color ;
93
170
@@ -108,30 +185,36 @@ export default {
108
185
flex-direction : column ;
109
186
height : 100% ;
110
187
overflow : hidden ;
188
+ max-height : 250px ;
189
+ padding-top : 2vh ;
111
190
112
- & .big {
191
+ & .primary {
113
192
@include linearGradient ($primary-color , $secondary-color-2 );
114
193
}
115
- & .small {
194
+ & .secondary {
116
195
@include linearGradient ($primary-color , $secondary-color-1 );
117
196
}
118
197
119
198
h2 {
120
- padding-top : $space-xs ;
121
- padding-bottom : $space-xxs ;
199
+ padding-top : calc ( $space-xs / 2 ) ;
200
+ font-size : 1.6 rem ;
122
201
margin : 0 ;
123
202
padding-left : 35px ;
124
203
padding-right : 35px ;
204
+ // margin-bottom: 0px;
125
205
}
126
206
127
207
h3 {
128
208
padding-left : 35px ;
129
209
padding-right : 35px ;
210
+ font-size : 1.2rem ;
211
+ // margin-bottom: 0px;
130
212
}
131
213
132
214
.image {
133
215
border-bottom-left-radius : 10px ;
134
216
border-bottom-right-radius : 10px ;
217
+ top : 0 ;
135
218
transition : transform 0.2s ;
136
219
}
137
220
}
0 commit comments