File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 62
62
:key =" company.name"
63
63
:aria-label =" `${company.name} testimonial`"
64
64
:style =" `background-image: url(${publicPath}img/carousel-company-icons/${company.imgName})`"
65
- class =" img-container-small mr-small mr-small bg-white card mt-small"
66
- :class =" activeCompanyIndex === i ? 'logo-active border-black border-thin' : ''"
65
+ class =" img-container-small bg-white card mt-small"
66
+ :class =" [
67
+ activeCompanyIndex === i ? 'logo-active border-black border-thin' : '',
68
+ i === companiesShuffled.length - 1 ? 'mr-none' : 'mr-small'
69
+ ]"
67
70
@click =" activeCompanyIndex = i" />
68
71
</div >
69
72
<button class =" theme mt-small" >
@@ -138,8 +141,8 @@ export default {
138
141
background-position : center ;
139
142
}
140
143
.img-container-small {
141
- width : 3 rem ;
142
- height : 3 rem ;
144
+ width : 3.15 rem ;
145
+ height : 3.15 rem ;
143
146
background-repeat : no-repeat ;
144
147
background-size : 85% ;
145
148
background-position : center ;
Original file line number Diff line number Diff line change 4
4
<div class =" col-sm-12" >
5
5
<h3 >404 - Not found</h3 >
6
6
</div >
7
- <img :src =" `${publicPath}img/RF-white.svg`" />
7
+ <img v-if =" isDarkMode" :src =" `${publicPath}img/RF-white.svg`" />
8
+ <img v-else :src =" `${publicPath}img/RF.svg`" class =" mt-small" />
8
9
<div class =" col-sm-12 mt-medium" >
9
10
<router-link :to =" { name: 'Home' }" >
10
11
Back to home
18
19
export default {
19
20
name: ' NotFound' ,
20
21
data : () => ({
21
- publicPath: process .env .BASE_URL
22
- })
22
+ publicPath: process .env .BASE_URL ,
23
+ isDarkMode: false
24
+ }),
25
+ created () {
26
+ this .isDarkMode = window .matchMedia && window .matchMedia (' (prefers-color-scheme: dark)' ).matches
27
+ }
23
28
}
24
29
</script >
You can’t perform that action at this time.
0 commit comments