feat(site): zero js scenario (#44)
This commit is contained in:
parent
96b4c9f76b
commit
e3d6b2783c
2 changed files with 45 additions and 17 deletions
|
@ -1,3 +1,3 @@
|
||||||
<footer style="text-align: right; font-style: italic; padding:0.5em 1em 1em;">
|
<footer style="text-align: center; font-style: italic; padding: 0.5em 1em 1em">
|
||||||
<slot />
|
<slot />
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -16,12 +16,26 @@
|
||||||
const author = {
|
const author = {
|
||||||
name: "Ayo Ayco",
|
name: "Ayo Ayco",
|
||||||
url: "https://ayco.io",
|
url: "https://ayco.io",
|
||||||
|
year: "2023",
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
@counter-style publish-icons {
|
||||||
|
system: cyclic;
|
||||||
|
symbols: "️✅";
|
||||||
|
suffix: " ";
|
||||||
|
}
|
||||||
main {
|
main {
|
||||||
font-size: large;
|
font-size: large;
|
||||||
|
|
||||||
|
& section ul {
|
||||||
|
list-style: publish-icons;
|
||||||
|
|
||||||
|
& li {
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
& section.jumbo {
|
& section.jumbo {
|
||||||
& .hero-statement {
|
& .hero-statement {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
|
@ -44,7 +58,29 @@
|
||||||
</p>
|
</p>
|
||||||
<call-to-action></call-to-action>
|
<call-to-action></call-to-action>
|
||||||
<div>
|
<div>
|
||||||
<feature-set features="{{ features }}"></feature-set>
|
<feature-set>
|
||||||
|
<h2>Features</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
A robust API for synchronizing your component's UI and
|
||||||
|
properties
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
~1 kB base class (minified, compressed) with versatile utilities
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Sensible life-cycle hooks that you understand and remember
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Use the built-in JSX-like syntax or bring your own custom
|
||||||
|
templating
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Attach 'side effects' that gets triggered on property value
|
||||||
|
changes
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</feature-set>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
|
@ -70,7 +106,7 @@
|
||||||
</p>
|
</p>
|
||||||
<code-block language="js">
|
<code-block language="js">
|
||||||
<pre>
|
<pre>
|
||||||
import { WebComponent, html } from "https://unpkg.com/web-component-base@2.0.0/index.js";
|
import { WebComponent, html } from "https://esm.sh/web-component-base";
|
||||||
|
|
||||||
export class Counter extends WebComponent {
|
export class Counter extends WebComponent {
|
||||||
static props = {
|
static props = {
|
||||||
|
@ -91,19 +127,11 @@ customElements.define("my-counter", Counter);</pre
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
<my-footer>
|
<my-footer>
|
||||||
<span
|
<small>
|
||||||
>This site is built with
|
Released under the
|
||||||
<a href="https://github.com/ayoayco/McFly">McFly</a>, the no-framework
|
<a href="https://opensource.org/licenses/MIT">MIT License</a>. Copyright
|
||||||
framework; </span
|
© {{author.year}} <a href="{{ author.url }}">{{ author.name }}</a>
|
||||||
><br />
|
</small>
|
||||||
<span
|
|
||||||
>✨ Star on
|
|
||||||
<a href="https://github.com/ayoayco/web-component-base">GitHub</a> to
|
|
||||||
support; </span
|
|
||||||
><br />
|
|
||||||
<span>
|
|
||||||
A project by <a href="{{ author.url }}">{{ author.name }}</a>
|
|
||||||
</span>
|
|
||||||
</my-footer>
|
</my-footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue