Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPHJOD-566: Add MediaCard component #179

Merged
merged 1 commit into from
Nov 5, 2024
Merged

OPHJOD-566: Add MediaCard component #179

merged 1 commit into from
Nov 5, 2024

Conversation

ketsappi
Copy link
Contributor

@ketsappi ketsappi commented Nov 4, 2024

Description

Add MediaCard component.

Expecting to see adjustments when actually using the component later on.

  • when it is vertical: keep the same size (width and height)
  • when it is horizontal: allow width to be more freely (height locked)

Screenshots

Vertical

image

Horizontal

image

Related JIRA ticket

https://jira.eduuni.fi/browse/OPHJOD-566


return (
<LinkOrDiv to={to} linkComponent={Link} className={variantContainerClassNames}>
<img className={`${variantImageClassNames}`} src={imageSrc} alt=""></img>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be an alt text? Also self closing tag would look nicer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good finds. Changes are now committed regarding this.

@ketsappi ketsappi force-pushed the OPHJOD-566 branch 2 times, most recently from bb37ac9 to aa1efb1 Compare November 4, 2024 13:01
Copy link

sonarqubecloud bot commented Nov 4, 2024

@ketsappi ketsappi merged commit e32657b into main Nov 5, 2024
4 checks passed
@ketsappi ketsappi deleted the OPHJOD-566 branch November 5, 2024 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants