Skip to content

Issue 67 add upcoming events to landing page carousel#86

Open
pvkudr wants to merge 7 commits intomainfrom
issue-67-Add_upcoming_events_to_landing_page_carousel
Open

Issue 67 add upcoming events to landing page carousel#86
pvkudr wants to merge 7 commits intomainfrom
issue-67-Add_upcoming_events_to_landing_page_carousel

Conversation

@pvkudr
Copy link
Collaborator

@pvkudr pvkudr commented Feb 7, 2026

Change Summary

[Briefly summarise the changes that you made. Just high-level stuff]

Change Form

Fill this up (NA if not available). If a certain criteria is not met, can you please give a reason.

  • [ x] The pull request title has an issue number
  • [ x] The change works by "Smoke testing" or quick testing
  • The change has tests
  • The change has documentation

Other Information

[Is there anything in particular in the review that I should be aware of?]

Related issue

@laurenpudz laurenpudz requested review from SafetyInObscurity and samjjacko and removed request for samjjacko February 7, 2026 05:45
Copy link
Contributor

Choose a reason for hiding this comment

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

why has this been added? is it being used anywhere? if it is not being used we should remove it

</Link>
{!isEmpty && (
<Link href="/events" className="font-jersey10">
<Button>See More {`>`}</Button>
Copy link
Contributor

Choose a reason for hiding this comment

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

We should not be using a > character here. Please just leave it without the > for now

text="The easiest way to get involved is to come along to one of our events!"
/>
</div>
</div>1
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this 1 here?

Comment on lines +16 to +40
function formatEventDateDisplay(dateString: string): string {
try {
const date = new Date(dateString);
const weekday = new Intl.DateTimeFormat("en-US", {
weekday: "long",
}).format(date);
const day = new Intl.DateTimeFormat("en-US", { day: "numeric" }).format(
date,
);
const month = new Intl.DateTimeFormat("en-US", { month: "short" }).format(
date,
);
const time = new Intl.DateTimeFormat("en-US", {
hour: "2-digit",
minute: "2-digit",
hour12: true,
})
.format(date)
.replace("AM", "am")
.replace("PM", "pm");
return `${weekday} ${day} ${month} ${time}`;
} catch {
return "";
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we already have a function to do this from the event pages?

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.

Add upcoming events to landing page carousel

2 participants