Skip to content

Commit c2b5081

Browse files
committed
Improve UX when user is logged in
1 parent 9b3edbb commit c2b5081

File tree

2 files changed

+50
-3
lines changed

2 files changed

+50
-3
lines changed

web/layouts/website.vue

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@
3737
Blog
3838
</v-btn>
3939
<v-btn
40-
v-if="$vuetify.breakpoint.lgAndUp"
40+
v-if="
41+
$vuetify.breakpoint.lgAndUp &&
42+
$store.getters.getAuthUser === null
43+
"
4144
large
4245
text
4346
color="primary"
@@ -47,15 +50,26 @@
4750
Login
4851
</v-btn>
4952
<v-btn
53+
v-if="$store.getters.getAuthUser === null"
5054
exact-path
5155
color="primary"
52-
class="my-5"
56+
class="mt-5"
5357
:large="$vuetify.breakpoint.lgAndUp"
5458
:to="{ name: 'login' }"
5559
>
5660
Get Started
5761
<span v-if="$vuetify.breakpoint.lgAndUp">&nbsp;For Free</span>
5862
</v-btn>
63+
<v-btn
64+
v-if="$store.getters.getAuthUser !== null"
65+
exact-path
66+
color="primary"
67+
class="mt-5"
68+
:large="$vuetify.breakpoint.lgAndUp"
69+
:to="{ name: 'threads' }"
70+
>
71+
Dashboard
72+
</v-btn>
5973
</v-col>
6074
</v-row>
6175
</v-container>

web/pages/index.vue

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,38 @@
11
<template>
22
<div>
33
<v-container>
4-
<v-row :class="{ 'py-16': $vuetify.breakpoint.lgAndUp }">
4+
<v-row class="mt-16 pt-8 mb-n8">
5+
<v-col>
6+
<v-alert
7+
text
8+
:icon="$vuetify.breakpoint.mdAndUp ? mdiSale : undefined"
9+
:prominent="$vuetify.breakpoint.mdAndUp"
10+
color="success"
11+
>
12+
<v-row align="center">
13+
<v-col class="grow">
14+
<p class="text-h6 mb-0">Black Friday Deal</p>
15+
<p class="mb-0">
16+
Get <b>40%</b> off all yearly plans on httpSMS until on
17+
December 2<sup>nd</sup> by using the discount code
18+
<b>BF2024</b> at checkout
19+
</p>
20+
<v-btn
21+
v-if="!$vuetify.breakpoint.mdAndUp"
22+
to="/billing"
23+
block
24+
color="pink"
25+
>Upgrade Now</v-btn
26+
>
27+
</v-col>
28+
<v-col v-if="$vuetify.breakpoint.mdAndUp" class="shrink">
29+
<v-btn color="pink" to="/billing">Upgrade Now</v-btn>
30+
</v-col>
31+
</v-row>
32+
</v-alert>
33+
</v-col>
34+
</v-row>
35+
<v-row :class="{ 'pb-16 pt-0': $vuetify.breakpoint.lgAndUp }">
536
<v-col
637
cols="12"
738
md="6"
@@ -826,6 +857,7 @@ import {
826857
mdiForum,
827858
mdiCreation,
828859
mdiNumeric1,
860+
mdiSale,
829861
mdiLanguagePython,
830862
mdiNumeric2,
831863
mdiNumeric3,
@@ -858,6 +890,7 @@ export default Vue.extend({
858890
mdiNumeric2,
859891
mdiNumeric3,
860892
mdiTallyMark1,
893+
mdiSale,
861894
mdiTallyMark2,
862895
863896
mdiTallyMark3,

0 commit comments

Comments
 (0)