feat: 增加文章模板 修改部分页面样式

This commit is contained in:
ZhuRui
2026-08-26 14:01:10 +08:00
parent 7f01557d39
commit 90b22a2ff6
10 changed files with 726 additions and 55 deletions
+101 -1
View File
@@ -1,3 +1,103 @@
.banner{width:100%;height:520px;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center}.banner__bg{z-index:0;position:absolute;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}.banner__body{z-index:1;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center}.banner__body__title{font-size:60px;line-height:90px}.banner__body__sub{margin-top:0;font-size:20px}.main{display:flex;flex-direction:column;align-items:center}.main__title{-webkit-user-select:none;-moz-user-select:none;user-select:none;margin-top:85px;font-size:38px;font-weight:bold;color:#191919}.main__about{margin-top:75px;display:flex;flex-direction:row;justify-content:center}.main__about img{height:285px;-o-object-fit:cover;object-fit:cover;margin-right:25px}.main__about .tex{text-indent:2em;line-height:24px;font-size:14px;max-width:450px}.main .certificate-con{margin-top:75px;display:flex;gap:30px}.main .certificate-con img{height:245px;-o-object-fit:contain;object-fit:contain}.main .copyright-con{margin-top:75px}.main .copyright-con img{width:945px;-o-object-fit:contain;object-fit:contain}
.banner {
width: 100%;
height: 520px;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center
}
.banner__bg {
z-index: 0;
position: absolute;
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
display: block
}
.banner__body {
z-index: 1;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
color: #fff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center
}
.banner__body__title {
font-size: 60px;
line-height: 90px;
user-select: none;
}
.banner__body__sub {
margin-top: 0;
font-size: 20px
}
.main {
display: flex;
flex-direction: column;
align-items: center
}
.main__title {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
margin-top: 85px;
font-size: 38px;
font-weight: bold;
color: #191919
}
.main__about {
margin-top: 75px;
display: flex;
flex-direction: row;
justify-content: center
}
.main__about img {
height: 285px;
-o-object-fit: cover;
object-fit: cover;
margin-right: 25px
}
.main__about .tex {
text-indent: 2em;
line-height: 24px;
font-size: 14px;
max-width: 450px
}
.main .certificate-con {
margin-top: 75px;
display: flex;
gap: 30px
}
.main .certificate-con img {
height: 245px;
-o-object-fit: contain;
object-fit: contain
}
.main .copyright-con {
margin-top: 75px
}
.main .copyright-con img {
width: 945px;
-o-object-fit: contain;
object-fit: contain
}
/*# sourceMappingURL=about.css.map?hash=b446ba1443bc4913f472*/
-3
View File
@@ -552,9 +552,6 @@ h6 {
.banner {
width: 100%;
overflow: hidden;
background-image: url(../../assets/modules/c1666e324390215be9e3.png);
background-size: cover;
background-position: center;
height: 678px;
display: flow-root
}
+102 -10
View File
@@ -7,7 +7,7 @@
/* 顶部 banner:复用站点 .banner 结构,图片通过 .banner__bg 填充 */
.news-page .banner {
width: 100%;
height: 400px;
height: 520px;
position: relative;
display: flex;
flex-direction: column;
@@ -40,11 +40,13 @@
font-size: 46px;
font-weight: bold;
line-height: 1.2;
letter-spacing: 6px;
letter-spacing: 2px;
user-select: none;
}
.news-page .banner__body__sub {
margin-top: 14px;
font-size: 18px;
user-select: none;
}
/* 内容容器 */
@@ -227,7 +229,6 @@
border-radius: 4px;
padding: 8px 16px;
margin: 0 4px;
cursor: pointer;
transition: all 0.2s;
}
.news-main .pages ul li a {
@@ -241,13 +242,6 @@
.news-main .pages ul li.active a {
color: #fff;
}
.news-main .pages ul li:hover {
background: #eb662b;
border-color: #eb662b;
}
.news-main .pages ul li:hover a {
color: #fff;
}
/* 右侧悬浮热文推荐 */
.news-main .neirong .you {
@@ -314,3 +308,101 @@
font-size: 12px;
margin-top: 4px;
}
/* 文章详情页样式(统一模板) */
.news-main .nav_all .name {
font-weight: bold;
font-size: 18px;
color: #333;
line-height: 40px;
}
.news-main .articlea {
overflow: hidden;
}
.news-main .articleb {
border: 1px solid #ebebeb;
padding: 30px;
background: #fff;
border-radius: 10px;
}
.news-main .articleba {
position: relative;
font-size: 26px;
display: block;
letter-spacing: 2px;
font-weight: 600;
margin: 0 0 25px;
color: #333;
text-align: left;
line-height: 1.4;
}
.news-main .articled {
display: flex;
align-items: center;
margin-top: 8px;
font-size: 12px;
color: #999;
gap: 12px
}
.news-main .articlee {
text-align: left;
margin: 20px 0;
line-height: 1.8;
font-size: 16px;
color: #3d464d;
}
.news-main .articlee p {
margin-bottom: 25px;
line-height: 1.8;
font-size: 16px;
}
.news-main .articlee img {
display: block;
max-width: 100%;
border: 8px solid #fff;
box-shadow: 2px 2px 12px 2px rgba(0, 0, 0, 0.1);
margin: 20px auto 0;
}
.news-main .article-copyright2 {
margin-top: 30px;
padding: 14px 16px;
background: #f8f9fb;
border-radius: 4px;
font-size: 13px;
color: #999;
line-height: 1.8;
text-align: left;
}
.news-main .articlea .pages {
margin-top: 24px;
padding-top: 16px;
border-top: 1px solid #ebebeb;
text-align: left;
}
.news-main .articlea .pages ul {
list-style: none;
margin: 0;
padding: 0;
overflow: hidden;
}
.news-main .articlea .pages ul li {
display: block;
margin: 4px 0;
padding: 0;
border: none;
}
.news-main .articlea .pages ul li a {
display: inline-block;
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
vertical-align: bottom;
color: #1a2026;
font-size: 14px;
text-decoration: none;
line-height: 1.6;
}
.news-main .articlea .pages ul li a:hover {
color: #eb662b;
}
+89 -2
View File
@@ -1,4 +1,91 @@
.banner{width:100%;height:520px;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center}.banner__bg{z-index:0;position:absolute;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}.banner__body{z-index:1;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center}.banner__body__title{font-size:60px;line-height:90px}.banner__body__sub{margin-top:0;font-size:20px}.main{display:flex;flex-direction:column;align-items:center}.main__title{font-weight:bold;margin:95px 0 65px 0;font-size:28px}.main__bottom{margin-top:80px}
.form-con[data-v-6899443a]{display:flex;flex-direction:column;align-items:center;width:380px;padding:60px 75px;box-shadow:#ccc 0 0 5px;border-radius:8px}.form-con .form-item-row[data-v-6899443a]{display:flex;gap:10px;flex:1}.form-submit[data-v-6899443a]{width:260px;height:48px;margin-top:30px;background-color:#ffc300;color:#000}.remark[data-v-6899443a]{margin-top:20px;text-align:center;font-size:12px;color:#717171}
.banner {
width: 100%;
height: 520px;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center
}
.banner__bg {
z-index: 0;
position: absolute;
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
display: block
}
.banner__body {
z-index: 1;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
color: #fff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center
}
.banner__body__title {
font-size: 60px;
line-height: 90px;
user-select: none;
}
.banner__body__sub {
margin-top: 0;
font-size: 20px
}
.main {
display: flex;
flex-direction: column;
align-items: center
}
.main__title {
font-weight: bold;
margin: 95px 0 65px 0;
font-size: 28px
}
.main__bottom {
margin-top: 80px
}
.form-con[data-v-6899443a] {
display: flex;
flex-direction: column;
align-items: center;
width: 380px;
padding: 60px 75px;
box-shadow: #ccc 0 0 5px;
border-radius: 8px
}
.form-con .form-item-row[data-v-6899443a] {
display: flex;
gap: 10px;
flex: 1
}
.form-submit[data-v-6899443a] {
width: 260px;
height: 48px;
margin-top: 30px;
background-color: #ffc300;
color: #000
}
.remark[data-v-6899443a] {
margin-top: 20px;
text-align: center;
font-size: 12px;
color: #717171
}
/*# sourceMappingURL=register.css.map?hash=b446ba1443bc4913f472*/