From cd9bda0a934867ad2c587046c13090709861323f Mon Sep 17 00:00:00 2001
From: 杨磊 <505174330@qq.com>
Date: 星期一, 07 四月 2025 18:02:04 +0800
Subject: [PATCH] 首页

---
 src/views/home/index.vue |  190 ++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 184 insertions(+), 6 deletions(-)

diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 432c998..108815d 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -1,11 +1,100 @@
 <template>
   <div class="home">
+    <div class="headerBox">
+      <div class="title">
+        <p>鐜嬫案鐐庨櫌澹�</p>
+        <p>瀛︽湳鎬濇兂浼犳壙澶氱淮搴︽暟鎹簱</p>
+      </div>
+      <div class="searchBox">
+        <SearchBox />
+      </div>
+    </div>
+    <div class="menuBox">
+      <div class="menuList">
+        <div
+          class="menu"
+          v-for="item in menuList"
+          :key="item.id"
+          @click="$router.push(item.path)"
+        >
+          <div class="menuIcon"><i class="el-icon-platform-eleme"></i></div>
+          <div class="menuTitle">{{ item.title }}</div>
+          <div class="menuSubTitle">{{ item.subTitle }}</div>
+          <div class="menuLine"><i class="el-icon-right"></i></div>
+        </div>
+      </div>
+    </div>
+    <div class="personalProfile">
+      <div class="textInfo">
+        <p>
+          <i style="font-size: 18px">鐜嬫案鐐庯紙1938.09.29 - 锛� </i>
+          <i> 瀛楄嚧杩滐紝鍙烽瀹瑰浜猴紝涓尰鍐呯瀛︺�佷腑鑽祫婧愬涓撳銆�</i>
+        </p>
+        <p>
+          涓ぎ鏂囧彶鐮旂┒棣嗛鍛橈紝涓浗宸ョ▼闄㈤櫌澹紝涓浗绉戝鎶�鏈崗浼氳崳瑾夊鍛橈紝绗崄灞婂叏鍥戒汉澶у父濮斾細濮斿憳锛岃憲鍚嶄腑鍖诲瀹躲�佷腑鍖昏剳鐥呭瀹躲��
+        </p>
+        <p>
+          鏇句换鍖椾含涓尰鑽ぇ瀛︽牎闀裤�佷腑鍥戒腑鍖荤瀛﹂櫌闄㈤暱锛屽浗鍔¢櫌瀛︿綅濮斿憳浼氫腑鍖诲銆佷腑鑽瀛︾璇勮缁勭涓夈�佸洓銆佷簲灞婂彫闆嗕汉锛�
+        </p>
+        <p>
+          鐜颁换涓浗涓尰绉戝闄㈠悕瑾夐櫌闀裤�佷腑鍥戒腑鍖荤瀛﹂櫌涓村簥鍖诲鍩虹鐮旂┒鎵�鎵�闀裤�佸寳浜笀鑼冨ぇ瀛﹁祫婧愬闄㈣祫婧愯嵂鐗╀笌涓嵂璧勬簮鐮旂┒鎵�鎵�闀裤�佸寳浜腑鍖昏嵂澶у鑴戠梾鐮旂┒闄㈠鏈鍛樹細涓�<br />浠伙紝涓浗鑽吀濮斿憳浼氱鍏�佷竷灞婂鍛樸�佺鍏�佷節灞婃墽琛屽鍛樸��
+        </p>
+        <p>
+          鏇捐幏鍥藉绉戝绉戞妧杩涙濂栦竴绛夊1椤广�佷簩绛夊2椤广�佷笁绛夊3椤癸紝鐪侀儴绾х鎶�鎴愭灉涓�绛夊8椤癸紝鑾蜂綍姊佷綍鍒╁熀閲戔�滅瀛︿笌鎶�鏈繘姝ュ鈥濄�侀娓眰鏄鎶�鍩洪噾浼氣�滀腑鍖昏嵂鐜颁唬鍖栨澃鍑虹鎶�鎴愬氨濂栤�濓紝涓浗鏍囧噯鍖栧崗浼氣�滄爣鍑嗗寲缁堣韩鎴愬氨濂栤�濓紝涓浗浜у鐮斿悎浣滀績杩涗細浜у鐮斿悎浣滅獊鍑鸿础鐚锛岃幏鍏ㄥ浗浜斾竴鍔冲姩濂栫珷鍜屸�滃叏鍥藉厛杩涘伐浣滆�呪�濊崳瑾夌О鍙枫��
+        </p>
+      </div>
+    </div>
+    <div class="copyrightInformation">
+      鐗堟潈鎵�鏈夛細涓浗涓尰鐮旂┒闄� 浜琁CP澶� 0384937947 浜叕缃戝畨澶� 1212129923
+    </div>
     <div class="profilePhoto"></div>
   </div>
 </template>
 
 <script>
