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
f13c9b3e
Commit
f13c9b3e
authored
6 months ago
by
Xingan Zhao
Browse files
Options
Downloads
Patches
Plain Diff
adjustable header.home page.
parent
41eef9a3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#415110
failed
6 months ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/containers/App/App.css
+10
-3
10 additions, 3 deletions
src/containers/App/App.css
src/containers/App/App.tsx
+2
-2
2 additions, 2 deletions
src/containers/App/App.tsx
src/contents/home.tsx
+5
-8
5 additions, 8 deletions
src/contents/home.tsx
with
17 additions
and
13 deletions
src/containers/App/App.css
+
10
−
3
View file @
f13c9b3e
...
...
@@ -103,7 +103,14 @@ footer a:hover {
background-attachment
:
fixed
;
/* 固定背景图片,使其在滚动时不移动 */
}
.px100
{
font-size
:
100px
;
color
:
#72d6b0
;
.custom-header
{
width
:
100vw
;
height
:
200px
;
background-image
:
url('/src/asset/img/miami.jpg')
;
/* 背景图片路径 */
background-size
:
cover
;
/* 使背景图片覆盖整个容器 */
background-position
:
center
;
/* 居中对齐背景图片 */
background-repeat
:
no-repeat
;
/* 防止背景图片重复 */
background-attachment
:
fixed
;
/* 固定背景图片,使其在滚动时不移动 */
}
This diff is collapsed.
Click to expand it.
src/containers/App/App.tsx
+
2
−
2
View file @
f13c9b3e
...
...
@@ -35,8 +35,8 @@ const App = () => {
path
=
{
path
}
element
=
{
<>
<
Header
title
=
{
title
||
""
}
lead
=
{
lead
||
""
}
/>
<
div
className
=
"container"
>
{
/*
<Header title={title || ""} lead={lead || ""} />
*/
}
<
div
className
=
"container
-fluid
"
>
<
Component
/>
</
div
>
</>
...
...
This diff is collapsed.
Click to expand it.
src/contents/home.tsx
+
5
−
8
View file @
f13c9b3e
...
...
@@ -5,17 +5,14 @@ export function Home() {
return
(
<>
<
div
className
=
"container"
>
<
div
className
=
"custom-header left-align"
></
div
>
<
div
className
=
"container-fluid"
>
<
div
className
=
"row justify-content-center bg-rice_yellow "
>
<
div
></
div
>
<
div
className
=
"col-md-8"
>
<
div
className
=
"row justify-content-center h1"
>
Promotion Video
</
div
>
<
div
className
=
"embed-responsive embed-responsive-16by9"
>
<
video
className
=
"embed-responsive-item"
controls
>
<
div
className
=
"embed-responsive embed-responsive-16by9
row
"
>
<
video
className
=
"embed-responsive-item
justify-content-center
"
controls
>
<
source
src
=
{
"
https://static.igem.org/peertube/streaming-playlists/hls/b8667885-e1be-48b2-ab9b-d1aac71db0da/e35183e1-c8b5-45b0-a83a-d2b98dcb6996-480-fragmented.mp4
"
}
type
=
"video/mp4"
/>
Your browser does not support the video tag.
</
video
>
...
...
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