diff options
Diffstat (limited to 'frontend/src/components/HelloWorld.vue')
| -rw-r--r-- | frontend/src/components/HelloWorld.vue | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/frontend/src/components/HelloWorld.vue b/frontend/src/components/HelloWorld.vue new file mode 100644 index 0000000..23afedd --- /dev/null +++ b/frontend/src/components/HelloWorld.vue | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | <script setup lang="ts"> | ||
| 2 | defineProps<{ | ||
| 3 | msg: string | ||
| 4 | }>() | ||
| 5 | </script> | ||
| 6 | |||
| 7 | <template> | ||
| 8 | <div class="greetings"> | ||
| 9 | <h1 class="green">{{ msg }}</h1> | ||
| 10 | <h3> | ||
| 11 | You’ve successfully created a project with | ||
| 12 | <a href="https://vitejs.dev/" target="_blank" rel="noopener">Vite</a> + | ||
| 13 | <a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>. What's next? | ||
| 14 | </h3> | ||
| 15 | </div> | ||
| 16 | </template> | ||
| 17 | |||
| 18 | <style scoped> | ||
| 19 | h1 { | ||
| 20 | font-weight: 500; | ||
| 21 | font-size: 2.6rem; | ||
| 22 | top: -10px; | ||
| 23 | } | ||
| 24 | |||
| 25 | h3 { | ||
| 26 | font-size: 1.2rem; | ||
| 27 | } | ||
| 28 | |||
| 29 | .greetings h1, | ||
| 30 | .greetings h3 { | ||
| 31 | text-align: center; | ||
| 32 | } | ||
| 33 | |||
| 34 | @media (min-width: 1024px) { | ||
| 35 | .greetings h1, | ||
| 36 | .greetings h3 { | ||
| 37 | text-align: left; | ||
| 38 | } | ||
| 39 | } | ||
| 40 | </style> | ||