Skip to content

Commit

Permalink
chore(skeleton): define global message component
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Dec 28, 2023
1 parent c06aa53 commit a5ceff7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions components/Message.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<template>
<div class="min-h-screen flex flex-grow items-center justify-center">
<div class="rounded-lg bg-white p-8 text-center shadow-xl">
<h1 class="mb-4 text-2xl font-light">
{{ title }}
</h1>
<div class="text-sm">
<slot name="text">
{{ text }}
</slot>
</div>
</div>
</div>
</template>

<script setup lang="ts">
interface Props {
title: string
text?: string
}
defineProps<Props>()
</script>

0 comments on commit a5ceff7

Please sign in to comment.