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
27fdd66b
Commit
27fdd66b
authored
5 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
DownloadImageButton
parent
d89ac19b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/Buttons.tsx
+7
-0
7 additions, 0 deletions
src/components/Buttons.tsx
src/contents/notebook.tsx
+15
-0
15 additions, 0 deletions
src/contents/notebook.tsx
with
22 additions
and
0 deletions
src/components/Buttons.tsx
+
7
−
0
View file @
27fdd66b
...
...
@@ -72,6 +72,13 @@ const handleDownload = () => {
console
.
error
(
"
Error fetching the file:
"
,
error
);
});
};
return
(
<
a
type
=
"button"
onClick
=
{
handleDownload
}
className
=
"download-butt"
>
Download
</
a
>
);
};
export
const
DownloadImageButton
=
({
url
,
fileName
,
children
}:
{
url
:
string
,
fileName
:
string
,
children
:
React
.
ReactNode
})
=>
{
...
...
This diff is collapsed.
Click to expand it.
src/contents/notebook.tsx
+
15
−
0
View file @
27fdd66b
import
{
DownloadImageButton
}
from
"
../components/Buttons
"
;
import
H2
from
"
../components/Headings
"
;
import
{
useTabNavigation
}
from
"
../utils/TabNavigation
"
;
...
...
@@ -8,27 +9,41 @@ export function Notebook() {
<
div
>
<
H2
text
=
"Lab journals and Protocol collection"
/>
<
div
className
=
'row'
>
<
div
className
=
"col"
>
<
DownloadImageButton
url
=
""
fileName
=
""
>
<
img
src
=
"https://static.igem.wiki/teams/5247/lab-journals/titelseite-lab-book-1-proof-of-concept-pe.webp"
style
=
{
{
height
:
"
75%
"
,
width
:
"
auto
"
}
}
/>
</
DownloadImageButton
>
</
div
>
<
div
className
=
"col"
>
<
DownloadImageButton
url
=
""
fileName
=
""
>
<
img
src
=
"https://static.igem.wiki/teams/5247/lab-journals/titelseite-lab-book-2-engineering-pe.webp"
style
=
{
{
height
:
"
75%
"
,
width
:
"
auto
"
}
}
/>
</
DownloadImageButton
>
</
div
>
</
div
>
<
div
className
=
'row'
>
<
div
className
=
"col"
>
<
DownloadImageButton
url
=
""
fileName
=
""
>
<
img
src
=
"https://static.igem.wiki/teams/5247/lab-journals/titelseite-lab-book-3-primary-cell-culture.webp"
style
=
{
{
height
:
"
75%
"
,
width
:
"
auto
"
}
}
/>
</
DownloadImageButton
>
</
div
>
<
div
className
=
"col"
>
<
DownloadImageButton
url
=
""
fileName
=
""
>
<
img
src
=
"https://static.igem.wiki/teams/5247/lab-journals/titelseite-lab-book-4-lnp.webp"
style
=
{
{
height
:
"
75%
"
,
width
:
"
auto
"
}
}
/>
</
DownloadImageButton
>
</
div
>
</
div
>
<
div
className
=
'row'
>
<
div
className
=
"col"
>
<
DownloadImageButton
url
=
""
fileName
=
""
>
<
img
src
=
"https://static.igem.wiki/teams/5247/lab-journals/titelseite-lab-book-5-downstream.webp"
style
=
{
{
height
:
"
75%
"
,
width
:
"
auto
"
}
}
/>
</
DownloadImageButton
>
</
div
>
<
div
className
=
"col"
>
<
DownloadImageButton
url
=
""
fileName
=
""
>
<
img
src
=
"https://static.igem.wiki/teams/5247/lab-journals/titelseite-lab-book-sop.webp"
style
=
{
{
height
:
"
75%
"
,
width
:
"
auto
"
}
}
/>
</
DownloadImageButton
>
</
div
>
</
div
>
</
div
>
...
...
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