From ca0cac99c84e2000f3b501ad59e61bcca4f7562b Mon Sep 17 00:00:00 2001 From: rsgltzyd Date: Sat, 5 Oct 2024 20:35:41 +0800 Subject: [PATCH] Changes --- package.json | 2 + src/App.vue | 103 ++++++++++------------------- src/assets/main.css | 20 ++++-- src/components/CustomCard.vue | 24 +++++-- src/main.js | 5 +- src/views/AboutView.vue | 1 - src/views/HomeView.vue | 121 ++++++++++++++++++++-------------- 7 files changed, 145 insertions(+), 131 deletions(-) diff --git a/package.json b/package.json index 7c13c0d..7432159 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,8 @@ "format": "prettier --write src/" }, "dependencies": { + "@ant-design/icons-vue": "^7.0.1", + "ant-design-vue": "^4.2.5", "pinia": "^2.1.7", "vue": "^3.4.29", "vue-router": "^4.3.3" diff --git a/src/App.vue b/src/App.vue index 76d8321..36a65c2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,82 +1,51 @@ - + +import CustomCard from '@/components/CustomCard.vue' + \ No newline at end of file diff --git a/src/assets/main.css b/src/assets/main.css index 3d1340f..bbf3199 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -5,6 +5,21 @@ margin: 0 auto; padding: 2rem; font-weight: normal; + display: flex; + flex-direction: column; +} + +header { + margin: 0 auto; +} + +main { + /*width: 80%;*/ + width: 1080px; + display: flex; + justify-content: center; + flex: 2 800px; + margin: 0 auto; } a, @@ -22,11 +37,6 @@ a, } @media (min-width: 1024px) { - body { - display: flex; - place-items: center; - } - #app { padding: 0 2rem; } diff --git a/src/components/CustomCard.vue b/src/components/CustomCard.vue index 062384e..5c387f5 100644 --- a/src/components/CustomCard.vue +++ b/src/components/CustomCard.vue @@ -7,9 +7,7 @@ const customCard = ref(new CustomCard())