feat(site): show create command

This commit is contained in:
Ayo 2023-10-21 20:25:18 +02:00
parent 9c83dfea61
commit 93fdbcd09e
2 changed files with 5 additions and 2 deletions

View file

@ -10,7 +10,9 @@ class CodeBlockComponent extends HTMLElement {
<div>
<pre class="language-${lang} ${
lineNumbers ? "line-numbers" : ""
}" id="pre"><code id="code">${this.trimmed}</code></pre>
}" id="pre" style="padding:1em;background:#efefef;margin:1em 0;border-radius:5px;font-size:large;"><code id="code">${
this.trimmed
}</code></pre>
</div>
`;
}

View file

@ -13,7 +13,7 @@
header,
footer,
main {
max-width: 35em;
max-width: 40em;
margin: 0 auto;
}
</style>
@ -27,6 +27,7 @@
no-framework framework that assists developers in leveraging the web
platform.
</p>
<code-block>npm create mcfly@latest</code-block>
<p>
Here's a sample interactive custom element:
<vanilla-hello-world data-name="McFly"></vanilla-hello-world>