Skip to content

Commit

Permalink
feat: add playground section
Browse files Browse the repository at this point in the history
  • Loading branch information
yjose committed Sep 20, 2024
1 parent 54bb953 commit 3c5ec24
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/components/report/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,24 @@ const customComponents = {
</article>
</Context>
</div>

<!-- New section for playground demonstration -->
<div class="bg-emerald-100/25 py-16 my-8">
<div class="max-w-screen-xl mx-auto px-4">
<h2 class="text-xl font-bold mb-8 text-center">
Try The Interactive Playground
</h2>
<p class="text-center mb-8 max-w-2xl mx-auto">
Explore and experiment with our data using our interactive playground.
Customize charts, filter data, and gain insights on your own!
</p>
<div class="flex justify-center">
<a
href="/playground"
class="bg-emerald-600 text-white px-6 py-3 rounded-lg hover:bg-emerald-700 transition-colors"
>
Launch Playground
</a>
</div>
</div>
</div>
5 changes: 5 additions & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ interface ImportMetaEnv {
readonly PUBLIC_FIREBASE_STORAGE_BUCKET: string;
readonly PUBLIC_FIREBASE_MESSAGING_SENDER_ID: string;
readonly PUBLIC_FIREBASE_APP_ID: string;

// captcha
readonly RECAPTCHA_ENABLED: boolean;
readonly RECAPTCHA_SITE_KEY: string;
readonly RECAPTCHA_SECRET_KEY: string;
}

interface ImportMeta {
Expand Down

0 comments on commit 3c5ec24

Please sign in to comment.