diff --git a/src/home/FifthSection/index.jsx b/src/home/FifthSection/index.jsx index 64eed1a0..18f81b39 100644 --- a/src/home/FifthSection/index.jsx +++ b/src/home/FifthSection/index.jsx @@ -155,7 +155,7 @@ function FifthSection({ fifth, history }) {

创客空间

-

开源项目版块集项目托管、版本管理等功能于一体,为开源协作和群智汇聚提供创作环境

+

创客空间版块面向大众智慧群体征集技术成果、创意概念和解决方案,实现供需高效对接

社区动态

-

为社区用户提供自主交流空间,实现思维碰撞和智慧融合

+

关注开源热点资讯与技术,分享红山观点与活动

@@ -77,7 +77,7 @@ function SecondSection({ second ,main_web_site_url}) {
- +
diff --git a/src/home/SeventhSection/index.jsx b/src/home/SeventhSection/index.jsx index f7dc3d49..97a8f560 100644 --- a/src/home/SeventhSection/index.jsx +++ b/src/home/SeventhSection/index.jsx @@ -27,7 +27,7 @@ let setting = { } -function SeventhSection({ main_web_site_url }) { +function SeventhSection({ main_web_site_url,btnUrl }) { const [list, setList] = useState([]); @@ -79,7 +79,7 @@ function SeventhSection({ main_web_site_url }) { - + diff --git a/src/home/SeventhSection/index.scss b/src/home/SeventhSection/index.scss index e13901bb..a9889f88 100644 --- a/src/home/SeventhSection/index.scss +++ b/src/home/SeventhSection/index.scss @@ -159,21 +159,21 @@ .issue-content { text-align: left; text-indent: 2em; - font-size: 15px; + font-size: 0.95em; font-weight: 400; color: #3c476e; - line-height: 28px; + line-height: 1.75em; } .issue-time { - height: 28px; - font-size: 15px; + height: 1.75em; + font-size: 0.95em; color: #3c476e; - line-height: 28px; + line-height: 1.75em; } } .homepage-btn { - margin-top: 50px; + margin-top: 3.125em; } @keyframes zoomin { diff --git a/src/home/SixthSection/index.jsx b/src/home/SixthSection/index.jsx index 838fa01e..59a3800c 100644 --- a/src/home/SixthSection/index.jsx +++ b/src/home/SixthSection/index.jsx @@ -17,7 +17,7 @@ import './index.scss'; let iconArr = [completeIcon1, completeIcon2, completeIcon3]; -function SixthSection({ sixth, main_web_site_url }) { +function SixthSection({ sixth, main_web_site_url,btnUrl }) { const [list, setList] = useState(); @@ -78,7 +78,7 @@ function SixthSection({ sixth, main_web_site_url }) { - + diff --git a/src/home/index.jsx b/src/home/index.jsx index 96b5c425..46b5db6e 100644 --- a/src/home/index.jsx +++ b/src/home/index.jsx @@ -33,6 +33,18 @@ function HomePage({ history }) { let settings = JSON.parse(localStorage.chromesetting); let main_web_site_url = settings.main_web_site_url; + let forumUrl =""; + let competitionUrl =""; + if(settings.navbar){ + for (const item of settings.navbar){ + if(item.name.indexOf("论坛")>-1){ + forumUrl=item.link; + } + if(item.name.indexOf("竞赛")>-1){ + competitionUrl=item.link; + } + } + } function scrollListener() { @@ -120,7 +132,7 @@ function HomePage({ history }) {
- +
@@ -137,11 +149,11 @@ function HomePage({ history }) {
- +
- +