Skip to content

Commit 3ae006f

Browse files
committed
refactor: remove buttons test logic from home page
1 parent ef374a0 commit 3ae006f

1 file changed

Lines changed: 2 additions & 56 deletions

File tree

app/pages/index.vue

Lines changed: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,5 @@
1-
<script setup lang="ts">
2-
import { useCounterStore } from '@/stores/counter';
3-
import Button from '@/components/ui/Button.vue';
4-
import { ref } from 'vue';
5-
const counter = useCounterStore();
6-
const isHovered = ref(false);
7-
</script>
1+
<script setup lang="ts"></script>
82

93
<template>
10-
<div class="p-8">
11-
<h1 class="p-4 text-2xl">
12-
{{ $t('testing.welcome') + ` ${counter.count}` }}
13-
</h1>
14-
<div class="flex flex-col gap-2">
15-
<Button class="w-75" variant="default" @click="counter.increment">{{
16-
$t('testing.test-button')
17-
}}</Button>
18-
<Button class="w-75" variant="outline" @click="counter.increment">{{
19-
$t('testing.test-button')
20-
}}</Button>
21-
<Button variant="ghost-primary" size="icon-sm">
22-
<Icon name="tabler:heart" />
23-
</Button>
24-
<Button variant="default" size="md" class="w-fit">
25-
{{ $t('testing.post') }}
26-
</Button>
27-
<Button variant="default" size="xs" class="w-fit">
28-
{{ $t('testing.follow') }}
29-
</Button>
30-
<Button
31-
variant="outline-destructive"
32-
size="xs"
33-
class="w-25"
34-
@mouseenter="isHovered = true"
35-
@mouseleave="isHovered = false"
36-
>
37-
{{ isHovered ? $t('testing.unfollow') : $t('testing.following') }}
38-
</Button>
39-
<Button variant="primary" size="xl" class="w-58">
40-
{{ $t('testing.post') }}
41-
</Button>
42-
<Button variant="primary" size="md" class="w-fit">
43-
{{ $t('testing.subscribe') }}
44-
</Button>
45-
<Button variant="ghost-default" size="2xl" class="w-58">
46-
<div class="flex w-full items-center gap-3">
47-
<img src="https://placehold.co/20x20" class="size-10 rounded-full" alt="" />
48-
<div class="flex flex-col">
49-
<div class="text-start text-sm font-medium">{{ $t('testing.user.name') }}</div>
50-
<div class="text-muted-foreground text-start text-xs">
51-
{{ '@' + $t('testing.user.username') }}
52-
</div>
53-
</div>
54-
<Icon name="tabler:dots" class="ms-auto size-4" />
55-
</div>
56-
</Button>
57-
</div>
58-
</div>
4+
<div></div>
595
</template>

0 commit comments

Comments
 (0)