-export default {};
+import SearchBox from "./components/searchBox.vue";
+export default {
+  components: {
+    SearchBox,
+  },
+
+  data() {
+    return {
+      menuList: [
+        {
+          icon: "el-icon-platform-eleme",
+          title: "骞磋氨",
+          subTitle: "1936-2024",
+          path: "/chronology",
+        },
+        {
+          icon: "el-icon-platform-eleme",
+          title: "瀛︽湳鎴愭灉",
+          subTitle: "100+",
+          path: "/achievements",
+        },
+        {
+          icon: "el-icon-platform-eleme",
+          title: "鑽h獕濂栭」",
+          subTitle: "50+",
+          path: "/honor",
+        },
+        {
+          icon: "el-icon-platform-eleme",
+          title: "瀛︾敓鐩綍",
+          subTitle: "1936-2024",
+          path: "/directory",
+        },
+      ],
+    };
+  },
+  methods: {
+    goPage(row) {
+      console.log(row);
+      this.$router.push(row.path);
+    },
+  },
+};
 </script>
 
 <style>
@@ -14,16 +103,105 @@
   height: 100vh;
   background-image: url("@/assets/images/homeBg.png");
   background-repeat: no-repeat;
-  background-size: 100% 95%;
+  background-size: 98% 95%;
   position: relative;
+  padding: 0 40px;
+  box-sizing: border-box;
 }
 .profilePhoto {
   background-image: url("@/assets/images/profilePhoto.png");
-  width: 575px;
-  height: 656px;
+  width: 475px;
+  height: 556px;
   background-size: 100% 100%;
-  position: relative;
-  top: 33%;
+  position: absolute;
+  top: 30%;
   left: 8%;
 }
+.headerBox {
+  width: 99.5%;
+  height: 220px;
+  padding-top: 60px;
+  padding-left: 40px;
+  border-bottom: 1px solid#937950;
+  font-size: 50px;
+  line-height: 66px;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  font-family: Alimama DongFangDaKai;
+  box-sizing: border-box;
+}
+.searchBox {
+  margin-right: 100px;
+}
+.menuBox {
+  position: absolute;
+  right: 48px;
+  width: 1000px;
+  font-family: Alimama DongFangDaKai;
+}
+.menu {
+  width: 25%;
+  height: 450px;
+  background-color: #fff;
+  text-align: center;
+  padding-top: 20px;
+  box-sizing: border-box;
+  border: 1px solid #937950;
+  border-top: none;
+  border-left: none;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  color: #937950;
+}
+.menu:first-child {
+  border-left: 1px solid #937950;
+}
+.menuIcon {
+  font-size: 80px;
+  margin-top: 20px;
+}
+.menuTitle {
+  font-size: 40px;
+  font-weight: 600;
+  margin-top: 20px;
+}
+.menuSubTitle {
+  font-size: 28px;
+  margin-top: 20px;
+}
+.menuLine {
+  margin-top: 40px;
+  font-size: 40px;
+}
+.menuList {
+  display: flex;
+}
+
+.personalProfile {
+  background: rgba(147, 121, 80, 0.15);
+  height: 170px;
+  width: 100%;
+  position: absolute;
+  right: 40px;
+  bottom: 111px;
+  border: 1px solid #937950;
+}
+.textInfo {
+  position: absolute;
+  right: 40px;
+  width: 1000px;
+  margin-top: 20px;
+  line-height: 16px;
+}
+.copyrightInformation {
+  position: absolute;
+  bottom: 80px;
+  font-size: 12px;
+  color: #937950;
+  width: 100%;
+  text-align: center;
+}
 </style>

--
Gitblit v1.9.1