Skip to content

Commit 5eb4d17

Browse files
fix(home): dark light theme fix 🐛
1 parent ba9bef7 commit 5eb4d17

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

src/modules/home/views/home.view.vue

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@
5858
</v-container>
5959
</section>
6060

61-
<section id="features" class="grey lighten-3 py-12">
61+
<section id="features" class="py-12" :style="{background: config.vuetify.theme.themes[theme].surface}">
6262
<v-container class="text-center">
6363
<h2 class="display-2 font-weight-bold mb-3 pb-8">{{ featuresTitle }}</h2>
6464
<v-row>
6565
<v-col v-for="({ icon, title, text }, i) in features" :key="i" cols="12" md="4">
66-
<v-card class="py-12 px-4" color="grey lighten-5" :flat="config.vuetify.theme.flat">
66+
<v-card class="py-12 px-4" :flat="config.vuetify.theme.flat">
6767
<v-theme-provider dark>
6868
<div>
6969
<v-avatar color="primary" size="88">
@@ -82,11 +82,11 @@
8282
<section id="stats" class="black">
8383
<v-parallax
8484
:height="$vuetify.breakpoint.smAndDown ? 700 : 500"
85-
src="https://images.unsplash.com/photo-1510915228340-29c85a43dcfe?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q=80"
85+
:src="stats.background"
8686
>
8787
<v-container fill-height>
8888
<v-row class="mx-auto">
89-
<v-col v-for="[value, title] of stats" :key="title" cols="12" md="3">
89+
<v-col v-for="[value, title] of stats.data" :key="title" cols="12" md="3">
9090
<div class="text-center">
9191
<div class="display-3 font-weight-black mb-4" v-text="value"></div>
9292
<div class="title font-weight-regular text-uppercase" v-text="title"></div>
@@ -97,7 +97,7 @@
9797
</v-parallax>
9898
</section>
9999

100-
<section id="blog" class="py-12">
100+
<section id="blog" class="py-12" :style="{background: config.vuetify.theme.themes[theme].surface}">
101101
<v-container>
102102
<h2
103103
class="display-2 font-weight-bold mb-3 text-uppercase text-center py-8"
@@ -114,13 +114,7 @@
114114
</v-container>
115115
</section>
116116

117-
<v-sheet
118-
id="contact"
119-
dark
120-
tag="section"
121-
class="py-12"
122-
tile
123-
>
117+
<section id="contact" class="py-12">
124118
<v-container>
125119
<h2
126120
class="display-2 font-weight-bold mb-3 text-uppercase text-center py-8"
@@ -145,7 +139,7 @@
145139
</v-row>
146140
</v-theme-provider>
147141
</v-container>
148-
</v-sheet>
142+
</section>
149143
</div>
150144
</template>
151145

@@ -218,12 +212,15 @@ export default {
218212
},
219213
],
220214
contactTitle: 'Contact Us',
221-
stats: [
222-
['24k', 'Github Stars'],
223-
['330+', 'Releases'],
224-
['1m', 'Downloads/mo'],
225-
['5m', 'Total Downloads'],
226-
],
215+
stats: {
216+
background: 'https://images.unsplash.com/photo-1510915228340-29c85a43dcfe?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q=80',
217+
data: [
218+
['24k', 'Github Stars'],
219+
['330+', 'Releases'],
220+
['1m', 'Downloads/mo'],
221+
['5m', 'Total Downloads'],
222+
],
223+
},
227224
};
228225
},
229226
computed: {

0 commit comments

Comments
 (0)