Skip to content

Commit

Permalink
Finishing touches
Browse files Browse the repository at this point in the history
  • Loading branch information
tigt committed Jan 30, 2023
1 parent c5f4c48 commit 1c75bee
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion content/2-templating/2-styling/marko/CssStyle.marko
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<h1.title>I am red</h1>
<button style={ fontSize: "10rem" }>I am a button</button>
<button class=scopedButton>I am a style-scoped button</button>

<style> /* TODO: the Vue example uses style scoping, maybe we should show ours off too here */
<style>
.title {
color: red;
}
</style>
<style/{ scopedButton }>
.scopedButton {
font-size: 10rem;
}
</style>
2 changes: 0 additions & 2 deletions content/2-templating/5-dom-ref/marko/InputFocused.marko

This file was deleted.

2 changes: 2 additions & 0 deletions content/2-templating/5-dom-ref/marko/InputIndeterminate.marko
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<input/inputElement type="checkbox">
<effect() { inputElement().indeterminate = true }/>
3 changes: 0 additions & 3 deletions content/3-lifecycle/1-on-mount/marko/PageTitle.marko

This file was deleted.

3 changes: 3 additions & 0 deletions content/3-lifecycle/1-on-mount/marko/ViewportSize.marko
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<let/viewportSize = ""/>
<effect() { viewportSize = `${window.innerWidth} × ${window.innerHeight}` }/>
<p>Viewport size: ${viewportSize}</p>

0 comments on commit 1c75bee

Please sign in to comment.