feat: show 2.0 beta announcement
This commit is contained in:
parent
fd72c6d097
commit
8829bd28aa
3 changed files with 50 additions and 11 deletions
|
@ -1,11 +0,0 @@
|
||||||
/**
|
|
||||||
* `./routes/api/`
|
|
||||||
* ...is where we put file-based REST API endpoints
|
|
||||||
* this one is accessible via https://<domain>/api/user
|
|
||||||
*/
|
|
||||||
export default eventHandler(() => {
|
|
||||||
return {
|
|
||||||
user: "AYO",
|
|
||||||
date: new Date(),
|
|
||||||
};
|
|
||||||
});
|
|
38
site/src/components/my-quote.js
Normal file
38
site/src/components/my-quote.js
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
class MyQuote extends WebComponent {
|
||||||
|
static properties = ['type'];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {HTMLElement}
|
||||||
|
*/
|
||||||
|
get wrapper() {
|
||||||
|
return this.querySelector('#wrapper');
|
||||||
|
}
|
||||||
|
|
||||||
|
afterViewInit() {
|
||||||
|
/**
|
||||||
|
* @type {Partial<CSSStyleDeclaration>}
|
||||||
|
*/
|
||||||
|
const style = {
|
||||||
|
background: "#f5f2f0",
|
||||||
|
padding: "1em",
|
||||||
|
margin: "1em 0",
|
||||||
|
fontSize: "large",
|
||||||
|
overflow: "auto",
|
||||||
|
borderRadius: '5px'
|
||||||
|
};
|
||||||
|
|
||||||
|
Object.keys(style).forEach((rule) => {
|
||||||
|
this.wrapper.style[rule] = style[rule];
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get template() {
|
||||||
|
const trimmed = this.innerHTML.trim();
|
||||||
|
return `
|
||||||
|
<div id="wrapper">
|
||||||
|
${trimmed}
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
}
|
|
@ -26,6 +26,7 @@
|
||||||
</awesome-header>
|
</awesome-header>
|
||||||
<main>
|
<main>
|
||||||
<section style="font-size: large;">
|
<section style="font-size: large;">
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
By extending our base class, you get an easy authoring experience as you would expect in writing your components:</p>
|
By extending our base class, you get an easy authoring experience as you would expect in writing your components:</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -35,6 +36,17 @@
|
||||||
<li>Provided out-of-the-box with <a href="https://ayco.io/gh/McFly">McFly</a>, a powerful no-framework framework</li>
|
<li>Provided out-of-the-box with <a href="https://ayco.io/gh/McFly">McFly</a>, a powerful no-framework framework</li>
|
||||||
</ul>
|
</ul>
|
||||||
<call-to-action />
|
<call-to-action />
|
||||||
|
<my-quote type="info">
|
||||||
|
<p>
|
||||||
|
Version 2.0.0-beta is out! 🎉
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
We are now able to attach "side effects" to property value changes, from inside the component and outside.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Play on <a href="https://codepen.io/ayoayco-the-styleful/pen/ExrdWPv?editors=1010">CodePen</a>.
|
||||||
|
</p>
|
||||||
|
</my-quote>
|
||||||
</section>
|
</section>
|
||||||
<hr style="margin: 2em 0;" />
|
<hr style="margin: 2em 0;" />
|
||||||
<section style="font-size: large;">
|
<section style="font-size: large;">
|
||||||
|
|
Loading…
Reference in a new issue