Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

feat: add event images #652

Merged

Conversation

ojeytonwilliams
Copy link
Contributor

Recreated after I accidentally merged the last one: #651

@gitpod-io
Copy link

gitpod-io bot commented Jun 30, 2021

Copy link
Contributor Author

@ojeytonwilliams ojeytonwilliams left a comment

Choose a reason for hiding this comment

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

@ahmadabdolsaheb this is technically my PR now, but what do think to the suggestions?

boxSize="100%"
maxH="300px"
src={data.event.image}
alt="The freeCodeCamp logo"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can we add the alt text when adding the image and then use it here?

Copy link
Member

Choose a reason for hiding this comment

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

Sure a field called description should do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thinking about it, this is purely decorative. We can just require alt="" since screenreaders can safely ignore it.

@@ -0,0 +1,13 @@
import { MigrationInterface, QueryRunner } from 'typeorm';
Copy link
Member

Choose a reason for hiding this comment

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

Not sure, but since we are introducing "image_url" for first time here we would not need a migration file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, we're not using explicit migration files now, since typeorm can set up the db for us without them. I'll remove this file while I sort out the conflicts.

Copy link
Member

@ahmaxed ahmaxed left a comment

Choose a reason for hiding this comment

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

LGMT

@ojeytonwilliams ojeytonwilliams merged commit 537bdb6 into freeCodeCamp:main Oct 8, 2021
@ojeytonwilliams ojeytonwilliams deleted the feat/add-event-images branch October 8, 2021 12:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants