Skip to content

Commit

Permalink
docs(content): updated introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
ThornWalli committed Sep 28, 2024
1 parent 17e5668 commit 7c4c970
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docs/src/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ The `ContentHeadline` takes the level from the `ContentContainer` and sets the a

## Example

If `ContentContainer` is level 2, `ContentHeadline` level 2 is rendered as `h2`.
::: code-group

```vue
```vue [Vue]
<template>
<div>
<header>Header</header>
Expand All @@ -52,6 +52,9 @@ If `ContentContainer` is level 2, `ContentHeadline` level 2 is rendered as `h2`.
<ContentHeadline> Secondary Headline 2 (h2) </ContentHeadline>
<ContentContainer>
<ContentHeadline> Tertiary Headline 2.1 (h3) </ContentHeadline>
<ContentContainer>
<ContentHeadline> Tertiary Headline 2.1.1 (h4) </ContentHeadline>
</ContentContainer>
</ContentContainer>
</ContentContainer>
</ContentContainer>
Expand All @@ -64,7 +67,7 @@ import { ContentContainer, ContentHeadline } from 'vue-semantic-structure';
</script>
```

```html
```html [HTML]
<div>
<header>Header</header>
<main>
Expand All @@ -84,9 +87,14 @@ import { ContentContainer, ContentHeadline } from 'vue-semantic-structure';
<h2> Secondary Headline 2 (h2) </h2>
<section>
<h3> Tertiary Headline 2.1 (h3) </h3>
<article>
<h4> Tertiary Headline 2.1.1 (h4) </h4>
</article>
</section>
</article>
</main>
<footer>Footer</footer>
</div>
```

:::

0 comments on commit 7c4c970

Please sign in to comment.