Skip to content

Landing page: Add YouTube video section ("How you can support refugees in your community") - #930

Open
gshiva53 wants to merge 2 commits into
need4deed-org:developfrom
gshiva53:feature/915-yt-video
Open

Landing page: Add YouTube video section ("How you can support refugees in your community")#930
gshiva53 wants to merge 2 commits into
need4deed-org:developfrom
gshiva53:feature/915-yt-video

Conversation

@gshiva53

@gshiva53 gshiva53 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Description

Related Issues

Closes #915

Changes

  • Translations for en and de
  • RefugeeSupport component for homepage

Screenshots / Demos

The homepage will look like the following screenshot after this PR is merged
Screenshot 2026-08-13 at 10 50 51 pm

Checklist

  • WITHIN THE SCOPE OF AN ISSUE; No unnecessary files included
  • Tests added/updated
  • Documentation updated
  • CI passes

"iframeTitles": {
"howToVolunteer": "Wie Du Geflüchtete in Deiner Nachbarschaft unterstützen können"
},
"testimonials": {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

German translation for the heading and video title. Taken from the need4deed-org website.

"iframeTitles": {
"howToVolunteer": "How you can support refugees in your community"
},
"testimonials": {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

English translation for the heading and video title. Taken from the need4deed-org website.

@@ -0,0 +1 @@
export * from "./RefugeeSupport";

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think this is required. I may be wrong. Added just to maintain consistency with other components.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yes, this barrel export is needed for the current import style: @/components/RefugeeSupport. Without it, the import would need to reference RefugeeSupport/RefugeeSupport directly.

{/* Transferred Components */}
<VolunteeringOpportunitiesSection />
<RefugeeSupport />
<EventsSection />

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Importing and rendering the refugee support component on the landing page.

@gshiva53

Copy link
Copy Markdown
Contributor Author

Hi @need4deed, requesting for review for this PR 😄. I didn't know who else to tag for this.

@need4deed-org need4deed-org deleted a comment from nadavosa Aug 19, 2026
@need4deed
need4deed requested a review from Justber79 August 19, 2026 11:08
@Justber79

Justber79 commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

The section works well and the video displays correctly. 😊 I noticed one small responsiveness issue on mobile devices: the video is shifted to the right and touches the right edge instead of being centered with equal spacing on both sides. I’ve attached screenshots for reference.

#930 mobile review #930 mobile review

@Justber79 Justber79 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for adding this section. I found one German translation issue that should be corrected. I also added two suggestions about the iframe styling and mobile responsiveness.

}
},
"iframeTitles": {
"howToVolunteer": "Wie Du Geflüchtete in Deiner Nachbarschaft unterstützen können"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The German text has a conjugation mismatch: “Du … können” should be “Du … kannst”. Could we change this to “Wie Du Geflüchtete in Deiner Nachbarschaft unterstützen kannst”?

@@ -0,0 +1 @@
export * from "./RefugeeSupport";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yes, this barrel export is needed for the current import style: @/components/RefugeeSupport. Without it, the import would need to reference RefugeeSupport/RefugeeSupport directly.

const IFrame = styled.iframe`
width: var(--homepage-process-section-video-width);
height: var(--homepage-process-section-video-height);
border-radius: var(--homepage-process-section-video-border-radius);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could we also add border: 0 here? Browsers may otherwise render the iframe with a default border.

import { FullWidthContainer, SectionContainer } from "../styled/container";

const IFrame = styled.iframe`
width: var(--homepage-process-section-video-width);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Have we tested this at the smallest supported mobile width? The fixed 360px mobile width may be clipped on narrower screens, especially when section padding is included.

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.

Landing page: add YouTube video section ("How you can support refugees in your community")

2 participants