Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SMU-GDMU-CHINA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
SMU-GDMU-CHINA
Commits
3bb9140d
Commit
3bb9140d
authored
6 months ago
by
Xingan Zhao
Browse files
Options
Downloads
Patches
Plain Diff
add new feature in notebook.tsx
parent
46125140
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/containers/App/App.css
+5
-0
5 additions, 0 deletions
src/containers/App/App.css
src/contents/notebook.tsx
+23
-12
23 additions, 12 deletions
src/contents/notebook.tsx
with
28 additions
and
12 deletions
src/containers/App/App.css
+
5
−
0
View file @
3bb9140d
...
...
@@ -316,6 +316,7 @@ footer a:hover {
width
:
100%
;
/* 图片宽度自适应容器 */
height
:
auto
;
/* 保持图片纵横比 */
display
:
block
;
/* 去掉图片下方的空隙 */
margin
:
2px
;
}
.full-height-element
{
...
...
@@ -616,4 +617,8 @@ footer a:hover {
.mt--8
{
margin-top
:
-8vh
;
}
.height100
{
height
:
100%
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/contents/notebook.tsx
+
23
−
12
View file @
3bb9140d
...
...
@@ -63,27 +63,38 @@ export function Notebook() {
<
div
className
=
"col-8"
>
<
Element
name
=
"section1"
className
=
"element rounded-border"
id
=
'section1'
>
<
h2
>
Section 1
</
h2
>
<
Element
name
=
"section1"
className
=
"element"
id
=
'section1'
>
<
div
className
=
'row'
>
<
div
className
=
'col-4'
><
img
src
=
'https://placehold.co/600x400'
className
=
'responsive-img'
/></
div
>
<
div
className
=
'col-6 rounded-border'
>
<
h4
className
=
"center-text"
>
我是大帅B
</
h4
>
<
p
className
=
"indent"
>
las ijffs aiskfd fskj iiwls asd.aass ffas awssd awus iisal fask.aisisad ksjdfkaf iwjasifjakdshf wijdfalksjf wiksjkfjksalhf, gsahfjhgejkfh uhaejkfh sjdihgfuqiw jh sjiafhjsaj fh asd.
</
p
>
<
p
className
=
"indent"
>
las ijffs aiskfd fskj iiwls asd.aass ffas awssd awus iisal fask.aisisad ksjdfkaf iwjasifjakdshf wijdfalksjf wiksjkfjksalhf, gsahfjhgejkfh uhaejkfh sjdihgfuqiw jh sjiafhjsaj fh asd.
</
p
>
</
div
>
</
div
>
</
Element
>
{
/* <h2>Section 1</h2>
<p>Content for section 1.</p>
<img
src="https://static.igem.wiki/teams/5378/school-badge/yanyintech.webp"
alt="example"
className="responsive-img"
/>
</
Element
>
/>
*/
}
<
Element
name
=
"section2"
className
=
"element rounded-border"
id
=
'section2'
>
<
h2
>
Section 2
</
h2
>
<
p
>
Content for section 2.
</
p
>
<
img
src
=
"https://static.igem.wiki/teams/5378/school-badge/yanyintech.webp"
alt
=
"example"
className
=
"responsive-img"
/>
<
Element
name
=
"section2"
className
=
"element"
id
=
'section2'
>
<
div
className
=
'row'
>
<
div
className
=
'col-6 rounded-border'
>
<
h4
className
=
"center-text"
>
我是大帅B
</
h4
>
<
p
className
=
"indent"
>
las ijffs aiskfd fskj iiwls asd.aass ffas awssd awus iisal fask.aisisad ksjdfkaf iwjasifjakdshf wijdfalksjf wiksjkfjksalhf, gsahfjhgejkfh uhaejkfh sjdihgfuqiw jh sjiafhjsaj fh asd.
</
p
>
<
p
className
=
"indent"
>
las ijffs aiskfd fskj iiwls asd.aass ffas awssd awus iisal fask.aisisad ksjdfkaf iwjasifjakdshf wijdfalksjf wiksjkfjksalhf, gsahfjhgejkfh uhaejkfh sjdihgfuqiw jh sjiafhjsaj fh asd.
</
p
>
</
div
>
<
div
className
=
'col-4'
><
img
src
=
'https://placehold.co/600x400'
className
=
'responsive-img'
/></
div
>
</
div
>
</
Element
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment