diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..de96f3a --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# Logs +logs +*.log +node_modules +.DS_Store +dist +*.local diff --git a/src/App.vue b/src/App.vue index 8d8d733..f85241b 100755 --- a/src/App.vue +++ b/src/App.vue @@ -1,23 +1,24 @@ diff --git a/src/assets/css/normalize.css b/src/assets/css/normalize.css index 4e8f438..a1b982c 100755 --- a/src/assets/css/normalize.css +++ b/src/assets/css/normalize.css @@ -1,7 +1,7 @@ *{ padding: 0; margin: 0; - color: #555; + /* color: #555; */ font-family: '微软雅黑'; font-weight: 400; } diff --git a/src/assets/css/public.scss b/src/assets/css/public.scss index f7c74d7..d696d60 100755 --- a/src/assets/css/public.scss +++ b/src/assets/css/public.scss @@ -38,16 +38,21 @@ box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.1); position: relative; + .path-slash { + color: #D7D7D7; + font-size: .32rem; + } + div { color: #7F7F7F; max-width: 2.5rem; - &::before { - content: "/"; - width: 0.2rem; - padding: 0 0.07rem; - color: #7F7F7F; - } + // &::before { + // content: "/"; + // width: 0.2rem; + // padding: 0 0.07rem; + // color: #7F7F7F; + // } &:last-child { max-width: 50%; @@ -55,9 +60,9 @@ font-weight: bold; } - &:first-child::before { - content: ""; - } + // &:first-child::before { + // content: ""; + // } } &::after { @@ -124,7 +129,7 @@ section { font-size: 0.3rem; color: #7F7F7F; max-height: 1rem; - line-height: 0.53rem; + line-height: .52rem; } // 回复可见 @@ -134,6 +139,8 @@ section { padding: 0.28rem; text-align: center; margin-top: 0.25rem; + font-size: .32rem; + color: #aaa; } } @@ -164,10 +171,11 @@ section { display: flex; flex-direction: row; align-items: center; - padding-left: 0.25rem; + // padding-left: 0.25rem; &:last-child { - margin-left: 0.133333rem; + // margin-left: 0.133333rem; + margin-left: .4rem; } div { @@ -190,66 +198,30 @@ section { // 精华 .rightTop { - width: 2rem; - height: 2rem; position: absolute; top: 0; right: 0; - &:before { - content: ""; - display: block; - border-radius: 0.8rem 0.8rem 0 0; - width: 0.24rem; - height: 0.053333rem; - position: absolute; - top: -0.053333rem; - right: 0.98rem; - background: #7474ff; - } - - &:after { - content: ""; - display: block; - border-radius: 0 0.11rem 0.11rem 0; - width: 0.053333rem; - height: 0.24rem; - position: absolute; - right: -0.053333rem; - top: 0.98rem; - background: #7474ff; - } - - div { - overflow: hidden; - width: 2rem; - height: 2rem; - position: absolute; - top: -0.09rem; - right: -0.09rem; + .rightTop-img { + width: 1.28rem; + height: 1.28rem; + margin-top: -.1rem; + margin-right: -.1rem; } // 丝带 span { - display: inline-block; - text-align: center; - width: 2.5rem; - height: 0.45rem; - line-height: 0.45rem; - font-size: 0.3rem; - color: #fff; position: absolute; - top: 0.25rem; - right: -0.8rem; - z-index: 2; - overflow: hidden; + top: 0; + left: 0; transform: rotate(45deg); - -ms-transform: rotate(45deg); - -moz-transform: rotate(45deg); - -webkit-transform: rotate(45deg); - -o-transform: rotate(45deg); - box-shadow: 0 0 0.09rem rgba(151, 151, 255, 0.5); - background-image: linear-gradient(to bottom right, #7474ff, rgba(190, 190, 255, 1)); + transform-origin: bottom; + margin-top: 0.01rem; + margin-left: 0.25rem; + width: 0.9rem; + font-size: 0.3rem; + text-align: center; + color: #fff; } } } diff --git a/src/assets/img/icon/search-cross.png b/src/assets/img/icon/search-cross.png new file mode 100755 index 0000000..696d019 Binary files /dev/null and b/src/assets/img/icon/search-cross.png differ diff --git a/src/assets/img/icon/topRight .png b/src/assets/img/icon/topRight .png new file mode 100755 index 0000000..cd3d821 Binary files /dev/null and b/src/assets/img/icon/topRight .png differ diff --git a/src/components/HeaderNav.vue b/src/components/HeaderNav.vue index 7f24a0c..efa9df4 100755 --- a/src/components/HeaderNav.vue +++ b/src/components/HeaderNav.vue @@ -10,10 +10,9 @@
- + + +
@@ -60,6 +59,7 @@
+
@@ -69,7 +69,7 @@ -
+
@@ -133,6 +133,8 @@ @@ -231,22 +237,6 @@ export default { } .right { - .head-search { - width: 2.4rem; - height: .8rem; - border-radius: 2.56rem; - background-color: rgba(235, 235, 235, 1); - color: #AAAAAA; - font-size: .3467rem; - - .head-search-icon { - width: .4rem; - height: .4rem; - margin-right: .14rem; - } - - margin-right: .4rem; - } .head-more { position: relative; @@ -468,6 +458,175 @@ export default { } } +// 折叠弹窗 +.collapse-box { + display: none; + position: absolute; + right: 0; + top: 1.19rem; + width: 750px; + margin: 0 auto; + min-height: 100%; + background-color: rgba(0, 0, 0, 0.7); + z-index: 8; + + &.collapse-show { + display: block; + } + + .collapse-container { + background-color: #fff; + width: 7.6rem; + height: 100%; + position: absolute; + right: 0; + top: 0; + display: flex; + flex-direction: column; + } + + .collapse-my { + margin: 0.9rem 0; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + padding: 0 0.7rem 0 0.8rem; + + .my-left { + width: 3.5rem; + display: flex; + align-items: center; + } + + .my-right { + width: 2.5rem; + position: relative; + display: flex; + justify-content: end; + } + + // 头像 + .collapse-my-img { + width: 1.28rem; + height: 1.28rem; + border-radius: 0.67rem; + margin: 0 0.3rem 0 0; + } + + .collapse-my-name { + font-size: 0.36rem; + color: #333; + } + + .my-img { + width: 1.28rem; + height: 1.28rem; + } + + .right-msg-img { + width: 0.44rem; + height: 0.44rem; + background-size: contain; + background-image: url("../assets/img/icon/email.png"); + } + + .right-msg-num { + display: flex; + justify-content: center; + width: 0.3rem; + height: 0.3rem; + line-height: 0.3rem; + border-radius: 0.2rem; + background-color: #fd3f5d; + color: #fff; + font-size: 0.254rem; + position: absolute; + top: -0.15rem; + right: -0.2rem; + z-index: 1; + } + + // 未登录按钮 + .loginBtn { + width: 2.24rem; + height: 0.8rem; + line-height: 0.8rem; + border-radius: 3.12rem; + background-color: rgba(98, 177, 255, 1); + color: #fff; + font-size: 0.34rem; + text-align: center; + } + } + + // 折叠弹窗列表 + .collapse-list { + margin-left: 0.8rem; + border-top: 0.013333rem solid #eee; + border-bottom: 0.013333rem solid #eee; + display: flex; + padding: 0.3rem 0; + flex-direction: column; + + span { + height: 1.44rem; + line-height: 1.44rem; + border-radius: 0.22rem; + padding: 0 0.8rem; + font-size: 0.36rem; + margin: 0.1rem 0.8rem 0.1rem 0; + } + + .listActive { + background-color: rgba(80, 227, 194, 1); + font-weight: bolder; + } + } + + // 折叠弹窗发布帖子 + .collapse-publish { + margin: 0.9rem 0; + display: flex; + justify-content: center; + align-items: center; + flex-direction: row; + + span { + color: #000; + font-size: 0.4rem; + } + + // 发布帖子图片 + .collapse-publish-img { + width: 0.48rem; + height: 0.48rem; + border-radius: 0.24rem; + background-color: #fddf6d; + display: flex; + justify-content: center; + align-items: center; + margin-right: 0.2rem; + } + + .icon-add { + width: 0.24rem; + height: 0.24rem; + } + } + + .collapse-close { + display: flex; + justify-content: center; + padding: 0.5rem 0; + + .icon-close { + width: 0.32rem; + height: 0.32rem; + } + } +} + header { display: flex; @@ -512,173 +671,6 @@ header { right: -0.2rem; } - // 折叠弹窗 - .collapse-box { - display: none; - position: absolute; - right: 0; - top: 1.19rem; - width: 750px; - margin: 0 auto; - min-height: 100%; - background-color: rgba(0, 0, 0, 0.7); - z-index: 8; - &.collapse-show { - display: block; - } - - .collapse-container { - background-color: #fff; - width: 7.6rem; - height: 100%; - position: absolute; - right: 0; - top: 0; - display: flex; - flex-direction: column; - } - - .collapse-my { - margin: 0.9rem 0; - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; - padding: 0 0.7rem 0 0.8rem; - - .my-left { - width: 3.5rem; - display: flex; - align-items: center; - } - - .my-right { - width: 2.5rem; - position: relative; - display: flex; - justify-content: end; - } - - // 头像 - .collapse-my-img { - width: 1.28rem; - height: 1.28rem; - border-radius: 0.67rem; - margin: 0 0.3rem 0 0; - } - - .collapse-my-name { - font-size: 0.36rem; - color: #333; - } - - .my-img { - width: 1.28rem; - height: 1.28rem; - } - - .right-msg-img { - width: 0.44rem; - height: 0.44rem; - background-size: contain; - background-image: url("../assets/img/icon/email.png"); - } - - .right-msg-num { - display: flex; - justify-content: center; - width: 0.3rem; - height: 0.3rem; - line-height: 0.3rem; - border-radius: 0.2rem; - background-color: #fd3f5d; - color: #fff; - font-size: 0.254rem; - position: absolute; - top: -0.15rem; - right: -0.2rem; - z-index: 1; - } - - // 未登录按钮 - .loginBtn { - width: 2.24rem; - height: 0.8rem; - line-height: 0.8rem; - border-radius: 3.12rem; - background-color: rgba(98, 177, 255, 1); - color: #fff; - font-size: 0.34rem; - text-align: center; - } - } - - // 折叠弹窗列表 - .collapse-list { - margin-left: 0.8rem; - border-top: 0.013333rem solid #eee; - border-bottom: 0.013333rem solid #eee; - display: flex; - padding: 0.3rem 0; - flex-direction: column; - - span { - height: 1.44rem; - line-height: 1.44rem; - border-radius: 0.22rem; - padding: 0 0.8rem; - font-size: 0.36rem; - margin: 0.1rem 0.8rem 0.1rem 0; - } - - .listActive { - background-color: rgba(80, 227, 194, 1); - font-weight: bolder; - } - } - - // 折叠弹窗发布帖子 - .collapse-publish { - margin: 0.9rem 0; - display: flex; - justify-content: center; - align-items: center; - flex-direction: row; - - span { - color: #000; - font-size: 0.4rem; - } - - // 发布帖子图片 - .collapse-publish-img { - width: 0.48rem; - height: 0.48rem; - border-radius: 0.24rem; - background-color: #fddf6d; - display: flex; - justify-content: center; - align-items: center; - margin-right: 0.2rem; - } - - .icon-add { - width: 0.24rem; - height: 0.24rem; - } - } - - .collapse-close { - display: flex; - justify-content: center; - padding: 0.5rem 0; - - .icon-close { - width: 0.32rem; - height: 0.32rem; - } - } - } } diff --git a/src/components/PlateNavigation.vue b/src/components/PlateNavigation.vue new file mode 100755 index 0000000..2c182a7 --- /dev/null +++ b/src/components/PlateNavigation.vue @@ -0,0 +1,32 @@ + + + + + + \ No newline at end of file diff --git a/src/components/SearchBox.vue b/src/components/SearchBox.vue index 5d56f6e..c13709b 100755 --- a/src/components/SearchBox.vue +++ b/src/components/SearchBox.vue @@ -1,23 +1,24 @@ \ No newline at end of file diff --git a/src/components/SvgIcon.vue b/src/components/SvgIcon.vue index 0e9c253..087c1e5 100755 --- a/src/components/SvgIcon.vue +++ b/src/components/SvgIcon.vue @@ -1,41 +1,44 @@ diff --git a/src/views/collect/Collect.vue b/src/views/collect/Collect.vue index 3798df4..cb66022 100755 --- a/src/views/collect/Collect.vue +++ b/src/views/collect/Collect.vue @@ -3,28 +3,22 @@
- 未收藏 + 未收藏
收藏你感兴趣的版块,迅速浏览相应的帖子
-
+ + +
马上收藏
-
+ +
-
+
{{ item.label }}
@@ -33,28 +27,18 @@ 设置
-
+
设置收藏版块
共收藏 5 个版块
-
- - 添加 - -
+ + 添加 +
-
+
香港澳门台湾留学申请
@@ -65,11 +49,7 @@
-
-
论坛
-
论坛
-
论坛
-
+
@@ -89,10 +69,7 @@
- +
匿名用户
@@ -108,9 +85,8 @@
-
- 精华 -
+ + 精华
@@ -126,10 +102,7 @@
- +
匿名用户
@@ -145,9 +118,8 @@
-
- 精华 -
+ + 精华
@@ -155,16 +127,17 @@
-
+
@@ -56,6 +53,7 @@ nav { -webkit-user-select: none; -moz-user-focus: none; -moz-user-select: none; + color: #555; &.router-link-exact-active { color: #000; @@ -64,6 +62,7 @@ nav { } } } + // 发帖按钮 .publish { background-color: rgba(253, 223, 109, 1); diff --git a/src/views/recommend/Recommend.vue b/src/views/recommend/Recommend.vue index 777c570..92fe7a7 100755 --- a/src/views/recommend/Recommend.vue +++ b/src/views/recommend/Recommend.vue @@ -2,14 +2,16 @@
-
{{item.label}}
+
{{ item.label }}
-
+ +
@@ -19,7 +21,8 @@
23fall 美国llm 求定位
-
背景:生于80年代中期,英语基础不好,备考托福3个月,刚好100分。2018年8月开始读LLM. 读书期间Point Bar6666666666666666666666
+
背景:生于80年代中期,英语基础不好,备考托福3个月,刚好100分。2018年8月开始读LLM. 读书期间Point + Bar6666666666666666666666
@@ -32,16 +35,15 @@
1552
- +
12
-
- 精华 -
+ + 精华
@@ -77,45 +79,45 @@
- - + +
- \ No newline at end of file + \ No newline at end of file