OptimiDev commited on
Commit
816cda4
·
verified ·
1 Parent(s): a228e81

Delete App.vue

Browse files
Files changed (1) hide show
  1. App.vue +0 -98
App.vue DELETED
@@ -1,98 +0,0 @@
1
- <template>
2
- <div id="app" class="container">
3
- <div class="lang-switcher">
4
- <button
5
- :class="{ active: currentLang === 'en' }"
6
- @click="setLang('en')"
7
- >
8
- English
9
- </button>
10
- <button
11
- :class="{ active: currentLang === 'de' }"
12
- @click="setLang('de')"
13
- >
14
- Deutsch
15
- </button>
16
- </div>
17
- <h1>{{ $t('title') }}</h1>
18
- <h2>{{ $t('subtitle') }}</h2>
19
- <p>{{ $t('description') }}</p>
20
- <footer>{{ $t('footer') }}</footer>
21
- </div>
22
- </template>
23
-
24
- <script>
25
- import { useI18n } from "vue-i18n";
26
-
27
- export default {
28
- setup() {
29
- const { locale } = useI18n();
30
- const setLang = (lang) => {
31
- locale.value = lang;
32
- };
33
- return {
34
- currentLang: locale,
35
- setLang,
36
- };
37
- },
38
- };
39
- </script>
40
-
41
- <style scoped>
42
- .container {
43
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
44
- background-color: #000;
45
- color: #fff;
46
- min-height: 100vh;
47
- padding: 2rem;
48
- text-align: center;
49
- display: flex;
50
- flex-direction: column;
51
- justify-content: center;
52
- align-items: center;
53
- }
54
-
55
- .lang-switcher {
56
- margin-bottom: 2rem;
57
- }
58
-
59
- .lang-switcher button {
60
- background: #fff;
61
- color: #000;
62
- border: none;
63
- padding: 0.6rem 1rem;
64
- margin: 0 0.3rem;
65
- cursor: pointer;
66
- font-weight: bold;
67
- border-radius: 4px;
68
- transition: background-color 0.3s ease;
69
- }
70
-
71
- .lang-switcher button.active,
72
- .lang-switcher button:hover {
73
- background: #ccc;
74
- }
75
-
76
- h1 {
77
- font-size: 3rem;
78
- margin-bottom: 0.3rem;
79
- }
80
-
81
- h2 {
82
- font-weight: normal;
83
- font-size: 1.5rem;
84
- margin-bottom: 1.5rem;
85
- }
86
-
87
- p {
88
- max-width: 600px;
89
- font-size: 1.1rem;
90
- line-height: 1.5;
91
- margin-bottom: 3rem;
92
- }
93
-
94
- footer {
95
- opacity: 0.6;
96
- font-size: 0.9rem;
97
- }
98
- </style>