Skip to content

Commit

Permalink
Added feedback component and JNLPRunner feedback page
Browse files Browse the repository at this point in the history
  • Loading branch information
epanholz committed Jul 30, 2024
1 parent 7c438ad commit b615420
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
40 changes: 40 additions & 0 deletions sites/labs/src/components/ExtensionFeedback.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
import Shell from "@leaningtech/astro-theme/layouts/Shell.astro";
import { products } from "@leaningtech/astro-theme/products";
import { Image } from "astro:assets";
import { type Product } from "../../../../packages/astro-theme/lib/nav.ts";
interface Props {
productId: Product;
formUrl: string;
}
const { productId, formUrl } = Astro.props;
const product = products[productId];
---

<Shell title=`${product.name} Feedback`>
<main
class="flex flex-col justify-center items-center flex-grow w-full max-w-screen-2xl mx-auto px-6 py-10 overflow-hidden"
>
<div class="flex justify-between items-center w-4/5 max-w-6xl p-4">
<div class="w-1/2 p-4 box-border">
<div class="mb-6">
<a href={product.href} target="_blank">
<Image src={product.logotype} alt={product.name} class="w-4/5" />
</a>
</div>
<h2 class="text-3xl font-bold mb-4">We're sorry to see you go!</h2>
<p class="text-base">
We noticed that you've uninstalled our extension. Your feedback is
valuable to us, and it helps us improve our technology. Please take a
moment to fill out the form on the right and let us know why you
decided to uninstall the extension.
</p>
</div>
<div class="w-1/2 p-4 box-border">
<iframe class="w-full h-[600px] border-none" src={formUrl}> </iframe>
</div>
</div>
</main>
</Shell>
8 changes: 8 additions & 0 deletions sites/labs/src/pages/feedback-jnlp.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
import ExtensionFeedback from "../components/ExtensionFeedback.astro";
---

<ExtensionFeedback
productId="cheerpj-jnlp-runner"
formUrl="https://docs.google.com/forms/d/e/1FAIpQLSddrYIUh7fzd2cg4-gkMAjYDVxZvhpN33xF-aY0b5PzraGzYg/viewform?embedded=true"
/>

0 comments on commit b615420

Please sign in to comment.