Skip to content

Commit

Permalink
Add anchor links to demo sections 🔗
Browse files Browse the repository at this point in the history
  • Loading branch information
hirasso committed Dec 4, 2023
1 parent ccd78bf commit 804df1a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@ import WindowExample from "../components/examples/WindowExample.astro";

<Layout isFrontPage={true}>

<section>
<section id="vertical">
<header class="section_header">
<h2 class="is-h2">Vertical</h2>
<h2 class="is-h2"><a href="#vertical">Vertical</a></h2>
</header>
<VerticalExample />
</section>

<section>
<section id="horizontal">
<header class="section_header">
<h2 class="is-h2">Horizontal</h2>
<h2 class="is-h2"><a href="#horizontal">Horizontal</a></h2>
</header>
<HorizontalExample />
</section>

<section>
<section id="both-directions">
<header class="section_header">
<h2 class="is-h2">Both Directions</h2>
<h2 class="is-h2"><a href="#both-directions">Both Directions</a></h2>
</header>
<BothDirectionsExample />
</section>

<section>
<section id="window">
<header class="section_header">
<h2 class="is-h2">Between the window and DOM elements</h2>
<h2 class="is-h2"><a href="#window">Between the window and DOM elements</a></h2>
<button type="button" class="button">Show me!</button>
</header>
<WindowExample />
Expand Down
1 change: 1 addition & 0 deletions docs/src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
color: var(--color);
font-size: var(--text-default);
font-weight: 300;
scroll-behavior: smooth;
}
.tile, .cell {
font-weight: 300;
Expand Down
4 changes: 4 additions & 0 deletions docs/src/styles/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
ul[class] {
list-style: none;
}
a {
color: inherit;
text-decoration: none;
}

0 comments on commit 804df1a

Please sign in to comment.