|
1 | 1 | <template> |
2 | | - <h1 class="text-xl">Welcome</h1> |
3 | | - <div> |
4 | | - <div> |
5 | | - Color mode: {{ colorMode.preference }} |
6 | | - </div> |
7 | | - <div> |
8 | | - User authenticated? {{ isAuthenticated }} |
9 | | - </div> |
| 2 | + <div class="min-h-screen transition-colors duration-300"> |
| 3 | + <!-- Header Section --> |
| 4 | + <header class="container mx-auto px-4 py-6 flex justify-end items-center"> |
| 5 | + <!-- Removed h1 title and toggle button --> |
| 6 | + </header> |
| 7 | + |
| 8 | + <!-- Hero Section --> |
| 9 | + <main class="container mx-auto px-4 py-16 text-center"> |
| 10 | + <h2 class="text-4xl md:text-5xl font-extrabold mb-4"> |
| 11 | + Welcome to <span>MyApp</span> |
| 12 | + </h2> |
| 13 | + <p class="text-lg md:text-xl mb-8 max-w-2xl mx-auto"> |
| 14 | + Experience the future of whatever MyApp does. Join us and explore the amazing possibilities. |
| 15 | + </p> |
| 16 | + <div class="space-x-4"> |
| 17 | + <Button class="font-bold py-3 px-6 rounded-lg transition-colors shadow-md"> |
| 18 | + Get Started |
| 19 | + </Button> |
| 20 | + <Button class="font-bold py-3 px-6 rounded-lg transition-colors shadow-md"> |
| 21 | + Learn More |
| 22 | + </Button> |
| 23 | + </div> |
| 24 | + |
| 25 | + <div class="mt-12 text-sm"> |
| 26 | + User is currently: {{ isAuthenticated ? 'Authenticated' : 'Not Authenticated' }} |
| 27 | + </div> |
| 28 | + </main> |
| 29 | + |
| 30 | + <!-- Placeholder for Features Section --> |
| 31 | + <section class="container mx-auto px-4 py-16 border-t"> |
| 32 | + <h3 class="text-3xl font-bold text-center mb-12">Features</h3> |
| 33 | + <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> |
| 34 | + <!-- Feature 1 --> |
| 35 | + <Card> |
| 36 | + <CardHeader class="text-center"> |
| 37 | + <CardTitle>Feature One</CardTitle> |
| 38 | + </CardHeader> |
| 39 | + <CardContent> |
| 40 | + <p>Description of the first amazing feature.</p> |
| 41 | + </CardContent> |
| 42 | + </Card> |
| 43 | + <!-- Feature 2 --> |
| 44 | + <Card> |
| 45 | + <CardHeader class="text-center"> |
| 46 | + <CardTitle>Feature Two</CardTitle> |
| 47 | + </CardHeader> |
| 48 | + <CardContent> |
| 49 | + <p>Description of the second incredible feature.</p> |
| 50 | + </CardContent> |
| 51 | + </Card> |
| 52 | + <!-- Feature 3 --> |
| 53 | + <Card> |
| 54 | + <CardHeader class="text-center"> |
| 55 | + <CardTitle>Feature Three</CardTitle> |
| 56 | + </CardHeader> |
| 57 | + <CardContent> |
| 58 | + <p>Description of the third awesome feature.</p> |
| 59 | + </CardContent> |
| 60 | + </Card> |
| 61 | + </div> |
| 62 | + </section> |
| 63 | + |
| 64 | + <!-- Footer Section --> |
| 65 | + <footer class="container mx-auto px-4 py-6 text-center border-t"> |
| 66 | + © {{ new Date().getFullYear() }} MyApp. All rights reserved. |
| 67 | + </footer> |
10 | 68 | </div> |
11 | 69 | </template> |
12 | 70 | <script setup lang="ts"> |
| 71 | +import { Button } from '@/components/ui/button' |
| 72 | +import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' |
| 73 | +import { storeToRefs } from 'pinia'; |
13 | 74 | import { useAuthStore } from '@/stores/authStore'; |
14 | | -const colorMode = useColorMode(); |
| 75 | +
|
15 | 76 | const store = useAuthStore(); |
16 | 77 | const { isAuthenticated } = storeToRefs(store); |
17 | 78 |
|
18 | 79 | useHead({ |
19 | | - title: 'App', |
| 80 | + title: 'Welcome to MyApp', |
20 | 81 | meta: [ |
21 | | - { name: 'description', content: 'An app' } |
| 82 | + { name: 'description', content: 'Discover the amazing features of MyApp.' } |
22 | 83 | ], |
23 | 84 | bodyAttrs: { |
24 | | - class: 'test' |
| 85 | + class: 'antialiased font-sans' |
25 | 86 | }, |
26 | | - script: [ { innerHTML: 'console.log(\'Hello world\')' } ] |
27 | 87 | }) |
28 | 88 |
|
29 | 89 | </script> |
0 commit comments