Skip to content

Commit 13bf3ce

Browse files
committed
visual(home): highlight current page
1 parent 496c50e commit 13bf3ce

File tree

1 file changed

+18
-0
lines changed
  • apps/client/src/layouts/HomeLayout/Header

1 file changed

+18
-0
lines changed

apps/client/src/layouts/HomeLayout/Header/Header.vue

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@
8585
flat
8686
class="toolbar-btn"
8787
:to="{ name: 'pricing' }"
88+
:style="{
89+
'background-color':
90+
$route.name === 'pricing'
91+
? 'rgba(255,255,255,0.15)'
92+
: undefined,
93+
}"
8894
/>
8995

9096
<template v-if="isIncluded(quasarMode, ['ssr', 'spa'])">
@@ -95,6 +101,12 @@
95101
flat
96102
class="toolbar-btn"
97103
:to="{ name: 'download' }"
104+
:style="{
105+
'background-color':
106+
$route.name === 'download'
107+
? 'rgba(255,255,255,0.15)'
108+
: undefined,
109+
}"
98110
/>
99111
</template>
100112

@@ -105,6 +117,12 @@
105117
flat
106118
class="toolbar-btn"
107119
:to="{ name: 'whitepaper' }"
120+
:style="{
121+
'background-color':
122+
$route.name === 'whitepaper'
123+
? 'rgba(255,255,255,0.15)'
124+
: undefined,
125+
}"
108126
/>
109127
</template>
110128

0 commit comments

Comments
 (0)