|
1 | 1 | <template> |
2 | 2 | <div class="min-h-screen text-label-primary"> |
3 | | - <div class="container mx-auto px-4 py-4"> |
4 | | - <h1>Home</h1> |
| 3 | + <div class="container mx-auto px-4 py-8"> |
| 4 | + <div class="max-w-4xl mx-auto"> |
| 5 | + <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> |
| 6 | + <NuxtLink |
| 7 | + to="/karma" |
| 8 | + class="group bg-fill-secondary p-6 rounded-xl border border-separator-primary hover:border-accent-primary transition-all duration-200 cursor-pointer" |
| 9 | + > |
| 10 | + <div class="flex flex-col gap-4"> |
| 11 | + <div |
| 12 | + class="w-12 h-12 rounded-lg bg-accent-primary/10 flex items-center justify-center group-hover:bg-accent-primary/20 transition-all duration-200" |
| 13 | + > |
| 14 | + <Icon |
| 15 | + icon="mdi:chart-line" |
| 16 | + class="text-2xl text-accent-primary" |
| 17 | + /> |
| 18 | + </div> |
| 19 | + <div> |
| 20 | + <h2 |
| 21 | + class="text-xl font-bold text-label-primary mb-2" |
| 22 | + > |
| 23 | + Подивитися карму людей |
| 24 | + </h2> |
| 25 | + <p class="text-sm text-label-secondary"> |
| 26 | + Переглянути рейтинг та карму всіх учасників |
| 27 | + спільноти |
| 28 | + </p> |
| 29 | + </div> |
| 30 | + </div> |
| 31 | + </NuxtLink> |
| 32 | + |
| 33 | + <NuxtLink |
| 34 | + to="/design/buttons" |
| 35 | + class="group bg-fill-secondary p-6 rounded-xl border border-separator-primary hover:border-accent-primary transition-all duration-200 cursor-pointer" |
| 36 | + > |
| 37 | + <div class="flex flex-col gap-4"> |
| 38 | + <div |
| 39 | + class="w-12 h-12 rounded-lg bg-accent-primary/10 flex items-center justify-center group-hover:bg-accent-primary/20 transition-all duration-200" |
| 40 | + > |
| 41 | + <Icon |
| 42 | + icon="mdi:palette" |
| 43 | + class="text-2xl text-accent-primary" |
| 44 | + /> |
| 45 | + </div> |
| 46 | + <div> |
| 47 | + <h2 |
| 48 | + class="text-xl font-bold text-label-primary mb-2" |
| 49 | + > |
| 50 | + Подивитися на дизайн систему |
| 51 | + </h2> |
| 52 | + <p class="text-sm text-label-secondary"> |
| 53 | + Вивчити компоненти та стилі дизайн системи |
| 54 | + </p> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + </NuxtLink> |
| 58 | + </div> |
| 59 | + </div> |
5 | 60 | </div> |
6 | 61 | </div> |
7 | 62 | </template> |
8 | 63 |
|
9 | 64 | <script setup lang="ts"> |
10 | 65 | import { definePageMeta } from '#imports' |
| 66 | +import { onMounted } from 'vue' |
| 67 | +import { trackEvent } from '~~/app/utils/track' |
| 68 | +import { Icon } from '@iconify/vue' |
11 | 69 |
|
12 | 70 | definePageMeta({ |
13 | 71 | layout: 'default', |
14 | 72 | }) |
| 73 | +
|
| 74 | +onMounted(() => { |
| 75 | + trackEvent('page_view', { page: 'home' }) |
| 76 | +}) |
15 | 77 | </script> |
0 commit comments