添加项目文件。

This commit is contained in:
ldh
2026-11-13 09:51:38 +08:00
parent 35573a85eb
commit abb5d5d32f
123 changed files with 9453 additions and 0 deletions
@@ -0,0 +1,132 @@
<script setup lang="ts">
import ModuleIcon from '@/components/ModuleIcon.vue'
withDefaults(
defineProps<{
title: string
tone: 'blue' | 'orange' | 'green' | 'teal'
icon: 'detect' | 'metal' | 'soil' | 'water'
}>(),
{},
)
defineEmits<{
click: []
}>()
</script>
<template>
<button
class="module-button"
:class="`module-button--${tone}`"
type="button"
@click="$emit('click')"
>
<span class="module-button__icon">
<ModuleIcon :name="icon" />
</span>
<span class="module-button__label">{{ title }}</span>
</button>
</template>
<style scoped>
.module-button {
position: relative;
display: block;
height: 252px;
overflow: hidden;
border-radius: 18px;
text-align: left;
box-shadow:
0 16px 30px var(--module-shadow),
inset 0 2px 0 rgba(255, 255, 255, 0.55),
inset 0 -10px 24px rgba(0, 0, 0, 0.08);
transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
box-shadow 0.25s ease;
}
.module-button::before {
content: '';
position: absolute;
inset: 0;
background:
radial-gradient(ellipse 85% 65% at 18% 6%, rgba(255, 255, 255, 0.34) 0%, transparent 58%),
linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 36%);
pointer-events: none;
}
.module-button::after {
content: '';
position: absolute;
right: 18px;
bottom: 14px;
left: 18px;
height: 1px;
background: rgba(255, 255, 255, 0.2);
opacity: 0.8;
}
.module-button:hover {
transform: translateY(-4px);
box-shadow:
0 22px 38px var(--module-shadow-strong),
inset 0 2px 0 rgba(255, 255, 255, 0.6),
inset 0 -10px 24px rgba(0, 0, 0, 0.08);
}
.module-button:active {
transform: translateY(-1px) scale(0.995);
}
.module-button--blue {
--module-shadow: rgba(47, 111, 208, 0.26);
--module-shadow-strong: rgba(47, 111, 208, 0.38);
background: linear-gradient(145deg, #4b8ae8 0%, #3778d9 48%, #2f6fd0 100%);
}
.module-button--orange {
--module-shadow: rgba(238, 166, 11, 0.28);
--module-shadow-strong: rgba(238, 166, 11, 0.4);
background: linear-gradient(145deg, #ffc845 0%, #f8b526 50%, #eea50b 100%);
}
.module-button--green {
--module-shadow: rgba(107, 171, 49, 0.28);
--module-shadow-strong: rgba(107, 171, 49, 0.4);
background: linear-gradient(145deg, #91d258 0%, #7cc242 50%, #67ad2f 100%);
}
.module-button--teal {
--module-shadow: rgba(38, 174, 163, 0.28);
--module-shadow-strong: rgba(38, 174, 163, 0.4);
background: linear-gradient(145deg, #46cec2 0%, #2fb8ac 50%, #22a99e 100%);
}
.module-button__icon {
position: absolute;
top: 24px;
left: 24px;
display: grid;
place-items: center;
width: 92px;
height: 92px;
padding: 10px;
border: 1px solid rgba(255, 255, 255, 0.36);
border-radius: 16px;
background: rgba(255, 255, 255, 0.14);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.module-button__label {
position: absolute;
right: 18px;
bottom: 44px;
left: 18px;
color: #fff;
font-size: 31px;
font-weight: 600;
letter-spacing: 4px;
text-align: center;
text-shadow: 0 2px 5px rgba(33, 49, 79, 0.24);
}
</style>