Tweak code formatting and rephrase a sentence

This commit is contained in:
Talia 2025-02-24 13:30:17 +01:00
parent 8624d80eb8
commit fdf7344fee

View file

@ -121,7 +121,7 @@
</p> </p>
<p> <p>
If that sounds good, it's time to back up those claims! Sounds good? Continue reading to find out how to try it yourself!
</p> </p>
</div> </div>
</section> </section>
@ -252,14 +252,13 @@ component(myComponent) //Registers it as &lt;my-component&gt;</code></pre>
<nyooom-showcase preview=false> <nyooom-showcase preview=false>
<code> <code>
<div contenteditable="false">return html.span( <div contenteditable="false">return html.span({
{ dataset: { dataset: {
from: "Fire", from: "Fire",
to: "Heat", to: "Heat",
snakeCase: "converted" snakeCase: "converted"
} }, }
"Heat from Fire" }, "Heat from Fire")</div>
)</div>
</code> </code>
</nyooom-showcase> </nyooom-showcase>
@ -269,13 +268,12 @@ component(myComponent) //Registers it as &lt;my-component&gt;</code></pre>
<nyooom-showcase code=false> <nyooom-showcase code=false>
<code> <code>
<div contenteditable="false">return html.div( <div contenteditable="false">return html.div({
{ shadowRoot: [ shadowRoot: [
html.p("Shadow DOM text"), html.p("Shadow DOM text"),
"Arrays work too :)" "Arrays work too :)"
]}, ]
"Light DOM text" }, "Light DOM text")</div>
)</div>
</code> </code>
</nyooom-showcase> </nyooom-showcase>
</section> </section>
@ -369,10 +367,7 @@ html.flexRow (
{ class: "todo", gap: 1 }, { class: "todo", gap: 1 },
value, value,
html.span("[x]", { html.span("[x]", {
style: { style: { cursor: "pointer" },
color: "var(--primary-6)",
cursor: "pointer"
},
click(event) { click(event) {
event event
.target .target
@ -381,6 +376,7 @@ html.flexRow (
} }
}) })
) )
let todo, input let todo, input
return todo = html.flexColumn( return todo = html.flexColumn(
{gap: 1}, {gap: 1},