💄 优化Layouts样式
This commit is contained in:
parent
f31a7e6544
commit
39f1774a2b
24
components/common/Bulletin.vue
Normal file
24
components/common/Bulletin.vue
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
defineProps({
|
||||||
|
text: String
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<!-- 公告部分 -->
|
||||||
|
<div class="bg-gray-200 p-3 rounded-md mb-5 dark:bg-[#5b77af]">
|
||||||
|
<div class="flex items-center">
|
||||||
|
<i aria-hidden="true" class="icon fas fa-bullhorn mr-3"></i>
|
||||||
|
</div>
|
||||||
|
<div class="flex-grow">
|
||||||
|
<div class="text-sm text-gray-800 dark:text-white">
|
||||||
|
{{ text }}
|
||||||
|
<slot name="text" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
@ -85,17 +85,7 @@ const timeStore = useTimeStore()
|
|||||||
</UButton>
|
</UButton>
|
||||||
</UForm>
|
</UForm>
|
||||||
</div>
|
</div>
|
||||||
<!-- 公告部分 -->
|
<CommonBulletin :text="`➡️ ${t('index.tips') }`" />
|
||||||
<div class="bg-gray-200 p-3 rounded-md mb-5 dark:bg-[#5b77af]">
|
|
||||||
<div class="flex items-center">
|
|
||||||
<i aria-hidden="true" class="icon fas fa-bullhorn mr-3"></i>
|
|
||||||
</div>
|
|
||||||
<div class="flex-grow">
|
|
||||||
<div class="text-sm text-gray-800 dark:text-white">
|
|
||||||
➡️ {{ t('index.tips') }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<ClientOnly>
|
<ClientOnly>
|
||||||
<div class="flex justify-between w-full">
|
<div class="flex justify-between w-full">
|
||||||
<div>
|
<div>
|
||||||
|
@ -85,17 +85,7 @@ const timeStore = useTimeStore()
|
|||||||
</UButton>
|
</UButton>
|
||||||
</UForm>
|
</UForm>
|
||||||
</div>
|
</div>
|
||||||
<!-- 公告部分 -->
|
|
||||||
<div class="bg-gray-200 p-3 rounded-md mb-5 dark:bg-[#5b77af]">
|
|
||||||
<div class="flex items-center">
|
|
||||||
<i aria-hidden="true" class="icon fas fa-bullhorn mr-3"></i>
|
|
||||||
</div>
|
|
||||||
<div class="flex-grow">
|
|
||||||
<div class="text-sm text-gray-800 dark:text-white">
|
|
||||||
➡️ {{ t('index.tips') }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<ClientOnly>
|
<ClientOnly>
|
||||||
<div class="flex justify-between w-full">
|
<div class="flex justify-between w-full">
|
||||||
<div>
|
<div>
|
||||||
|
@ -105,17 +105,12 @@ useHead({
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<!-- 公告部分 -->
|
<!-- 公告部分 -->
|
||||||
<div v-else class="mt-5 bg-gray-200 p-3 rounded-md mb-5 dark:bg-[#5b77af]">
|
<CommonBulletin v-else class="mt-5" >
|
||||||
<div class="flex items-center">
|
<template #text>
|
||||||
<i aria-hidden="true" class="icon fas fa-bullhorn mr-3"></i>
|
<Icon name="bx:error" size="16px" color="red" />
|
||||||
</div>
|
{{ t('error.notFound') }}
|
||||||
<div class="flex-grow">
|
</template>
|
||||||
<div class="text-sm text-gray-800 dark:text-white">
|
</CommonBulletin>
|
||||||
<Icon name="bx:error" size="16px" color="red" />
|
|
||||||
{{ t('error.notFound') }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="w-full bg-[#fffffe] mt-5 p-4 shadow-lg rounded-lg whitespace-pre-wrap dark:text-gray-200 dark:bg-gray-800"
|
class="w-full bg-[#fffffe] mt-5 p-4 shadow-lg rounded-lg whitespace-pre-wrap dark:text-gray-200 dark:bg-gray-800"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user