Files
vue-ts-example/src/pages/UI-components/InspiraUI/index.page.vue
mini2024 8d0ed93ee0
Some checks failed
/ lint-build-and-check (push) Failing after 37s
/ playwright (push) Failing after 4m50s
/ surge (push) Successful in 2m32s
feat: 添加 InspiraUI 组件
2025-03-30 23:45:01 +08:00

27 lines
914 B
Vue

<script setup lang="ts">
import { useLayout } from '@/layouts/sakai-vue/composables/layout';
import { computed } from 'vue';
import CardSpotlight from './CardSpotlight.vue';
import GradientButton from './GradientButton.vue';
const { isDarkTheme } = useLayout();
// const isDark = computed(() => useColorMode().value == 'dark');
const bgColor = computed(() => (isDarkTheme.value ? '#000' : '#fff'));
</script>
<template>
<div class="z-10 flex h-56 w-full flex-col items-center justify-center">
<GradientButton :bg-color="bgColor">Zooooooooooom 🚀</GradientButton>
</div>
<div class="flex h-[500px] w-full flex-col gap-4 lg:h-[250px] lg:flex-row">
<CardSpotlight
class="cursor-pointer flex-col items-center justify-center whitespace-nowrap text-4xl shadow-2xl"
:gradient-color="isDarkTheme ? '#363636' : '#C9C9C9'"
>
Card Spotlight
</CardSpotlight>
</div>
</template>