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

IH Schedule Page 2025 #581

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

Bl20052005
Copy link
Contributor

@Bl20052005 Bl20052005 commented Jan 20, 2025

Draft, IP items include

  • getting weekday switching to work (with continuous scroll)
  • getting weekday switching to work (with clicking and chevrons)
  • formatting issues regarding unlocked text
  • adding decor to the sides of event sidebar
  • adding cloud decor around the entire page
  • fixing spacing for plaques on mobile views

This was linked to issues Jan 20, 2025
Copy link
Contributor

github-actions bot commented Jan 20, 2025

Deploy preview for irvinehacks-site-2025 ready!

Name IrvineHacks Site
Preview Visit Preview
Commit c2f8b0a

@Bl20052005 Bl20052005 marked this pull request as ready for review January 20, 2025 23:15
@Bl20052005 Bl20052005 requested a review from waalbert January 21, 2025 04:23
Copy link
Member

@IanWearsHat IanWearsHat left a comment

Choose a reason for hiding this comment

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

Functionality looks good, great even! Just quite a few notes on cleaning up code.

import Sprite3 from "@/assets/images/volunteer_sprite.png";

import styles from "./ShiftingCountdown.module.scss";
import Image from "next/image";
Copy link
Member

Choose a reason for hiding this comment

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

Chore (repeating): Reorder imports to libraries, custom components/functions, and then stylesheets.

}}
/>
<div className="absolute top-[50%] right-14 max-md:hidden">
<Image src={LgStar} alt="*" className="w-[70px] left-14" />
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: use more descriptive alt text

apps/site/src/app/(main)/schedule/page.tsx Show resolved Hide resolved
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
}

// function getEventTomorrow(date: Date) {
Copy link
Member

Choose a reason for hiding this comment

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

chore: remove unused commented code

return <EventCard key={event.title} now={now} {...event} />;
})}
</Tabs.Content>
<>
Copy link
Member

Choose a reason for hiding this comment

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

Chore: remove fragment and just return div

function scrollDir(action: string) {
const ind = getCurrentDateIndex();

if (action === "left") {
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: last 2 lines of the if statement could be extracted out as they happen in both cases.
Also, you could then use a ternary operator to calculate nextIndex

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.

Rest of schedule page Schedule Countdown
2 participants