Skip to content

Commit

Permalink
fixed: Unit test and small design issues
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Nov 3, 2023
1 parent 238ac34 commit d9aefbf
Show file tree
Hide file tree
Showing 7 changed files with 211 additions and 180 deletions.
11 changes: 10 additions & 1 deletion demos/components/app.riot
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,22 @@
<a href="/hello">Hello</a>
<a href="/user">User</a>
<a href="/user/gianluca">Username</a>
<a href="/user/gianluca/#anchor">Username with anchor</a>
<a href="/goodbye">goodbye</a>
</nav>
<route path="/hello">hello</route>
<route path="/user">user</route>
<route path="/user/:username">
<route path="/user/:username/([?#].*)?">
<user username={route.params.username}></user>
</route>
<route path="/goodbye">goodbye</route>
</router>

<style>
nav {
display: flex;
gap: 0.6rem;
align-items: center;
}
</style>
</app>
10 changes: 9 additions & 1 deletion demos/components/user.riot
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<user>
User {JSON.stringify(props)}
</user>

<p id="anchor">i am an anchor</p>

<style>
p {
margin: 100vh 0;
}
</style>
</user>

0 comments on commit d9aefbf

Please sign in to comment.