Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Peking
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
2023 Competition
Peking
Commits
eda4eda9
Commit
eda4eda9
authored
1 year ago
by
Haotian Li
Browse files
Options
Downloads
Plain Diff
Merge branch 'lhtdraft' into 'main'
indexwave See merge request
!136
parents
2268993d
19a24a75
No related branches found
Branches containing commit
No related tags found
1 merge request
!136
indexwave
Pipeline
#313730
passed
1 year ago
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/indexwave.vue
+84
-0
84 additions, 0 deletions
components/indexwave.vue
pages/index.vue
+3
-1
3 additions, 1 deletion
pages/index.vue
with
87 additions
and
1 deletion
components/indexwave.vue
0 → 100644
+
84
−
0
View file @
eda4eda9
<
template
>
<div
class=
""
>
<svg
class=
"waves z-50"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
viewBox=
"0 24 150 28"
preserveAspectRatio=
"none"
shape-rendering=
"auto"
>
<defs>
<path
id=
"gentle-wave"
d=
"M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z"
/>
</defs>
<g
class=
"parallax"
>
<use
xlink:href=
"#gentle-wave"
x=
"48"
y=
"0"
fill=
"rgba(254,251,240,0.7)"
/>
<use
xlink:href=
"#gentle-wave"
x=
"48"
y=
"3"
fill=
"rgba(254,251,240,0.5)"
/>
<use
xlink:href=
"#gentle-wave"
x=
"48"
y=
"5"
fill=
"rgba(254,251,240,0.3)"
/>
<use
xlink:href=
"#gentle-wave"
x=
"48"
y=
"7"
fill=
"rgba(254,251,240,0.1)"
/>
</g>
</svg>
</div>
</
template
>
<
script
setup
lang=
"ts"
>
</
script
>
<
style
scoped
>
.waves
{
position
:
relative
;
width
:
100%
;
height
:
15vh
;
margin-bottom
:
-7px
;
/*Fix for safari gap*/
min-height
:
100px
;
max-height
:
150px
;
}
/* Animation */
.parallax
>
use
{
animation
:
move-forever
25s
cubic-bezier
(
.55
,
.5
,
.45
,
.5
)
infinite
;
}
.parallax
>
use
:nth-child
(
1
)
{
animation-delay
:
-2s
;
animation-duration
:
7s
;
}
.parallax
>
use
:nth-child
(
2
)
{
animation-delay
:
-3s
;
animation-duration
:
10s
;
}
.parallax
>
use
:nth-child
(
3
)
{
animation-delay
:
-4s
;
animation-duration
:
13s
;
}
.parallax
>
use
:nth-child
(
4
)
{
animation-delay
:
-5s
;
animation-duration
:
20s
;
}
@keyframes
move-forever
{
0
%
{
transform
:
translate3d
(
-90px
,
0
,
0
);
}
100
%
{
transform
:
translate3d
(
85px
,
0
,
0
);
}
}
/*Shrinking for mobile*/
@media
(
max-width
:
768px
)
{
.waves
{
height
:
40px
;
min-height
:
40px
;
}
.content
{
height
:
30vh
;
}
h1
{
font-size
:
24px
;
}
}
</
style
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pages/index.vue
+
3
−
1
View file @
eda4eda9
<
template
>
<div
id=
"index"
class=
"test"
>
<Title>
Home
</Title>
<div
class=
" h-screen"
id=
"home page"
style=
"background: url(https://static.igem.wiki/teams/4713/wiki/index/home.jpg) center center / cover"
>
<div
class=
" h-screen
relative
"
id=
"home page"
style=
"background: url(https://static.igem.wiki/teams/4713/wiki/index/home.jpg) center center / cover"
>
<h3
class=
"text-center pt-52 pb-5 bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 bg-clip-text text-transparent text-4xl lg:text-6xl font-bold"
>
Welcome to peking igem
</h3>
<h1
class=
"text-center pt-32 pb-64 bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 bg-clip-text text-transparent text-8xl lg:text-9xl font-bold"
>
Crown Assassin
</h1>
<Indexwave
class=
" absolute bottom-[0] w-full"
/>
</div>
<div
id=
"Pancreatic Cancer1"
class=
"h-screen"
style=
"background: url(https://static.igem.wiki/teams/4713/wiki/index/background2.png) center center / cover"
>
<section
class=
" relative"
style=
"height: 100%; width: 100%"
>
<h5
class=
"w-[40%] mx-auto absolute text-2xl lg:text-4xl text-center lg-top-11 sm-top-3"
style=
"left:10%;"
>
...
...
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