From 83a669033c3bd32139a496b886cec6051ec76612 Mon Sep 17 00:00:00 2001
From: junge <378482532@qq.com>
Date: Mon, 2 Feb 2026 19:25:47 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/dashboard/index.vue | 73 ++++++++++++++++++++---------------
1 file changed, 41 insertions(+), 32 deletions(-)
diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue
index c94c675..99842c6 100644
--- a/src/views/dashboard/index.vue
+++ b/src/views/dashboard/index.vue
@@ -3,17 +3,18 @@
Welcome to Funtime Design System
Select a module to get started
-
-
+
+
-
-
+
+
+
+
+
{{ module.title }}
-
{{ module.title }}
-
{{ module.description }}
-
-
+
+
@@ -68,53 +69,61 @@ onMounted(async () => {
font-size: 16px;
color: #909399;
}
+.modules-grid {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ gap: 24px;
+ margin: 0 auto;
+ max-width: 1200px;
+}
+.module-item {
+ display: flex;
+ justify-content: center;
+}
.module-card {
cursor: pointer;
transition: all 0.3s ease;
- height: 100%;
+ width: 120px;
+ height: 120px;
border: none;
border-radius: 12px;
- margin-bottom: 20px;
}
.module-card:hover {
- transform: translateY(-8px);
- box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
+ transform: translateY(-5px);
+ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
+}
+:deep(.el-card__body) {
+ padding: 0 !important;
+ width: 100%;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
}
.card-content {
display: flex;
flex-direction: column;
align-items: center;
+ justify-content: center;
+ width: 100%;
padding: 10px;
}
-.icon-wrapper {
- width: 80px;
- height: 80px;
- border-radius: 50%;
- background-color: #ecf5ff;
- display: flex;
- justify-content: center;
- align-items: center;
+.module-icon {
font-size: 36px;
color: #409eff;
- margin-bottom: 24px;
+ margin-bottom: 8px;
transition: all 0.3s;
}
-.module-card:hover .icon-wrapper {
- background-color: #409eff;
- color: #ffffff;
+.module-card:hover .module-icon {
transform: scale(1.1);
}
.module-title {
- margin: 0 0 12px;
- font-size: 20px;
- font-weight: 600;
- color: #303133;
-}
-.module-desc {
margin: 0;
font-size: 14px;
- color: #606266;
- line-height: 1.6;
+ font-weight: 600;
+ color: #303133;
text-align: center;
+ line-height: 1.2;
}