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
88a865d1
Commit
88a865d1
authored
5 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
symptoms etc collapsible fix
parent
f26a5498
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#434066
failed
5 months ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/Tabs.tsx
+10
-5
10 additions, 5 deletions
src/components/Tabs.tsx
src/components/seclarations.ts
+1
-0
1 addition, 0 deletions
src/components/seclarations.ts
src/contents/description.tsx
+33
-8
33 additions, 8 deletions
src/contents/description.tsx
with
44 additions
and
13 deletions
src/components/Tabs.tsx
+
10
−
5
View file @
88a865d1
...
...
@@ -2,11 +2,16 @@
export
function
ButtonRowTabs
({
data
,
cla
}:
{
data
:
Array
<
TabDatensatz
>
,
cla
:
string
})
{
let
rows
=
[]
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
){
rows
.
push
(
<
div
id
=
{
data
[
i
].
cssname
}
className
=
{
cla
}
>
{
data
[
i
].
node
}
</
div
>
)
if
(
data
[
i
].
main
==
true
){
rows
.
push
(<
div
id
=
{
data
[
i
].
cssname
}
className
=
{
cla
}
style
=
{
{
display
:
"
block
"
}
}
>
{
data
[
i
].
node
}
</
div
>)
}
else
{
rows
.
push
(<
div
id
=
{
data
[
i
].
cssname
}
className
=
{
cla
}
style
=
{
{
display
:
"
none
"
}
}
>
{
data
[
i
].
node
}
</
div
>)
}
}
return
rows
;
}
...
...
This diff is collapsed.
Click to expand it.
src/components/seclarations.ts
+
1
−
0
View file @
88a865d1
...
...
@@ -22,6 +22,7 @@ interface Window {
node
:
React
.
ReactNode
,
cssname
:
string
,
buttonname
:
string
main
?:
Boolean
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/contents/description.tsx
+
33
−
8
View file @
88a865d1
...
...
@@ -2,7 +2,7 @@ import { InfoBox } from "../components/Boxes";
import
{
TabButtonRow
}
from
"
../components/Buttons
"
;
import
Collapsible
from
"
../components/Collapsible
"
;
import
{
SupScrollLink
}
from
"
../components/ScrollLink
"
;
import
{
H2
}
from
"
../components/Headings
"
;
import
{
H2
,
H4
}
from
"
../components/Headings
"
;
import
{
LoremMedium
,
LoremShort
}
from
"
../components/Loremipsum
"
;
import
{
Circle
}
from
"
../components/Shapes
"
;
import
{
Complex
}
from
"
../components/Svgs
"
;
...
...
@@ -11,6 +11,7 @@ import PieChart from "../components/Graph";
import
PreCyse
from
"
../components/precyse
"
;
import
{
useNavigateTabs
}
from
"
../utils/navigation
"
;
import
{
Section
,
Subesction
}
from
"
../components/sections
"
;
import
{
main
}
from
"
@popperjs/core
"
;
export
function
Description
()
{
useNavigateTabs
();
...
...
@@ -77,7 +78,10 @@ export function Description() {
</
Subesction
>
<
Subesction
title
=
"Symptoms"
id
=
"Cystic Fibrosis4"
>
<
p
>
Text about symptoms
</
p
>
<
Collapsible
id
=
"symptoms-collapsible"
title
=
"How the symptoms affect different parts of the body"
>
Child
</
Collapsible
>
<
Collapsible
id
=
"symptoms-collapsible"
title
=
"How the symptoms affect different parts of the body"
>
<
TabButtonRow
data
=
{
symptombuttonrowdata
}
opentype
=
"meditabs"
closing
=
""
/>
<
ButtonRowTabs
data
=
{
symptombuttonrowdata
}
cla
=
"meditabs"
/>
</
Collapsible
>
</
Subesction
>
<
Subesction
title
=
"Diagnosis"
id
=
"Cystic Fibrosis5"
>
<
p
>
About the ways one can be diagnosed
<
LoremMedium
/></
p
>
...
...
@@ -94,8 +98,8 @@ export function Description() {
<
Subesction
title
=
"Treatment"
id
=
"Cystic Fibrosis6"
>
<
img
src
=
"https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg"
/>
<
Collapsible
id
=
"drugs-collapsible"
title
=
"Different types of drugs"
>
<
TabButtonRow
data
=
{
medibuttonrowdata
}
opentype
=
"
medi
tabs"
closing
=
""
/>
<
ButtonRowTabs
data
=
{
medibuttonrowdata
}
cla
=
"
medi
tabs"
/>
<
TabButtonRow
data
=
{
medibuttonrowdata
}
opentype
=
"
symp
tabs"
closing
=
""
/>
<
ButtonRowTabs
data
=
{
medibuttonrowdata
}
cla
=
"
symp
tabs"
/>
</
Collapsible
>
<
p
>
Why we still need other options
</
p
>
<
img
src
=
"https://static.igem.wiki/teams/5247/charts-maps/cfper10-000.png"
/>
...
...
@@ -457,19 +461,40 @@ export function Description() {
let
medibuttonrowdata
=
[
{
node
:
<
H
2
id
=
"about-btn"
text
=
"About"
/>,
node
:
<
H
4
id
=
"about-btn"
text
=
"About"
/>,
buttonname
:
"
About
"
,
cssname
:
"
First
"
cssname
:
"
Med-First
"
,
main
:
true
},
{
node
:
<
H
2
id
=
"modulator-btn"
text
=
"Modulators"
/>,
node
:
<
H
4
id
=
"modulator-btn"
text
=
"Modulators"
/>,
buttonname
:
"
Modulators
"
,
cssname
:
"
modulators
"
},
{
node
:
<
H
2
id
=
"inhalator-btn"
text
=
"Inhalations"
/>,
node
:
<
H
4
id
=
"inhalator-btn"
text
=
"Inhalations"
/>,
buttonname
:
"
Inhalations
"
,
cssname
:
"
inhalations
"
},
]
let
symptombuttonrowdata
=
[
{
node
:
<
H4
id
=
"about-btn"
text
=
"About"
/>,
buttonname
:
"
About
"
,
cssname
:
"
Symp-First
"
,
main
:
true
},
{
node
:
<
H4
id
=
"lungs-btn"
text
=
"Lungs"
/>,
buttonname
:
"
Lungs
"
,
cssname
:
"
lungs
"
},
{
node
:
<
H4
id
=
"pancreas-btn"
text
=
"Pancreas"
/>,
buttonname
:
"
Pancreas
"
,
cssname
:
"
pancreas
"
},
]
\ No newline at end of file
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