From 44617ed999cf4c50ebf65c920c46c35ad77fe14c Mon Sep 17 00:00:00 2001 From: Ayo Date: Thu, 23 Nov 2023 08:06:29 +0100 Subject: [PATCH] feat(site): call-to-action, link to mcfly --- site/src/components/call-to-action.html | 18 ++++++++++++++++++ site/src/components/my-counter.js | 10 ++++++++++ site/src/components/my-footer.html | 5 ++--- site/src/components/my-head.html | 3 +++ site/src/pages/index.html | 13 +++++++++---- 5 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 site/src/components/call-to-action.html create mode 100644 site/src/components/my-counter.js diff --git a/site/src/components/call-to-action.html b/site/src/components/call-to-action.html new file mode 100644 index 0000000..6796be1 --- /dev/null +++ b/site/src/components/call-to-action.html @@ -0,0 +1,18 @@ +
+ + Learn More + +
diff --git a/site/src/components/my-counter.js b/site/src/components/my-counter.js new file mode 100644 index 0000000..0e413d7 --- /dev/null +++ b/site/src/components/my-counter.js @@ -0,0 +1,10 @@ +class Counter extends WebComponent { + static properties = ["count"]; + onInit() { + this.props.count = 0; + this.onclick = () => ++this.props.count; + } + get template() { + return ``; + } +} diff --git a/site/src/components/my-footer.html b/site/src/components/my-footer.html index 76e703d..8063ddb 100644 --- a/site/src/components/my-footer.html +++ b/site/src/components/my-footer.html @@ -1,9 +1,8 @@