Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add self-hosting license form #1911

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/formbricks-com/app/docs/contributing/setup/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -361,4 +361,4 @@ pnpm build

---

Still can’t figure it out? Join our [Discord](https://discord.com/invite/3YFcABF2Ts)!
Can’t figure it out? Join our [Discord](https://discord.com/invite/3YFcABF2Ts)!
24 changes: 24 additions & 0 deletions apps/formbricks-com/app/docs/self-hosting/license/page.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
export const metadata = {
title: "Self-hosting License to run Formbricks on premises",
description:
"Request a self-hosting licenses to run Formbricks on your own servers.",
};

#### Self-Hosting

# License Request (Beta)

We're handing out free self-hosting license keys during our Beta.

**Please note:** Sooner than later we will introduce a self-hosting license pricing. For a free beta key, fill out this form:

<div style={{ position: 'relative', height: '100vh', maxHeight: '100vh', overflow: 'auto', borderRadius:'12px' }}>
<iframe
src="https://app.formbricks.com/s/clrf4z8zg1u3912250j7shqb5"
style={{ position: 'absolute', left: 0, top: 0, width: '100%', height: '100%', border: 0 }}
>
</iframe>
</div>


**Can’t figure it out?**: [Join our Discord!](https://formbricks.com/discord)
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,4 @@ If you encounter any issues, consider the following steps:

- **Check Formbricks Logs**: Run `cd formbricks && docker compose logs` to check the logs of the Formbricks stack.

**Still can’t figure it out?**: [Join our Discord!](https://formbricks.com/discord)
**Can’t figure it out?**: [Join our Discord!](https://formbricks.com/discord)
1 change: 1 addition & 0 deletions apps/formbricks-com/components/docs/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ export const navigation: Array<NavGroup> = [
{ title: "Advanced Setup", href: "/docs/self-hosting/docker" },
{ title: "Configure", href: "/docs/self-hosting/external-auth-providers" },
{ title: "Migration Guide", href: "/docs/self-hosting/migration-guide" },
{ title: "Self-hosting License", href: "/docs/self-hosting/license" },
],
},
{
Expand Down
37 changes: 26 additions & 11 deletions apps/web/app/s/[surveyId]/components/VerifyEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ import { TSurvey } from "@formbricks/types/surveys";
import { Button } from "@formbricks/ui/Button";
import { Input } from "@formbricks/ui/Input";

const StackedCardsContainer = ({ children }) => (
<div className="relative">
<div className="absolute -left-2 h-[93%] w-[98%] -rotate-6 rounded-xl border border-slate-200 bg-white opacity-40 backdrop-blur-lg"></div>
<div className="absolute -left-1 h-[93%] w-[98%] -rotate-3 rounded-xl border border-slate-200 bg-white opacity-70 backdrop-blur-md"></div>
<div className="flex flex-col items-center justify-center rounded-xl border border-slate-200 bg-white bg-opacity-70 p-16 backdrop-blur-lg">
{children}
</div>
</div>
);

export default function VerifyEmail({
survey,
isErrorComponent,
Expand Down Expand Up @@ -75,11 +85,11 @@ export default function VerifyEmail({
<div className="flex h-full w-full flex-col items-center justify-center text-center">
<Toaster />
{!emailSent && !showPreviewQuestions && (
<div className="flex flex-col items-center justify-center px-4">
<StackedCardsContainer>
<EnvelopeIcon className="h-24 w-24 rounded-full bg-slate-300 p-6 text-white" />
<p className="mt-8 text-2xl font-bold lg:text-4xl">Verify your email to respond.</p>
<p className="mt-2 text-sm text-slate-400 lg:text-base">
To respond to this survey please verify your email.
<p className="mt-4 text-sm text-slate-500 lg:text-base">
To respond to this survey, please verify your email.
</p>
<div className="mt-6 flex w-full space-x-2">
<Input
Expand All @@ -97,32 +107,37 @@ export default function VerifyEmail({
<p className="mt-6 cursor-pointer text-xs text-slate-400" onClick={handlePreviewClick}>
Just curious? <span className="underline">Preview survey questions.</span>
</p>
</div>
</StackedCardsContainer>
)}
{!emailSent && showPreviewQuestions && (
<div className="flex flex-col items-center justify-center">
<StackedCardsContainer>
{" "}
<p className="text-4xl font-bold">Question Preview</p>
<div className="mt-4 flex w-full flex-col justify-center rounded-lg border border-slate-200 p-8">
<div className="mt-4 flex w-full flex-col justify-center rounded-lg border border-slate-200 bg-slate-50 bg-opacity-20 p-8 text-slate-700">
{survey.questions.map((question, index) => (
<p key={index} className="my-1">{`${index + 1}. ${question.headline}`}</p>
))}
</div>
<p className="mt-6 cursor-pointer text-xs text-slate-400" onClick={handlePreviewClick}>
Want to respond? <span className="underline">Verify email.</span>
</p>
</div>
</StackedCardsContainer>
)}
{emailSent && (
<div className="flex flex-col items-center justify-center px-4">
<StackedCardsContainer>
{" "}
<h1 className="mt-8 text-2xl font-bold lg:text-4xl">Check your email.</h1>
<p className="mt-4 text-center text-sm text-slate-400 lg:text-base">
We sent an email to <span className="font-semibold italic">{email}</span>. Please click the link
in the email to take your survey.
</p>
<p className="mt-6 cursor-pointer text-sm text-slate-400" onClick={handleGoBackClick}>
<Button
variant="secondary"
className="mt-6 cursor-pointer text-sm text-slate-400"
onClick={handleGoBackClick}>
Go Back
</p>
</div>
</Button>
</StackedCardsContainer>
)}
</div>
);
Expand Down
4 changes: 4 additions & 0 deletions packages/tailwind-config/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ module.exports = {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
},
blur: {
xxs: "0.33px",
xs: "2px",
},
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
},
Expand Down
Loading