Skip to content

Commit

Permalink
Merge pull request #392 from cofacts/awardee
Browse files Browse the repository at this point in the history
feat: add MyGoPen awardee form
  • Loading branch information
MrOrz authored Apr 17, 2024
2 parents c64e053 + 0d7c96d commit 2042fa4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/liff/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import UserSetting from './pages/UserSetting.svelte';
import Feedback from './pages/Feedback.svelte';
import Mgp from './pages/Mgp.svelte';
import MgpAwardee from './pages/MgpAwardee.svelte';
const routes = {
article: Article,
Expand All @@ -14,6 +15,7 @@
comment: Comment,
feedback: Feedback,
mgp: Mgp,
mgpAwardee: MgpAwardee,
};
// Send pageview with correct path on each page change.
Expand Down
18 changes: 18 additions & 0 deletions src/liff/pages/MgpAwardee.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<script>
const userId = liff.getDecodedIDToken().sub;
let iframeUrl = `https://www.surveycake.com/s/Xx6mp?ssn0=${userId}`
</script>

<style>
iframe {
width: 100vw;
height: 100vh;
border: 0;
}
</style>

<svelte:head>
<title>得獎者@Cofacts x 第四屆 MyGoPen 謠言惑眾獎</title>
</svelte:head>

<iframe title="謠言惑眾獎得獎者" src={iframeUrl} />

0 comments on commit 2042fa4

Please sign in to comment.