feat: power overwhelming
- publish initial demo page - create warning block fragment
This commit is contained in:
parent
8815cbc51a
commit
68c1e2df0f
3 changed files with 82 additions and 23 deletions
12
src/components/warning-block.html
Normal file
12
src/components/warning-block.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<quote
|
||||
style="
|
||||
background-color: beige;
|
||||
border-radius: 5px;
|
||||
border: 1px solid gray;
|
||||
padding: 1em;
|
||||
margin: 1em 0;
|
||||
display: block;
|
||||
"
|
||||
>
|
||||
<span id="icon">⚠️</span> <slot />
|
||||
</quote>
|
|
@ -4,12 +4,10 @@
|
|||
<link rel="stylesheet" href="/prism.css" />
|
||||
<script src="/prism.js"></script>
|
||||
<script server:setup>
|
||||
const name = "AYOs";
|
||||
const name = "Nitro";
|
||||
let greeting = "hello";
|
||||
var count = sum(1, 247);
|
||||
|
||||
// comment
|
||||
|
||||
greeting = "nope";
|
||||
|
||||
function sum(x, y) {
|
||||
|
@ -20,27 +18,76 @@
|
|||
<body>
|
||||
<awesome-header><span>heyyy</span></awesome-header>
|
||||
<main>
|
||||
<a href="/demo/about">{{ count }}</a>
|
||||
<div>
|
||||
<my-hello-world name="{{name }}"></my-hello-world>
|
||||
</div>
|
||||
<p>some text: {{greeting}}</p>
|
||||
{{greeting}} hey<br />
|
||||
<clickable-text></clickable-text>
|
||||
<code-block language="js" line-numbers="true">
|
||||
<pre>
|
||||
const hey = "AYO";
|
||||
console.log(hey)</pre
|
||||
<section id="intro">
|
||||
<h1>McFly Demo</h1>
|
||||
<warning-block
|
||||
>This page is in-progress. See the
|
||||
<a
|
||||
href="https://github.com/ayoayco/McFly/blob/main/src/pages/demo/index.html"
|
||||
>source code</a
|
||||
>.</warning-block
|
||||
>
|
||||
</code-block>
|
||||
<p>In this page, there are several things happening.</p>
|
||||
<p>
|
||||
In the grey box here everything is working, and we will breakdown the
|
||||
code in the <a href="#breakdown">Breakdown</a> section below the page.
|
||||
</p>
|
||||
</section>
|
||||
<section
|
||||
id="demo"
|
||||
style="
|
||||
padding: 1em;
|
||||
margin: 3em 0;
|
||||
box-shadow: 5px 25px 10px -25px rgba(34, 34, 34, 0.15);
|
||||
border: 1px solid rgba(34, 34, 34, 0.15);
|
||||
border-radius: 5px;
|
||||
"
|
||||
>
|
||||
<h2>Demo Page</h2>
|
||||
<a href="/demo/about">{{ count }}</a>
|
||||
<div>
|
||||
<my-hello-world name="{{name }}"></my-hello-world>
|
||||
</div>
|
||||
<code-block language="js">const name = "Nitro"</code-block>
|
||||
<p>some text: {{greeting}}</p>
|
||||
{{greeting}} hey<br />
|
||||
<clickable-text></clickable-text>
|
||||
</section>
|
||||
<section id="breakdown">
|
||||
<h2>Let's Break it Down</h2>
|
||||
<code-block language="html" line-numbers="true">
|
||||
<pre>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<my-head>
|
||||
<script server:setup>
|
||||
const name = "Nitro";
|
||||
let greeting = "hello";
|
||||
var count = sum(1, 247);
|
||||
greeting = "nope";
|
||||
function sum(x, y) {
|
||||
return x + y;
|
||||
}
|
||||
</script>
|
||||
</my-head>
|
||||
<body>
|
||||
<awesome-header><span>heyyy</span></awesome-header>
|
||||
<main>
|
||||
<a href="/demo/about">{{ count }}</a>
|
||||
<div>
|
||||
<my-hello-world name="{{name }}"></my-hello-world>
|
||||
</div>
|
||||
<p>some text: {{greeting}}</p>
|
||||
{{greeting}} hey<br />
|
||||
<clickable-text></clickable-text>
|
||||
</main>
|
||||
<my-footer></my-footer>
|
||||
</body>
|
||||
</html></pre
|
||||
>
|
||||
</code-block>
|
||||
</section>
|
||||
</main>
|
||||
<my-footer></my-footer>
|
||||
|
||||
<script>
|
||||
const helloWorld = document.querySelector("my-hello-world");
|
||||
setTimeout(() => {
|
||||
helloWorld.setAttribute("name", "Nitro");
|
||||
}, 2000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
<li>Deploy anywhere</li>
|
||||
</ul>
|
||||
<p>
|
||||
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>.
|
||||
</p>
|
||||
</section>
|
||||
|
|
Loading…
Reference in a new issue