Skip to content

Commit eb7c08d

Browse files
committed
Switched to main element from article
1 parent 7563360 commit eb7c08d

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/pages/404.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Button from '../components/interactive/Button'
99
---
1010

1111
<Layout title="Slumper / 404" description="The page you are trying to reach does not exist.">
12-
<article>
12+
<main>
1313
<div class="card">
1414
<h1>The page you are trying to reach does not exist</h1>
1515
<a role="button" id="back" href="/">
@@ -18,5 +18,5 @@ import Button from '../components/interactive/Button'
1818
/>
1919
</a>
2020
</div>
21-
</article>
21+
</main>
2222
</Layout>

src/pages/add.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { AddCard } from '../components/ui/AddCard'
44
---
55

66
<Layout title="Slumper / Add" description="Add your own personal book to Slumper, the exercise randomizer, to add support for any book not included by default.">
7-
<article>
7+
<main>
88
<AddCard client:only="solid-js" />
9-
</article>
9+
</main>
1010
</Layout>

src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { VolumeKnob } from '../components/ui/VolumeKnob'
66
---
77

88
<Layout >
9-
<article>
9+
<main>
1010
<OutputCard client:only="solid-js" />
11-
</article>
11+
</main>
1212
<VolumeKnob client:only="solid-js"/>
1313
</Layout>

src/styles/slumper.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ a {
159159
/* Articles */
160160
/************/
161161

162-
article::before {
162+
main::before {
163163
content: '';
164164
position: absolute;
165165
top: 0;
@@ -176,7 +176,7 @@ article::before {
176176
z-index: 0; /* Ensure it is behind the article content */
177177
}
178178

179-
article{
179+
main{
180180
position: relative; /* Ensure positioning context for pseudo-element */
181181
display: flex;
182182
justify-content: center;
@@ -237,7 +237,7 @@ article{
237237
/* Default text settings stuff */
238238
/*******************************/
239239

240-
article {
240+
main {
241241
min-height: 70vh;
242242

243243
z-index: 3;

0 commit comments

Comments
 (0)