Skip to content

Commit 47b2fad

Browse files
author
Sami Kolari
committed
fix 404 logo color
1 parent e5d44c0 commit 47b2fad

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

src/components/CompanyCarousel.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@
6262
:key="company.name"
6363
:aria-label="`${company.name} testimonial`"
6464
: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+
]"
6770
@click="activeCompanyIndex = i" />
6871
</div>
6972
<button class="theme mt-small">
@@ -138,8 +141,8 @@ export default {
138141
background-position: center;
139142
}
140143
.img-container-small {
141-
width: 3rem;
142-
height: 3rem;
144+
width: 3.15rem;
145+
height: 3.15rem;
143146
background-repeat: no-repeat;
144147
background-size: 85%;
145148
background-position: center;

src/views/NotFound.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<div class="col-sm-12">
55
<h3>404 - Not found</h3>
66
</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" />
89
<div class="col-sm-12 mt-medium">
910
<router-link :to="{ name: 'Home' }">
1011
Back to home
@@ -18,7 +19,11 @@
1819
export default {
1920
name: 'NotFound',
2021
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+
}
2328
}
2429
</script>

0 commit comments

Comments
 (0)