-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Jordan Poles <[email protected]>
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,37 @@ | ||
<script lang="ts"> | ||
import TableOfContents from '$lib/components/TableOfContents.svelte'; | ||
import Preview from '$lib/components/Preview.svelte'; | ||
import Card from '$lib/components/Card.svelte'; | ||
</script> | ||
|
||
<h1>Examples</h1> | ||
|
||
Let's build some example TableOfContents for the following masterpiece: | ||
|
||
<Card class="p-4 mt-5"> | ||
<div id="epic-novel"> | ||
<h1>The Epic Novel</h1> | ||
<h2>Chapter 1</h2> | ||
<h3>New Beginnings</h3> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas eu ornare purus. Praesent auctor tellus leo, ac ornare nisi egestas eu. Nam tincidunt finibus pretium. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Praesent dolor urna, congue at convallis vel, accumsan ut ante. | ||
<h4>A Brief Interlude</h4> | ||
Proin congue augue ex, eget laoreet nisi tempor ac. Sed a sapien convallis, mollis lectus quis, mollis lorem. | ||
<h3>The Journey</h3> | ||
Donec nec rhoncus libero, ut euismod augue. Curabitur lacus dolor, pellentesque nec suscipit at, faucibus id odio. Sed ullamcorper quam nibh, eget hendrerit metus viverra vel. Etiam elementum gravida ipsum, eget vestibulum felis vulputate eget. Vivamus at volutpat sapien. Pellentesque lobortis aliquam mauris, ac volutpat magna convallis et. Praesent hendrerit finibus dui in ullamcorper. | ||
<h2>Chapter 2</h2> | ||
<h2>Chapter 3</h2> | ||
Donec eget nulla non eros elementum rutrum eu sed nulla. Nam dignissim, neque in elementum vestibulum, nisl libero fringilla nunc, et pellentesque ex nibh porta sem. In sed vehicula justo. Etiam non sagittis tortor. Pellentesque ut sagittis enim. Nulla eget dictum erat. Mauris eu semper nisl, quis posuere arcu. Nunc ut purus quis felis lobortis vehicula. Aliquam varius luctus lectus, in egestas mauris sollicitudin eget. Etiam suscipit, nunc vitae blandit convallis, lorem est laoreet ante, sit amet gravida arcu ligula vitae ligula. Interdum et malesuada fames ac ante ipsum primis in faucibus. Maecenas mattis ac turpis quis luctus. | ||
</div> | ||
</Card> | ||
|
||
<h2>Basic</h2> | ||
|
||
<Preview> | ||
<TableOfContents element="#epic-novel" /> | ||
</Preview> | ||
|
||
<h2>Limit Max Depth</h2> | ||
|
||
<Preview> | ||
<TableOfContents element="#epic-novel" maxDepth="{2}" /> | ||
</Preview> |
a5f207f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
svelte-ux – ./
svelte-ux-git-master-techniq-team.vercel.app
svelte-ux.techniq.dev
svelte-ux-techniq-team.vercel.app
svelte-ux.vercel.app