All the pages are working again, but Alpine is insanely frustrating.

This commit is contained in:
Zed A. Shaw 2025-08-02 13:56:39 -04:00
parent 81cf5e0d93
commit 7125bc2d2a
15 changed files with 95 additions and 40 deletions

View file

@ -1,17 +1,19 @@
<script>
let req = new GetJson("/api/game/1/index.json");
let Game = new GetJson("/api/game/1");
</script>
<blockstart>
<shape style="--w: 100%; --h: 300px">Gameplay Demo Video</shape>
<block style="--value: 7">
<h1 x-text="Game.title">Title</h1>
<block style="--value: 7"
x-data="{item: {}}"
x-init="item = await Game.item()">
<h1 x-text="item.title"></h1>
<block class="horizontal">
<shape style="--w: 200px; --h: 200px;">Some Image</shape>
<shape style="--w: 200px; --h: 200px;">Some Image</shape>
<p x-text="Game.description">Description</p>
<p x-text="item.description"></p>
</block>
</block>