-
-
-
-
Ant Design
-
+
+
+
+
+
+
Ant Design
+
+
+
Ant Design 是西湖区最具影响力的 Web 设计规范
-
Ant Design 是西湖区最具影响力的 Web 设计规范
+
+ {getRoutes(match.path, routerData).map(item =>
+ (
+
+ )
+ )}
+
+
-
- {getRoutes(match.path, routerData).map(item =>
- (
-
- )
- )}
-
-
-
+
);
diff --git a/src/layouts/UserLayout.less b/src/layouts/UserLayout.less
index 983c2bcead7e9e155e4d4fb147a1ce3bdb96d1b6..c93cf779625b57eafcf4a8d4fe09da0d764ec52c 100644
--- a/src/layouts/UserLayout.less
+++ b/src/layouts/UserLayout.less
@@ -1,15 +1,27 @@
@import "~antd/lib/style/themes/default.less";
.container {
- background: #f0f2f5;
- background-image: url('https://gw.alipayobjects.com/zos/rmsportal/TVYTbAXWheQpRcWDaDMu.svg');
- width: 100%;
+ display: flex;
+ flex-direction: column;
min-height: 100%;
- background-repeat: no-repeat;
- background-position: center;
- background-size: 100%;
- padding: 110px 0 144px 0;
- position: relative;
+}
+
+.content {
+ padding: 32px 0;
+ flex: 1;
+}
+
+@media (min-width: @screen-md-min) {
+ .container {
+ background-image: url('https://gw.alipayobjects.com/zos/rmsportal/TVYTbAXWheQpRcWDaDMu.svg');
+ background-repeat: no-repeat;
+ background-position: center 110px;
+ background-size: 100%;
+ }
+
+ .content {
+ padding: 112px 0 24px 0;
+ }
}
.top {
@@ -45,9 +57,3 @@
margin-top: 12px;
margin-bottom: 40px;
}
-
-.footer {
- position: absolute;
- width: 100%;
- bottom: 0;
-}