Skip to content

Commit

Permalink
feat: add h1 to home page for screen readers
Browse files Browse the repository at this point in the history
  • Loading branch information
Azganoth committed Aug 13, 2023
1 parent 42eac94 commit f62147d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
padding: 24px;
}

.srHeading {
overflow: hidden;
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
}

.card {
display: block;
position: relative;
Expand Down
1 change: 1 addition & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default function Page() {
<>
<Header action="start" />
<main className={styles.content}>
<h1 className={styles.srHeading}>Galleria</h1>
<Masonry>
{paintings.map((painting) => (
<Link
Expand Down

0 comments on commit f62147d

Please sign in to comment.