-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added feedback component and JNLPRunner feedback page
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
/> |