feat: refine branded dual-portal prototype

This commit is contained in:
wlx committed 2026-08-19 21:28:03 +08:00
1 parent 78339580a5
commit bebff16a2d
14 files changed
+1042 -1089

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
<script setup lang="ts">
import { X } from 'lucide-vue-next'
defineProps<{ title: string; eyebrow?: string }>()
defineEmits<{ close: [] }>()
</script>
<template>
<div class="slide-overlay" @click="$emit('close')"></div>
<aside class="slide-panel">
<header><div><span>{{ eyebrow ?? 'DETAILS' }}</span><h2>{{ title }}</h2></div><button class="icon-button" @click="$emit('close')"><X :size="18" /></button></header>
<div class="slide-content"><slot /></div>
<footer><slot name="footer" /></footer>
</aside>
</template>
+16
View File
@@ -0,0 +1,16 @@
<script setup lang="ts">
import { X } from 'lucide-vue-next'
defineProps<{ title: string; eyebrow?: string }>()
defineEmits<{ close: [] }>()
</script>
<template>
<div class="modal-overlay" @click.self="$emit('close')">
<section class="modal">
<header><div><span>{{ eyebrow ?? 'MOYI CONSOLE' }}</span><h2>{{ title }}</h2></div><button class="icon-button" @click="$emit('close')"><X :size="18" /></button></header>
<div class="modal-body"><slot /></div>
<footer><slot name="footer" /></footer>
</section>
</div>
</template>