修改样式

This commit is contained in:
JACKYMYPERSON
2025-11-02 15:50:22 +08:00
parent 97dc115c7b
commit 8876b366f3
7 changed files with 33 additions and 31 deletions

View File

@@ -457,7 +457,7 @@ const handleCoverSuccess: UploadProps['onSuccess'] = (response) => {
}; };
const beforeCoverUpload: UploadProps['beforeUpload'] = (rawFile) => { const beforeCoverUpload: UploadProps['beforeUpload'] = (rawFile) => {
const isLt5M = rawFile.size / 1024 / 1024 < 5; const isLt5M = rawFile.size / 1024 / 1024 < 15;
if (!isLt5M) { if (!isLt5M) {
ElMessage.error('图片大小不能超过 5MB!'); ElMessage.error('图片大小不能超过 5MB!');
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@@ -108,24 +108,14 @@
> >
<div class="banner-mask"></div> <div class="banner-mask"></div>
<div class="banner-content"> <div class="banner-content">
<div class="conference-info">
<div class="hdic-logo">{{ currentMeeting.theme }}</div>
<h1 v-html="currentMeeting.subtitle"></h1>
<div class="conference-meta">
<div class="meta-item">
<span class="meta-label">时间 / TIME</span>
<span class="meta-value">{{ formatMeetingTime(currentMeeting.start_time, currentMeeting.end_time) }}</span>
</div>
</div>
</div>
</div> </div>
</div> </div>
<!-- 大会报道 --> <!-- 大会报道 -->
<section class="report-section" id="report" ref="reportRef"> <section class="report-section" id="report" ref="reportRef">
<div class="section-header"> <div class="section-header">
<h2>大会报道</h2> <h2 style="font-family: 'Source Han Serif CN', '思源宋体 CN';">大会报道 Conference Report</h2>
<p>Conference Report</p>
<a href="javascript:void(0)" class="more-link">More</a> <a href="javascript:void(0)" class="more-link">More</a>
</div> </div>
@@ -146,8 +136,7 @@
<!-- 会议日程 --> <!-- 会议日程 -->
<section class="schedule-section" id="schedule" ref="scheduleRef"> <section class="schedule-section" id="schedule" ref="scheduleRef">
<div class="section-header"> <div class="section-header">
<h2>会议日程</h2> <h2 style="font-family: 'Source Han Serif CN', '思源宋体 CN';">会议日程 Meeting Schedule</h2>
<p>Meeting Schedule</p>
<a href="javascript:void(0)" class="more-link">More</a> <a href="javascript:void(0)" class="more-link">More</a>
</div> </div>
@@ -169,8 +158,7 @@
<!-- 演讲嘉宾动态获取 --> <!-- 演讲嘉宾动态获取 -->
<section class="speakers-section" id="speakers" ref="speakersRef"> <section class="speakers-section" id="speakers" ref="speakersRef">
<div class="section-header"> <div class="section-header">
<h2>演讲嘉宾</h2> <h2 style="font-family: 'Source Han Serif CN', '思源宋体 CN';">演讲嘉宾 Speakers</h2>
<p>Speakers</p>
<a href="javascript:void(0)" class="more-link">More</a> <a href="javascript:void(0)" class="more-link">More</a>
</div> </div>
@@ -210,8 +198,7 @@
<!-- 往届回顾当前会议之外的最近3个会议 --> <!-- 往届回顾当前会议之外的最近3个会议 -->
<section class="review-section" id="review" ref="reviewRef"> <section class="review-section" id="review" ref="reviewRef">
<div class="section-header"> <div class="section-header">
<h2>往届回顾</h2> <h2 style="font-family: 'Source Han Serif CN', '思源宋体 CN';">往届回顾 Previous Review</h2>
<p>Previous Review</p>
<a href="javascript:void(0)" class="more-link" @click="goToAllMeetingsPage">More</a> <a href="javascript:void(0)" class="more-link" @click="goToAllMeetingsPage">More</a>
</div> </div>
@@ -852,6 +839,7 @@ onMounted(() => {
align-items: center; align-items: center;
width: 100vw; /* 设置宽度为视口宽度 */ width: 100vw; /* 设置宽度为视口宽度 */
margin-left: calc(-50vw + 50%); /* 使元素居中并充满屏幕宽度 */ margin-left: calc(-50vw + 50%); /* 使元素居中并充满屏幕宽度 */
height: 30vh;
left: 0; left: 0;
} }
@@ -861,7 +849,6 @@ onMounted(() => {
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: rgba(0, 0, 0, 0.4);
z-index: 1; z-index: 1;
} }
@@ -1092,7 +1079,7 @@ onMounted(() => {
.speaker-name { .speaker-name {
font-weight: 600; font-weight: 600;
color: #2c3e50; color: #2c3e50;
font-size: 1.1rem; font-size: 1rem;
margin-bottom: 5px; margin-bottom: 5px;
} }

View File

@@ -11,7 +11,7 @@
<!-- 叠加的标题文字 --> <!-- 叠加的标题文字 -->
<div class="cover-title"> <div class="cover-title">
<h1 class="main-title">基地概况</h1> <h1 class="main-title">基地概况</h1>
<p class="english-title">BASE OVERVIEW</p> <p class="english-title">Base Overview</p>
</div> </div>
</div> </div>
@@ -251,6 +251,7 @@ const formattedWebsite = computed(() => {
} }
.main-title { .main-title {
font-family: 'Source Han Serif CN', '思源宋体 CN', serif;
font-size: 48px; font-size: 48px;
font-weight: 600; font-weight: 600;
margin: 0 0 10px 0; margin: 0 0 10px 0;
@@ -258,13 +259,14 @@ const formattedWebsite = computed(() => {
} }
.english-title { .english-title {
font-size: 24px; font-family: 'Source Han Serif CN', '思源宋体 CN', serif;
text-transform: uppercase; font-size: 48px;
margin: 0; margin: 0;
letter-spacing: 2px; letter-spacing: 2px;
} }
.content-wrapper { .content-wrapper {
font-family: 'Source Han Serif CN', '思源宋体 CN', serif;
max-width: 1200px; max-width: 1200px;
margin: 0 auto; margin: 0 auto;
padding: 0 20px; padding: 0 20px;

View File

@@ -24,7 +24,9 @@
<!-- 新闻动态 --> <!-- 新闻动态 -->
<div class="news-section"> <div class="news-section">
<div class="section-header"> <div class="section-header">
<h2>新闻动态 <span class="en-title">News</span></h2> <h2 style="font-family: 'Source Han Serif CN', '思源宋体 CN', serif; font-size: 55px; margin: 0; padding: 0;">
新闻动态<span class="en-title" style="font-family: 'Source Han Serif CN', '思源宋体 CN', serif;">News</span>
</h2>
<el-link class="more-btn" :to="{ path: '/news-more' }">More</el-link> <el-link class="more-btn" :to="{ path: '/news-more' }">More</el-link>
</div> </div>
<div class="news-cards"> <div class="news-cards">
@@ -50,7 +52,9 @@
<!-- 案例资源 --> <!-- 案例资源 -->
<div class="news-section"> <div class="news-section">
<div class="section-header"> <div class="section-header">
<h2>案例资源 <span class="en-title">Resource</span></h2> <h2 style="font-family: 'Source Han Serif CN', '思源宋体 CN', serif; font-size: 55px; margin: 0; padding: 0;">
案例资源<span class="en-title" style="font-family: 'Source Han Serif CN', '思源宋体 CN', serif;">News</span>
</h2>
<el-link class="more-btn" :to="{ path: '/resource-more' }">More</el-link> <el-link class="more-btn" :to="{ path: '/resource-more' }">More</el-link>
</div> </div>
<div class="news-cards"> <div class="news-cards">
@@ -76,7 +80,9 @@
<!-- 社区服务 --> <!-- 社区服务 -->
<div class="news-section"> <div class="news-section">
<div class="section-header"> <div class="section-header">
<h2>社区服务 <span class="en-title">Community</span></h2> <h2 style="font-family: 'Source Han Serif CN', '思源宋体 CN', serif; font-size: 55px; margin: 0; padding: 0;">
社区服务<span class="en-title" style="font-family: 'Source Han Serif CN', '思源宋体 CN', serif;">News</span>
</h2>
<el-link class="more-btn" :to="{ path: '/community-more' }">More</el-link> <el-link class="more-btn" :to="{ path: '/community-more' }">More</el-link>
</div> </div>
<div class="news-cards"> <div class="news-cards">
@@ -309,6 +315,7 @@ onMounted(async () => {
transition: all 0.3s ease; transition: all 0.3s ease;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 458px;
} }
.news-card:hover { .news-card:hover {
transform: translateY(-5px); transform: translateY(-5px);
@@ -327,17 +334,19 @@ onMounted(async () => {
flex-grow: 1; flex-grow: 1;
} }
.card-title { .card-title {
font-size: 18px; font-size: 25px;
margin: 0 0 10px 0; margin: 0 0 10px 0;
font-weight: 500; font-weight: 500;
color: #333; color: #333;
} }
.card-desc { .card-desc {
font-family: 'Source Han Sans CN', '思源黑体 CN', sans-serif;
font-size: 14px; font-size: 14px;
color: #666; color: rgba(102, 102, 102, 0.6);
line-height: 1.7; line-height: 1.7;
flex-grow: 1; flex-grow: 1;
margin-bottom: 15px; margin-bottom: 15px;
font-weight: bold;
} }
.detail-btn { .detail-btn {
color: #b50009 !important; color: #b50009 !important;

View File

@@ -457,8 +457,8 @@ export default {
.cover-img { width: 100%; height: auto; max-height: 500px; object-fit: cover; transition: transform 0.6s ease; } .cover-img { width: 100%; height: auto; max-height: 500px; object-fit: cover; transition: transform 0.6s ease; }
.article-cover:hover .cover-img { transform: scale(1.02); } .article-cover:hover .cover-img { transform: scale(1.02); }
.article-body { max-width: 800px; margin: 0 auto; } .article-body { max-width: 800px; margin: 0 auto; }
.article-title { font-size: 2.2rem; color: #1D2129; margin-bottom: 1rem; font-weight: 700; line-height: 1.4; } .article-title { font-family: 'Source Han Serif CN', '思源宋体 CN';font-size: 2.2rem; color: #1D2129; margin-bottom: 1rem; font-weight: 700; line-height: 1.4; }
.article-subtitle { color: #4B5563; font-size: 1.3rem; margin-bottom: 1rem; font-weight: 500; font-style: italic; } .article-subtitle { color: #4B5563; font-size: 1.3rem; margin-bottom: 1rem; font-weight: 500; font-family: 'Source Han Serif CN', '思源宋体 CN'; }
.article-date { color: #9CA3AF; font-size: 1rem; margin-bottom: 2.5rem; font-weight: 500; } .article-date { color: #9CA3AF; font-size: 1rem; margin-bottom: 2.5rem; font-weight: 500; }
.article-content { color: #4B5563; line-height: 1.95; font-size: 1.1rem; text-align: left; margin: 0 auto; } .article-content { color: #4B5563; line-height: 1.95; font-size: 1.1rem; text-align: left; margin: 0 auto; }
.article-content >>> p { margin-bottom: 1.5rem; } .article-content >>> p { margin-bottom: 1.5rem; }

View File

@@ -0,0 +1,4 @@
首页新闻动态title
![alt text](976896777228a10c2971f31f6e02920f.png)