Skip to content
Snippets Groups Projects
Commit 46365610 authored by Xingan Zhao's avatar Xingan Zhao
Browse files

add some example container and text to home&model.add some basic css

parent 00f202fe
No related branches found
No related tags found
No related merge requests found
Pipeline #417699 passed
...@@ -301,7 +301,8 @@ footer a:hover { ...@@ -301,7 +301,8 @@ footer a:hover {
} }
.promotion-video { .promotion-video {
height: 30vh; /* 设置高度为视口高度的80% */ width: 100%;
height: auto; /* 设置高度为视口高度的80% */
border: none; border: none;
border-radius: 30px; /* 圆角效果 */ border-radius: 30px; /* 圆角效果 */
} }
...@@ -400,4 +401,20 @@ footer a:hover { ...@@ -400,4 +401,20 @@ footer a:hover {
.side-navbar .nav-link.notActive:hover { .side-navbar .nav-link.notActive:hover {
background-color: rgb(204, 204, 168); 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
...@@ -36,16 +36,48 @@ export function Home() { ...@@ -36,16 +36,48 @@ export function Home() {
className="responsive-img" className="responsive-img"
/> />
</div> </div>
<div className="row justify-content-center h1">Stream our Promotion Video</div>
<div className="col-md-6 row justify-content-center mb-5"> <div className="row justify-content-center h1 full-height-element">
<iframe <div className="row">
title="SMU-GDMU-CHINA: Engineered bacterial therapeutics for Preventing Hepatic Encepha... (2024) - Project Promotion [English]" <div>我是小盒子</div>
className="promotion-video" <div className="rounded-border">有橙色边框的小盒子</div>
src="https://video.igem.org/videos/embed/b8667885-e1be-48b2-ab9b-d1aac71db0da" <p>大家好,我是文本</p>
allowFullScreen={true} <p className="indent">大家好啊,我的开头有缩进</p>
sandbox="allow-same-origin allow-scripts allow-popups allow-forms"> <p className="center-text">大家好!我是居中文本!</p>
</iframe> <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>
<div className="col-1"></div>
</div>
</div> </div>
</div> </div>
......
...@@ -84,8 +84,14 @@ export function Model() { ...@@ -84,8 +84,14 @@ export function Model() {
className="responsive-img" className="responsive-img"
/> />
</Element> </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'> <Element name="section2" className="element rounded-border" id='section2'>
...@@ -97,6 +103,9 @@ export function Model() { ...@@ -97,6 +103,9 @@ export function Model() {
This is an inline math formula: <MathJax.Node inline formula={`f(x) = \\int_{-\\infty}^\\infty This is an inline math formula: <MathJax.Node inline formula={`f(x) = \\int_{-\\infty}^\\infty
\\hat f(\\xi)\\,e^{2 \\pi i \\xi x} \\hat f(\\xi)\\,e^{2 \\pi i \\xi x}
\\,d\\xi`} /> \\,d\\xi`} />
<MathJax.Node formula={`f(x) = \\int_{-\\infty}^\\infty
\\hat f(\\xi)\\,e^{2 \\pi i \\xi x}
\\,d\\xi`} />
</div> </div>
</MathJax.Provider> </MathJax.Provider>
<img <img
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment