8
8
-->
9
9
<template >
10
10
<div >
11
- <header id =" showcase" >
12
- <v-img max-width =" 80vw" max-height =" 30vh" contain src =" @/assets/csesocwhiteblue.png" />
13
- </header >
14
11
<div class =" down-button" @click =" onClickScroll" @scroll.passive =" handleScroll" ref =" downButton" >
15
12
<img src =" @/assets/downbutton.png" />
16
13
</div >
17
14
<v-container class =" margin" fluid >
18
- <h1 class = " border " font-weight-bold style =" padding :25px ;" >Sponsors</h1 >
15
+ <h1 font-weight-bold style =" padding :25px ;" >Sponsors</h1 >
19
16
<h2 class =" text-h4" >
20
17
Principal <br />
21
18
Sponsors
24
21
<div
25
22
v-for =" (sponsor, index) in tierOne"
26
23
:key =" sponsor.id"
27
- :style =" marginStyle(index, largeLogoFilter )"
24
+ :style =" marginStyle()"
28
25
>
29
26
<div class =" logo-margin" >
30
27
<img
31
28
class =" large-logo logo"
32
- :src =" `@ /assets/sponsors/${ sponsor.logo}`"
29
+ :src =" `${require('.. /assets/sponsors/' + sponsor.logo) }`"
33
30
v-on:click =" onClickModal(sponsor)"
34
31
/>
35
32
</div >
45
42
Sponsors
46
43
</h2 >
47
44
<v-container class =" border" fluid >
48
- <div v-for =" (sponsor, index) in tierTwo" :key =" sponsor.id" :style =" marginStyle(index, midLogoFilter )" >
45
+ <div v-for =" (sponsor, index) in tierTwo" :key =" sponsor.id" :style =" marginStyle()" >
49
46
<div class =" logo-margin" >
50
47
<img
51
48
class =" mid-logo logo"
52
- :src =" `@ /assets/sponsors/${ sponsor.logo}`"
49
+ :src =" `${require('.. /assets/sponsors/' + sponsor.logo) }`"
53
50
v-on:click =" onClickModal(sponsor)"
54
51
/>
55
52
</div >
68
65
<div
69
66
v-for =" (sponsor, index) in tierThree"
70
67
:key =" sponsor.id"
71
- :style =" marginStyle(index, smallLogoFilter )"
68
+ :style =" marginStyle()"
72
69
>
73
70
<div class =" logo-margin" >
74
71
<img
75
72
class =" small-logo logo"
76
- :src =" `@ /assets/sponsors/${ sponsor.logo}`"
73
+ :src =" `${require('.. /assets/sponsors/' + sponsor.logo) }`"
77
74
v-on:click =" onClickModal(sponsor)"
78
75
/>
79
76
</div >
85
82
</v-container >
86
83
<div style =" clear :both ;" ></div >
87
84
</v-container >
88
- <SponsorModal v-model =" dialog" v-bind:title =" currentSponsor.name" v-bind:body =" currentSponsor.detail " >
85
+ <SponsorModal v-model =" dialog" v-bind:title =" currentSponsor.name" v-bind:body =" currentSponsor.description " >
89
86
</SponsorModal >
90
87
</div >
91
88
</template >
@@ -114,13 +111,13 @@ export default {
114
111
computed: {
115
112
// functions to determine sizing category of sponsor based on their value
116
113
tierOne () {
117
- return this .sponsors .filter ((x ) => x .tier === 2 );
114
+ return this .sponsors .filter ((x ) => x .level === ' P ' );
118
115
},
119
116
tierTwo () {
120
- return this .sponsors .filter ((x ) => x .tier === 1 );
117
+ return this .sponsors .filter ((x ) => x .level === ' M ' );
121
118
},
122
119
tierThree () {
123
- return this .sponsors .filter ((x ) => x .tier === 0 );
120
+ return this .sponsors .filter ((x ) => x .level === ' A ' );
124
121
}
125
122
},
126
123
mounted () {
@@ -130,14 +127,8 @@ export default {
130
127
window .removeEventListener (' scroll' , this .handleScroll , true );
131
128
},
132
129
methods: {
133
- marginStyle (index , limit ) {
134
- const style = {};
135
- const row = parseInt (index / limit, 10 );
136
- if (row % 2 === 0 ) {
137
- style[' margin-left' ] = ' 10%' ;
138
- } else {
139
- style[' margin-left' ] = ' 15%' ;
140
- }
130
+ marginStyle () {
131
+ const style = { ' margin-left' : ' 10%' };
141
132
return style;
142
133
},
143
134
onClickModal (sponsor ) {
@@ -202,25 +193,6 @@ h2 {
202
193
max-width : 150px ;
203
194
}
204
195
205
- #showcase {
206
- align-items : center ;
207
- background-blend-mode : darken ;
208
- background-image : url (' ../assets/black_lozenge_@2X.png' );
209
- background-position : center ;
210
- background-repeat : repeat ;
211
- display : flex ;
212
- flex-direction : column ;
213
- height : 100vh ;
214
- width : 100vw ;
215
- justify-content : center ;
216
- text-align : center ;
217
- }
218
-
219
- #showcase img {
220
- max-height : 30vh ;
221
- max-width : 30% ;
222
- }
223
-
224
196
.border {
225
197
border-left : 1px groove black ;
226
198
padding-bottom : 2% ;
230
202
}
231
203
232
204
.margin {
233
- margin-left : 5% ;
234
- margin-bottom : 15% ;
205
+ margin : 5% ;
235
206
}
236
207
237
208
.logo-margin {
@@ -249,18 +220,18 @@ h2 {
249
220
}
250
221
251
222
.large-logo {
252
- max-width : 225 px ;
253
- max-height : 205 px ;
223
+ max-width : 300 px ;
224
+ max-height : 200 px ;
254
225
}
255
226
256
227
.mid-logo {
257
- max-width : 175 px ;
258
- max-height : 205 px ;
228
+ max-width : 200 px ;
229
+ max-height : 150 px ;
259
230
}
260
231
261
232
.small-logo {
262
- max-width : 125 px ;
263
- max-height : 205 px ;
233
+ max-width : 150 px ;
234
+ max-height : 150 px ;
264
235
}
265
236
266
237
.down-button {
0 commit comments