Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bielefeld-CeBiTec
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
Bielefeld-CeBiTec
Commits
fd2a175d
Commit
fd2a175d
authored
6 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
ssh://gitlab.igem.org/2024/bielefeld-cebitec
parents
84dc6692
5d674056
No related branches found
No related tags found
No related merge requests found
Pipeline
#424945
passed
6 months ago
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/FadeIn.tsx
+8
-5
8 additions, 5 deletions
src/components/FadeIn.tsx
src/contents/Home.tsx
+39
-6
39 additions, 6 deletions
src/contents/Home.tsx
src/utils/getPathMapping.ts
+2
-2
2 additions, 2 deletions
src/utils/getPathMapping.ts
with
49 additions
and
13 deletions
src/components/FadeIn.tsx
+
8
−
5
View file @
fd2a175d
import
{
useEffect
,
useRef
,
useState
}
from
"
react
"
;
import
{
SpacingBlock
}
from
"
./SpacingBlock
"
;
export
function
FadeIn
({
filepath
}:{
filepath
:
string
}){
const
[
isVisible
,
setVisible
]
=
useState
(
false
);
...
...
@@ -16,21 +15,25 @@ export function FadeIn({filepath}:{filepath: string}){
return
(
<>
<
div
className
=
'
row
col'
className
=
'col'
style
=
{
{
'
height
'
:
'
100vh
'
}
}
ref
=
{
domRef
}
>
<
img
style
=
{
{
'
position
'
:
'
fixed
'
,
'
bottom
'
:
'
0
'
,
'
right
'
:
'
0
'
,
'
transition
'
:
'
opacity 0.6s ease-out, transform 1.2s ease-out
'
,
'
top
'
:
'
20vh
'
,
'
left
'
:
'
20vw
'
,
'
width
'
:
'
60vw
'
,
'
height
'
:
'
60vh
'
,
'
transition
'
:
'
opacity 0.6s ease-out
'
,
'
opacity
'
:
`
${
isVisible
?
'
1
'
:
'
0
'
}
`
,
'
visibility
'
:
`
${
isVisible
?
'
visible
'
:
'
hidden
'
}
`
}
}
src
=
{
filepath
}
>
</
img
>
</
div
>
{
/* Spacing Block */
}
<
div
className
=
'col'
style
=
{
{
'
height
'
:
'
90vh
'
}
}
></
div
>
</>
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/contents/Home.tsx
+
39
−
6
View file @
fd2a175d
...
...
@@ -2,11 +2,44 @@ import { FadeIn } from "../components/FadeIn";
export
function
Home
()
{
return
(
<>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/firstperson.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/firstbreathin.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/firstbreathoutrelease.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/firstbreathoutdone.webp"
></
FadeIn
>
</>
<
div
className
=
"row mt-4"
>
<
div
className
=
"col"
>
<
div
className
=
"col"
>
{
/* Spacing Block */
}
<
div
className
=
'col'
style
=
{
{
'
height
'
:
'
70vh
'
}
}
></
div
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/breath/breath-1.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/breath/breath-2.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/breath/breath-3.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/breath/breath-4.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/breath/breath-5.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/breath/breath-6.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/breath/breath-7.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/breath/breath-8.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/breath/breath-9.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/breath/breath-10.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/breath/breath-11.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/breath/breath-12.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/problems/problems-1.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/problems/problems-2.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/problems/problems-3.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/problems/problems-4.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/problems/problems-5.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/problems/problems-6.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/oneintwenty-1.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/oneintwenty-2.webp"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/treatmentnoloop.gif"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/precyse.gif"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/airbuddy.gif"
></
FadeIn
>
<
FadeIn
filepath
=
"https://static.igem.wiki/teams/5247/landing/primeguide.webp"
></
FadeIn
>
{
/* Spacing Block */
}
<
div
className
=
'col'
style
=
{
{
'
height
'
:
'
150vh
'
}
}
></
div
>
</
div
>
</
div
>
</
div
>
);
}
This diff is collapsed.
Click to expand it.
src/utils/getPathMapping.ts
+
2
−
2
View file @
fd2a175d
...
...
@@ -25,8 +25,8 @@ export const getPathMapping = () => {
name
:
page
.
name
,
title
:
page
.
title
,
component
:
page
.
component
,
header
:
page
.
header
,
navlist
:
page
.
navlist
,
header
:
page
.
header
!
,
navlist
:
page
.
navlist
!
,
};
}
});
...
...
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