refactor(site, templates): use non-single tag

This commit is contained in:
Ayo 2023-12-08 17:58:29 +01:00
parent 47edf0408d
commit 9736015c29
2 changed files with 4 additions and 2 deletions

View file

@ -33,7 +33,8 @@
</p> </p>
<code-block>npm create <strong style="color: var(--color-blue)">mcfly</strong>@latest</code-block> <code-block>npm create <strong style="color: var(--color-blue)">mcfly</strong>@latest</code-block>
<p> <p>
Here's a sample interactive custom element: <vanilla-hello-world /> Here's a sample interactive custom element:
<vanilla-hello-world></vanilla-hello-world>
</p> </p>
<p> <p>
Start at the very basic of writing HTML files and enhance with Start at the very basic of writing HTML files and enhance with

View file

@ -25,7 +25,8 @@
<main> <main>
<h2>Welcome to {{ project.name }}</h2> <h2>Welcome to {{ project.name }}</h2>
<p> <p>
Here's a vanilla custom element: <vanilla-hello-world /> Here's a vanilla custom element:
<vanilla-hello-world></vanilla-hello-world>
</p> </p>
<code-block language="js"> <code-block language="js">
class HelloWorld extends HTMLElement { class HelloWorld extends HTMLElement {