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

Added visually-hidden heading elements to schedule page #215

Merged
merged 2 commits into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/site/src/app/schedule/Assets/Circle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const EventCircle: React.FC<CircleProps> = ({
: position
}
>
<h4 className="visually-hidden">{title}</h4>
{title == "Hacking Ends" ? (
<Image src={cross} alt="x" />
) : (
Expand Down
1 change: 1 addition & 0 deletions apps/site/src/app/schedule/DayOne/DayOne.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const DayOne: React.FC<DayOneProps> = ({ schedule, time }) => {
return (
<>
<div className={styles.mapContainer}>
<h3 className="visually-hidden">Day 1</h3>
<Image src={Map1} alt="zothacks-map" className={styles.map1} />
<Image
src={MobileMap}
Expand Down
1 change: 1 addition & 0 deletions apps/site/src/app/schedule/DayThree/DayThree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const DayThree: React.FC<DayThreeProps> = ({ schedule, time }) => {
return (
<>
<div className={styles.mapContainer}>
<h3 className="visually-hidden">Day 3</h3>
<Image src={Map3} alt="zothacks-map" className={styles.map3} />
<div className={styles.mapPath}>
<Image src={Path} alt="zothacks-path" className={styles.pathImage} />
Expand Down
1 change: 1 addition & 0 deletions apps/site/src/app/schedule/DayTwo/DayTwo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const DayTwo: React.FC<DayTwoProps> = ({ schedule, time }) => {
return (
<>
<div className={styles.mapContainer}>
<h3 className="visually-hidden">Day 2</h3>
<Image src={Map2} alt="zothacks-map" className={styles.map2} />
<div className={styles.mapPath}>
<Image src={Path} alt="zothacks-path" className={styles.pathImage} />
Expand Down
4 changes: 3 additions & 1 deletion apps/site/src/app/schedule/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const Header: React.FC<HeaderProps> = ({ time }) => {
return (
<>
<div className={styles.header}>
<Image src={Title} alt="title" />
<h1 className="visually-hidden">Schedule</h1>
<Image src={Title} alt="" />
{time < hackingEnds.getTime() && <Image src={Chest} alt="Chest" />}
{time >= hackingEnds.getTime() && <Image src={OpenChest} alt="Chest" />}
<Countdown
Expand All @@ -27,6 +28,7 @@ const Header: React.FC<HeaderProps> = ({ time }) => {
}
isHackingStarted={time >= hackingStarts.getTime()}
/>
<h2 className="visually-hidden">Events</h2>
</div>
</>
);
Expand Down
Loading