feat: sample interactive element on landing page

This commit is contained in:
Ayo 2023-10-19 12:20:20 +02:00
parent e190a9733c
commit 63b229894d
2 changed files with 5 additions and 1 deletions

View file

@ -7,7 +7,7 @@ class HelloWorld extends WebComponent {
let count = 0;
this.onclick = () => {
console.log("Clicked!");
this.setAttribute("name", `I was clicked ${++count} times!`);
this.setAttribute("name", `Clicked ${++count}x`);
};
this.setAttribute("title", "Click me please");
}

View file

@ -8,6 +8,10 @@
<strong>McFly</strong> is a full-stack no-framework framework that
assists developers in leveraging the web platform.
</p>
<p>
Here's a sample interactive custom element:
<hello-world name="McFly"></hello-world>
</p>
<p>
Start at the very basic of writing HTML files and enhance with standard
web technologies or go advanced as you like, at your own pace.