Skip to content

Commit

Permalink
Merge branches 'worranittha/gea-12-choices' and 'dev' of https://gith…
Browse files Browse the repository at this point in the history
…ub.com/esc-chula/gearfest-frontend into worranittha/gea-12-choices
  • Loading branch information
shalluv committed Jan 22, 2024
2 parents 7022459 + c0a5820 commit 60dcae5
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/pages/story/1.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
import BaseLayout from "../../layouts/BaseLayout.astro";
import Button from "../../components/story/Button";
import ChoiceCard from "../../components/story/ChoiceCard";
const redirect = "./2";
---

<BaseLayout>
<form
class="flex w-full flex-col items-center justify-center gap-8"
action={redirect}
>
<ChoiceCard header="นี่คือตัวอย่างปุ่ม\nที่ไม่นับคะแนนสักอัน">
<Button client:load text="Option 1" />
<Button client:load text="Option 2" />
<Button client:load text="Option 3" />
</ChoiceCard>
</form>
</BaseLayout>
19 changes: 19 additions & 0 deletions src/pages/story/2.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
import BaseLayout from "../../layouts/BaseLayout.astro";
import ChoiceCard from "../../components/story/ChoiceCard";
import ScoredButton from "@/components/story/ScoredButton";
const redirect = "./3";
---

<BaseLayout>
<form
class="flex w-full flex-col items-center justify-center gap-8"
action={redirect}
>
<ChoiceCard header="นี่คือตัวอย่างปุ่ม\nที่นับคะแนนหมดเลย">
<ScoredButton client:load text="Option 1" scores={[1, 0, 2, 1, 0, 1]} />
<ScoredButton client:load text="Option 2" scores={[2, 2, 0, 0, 2, 1]} />
<ScoredButton client:load text="Option 3" scores={[0, 1, 1, 2, 0, 0]} />
</ChoiceCard>
</form>
</BaseLayout>
9 changes: 9 additions & 0 deletions src/pages/story/3.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
import BaseLayout from "../../layouts/BaseLayout.astro";
import Tap from "../../components/story/Tap";
---

<BaseLayout>
นี่คือหน้าเปล่าที่แตะแล้วไปต่อได้
<Tap client:load redirect="./4" />
</BaseLayout>
7 changes: 7 additions & 0 deletions src/pages/story/4.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
import BaseLayout from "../../layouts/BaseLayout.astro";
---

<BaseLayout>
<h1 class="text-3xl">Well done!</h1>
</BaseLayout>

0 comments on commit 60dcae5

Please sign in to comment.