diff --git a/src/assets/admin/css/home.css b/src/assets/admin/css/home.css
index b1e22a6..7ccdea1 100644
--- a/src/assets/admin/css/home.css
+++ b/src/assets/admin/css/home.css
@@ -15,25 +15,90 @@ a {
ul,
li {
- list-style: none;
+ list-style-type: none;
}
-/*.dr-home */
+/* .dr-home */
.dr-home {
display: flex;
- flex-direction: column; /* 容器内元素从上至下排列 */
+ flex-direction: column; /* 容器内的元素从上至下排列 */
height: 100vh;
}
+/* .dr-home .header */
.dr-home .header {
display: flex;
height: 55px;
background: #393d49;
}
+.dr-home .header .title {
+ display: flex;
+ width: 200px;
+ background: #0c0c0c;
+}
+
+.dr-home .header .title .logo {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ width: 60px;
+}
+
+.dr-home .header .title .logo i {
+ color: lightslategray;
+ font-size: 30px;
+}
+
+.dr-home .header .title .text {
+ display: flex;
+ align-items: center;
+ flex: 1;
+}
+
+.dr-home .header .title .text a {
+ color: lightslategray;
+ font-size: 18px;
+ font-weight: bold;
+}
+
+.dr-home .header .info {
+ display: flex;
+ justify-content: flex-end;
+ flex: 1;
+}
+
+.dr-home .header .info .admin {
+ display: flex;
+ color: #fff;
+ font-size: 15px;
+}
+
+.dr-home .header .info .admin .name {
+ padding-right: 10px;
+ height: 55px;
+ line-height: 55px;
+ text-align: center;
+}
+
+.dr-home .header .info .admin .name i {
+ color: #FF5722;
+ font-size: 13px;
+}
+
+.dr-home .header .info .admin .exit {
+ width: 90px;
+ height: 55px;
+ line-height: 55px;
+ text-align: center;
+ background: #555c64;
+ cursor: pointer;
+}
+
+/* .dr-home .main */
.dr-home .main {
display: flex;
- height: calc(100vh - 55px); /* 减去 header 高度 */
+ height: calc(100vh - 55px); /* 减去 header 高度 */
}
.dr-home .main .side {
diff --git a/src/components/admin/home/HomeHeader.vue b/src/components/admin/home/HomeHeader.vue
new file mode 100644
index 0000000..a583320
--- /dev/null
+++ b/src/components/admin/home/HomeHeader.vue
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/admin/home.vue b/src/views/admin/home.vue
index 52150f1..b57f725 100644
--- a/src/views/admin/home.vue
+++ b/src/views/admin/home.vue
@@ -1,14 +1,15 @@