Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ESAP GUI
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
ASTRON SDC
ESCAPE WP5
ESAP GUI
Merge requests
!103
Couldn't fetch the linked file.
Fix archive images.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix archive images.
tickets/184_fix_archive_images
into
master
Overview
12
Commits
4
Pipelines
0
Changes
3
All threads resolved!
Hide all comments
Merged
Klaas Kliffen
requested to merge
tickets/184_fix_archive_images
into
master
2 years ago
Overview
12
Commits
4
Pipelines
0
Changes
3
All threads resolved!
Hide all comments
Expand
See
esap-general#184 (closed)
0
0
Merge request reports
Viewing commit
e4b86f6c
Prev
Next
Show latest version
3 files
+
39
−
37
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
e4b86f6c
Fix archive images
· e4b86f6c
Klaas Kliffen
authored
2 years ago
src/components/archives/ArchiveCard.js
+
26
−
29
Options
import
React
from
"
react
"
;
import
{
Card
,
Button
,
Image
}
from
"
react-bootstrap
"
;
import
{
Button
,
Card
}
from
"
react-bootstrap
"
;
import
{
NavLink
}
from
"
react-router-dom
"
;
import
styles
from
"
./ArchiveCard.css
"
;
import
styles
from
"
./ArchiveCard.
module.
css
"
;
// display a single archive on a card
export
default
function
ArchiveCard
({
archive
})
{
return
(
<
Card
>
<
Card
.
Body
>
<
Card
.
Title
className
=
"
h2
"
>
{
archive
.
name
}
<
/Card.Title
>
<
Card
className
=
"
card-description
"
>
<
Card
.
Body
>
<
img
className
=
{
styles
.
cardImage
}
src
=
{
archive
.
thumbnail
}
/
>
<
Card
.
Title
className
=
"
h3 pt-3
"
>
{
archive
.
short_description
}
<
/Card.Title
>
<
Card
.
Text
className
=
"
text-justify
"
>
{
archive
.
long_description
}
<
/Card.Text
>
<
/Card.Body
>
<
/Card
>
{
/* <Container fluid>
<Row>
</Card>
</Row>
<Row className="p-2">
<
Card
className
=
"
card-description
"
>
<
Card
.
Body
>
<
img
className
=
{
styles
.
cardImage
}
alt
=
{
`
${
archive
.
name
}
logo`
}
src
=
{
archive
.
thumbnail
}
/
>
<
Card
.
Title
className
=
"
h3 pt-3
"
>
{
archive
.
short_description
}
<
/Card.Title
>
<
Card
.
Text
className
=
"
text-justify
"
>
{
archive
.
long_description
}
<
/Card.Text
>
<
/Card.Body
>
<
/Card
>
</Row>
</Container> */
}
<
Button
className
=
"
mt-3
"
as
=
{
NavLink
}
variant
=
"
outline-primary
"
to
=
{
`/archives/
${
archive
.
uri
}
`
}
>
Visit
{
archive
.
name
}
Archives
<
/Button
>
<
Button
className
=
"
mt-3
"
as
=
{
NavLink
}
variant
=
"
outline-primary
"
to
=
{
`/archives/
${
archive
.
uri
}
`
}
>
Visit
{
archive
.
name
}
Archives
<
/Button
>
<
/Card.Body
>
<
/Card
>
);
Loading