feat(site): update footer link; clean up page
This commit is contained in:
parent
b83927dc94
commit
ad5232fe75
2 changed files with 3 additions and 73 deletions
|
@ -1,13 +1,5 @@
|
||||||
<footer>
|
<footer style="text-align: right; font-style: italic; padding: 0.5em 1em">
|
||||||
<p>
|
<p>
|
||||||
<small>A project by <a href="https://ayco.io">Ayo Ayco</a></small>
|
<small>A project by <a href="https://ayo.ayco.io">Ayo Ayco</a></small>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<style>
|
|
||||||
footer {
|
|
||||||
text-align: right;
|
|
||||||
font-style: italic;
|
|
||||||
padding: 0.5em 1em;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
|
@ -46,72 +46,10 @@
|
||||||
<li>Deploy anywhere</li>
|
<li>Deploy anywhere</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
Visit our in-progress <a href="/demo">Demo Page</a> or read more on
|
Visit our in-progress <a href="/demo">Demo Page</a> or read more on ✨
|
||||||
<a href="https://github.com/ayoayco/mcfly#readme">GitHub</a>.
|
<a href="https://github.com/ayoayco/mcfly#readme">GitHub</a>.
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
<!--
|
|
||||||
<section>
|
|
||||||
<h2>HTML pages w/ server setup</h2>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
directly use custom elements & static fragments (no imports or
|
|
||||||
registry maintenance needed)
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
use
|
|
||||||
<code class="language-html"><script server:setup></code>
|
|
||||||
to define logic that runs on the server, which then gets stripped
|
|
||||||
away
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
<section>
|
|
||||||
<h2>Custom Elements & Static Fragments</h2>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
all components are automatically registered using their file names;
|
|
||||||
a
|
|
||||||
<code class="language-unknown">hello-world.js</code> component can
|
|
||||||
be used as
|
|
||||||
<code class="language-unknown"><hello-world></code>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
static <code class="language-unknown">.html</code> fragments; a
|
|
||||||
<code class="language-unknown">my-header.html</code> fragment can be
|
|
||||||
directly used as
|
|
||||||
<code class="language-unknown"><my-header></code>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
<section>
|
|
||||||
<h2>Using the Browser's built-in reactivity</h2>
|
|
||||||
<p>
|
|
||||||
Here's a sample interactive custom element:
|
|
||||||
<vanilla-hello-world name="McFly"></vanilla-hello-world>
|
|
||||||
</p>
|
|
||||||
<code-block language="js" line-numbers="true">
|
|
||||||
<pre>
|
|
||||||
class HelloWorld extends HTMLElement {
|
|
||||||
static get observedAttributes() {
|
|
||||||
return ["name"];
|
|
||||||
}
|
|
||||||
|
|
||||||
connectedCallback() {
|
|
||||||
let count = 0;
|
|
||||||
this.onclick = () => {
|
|
||||||
this.setAttribute("name", `Clicked ${++count}x`);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
attributeChangedCallback(property, previousValue, currentValue) {
|
|
||||||
if (previousValue !== currentValue) {
|
|
||||||
this.innerHTML = `<button style="cursor:pointer">Hello ${currentValue}!</button>`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}</pre>
|
|
||||||
</code-block>
|
|
||||||
</section> -->
|
|
||||||
</main>
|
</main>
|
||||||
<my-footer></my-footer>
|
<my-footer></my-footer>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in a new issue