88-->
99<template >
1010 <div >
11- <header id =" showcase" >
12- <v-img max-width =" 80vw" max-height =" 30vh" contain src =" @/assets/csesocwhiteblue.png" />
13- </header >
1411 <div class =" down-button" @click =" onClickScroll" @scroll.passive =" handleScroll" ref =" downButton" >
1512 <img src =" @/assets/downbutton.png" />
1613 </div >
1714 <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 >
1916 <h2 class =" text-h4" >
2017 Principal <br />
2118 Sponsors
2421 <div
2522 v-for =" (sponsor, index) in tierOne"
2623 :key =" sponsor.id"
27- :style =" marginStyle(index, largeLogoFilter )"
24+ :style =" marginStyle()"
2825 >
2926 <div class =" logo-margin" >
3027 <img
3128 class =" large-logo logo"
32- :src =" `@ /assets/sponsors/${ sponsor.logo}`"
29+ :src =" `${require('.. /assets/sponsors/' + sponsor.logo) }`"
3330 v-on:click =" onClickModal(sponsor)"
3431 />
3532 </div >
4542 Sponsors
4643 </h2 >
4744 <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()" >
4946 <div class =" logo-margin" >
5047 <img
5148 class =" mid-logo logo"
52- :src =" `@ /assets/sponsors/${ sponsor.logo}`"
49+ :src =" `${require('.. /assets/sponsors/' + sponsor.logo) }`"
5350 v-on:click =" onClickModal(sponsor)"
5451 />
5552 </div >
6865 <div
6966 v-for =" (sponsor, index) in tierThree"
7067 :key =" sponsor.id"
71- :style =" marginStyle(index, smallLogoFilter )"
68+ :style =" marginStyle()"
7269 >
7370 <div class =" logo-margin" >
7471 <img
7572 class =" small-logo logo"
76- :src =" `@ /assets/sponsors/${ sponsor.logo}`"
73+ :src =" `${require('.. /assets/sponsors/' + sponsor.logo) }`"
7774 v-on:click =" onClickModal(sponsor)"
7875 />
7976 </div >
8582 </v-container >
8683 <div style =" clear :both ;" ></div >
8784 </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 " >
8986 </SponsorModal >
9087 </div >
9188</template >
@@ -114,13 +111,13 @@ export default {
114111 computed: {
115112 // functions to determine sizing category of sponsor based on their value
116113 tierOne () {
117- return this .sponsors .filter ((x ) => x .tier === 2 );
114+ return this .sponsors .filter ((x ) => x .level === ' P ' );
118115 },
119116 tierTwo () {
120- return this .sponsors .filter ((x ) => x .tier === 1 );
117+ return this .sponsors .filter ((x ) => x .level === ' M ' );
121118 },
122119 tierThree () {
123- return this .sponsors .filter ((x ) => x .tier === 0 );
120+ return this .sponsors .filter ((x ) => x .level === ' A ' );
124121 }
125122 },
126123 mounted () {
@@ -130,14 +127,8 @@ export default {
130127 window .removeEventListener (' scroll' , this .handleScroll , true );
131128 },
132129 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%' };
141132 return style;
142133 },
143134 onClickModal (sponsor ) {
@@ -202,25 +193,6 @@ h2 {
202193 max-width : 150px ;
203194}
204195
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-
224196.border {
225197 border-left : 1px groove black ;
226198 padding-bottom : 2% ;
230202}
231203
232204.margin {
233- margin-left : 5% ;
234- margin-bottom : 15% ;
205+ margin : 5% ;
235206}
236207
237208.logo-margin {
@@ -249,18 +220,18 @@ h2 {
249220}
250221
251222.large-logo {
252- max-width : 225 px ;
253- max-height : 205 px ;
223+ max-width : 300 px ;
224+ max-height : 200 px ;
254225}
255226
256227.mid-logo {
257- max-width : 175 px ;
258- max-height : 205 px ;
228+ max-width : 200 px ;
229+ max-height : 150 px ;
259230}
260231
261232.small-logo {
262- max-width : 125 px ;
263- max-height : 205 px ;
233+ max-width : 150 px ;
234+ max-height : 150 px ;
264235}
265236
266237.down-button {
0 commit comments