categorise components

This commit is contained in:
Annie Huang committed 2024-04-06 22:06:29 +08:00
1 parent 9a4f9b958a
commit b5e49547ea
14 files changed
+12 -12

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
<script setup>
import { defineProps } from 'vue'
defineProps({
title: {
type: String,
required: false,
},
headerComponent: {
type: Object,
required: true,
},
})
</script>
<template>
<div
id="header"
class="w-full h-[6vh] px-5 flex flex-row items-center justify-between bg-bg-secondary"
>
<div class="flex flex-row items-center gap-3">
<img src="../img/icon_totem.svg" class="h-8 justify-self-start" />
<button
id="GameTitle"
class="text-text-primary inline-block font-bold whitespace-nowrap pt-1"
style="font-size: 2vh"
>
Linux Odyssey
</button>
<p
id="QuestTitle"
class="text-text inline-block font-bold whitespace-nowrap"
style="font-size: 2vh"
>
{{ title }}
</p>
</div>
<div class="h-full w-full flex gap-3 items-center justify-end">
<component :is="headerComponent" />
</div>
</div>
</template>