diff --git a/src/containers/App/App.css b/src/containers/App/App.css index 406a3c0a703373fd7e3dc170f04f52390a0eef5c..5c5fceea8becd11cc6cdd8a59145a9ddc5b83fba 100644 --- a/src/containers/App/App.css +++ b/src/containers/App/App.css @@ -301,7 +301,8 @@ footer a:hover { } .promotion-video { - height: 30vh; /* 设置高度为视å£é«˜åº¦çš„80% */ + width: 100%; + height: auto; /* 设置高度为视å£é«˜åº¦çš„80% */ border: none; border-radius: 30px; /* 圆角效果 */ } @@ -400,4 +401,20 @@ footer a:hover { .side-navbar .nav-link.notActive:hover { background-color: rgb(204, 204, 168); +} + +.bold-font{ + font-weight: bold; +} + +.red-font{ + color: #d9534f; +} + +.blue-font{ + color: #5bc0de; +} + +.green-font{ + color: #39d197; } \ No newline at end of file diff --git a/src/contents/home.tsx b/src/contents/home.tsx index 80418be2855635e79463443ee3d9971333351a2e..30dd45d778e6e205c5d13b1c97f070aa45acd355 100644 --- a/src/contents/home.tsx +++ b/src/contents/home.tsx @@ -36,16 +36,48 @@ export function Home() { className="responsive-img" /> </div> - <div className="row justify-content-center h1">Stream our Promotion Video</div> - <div className="col-md-6 row justify-content-center mb-5"> - <iframe - title="SMU-GDMU-CHINA: Engineered bacterial therapeutics for Preventing Hepatic Encepha... (2024) - Project Promotion [English]" - className="promotion-video" - src="https://video.igem.org/videos/embed/b8667885-e1be-48b2-ab9b-d1aac71db0da" - allowFullScreen={true} - sandbox="allow-same-origin allow-scripts allow-popups allow-forms"> - </iframe> + + <div className="row justify-content-center h1 full-height-element"> + <div className="row"> + <div>我是å°ç›’å</div> + <div className="rounded-border">有橙色边框的å°ç›’å</div> + <p>大家好,我是文本</p> + <p className="indent">大家好啊,我的开头有缩进</p> + <p className="center-text">大家好ï¼æˆ‘是居ä¸æ–‡æœ¬ï¼</p> + <p className="bold-font">粗粗的文本</p> + <p className="red-font">红色的文本</p> + <p className="green-font">绿色的文本</p> + <p className="blue-font">è“色的文本</p> + <p className="bold-font red-font center-text">å åŠ äº†å¤šç§å±žæ€§çš„文本, + <span className="bold-font">æ’入了粗体</span>æ–‡å—</p> + </div> + </div> + + <div className="full-height-element"> + <h1>ä¸€çº§æ ‡é¢˜</h1> + <h2>äºŒçº§æ ‡é¢˜</h2> + <h3>ä¸‰çº§æ ‡é¢˜</h3> + <h4>å››çº§æ ‡é¢˜</h4> + </div> + + <div className="row full-height-element"> + <p className="center-text h1">Stream our Promotion Video</p> + <div className="col-1"></div> + <div className="col-10 mb-5"> + <iframe + title="SMU-GDMU-CHINA: Engineered bacterial therapeutics for Preventing Hepatic Encepha... (2024) - Project Promotion [English]" + className="promotion-video" + src="https://video.igem.org/videos/embed/b8667885-e1be-48b2-ab9b-d1aac71db0da" + allowFullScreen={true} + sandbox="allow-same-origin allow-scripts allow-popups allow-forms"> + </iframe> </div> + <div className="col-1"></div> + + </div> + + + </div> </div> diff --git a/src/contents/model.tsx b/src/contents/model.tsx index 0ab175650c83ef585a3874cecefda6513562ed77..8d9b62711648eccc42c238f589ee349f7634d81a 100644 --- a/src/contents/model.tsx +++ b/src/contents/model.tsx @@ -84,8 +84,14 @@ export function Model() { className="responsive-img" /> </Element> - - + <p>预设好,用æ¥<span className='bold-font'>粗体</span>装文本的å°ç®±å</p> + <p>1234<p className="bold-font">56</p>7890</p> + <div>很万能的å°ç®±å</div> + <div className="rounded-border"> + <h2 className="center-text">å±…ä¸å°æ ‡é¢˜</h2> + <p>第一行文本</p> + <p>第二行文本,<span className="bold-font">欧耶欧耶</span>欧耶</p> + </div> <Element name="section2" className="element rounded-border" id='section2'> @@ -97,6 +103,9 @@ export function Model() { This is an inline math formula: <MathJax.Node inline formula={`f(x) = \\int_{-\\infty}^\\infty \\hat f(\\xi)\\,e^{2 \\pi i \\xi x} \\,d\\xi`} /> + <MathJax.Node formula={`f(x) = \\int_{-\\infty}^\\infty + \\hat f(\\xi)\\,e^{2 \\pi i \\xi x} + \\,d\\xi`} /> </div> </MathJax.Provider> <img