feat: community page revamp (#1725)

This commit is contained in:
Johannes
2023-12-03 14:49:35 -05:00
committed by GitHub
parent 6e08a94da7
commit 4b0eef9c2e
34 changed files with 1051 additions and 1277 deletions

View File

@@ -1,5 +1,3 @@
import PHIcon from "@/images/formtribe/ph-logo.png";
import Image from "next/image";
import Link from "next/link";
export const GitHubSponsorship: React.FC = () => {
@@ -38,7 +36,7 @@ export const GitHubSponsorship: React.FC = () => {
</p>
</div>
<div className="flex items-center justify-end">
<Image src={PHIcon} alt="Product Hunt Logo" width={80} className="" />
{/* <Image src={PHIcon} alt="Product Hunt Logo" width={80} className="" /> */}
</div>
</div>
</Link>

View File

@@ -27,11 +27,11 @@ export const Hero: React.FC = ({}) => {
<ChevronRightIcon className="mb-1 ml-1 inline h-4 w-4 text-slate-300" />
</a>
<h1 className="mt-10 text-3xl font-bold tracking-tight text-slate-800 dark:text-slate-200 sm:text-4xl md:text-5xl">
<span className="xl:inline">The Open Source Survey Suite</span>
<span className="xl:inline">Prviacy-first Experience Management</span>
</h1>
<p className="xs:max-w-none mx-auto mt-3 max-w-xs text-base text-slate-500 dark:text-slate-400 sm:text-lg md:mt-5 md:text-xl">
Run link surveys, in-app surveys and email surveys in one app {" "}
Turn customer insights into irresistible experiences {" "}
<span className="decoration-brand-dark underline underline-offset-4">all privacy-first.</span>
</p>
@@ -92,7 +92,7 @@ export const Hero: React.FC = ({}) => {
router.push("https://app.formbricks.com/auth/signup");
plausible("Hero_CTA_CreateSurvey");
}}>
Create survey
Get started
</Button>
<Button
variant="secondary"

View File

@@ -1,6 +1,6 @@
import Link from "next/link";
import { FaDiscord, FaGithub, FaXTwitter } from "react-icons/fa6";
import { FooterLogo } from "./Logo";
import { FaGithub, FaXTwitter, FaDiscord } from "react-icons/fa6";
const navigation = {
other: [
@@ -33,7 +33,7 @@ export default function Footer() {
return (
<footer
className="mt-32 bg-gradient-to-b from-slate-50 to-slate-200 dark:from-slate-900 dark:to-slate-800"
className="bg-gradient-to-b from-slate-50 to-slate-200 pt-32 dark:from-slate-900 dark:to-slate-800"
aria-labelledby="footer-heading">
<h2 id="footer-heading" className="sr-only">
Footer

View File

@@ -278,6 +278,11 @@ export default function Header() {
className="text-sm font-medium text-slate-400 hover:text-slate-700 dark:hover:text-slate-300 lg:text-base">
Pricing
</Link>
<Link
href="/concierge"
className="text-sm font-medium text-slate-400 hover:text-slate-700 dark:hover:text-slate-300 lg:text-base">
Concierge
</Link>
<Link
href="/docs"
className="text-sm font-medium text-slate-400 hover:text-slate-700 dark:hover:text-slate-300 lg:text-base">
@@ -293,12 +298,6 @@ export default function Header() {
className="text-base font-medium text-slate-400 hover:text-slate-700 dark:hover:text-slate-300">
Careers <p className="bg-brand inline rounded-full px-2 text-xs text-white">1</p>
</Link> */}
<Link
href="/concierge"
className="text-sm font-medium text-slate-400 hover:text-slate-700 dark:hover:text-slate-300 lg:text-base">
Concierge
</Link>
</Popover.Group>
<div className="hidden flex-1 items-center justify-end md:flex">
<ThemeSelector className="relative z-10 mr-2 lg:mr-5" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

View File

@@ -25,6 +25,11 @@ const nextConfig = {
hostname: "seo-strapi-aws-s3.s3.eu-central-1.amazonaws.com",
port: "",
},
{
protocol: "https",
hostname: "avatars.githubusercontent.com",
port: "",
},
],
},
async redirects() {
@@ -160,6 +165,11 @@ const nextConfig = {
destination: "/docs/contributing/setup#gitpod",
permanent: true,
},
{
source: "/formtribe",
destination: "/community",
permanent: true,
},
];
},
async rewrites() {

View File

@@ -1,101 +0,0 @@
import Layout from "@/components/shared/Layout";
import HeroTitle from "@/components/shared/HeroTitle";
import { Button } from "@formbricks/ui/Button";
import { ArrowTopRightOnSquareIcon } from "@heroicons/react/24/outline";
import { useRouter } from "next/router";
import { ChatBubbleOvalLeftEllipsisIcon, EnvelopeIcon } from "@heroicons/react/24/solid";
const topContributors = [
{
name: "Midka",
href: "https://github.com/kymppi",
},
{
name: "Pandeyman",
href: "https://github.com/pandeymangg",
},
{
name: "Ashu",
href: "https://github.com/Ashutosh-Bhadauriya",
},
{
name: "Timothy",
href: "https://github.com/timothyde",
},
{
name: "Shubhdeep",
href: "https://github.com/Shubhdeep12",
},
];
const CommunityPage = () => {
const router = useRouter();
return (
<Layout
title="Community | Formbricks Open Source Forms & Surveys"
description="You're building open source forms and surveys? So are we! Get support for anything your building - or just say hi!">
<HeroTitle headingPt1="Join the" headingTeal="Formbricks" headingPt2="Community 🤍" />
<div className="mb-32 grid grid-cols-1 px-4 md:grid-cols-2 md:gap-8 md:px-16">
<div className="mb-6 rounded-lg bg-gradient-to-b from-slate-200 to-slate-300 px-10 py-6 dark:from-slate-800 dark:to-slate-700 md:mb-0">
<h2 className="mt-7 text-3xl font-bold text-slate-800 dark:text-slate-200 xl:text-4xl">
Top Contributors
</h2>
<p className="mt-2 text-sm text-slate-500 dark:text-slate-400">
Super thankful to have you guys contribute for Formbricks 🙌
</p>
<ol className="ml-4 mt-10 list-decimal">
{topContributors.map((MVP) => (
<li
key={MVP.name}
className="my-3 text-lg font-bold text-slate-700 hover:text-slate-600 dark:text-slate-300 dark:hover:text-slate-400">
<a href={MVP.href} className="" target="_blank" rel="noreferrer">
{MVP.name}
<ArrowTopRightOnSquareIcon className="text-brand-dark dark:text-brand-light mb-1 ml-1 inline h-5 w-5" />
</a>
</li>
))}
</ol>
</div>
<div>
<div className="rounded-lg bg-gradient-to-b from-slate-200 to-slate-300 px-10 pb-12 pt-6 dark:from-slate-800 dark:to-slate-700">
<h3 className="mt-7 text-3xl font-bold text-slate-800 dark:text-slate-200 xl:text-4xl">
Community Discord
</h3>
<p className="mt-2 text-sm text-slate-500 dark:text-slate-400">
Get support for anything your building - or just say hi 👋
</p>
<Button
className="mt-7 w-full justify-center"
variant="highlight"
onClick={() => router.push("/discord")}>
Join Discord <ChatBubbleOvalLeftEllipsisIcon className="ml-1 inline h-5 w-5" />
</Button>
</div>
<div className="mt-7 flex">
<a
href="https://twitter.com/formbricks"
target="_blank"
rel="noreferrer"
className="delay-50 w-1/2 transition ease-in-out hover:scale-105">
<div className="mr-3 flex justify-center rounded-lg bg-gradient-to-b from-slate-200 to-slate-300 py-6 dark:from-slate-800 dark:to-slate-700">
<svg fill="currentColor" viewBox="0 0 24 24" className="h-20 w-20 text-[#1DA1F2]">
<path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84" />
</svg>
</div>
</a>
<a
href="mailto:hola@formbricks.com"
className="delay-50 w-1/2 transition ease-in-out hover:scale-105">
<div className="ml-3 flex justify-center rounded-lg bg-gradient-to-b from-slate-200 to-slate-300 py-6 dark:from-slate-800 dark:to-slate-700">
<EnvelopeIcon className="ml-1 h-20 w-20 text-slate-400 " />
</div>
</a>
</div>
</div>
</div>
</Layout>
);
};
export default CommunityPage;

View File

@@ -0,0 +1,44 @@
import Image from "next/image";
import Link from "next/link";
import { FaGithub } from "react-icons/fa6";
type Contributor = {
githubId: string;
imgUrl: string;
name: string;
};
type GridComponentProps = {
contributors: Contributor[];
};
const ContributorGrid: React.FC<GridComponentProps> = ({ contributors }) => {
return (
<div className="-mb-64 mt-24 grid scale-105 grid-cols-4 gap-6 md:-mb-32 md:grid-cols-8">
{contributors?.map((contributor, index) => (
<div key={index} className={`col-span-1 ${index % 2 !== 0 ? "-mt-8" : ""}`}>
<Link
href={`https://github.com/${contributor.githubId}`}
target="_blank"
className="group transition-transform">
<div className="bg-brand-dark mx-auto -mb-12 flex w-fit max-w-[90%] items-center justify-center rounded-t-xl px-4 pb-3 pt-1 text-sm text-slate-100 transition-all group-hover:-mt-12 group-hover:mb-0">
<FaGithub className="mr-2 h-4 w-4" />
<p className="max-w-[100px] overflow-hidden text-ellipsis whitespace-nowrap">
{contributor.githubId}
</p>
</div>
<Image
src={contributor.imgUrl}
alt={contributor.name}
className="ring-brand-dark rounded-lg ring-offset-4 ring-offset-slate-900 transition-all hover:scale-110 hover:ring-1"
width={500}
height={500}
/>
</Link>
</div>
))}
</div>
);
};
export default ContributorGrid;

View File

@@ -0,0 +1,93 @@
import DeputyBadge from "@/images/formtribe/deputy-batch.png";
import LegendBadge from "@/images/formtribe/legend-batch.png";
import PrimeBadge from "@/images/formtribe/prime-batch.png";
import RookieBadge from "@/images/formtribe/rookie-batch.png";
import Image from "next/image";
import Link from "next/link";
interface Member {
name: string;
githubId: string;
level: string;
imgUrl: string;
}
interface RoadmapProps {
members: Member[];
}
interface BadgeSectionProps {
badgeImage: any;
level: string;
members: Member[];
className: string; // New property for styling
}
const BadgeSection: React.FC<BadgeSectionProps> = ({ badgeImage, level, members, className }) => {
const filteredMembers = members?.filter((member) => member.level === level);
return (
<div className="group flex flex-col items-center space-y-6 pt-12 md:flex-row md:space-x-10 md:px-4">
<Image
src={badgeImage}
alt={`${level} badge`}
className="h-32 w-32 transition-all delay-100 duration-300 group-hover:-rotate-6 group-hover:scale-110"
/>
<div className="grid w-full gap-2 md:grid-cols-3">
{filteredMembers?.length > 0 ? (
filteredMembers?.map((member) => (
<Link
key={member.githubId}
href={`https://github.com/formbricks/formbricks/pulls?q=is:pr+author:${member.githubId}`}
target="_blank"
className={`flex w-full items-center space-x-3 rounded-xl border px-4 py-1 transition-all hover:scale-105 md:px-5 md:py-2 ${className}`}>
<Image
src={member.imgUrl}
alt={member.githubId}
className="mr-3 h-8 w-8 rounded-full md:h-12 md:w-12"
width={100}
height={100}
/>
{member.name}
</Link>
))
) : (
<div className="text-center text-slate-700">No Legends around yet 👀</div>
)}
</div>
</div>
);
};
export const HallOfFame: React.FC<RoadmapProps> = ({ members }) => {
return (
<div className="mx-auto space-y-12 divide-y-2">
<BadgeSection
badgeImage={LegendBadge}
level="legend"
members={members}
className="border-green-300 bg-green-100 text-green-700"
/>
<BadgeSection
badgeImage={PrimeBadge}
level="prime"
members={members}
className="border-indigo-200 bg-indigo-100 text-indigo-700"
/>
<BadgeSection
badgeImage={DeputyBadge}
level="deputy"
members={members}
className="border-orange-200 bg-orange-100 text-orange-700"
/>
<BadgeSection
badgeImage={RookieBadge}
level="rookie"
members={members}
className="border-amber-200 bg-amber-100 text-amber-700"
/>
</div>
);
};
export default HallOfFame;

View File

@@ -1,15 +1,15 @@
import Logo from "@/images/formtribe/formtribe-logo.png";
import { Popover, PopoverContent, PopoverTrigger } from "@formbricks/ui/Popover";
import footerLogoDark from "@/images/logo/footerlogo-dark.svg";
import { Button } from "@formbricks/ui/Button";
import { Popover, PopoverContent, PopoverTrigger } from "@formbricks/ui/Popover";
import { Bars3Icon } from "@heroicons/react/24/solid";
import Image from "next/image";
import Link from "next/link";
import { useState } from "react";
const navigation = [
{ name: "How it works", href: "#how" },
{ name: "Prizes", href: "#prizes" },
{ name: "Leaderboard", href: "#leaderboard" },
{ name: "Roadmap", href: "#roadmap" },
{ name: "Levels", href: "#levels" },
{ name: "Hall of Fame", href: "#hof" },
{ name: "FAQ", href: "#faq" },
];
@@ -17,33 +17,30 @@ export default function HeaderLight() {
const [mobileNavMenuOpen, setMobileNavMenuOpen] = useState(false);
return (
<div className="mx-auto flex w-full items-center justify-between py-6 sm:px-2 ">
<div className="= mx-auto flex w-full max-w-7xl items-center justify-between py-6 sm:px-2 ">
<div className="flex items-center justify-start">
<Link href="/">
<span className="sr-only">FormTribe</span>
<Image alt="Formtribe Logo" src={Logo} className="ml-7 h-8 w-auto sm:h-10" />
<Image alt="Formbricks Logo" src={footerLogoDark} className="h-8 w-auto pl-4 sm:h-10" />
</Link>
<Link
href="https://formbricks.com/github"
target="_blank"
className="ml-6 mt-1 text-sm text-slate-500 hover:scale-105">
className="ml-6 mt-1 text-sm text-slate-300 hover:scale-105">
Star us
</Link>
</div>
{/* Desktop Menu */}
<div className="hidden items-center gap-x-8 text-slate-700 md:flex">
<div className="hidden items-center gap-x-8 text-slate-300 md:flex">
{navigation.map((navItem) => (
<Link key={navItem.name} href={navItem.href} className="hover:scale-105">
{navItem.name}
</Link>
))}
<Button
variant="highlight"
className="font-kablammo ml-2 bg-gradient-to-br from-[#032E1E] via-[#032E1E] to-[#013C27] text-xl"
href="#join">
Join
<Button variant="secondary" size="sm" className="ml-2" href="https://formbricks.com/discord">
Join us!
</Button>
</div>
@@ -52,17 +49,17 @@ export default function HeaderLight() {
<Popover open={mobileNavMenuOpen} onOpenChange={setMobileNavMenuOpen}>
<PopoverTrigger onClick={() => setMobileNavMenuOpen(!mobileNavMenuOpen)}>
<span>
<Bars3Icon className="h-8 w-8 rounded-md bg-slate-200 p-1 text-slate-600" />
<Bars3Icon className="h-8 w-8 rounded-md bg-slate-700 p-1 text-slate-200" />
</span>
</PopoverTrigger>
<PopoverContent className="mr-4 bg-slate-100 shadow">
<PopoverContent className="border-slate-600 bg-slate-700 shadow">
<div className="flex flex-col">
{navigation.map((navItem) => (
<Link key={navItem.name} href={navItem.href}>
<div
onClick={() => setMobileNavMenuOpen(false)}
className="flex items-center space-x-2 rounded-md p-2">
<span className="font-medium text-slate-600">{navItem.name}</span>
<span className="font-medium text-slate-200">{navItem.name}</span>
</div>
</Link>
))}

View File

@@ -10,14 +10,10 @@ interface LayoutProps {
export default function Layout({ title, description, children }: LayoutProps) {
return (
<div className="max-w-8xl mx-auto">
<div className="mx-auto bg-gradient-to-br from-gray-800 via-gray-900 to-gray-900">
<MetaInformation title={title} description={description} />
<HeaderTribe />
{
<main className="relative mx-auto flex w-full max-w-6xl flex-col justify-center px-2 lg:px-8 xl:px-12">
{children}
</main>
}
<main className="">{children}</main>
<Footer />
</div>
);

View File

@@ -0,0 +1,41 @@
import Image from "next/image";
import React from "react";
import { StaticImageData } from "next/image";
type Task = {
title: string;
description: string;
};
type LevelCardProps = {
badgeSrc: StaticImageData; // or string if it's a URL
badgeAlt: string;
title: string;
points: string;
tasks: Task[];
};
const LevelCard: React.FC<LevelCardProps> = ({ badgeSrc, badgeAlt, title, points, tasks }) => (
<div className="group">
<div className="flex w-full flex-col items-center rounded-t-xl bg-slate-700 p-10 transition-colors">
<Image
src={badgeSrc}
alt={badgeAlt}
className="h-32 w-32 transition-all delay-100 duration-300 group-hover:-rotate-6 group-hover:scale-110"
/>
<p className="mt-4 text-lg font-bold text-slate-200">{title}</p>
<p className="text-sm leading-5 text-slate-400">{points}</p>
</div>
<div className="w-full rounded-b-xl bg-slate-600 p-10 text-left">
{tasks?.map((task, index) => (
<React.Fragment key={index}>
<p className="font-bold text-slate-200">{task.title}</p>
<p className="mb-6 leading-5 text-slate-400">{task.description}</p>
</React.Fragment>
))}
</div>
</div>
);
export default LevelCard;

View File

@@ -0,0 +1,45 @@
import Image from "next/image";
import Link from "next/link";
import { FaGithub } from "react-icons/fa6";
type Contributor = {
githubId: string;
imgUrl: string;
name: string;
};
type LevelGridProps = {
contributors: Contributor[];
};
const LevelGrid: React.FC<LevelGridProps> = ({ contributors }) => {
return (
<div className="-mt-64 grid scale-105 grid-cols-4 gap-6 md:-mt-32 md:grid-cols-8">
{contributors?.map((contributor, index) => (
<div key={index} className={`col-span-1 ${index % 2 !== 0 ? "-mt-8" : ""}`}>
<Link
href={`https://github.com/${contributor.githubId}`}
target="_blank"
rel="noopener noreferrer"
className="group transition-transform">
<div className="bg-brand-dark mx-auto -mb-12 flex w-fit max-w-[90%] items-center justify-center rounded-t-xl px-4 pb-3 pt-1 text-sm text-slate-100 transition-all group-hover:-mt-12 group-hover:mb-0">
<FaGithub className="mr-2 h-4 w-4" />
<p className="max-w-[100px] overflow-hidden text-ellipsis whitespace-nowrap">
{contributor.githubId}
</p>
</div>
<Image
src={contributor.imgUrl}
alt={contributor.name}
className="ring-brand-dark rounded-lg ring-offset-4 ring-offset-slate-900 transition-all hover:scale-110 hover:ring-1"
width={500}
height={500}
/>
</Link>
</div>
))}
</div>
);
};
export default LevelGrid;

View File

@@ -0,0 +1,67 @@
import { Button } from "@formbricks/ui/Button";
import { ChevronDownIcon } from "@heroicons/react/24/outline";
import Link from "next/link";
import { FaGithub } from "react-icons/fa6";
interface Event {
name: string;
link?: string;
}
interface EventBlock {
id: string;
description: string;
period: string;
events: Event[];
}
interface RoadmapProps {
data: EventBlock[];
}
export const Roadmap: React.FC<RoadmapProps> = ({ data }) => {
return (
<div className="px-6 text-left">
{data?.map((eventblock) => (
<div key={eventblock.id} className="relative mb-6 border-l-2 border-slate-400 pb-2 pl-12">
<h3 className="my-4 hidden pt-2 font-semibold text-slate-800 md:block">
{eventblock.description} <span className="font-normal">{eventblock.period}</span>
</h3>
<h3 className="my-4 block pt-2 font-semibold text-slate-800 md:hidden">
{eventblock.description} <br></br> <span className="font-normal">{eventblock.period}</span>
</h3>
{eventblock?.events?.map((event) => (
<div key={event.name}>
{event.link ? (
<Link
href={event.link}
target="_blank"
className="group mb-2 flex max-w-fit justify-between rounded-xl border border-slate-200 bg-slate-100 px-6 py-3 text-slate-700 transition-all hover:scale-105 hover:border-slate-300 hover:bg-slate-200">
{event.name}
<FaGithub className="ml-0 inline-block h-6 w-0 text-slate-800 opacity-0 transition-all group-hover:ml-6 group-hover:w-6 group-hover:opacity-100" />
</Link>
) : (
<div className="mb-2 block max-w-fit rounded-xl border border-slate-200 bg-slate-100 px-6 py-3 text-slate-700 transition-all">
{event.name}
</div>
)}
</div>
))}
{eventblock.id === "phlaunch" && (
<Button
href="https://formbricks.com/discord"
target="_blank"
variant="darkCTA"
className="rounded-xl px-5 py-2 text-base transition-all hover:scale-105">
Whats next? Request Features
</Button>
)}
<ChevronDownIcon className="absolute -left-[17px] -mt-3 h-8 w-8 text-slate-400" />
</div>
))}
<h3 className="text-xl font-bold">Internet Domination 😇</h3>
</div>
);
};
export default Roadmap;

View File

@@ -0,0 +1,723 @@
import ArrowGift from "@/images/formtribe/arrow-gift.png";
import HoodieSticker from "@/images/formtribe/arrow-hoodie.png";
import ArrowSticker from "@/images/formtribe/arrow-stickers.png";
import DeputyBadge from "@/images/formtribe/deputy-batch.png";
import LegendBadge from "@/images/formtribe/legend-batch.png";
import PrimeBadge from "@/images/formtribe/prime-batch.png";
import RookieBadge from "@/images/formtribe/rookie-batch.png";
import HallOfFame from "@/pages/community/HallOfFame";
import Roadmap from "@/pages/community/Roadmap";
import LoadingSpinner from "@formbricks/ui/LoadingSpinner";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@formbricks/ui/Tooltip";
import Image from "next/image";
import Link from "next/link";
import { useEffect } from "react";
import ContributorGrid from "./ContributorGrid";
import LayoutTribe from "./LayoutTribe";
import LevelCard from "./LevelCard";
import LevelsGrid from "./LevelGrid";
/* const SideQuests = [
{
points: "Spread the Word Tweet (100 Points)",
quest: "Tweet “🧱🚀” on the day of the ProductHunt launch to spread the word.",
proof: "Share the link to the tweet in the “side-quest” channel.",
},
{
points: "Meme Magic (50 Points + up to 100 Points)",
quest:
"Craft a meme where a brick plays a role. For extra points, tweet it, tag us and score +5 for each like.",
proof: "Share meme or link to the tweet in the “side-quest” channel.",
},
{
points: "GIF Magic (100 Points)",
quest:
"Create a branded gif related to Formbricks. Upload it to Giphy. For extra points, tweet it, tag us and score +5 for each like.",
proof: "Share link to Giphy in the “side-quest” channel.",
},
{
points: "Design a background (250 Points)",
quest: "Illustrate a captivating background for survey enthusiasts (more infos on Notion).",
proof: "Share the design in the “side-quest” channel.",
},
{
points: "Starry-eyed Supporter (250 Points)",
quest: "Get five friends to star our repository.",
proof: "Share 5 screenshots of the chats where you asked them and they confirmed + their GitHub names",
},
{
points: "Bug Hunter (100 Points)",
quest:
"Find and report any bugs in our core product. We will close all bugs on the landing page bc we don't have time for that before the launch :)",
proof: "Open a bug issue in our repository.",
},
{
points: "Brickify someone famous with AI (200 Points + up to 100 Points)",
quest:
"Find someone whose name would be funny as a play on words with “brick”. Then, with the help of AI, create a brick version of this person like Brick Astley, Brickj Minaj, etc. For extra points, tweet it, tag us and score +5 for each like.",
proof: "Share your art or link to the tweet in the “side-quest” channel.",
},
{
points: "Community Connector (50 points each, up to 250 points)",
quest:
"Introduce and onboard new members to the community. Have them join Discord and reply to their automated welcome message with your discord handle (in “say-hi” channel).",
proof: "New member joined and commented with your Discord handle",
},
{
points: "Feedback Fanatic (50 Points)",
quest: "Fill out our feedback survey after the hackathon with suggestions for improvement.",
proof: "Submit the survey.",
},
{
points: "Side Quest Babo (500 Points)",
quest: "Complete all side quests.",
proof: "All quests marked as completed.",
},
]; */
const LevelsData = [
{
badgeSrc: RookieBadge,
badgeAlt: "Rookie Badge",
title: "Repository Rookie",
points: "Level 1",
tasks: [
{ title: "Easy issues", description: "Warm up with the repo, get your first PR merged." },
{ title: "DevRel tasks", description: "Write docs and manuals for better understanding." },
],
},
{
badgeSrc: DeputyBadge,
badgeAlt: "Deputy Badge",
title: "Deploy Deputy",
points: "Level 2",
tasks: [
{ title: "Core Contributions", description: "Work on more complex issues. Get guidance." },
{ title: "Work with core team", description: "Work closely with the core team, learn faster." },
],
},
{
badgeSrc: PrimeBadge,
badgeAlt: "Prime Badge",
title: "Pushmaster Prime",
points: "Level 3",
tasks: [
{ title: "Cash Bounties", description: "Get access to issues with $$$ bounties." },
{ title: "Job Listings", description: "We hire top contributors. Hear about new jobs first!" },
],
},
{
badgeSrc: LegendBadge,
badgeAlt: "Legend Badge",
title: "Formbricks Legend",
points: "Special Honor",
tasks: [{ title: "Unconditional Love", description: "Finally. From the community and core team 🤍" }],
},
];
const TheDeal = [
{
os: "100% free",
free: "Unlimited Surveys",
pro: "Custom URL",
},
{
os: "All community features included",
free: "Unlimited Link Survey Submissions",
pro: "Remove Branding",
},
{
os: "It's your storage, go nuts!",
free: "Upload Limit 10 MB",
pro: "Unlimited Uploads",
},
{
os: "Hook up your own Stripe",
free: "Payments with 2% Mark Up",
pro: "Remove Mark Up from Payments",
},
{
os: "Your server, your rules",
free: "Invite Team Members",
pro: "",
},
{
os: "The 'Do what you want' plan",
free: "Verify Email before Submission",
pro: "",
},
{
os: "at this point I'm just filling rows",
free: "Partial Submissions",
pro: "",
},
{
os: "I should stop",
free: "Custom Thank You Page",
pro: "",
},
{
os: "ok one more",
free: "Close Survey after Submission Limit",
pro: "",
},
{
os: "no flavor like free flavor",
free: "Custom Survey Closed Message",
pro: "",
},
{
os: "...",
free: "Close Survey on Date",
pro: "",
},
{
free: "Redirect on Completion",
pro: "",
},
{
free: "+ all upcoming community-built features",
pro: "",
},
];
const FAQ = [
{
question: "Why do I have to sign a CLA?",
answer:
"To assure this project to be financially viable, we have to be able to relicense the code for enterprise customers and governments. To be able to do so, we are legally obliged to have you sign a CLA.",
},
{
question: "Where will this be hosted?",
answer:
"We offer a Formbricks Cloud hosted in Germany with a generous free plan but you can also easily self-host using Docker.",
},
{
question: "Why is there a Commercial plan?",
answer:
"The commercial plan is for features who break the OSS WIN-WIN Loop or incur additional cost. We charge 29$ if you want a custom domain, remove Formbricks branding, collect large files in surveys or collect payments. We think thats fair :)",
},
{
question: "Are your in app surveys also free forever?",
answer:
"The in app surveys you can run with Formbricks are not part of this Deal. We offer a generous free plan but keep full control over the pricing in the long run. In app surveys are really powerful for products with thousands of users and something has to bring in the dollars.",
},
{
question: "Can anyone join?",
answer:
"Yes! Even when you dont know how to write code you can become part of the community completing side quests. As long as you know how to open a PR you are very welcome to take part irrespective of your age, gender, nationality, food preferences, taste in clothing and favorite Pokemon.",
},
{
question: "How do I level up?",
answer:
"Every PR gives you points - doesnt matter if its for code related tasks or non-code ones. With every point, you move closer to levelling up!",
},
];
const roadmapDates = [
{
id: "earlywork",
description: "Previously at Formbricks",
period: "February until September 2023",
events: [{ name: "Formbricks team building out surveying infrastructure" }],
},
{
id: "hackathon",
description: "Hackathon Kick-Off 🔥",
period: "1st October 2023",
events: [
{ name: "✅ Email Embeds", link: "https://github.com/formbricks/formbricks/pull/873" },
{ name: "✅ Hidden Fields", link: "https://github.com/formbricks/formbricks/pull/1144" },
{
name: "✅ Question Type: Picture Choice",
link: "https://github.com/formbricks/formbricks/pull/1388",
},
{ name: "✅ Question Type: Welcome Card", link: "https://github.com/formbricks/formbricks/pull/1073" },
{ name: "✅ Add Image to Question", link: "https://github.com/formbricks/formbricks/pull/1305" },
{ name: "✅ Dynamic Link Previews", link: "https://github.com/formbricks/formbricks/pull/1093" },
{ name: "✅ Fullscreen Previews", link: "https://github.com/formbricks/formbricks/pull/898" },
{ name: "✅ PIN protected surveys", link: "https://github.com/formbricks/formbricks/pull/1142" },
{ name: "✅ Source Tracking", link: "https://github.com/formbricks/formbricks/pull/1486" },
{ name: "✅ Time To Complete Indicator", link: "https://github.com/formbricks/formbricks/pull/1461" },
],
},
{
id: "phlaunch",
description: "Product Hunt Launch 🚀",
period: "31st October 2023",
events: [
{ name: "✅ Question Type: File Upload", link: "https://github.com/formbricks/formbricks/pull/1277" },
{ name: "✅ Notion Integration", link: "https://github.com/formbricks/formbricks/pull/1197" },
{ name: "✅ Media Backgrounds", link: "https://github.com/formbricks/formbricks/pull/1515" },
{ name: "🚧 Custom Styling", link: "https://github.com/formbricks/formbricks/pull/916" },
{ name: "🚧 Recall Information", link: "https://github.com/formbricks/formbricks/issues/884" },
{ name: "⏳ Unsplash Backgrounds" },
{ name: "⏳ Question Type: Matrix" },
{ name: "⏳ Question Type: Collect payment" },
{ name: "⏳Question Type: Schedule a call (Powered by Cal.com)" },
{ name: "⏳ Question Type: Signature (Powered by Documenso)" },
],
},
];
const members = [
{
name: "Shubham Palriwala",
githubId: "ShubhamPalriwala",
points: "100",
level: "prime",
imgUrl: "https://avatars.githubusercontent.com/u/55556994?v=4",
},
{
name: "Rotimi Best",
githubId: "rotimi-best",
points: "100",
level: "prime",
imgUrl: "https://avatars.githubusercontent.com/u/31730715?v=4",
},
{
name: "Dhruwang Jariwala",
githubId: "Dhruwang",
points: "100",
level: "prime",
imgUrl: "https://avatars.githubusercontent.com/u/67850763?v=4",
},
{
name: "Piyush Gupta",
githubId: "gupta-piyush19",
points: "100",
level: "prime",
imgUrl: "https://avatars.githubusercontent.com/u/56182734?v=4",
},
{
name: "Naitik Kapadia",
githubId: "KapadiaNaitik",
points: "100",
level: "deputy",
imgUrl: "https://avatars.githubusercontent.com/u/88614335?v=4",
},
{
name: "Anshuman Pandey",
githubId: "pandeymangg",
points: "100",
level: "prime",
imgUrl: "https://avatars.githubusercontent.com/u/54475686?v=4",
},
{
name: "Midka",
githubId: "kymppi",
points: "100",
level: "deputy",
imgUrl: "https://avatars.githubusercontent.com/u/48528700?v=4",
},
{
name: "Meet Patel",
githubId: "Meetcpatel",
points: "100",
level: "rookie",
imgUrl: "https://avatars.githubusercontent.com/u/26919832?v=4",
},
{
name: "Ankur Datta",
githubId: "Ankur-Datta-4",
points: "100",
level: "rookie",
imgUrl: "https://avatars.githubusercontent.com/u/75306530?v=4",
},
{
name: "Abhinav Arya",
githubId: "itzabhinavarya",
points: "100",
level: "rookie",
imgUrl: "https://avatars.githubusercontent.com/u/95561280?v=4",
},
{
name: "Anjy Gupta",
githubId: "anjy7",
points: "100",
level: "deputy",
imgUrl: "https://avatars.githubusercontent.com/u/92802904?v=4",
},
{
name: "Aditya Deshlahre",
githubId: "adityadeshlahre",
points: "100",
level: "rookie",
imgUrl: "https://avatars.githubusercontent.com/u/132184385?v=4",
},
{
name: "Ashutosh Bhadauriya",
githubId: "Ashutosh-Bhadauriya",
points: "100",
level: "rookie",
imgUrl: "https://avatars.githubusercontent.com/u/62984427?v=4",
},
{
name: "Bilal Mirza",
githubId: "bilalmirza74",
points: "100",
level: "rookie",
imgUrl: "https://avatars.githubusercontent.com/u/84387676?v=4",
},
{
name: "Timothy",
githubId: "timothyde",
points: "100",
level: "rookie",
imgUrl: "https://avatars.githubusercontent.com/u/13225886?v=4",
},
{
name: "Jonas Höbenreich",
githubId: "jonas-hoebenreich",
points: "100",
level: "rookie",
imgUrl: "https://avatars.githubusercontent.com/u/64426524?v=4",
},
{
name: "Pratik Awaik",
githubId: "PratikAwaik",
points: "100",
level: "deputy",
imgUrl: "https://avatars.githubusercontent.com/u/54103265?v=4",
},
{
name: "Rohan Gupta",
githubId: "rohan9896",
points: "100",
level: "rookie",
imgUrl: "https://avatars.githubusercontent.com/u/56235204?v=4",
},
{
name: "Shubham Khunt",
githubId: "shubhamkhunt04",
points: "100",
level: "rookie",
imgUrl: "https://avatars.githubusercontent.com/u/55044317?v=4",
},
{
name: "Joe",
githubId: "joe-shajan",
points: "100",
level: "rookie",
imgUrl: "https://avatars.githubusercontent.com/u/69904519?v=4",
},
{
name: "Ty Kerr",
githubId: "ty-kerr",
points: "100",
level: "deputy",
imgUrl: "https://avatars.githubusercontent.com/u/17407010?v=4",
},
{
name: "Olasunkanmi Balogun",
githubId: "SiR-PENt",
points: "100",
level: "rookie",
imgUrl: "https://avatars.githubusercontent.com/u/80556643?v=4",
},
{
name: "Ronit Panda",
githubId: "rtpa25",
points: "100",
level: "deputy",
imgUrl: "https://avatars.githubusercontent.com/u/72537293?v=4",
},
{
name: "Nafees Nazik",
githubId: "G3root",
points: "100",
level: "deputy",
imgUrl: "https://avatars.githubusercontent.com/u/84864519?v=4",
},
];
export default function FormTribeHackathon() {
// dark mode fix
useEffect(() => {
document.documentElement.classList.remove("dark");
}, []);
return (
<LayoutTribe
title="Join the FormTribe"
description="We build an Open Source Typeform alternative together and give it to the world. Join us!">
{/* Header */}
<div className="flex h-full w-full flex-col items-center justify-center overflow-clip text-center">
<div className="py-16 md:py-24">
<h1 className="mt-10 px-6 text-3xl font-bold text-slate-100 sm:text-4xl md:text-5xl">
<span className="xl:inline">
Beautiful Open Source Surveys. <br className="hidden md:block"></br>Built as a community, free
forever.
</span>
</h1>
<p className="xs:max-w-none mx-auto mt-3 max-w-xs text-base text-slate-300 sm:text-lg md:mt-6 md:text-xl">
The time is ripe, this is needed. So we ship it as a community - and give it back to the world!
<br></br>Join us and build surveying infrastructure for millions - free and open source.
</p>
</div>
<ContributorGrid contributors={members} />
</div>
{/* Roadmap */}
<div
className="flex flex-col items-center justify-center bg-gradient-to-br from-white to-slate-100 pb-12 text-center md:pb-24"
id="roadmap">
<div className="py-16 md:py-24">
<h2 className="mt-10 text-2xl font-bold text-slate-800 sm:text-3xl md:text-4xl">
<span className="xl:inline">
First Things First: <br></br>An Open Source Typeform Alternative
</span>
</h2>
<p className="xs:max-w-none mx-auto mt-3 max-w-xs text-base text-slate-600 sm:text-lg md:mt-6 md:text-xl">
It&apos;s been requested many times over, so Typeform-like surveys is where we start.
<br></br>In October, we kicked it off in style with a 30-day hackathon.
</p>
</div>
<Roadmap data={roadmapDates} />
</div>
{/* Levels */}
<div
className="mb-12 flex flex-col items-center justify-center overflow-clip text-center lg:mb-40"
id="levels">
<LevelsGrid contributors={members} />
<div className="py-16 md:py-24">
<h2 className="mt-10 px-8 text-2xl font-bold text-slate-100 sm:text-3xl md:text-4xl">
<span className="xl:inline">Write Code, Level Up and Unlock Benefits</span>
</h2>
<p className="xs:max-w-none mx-auto mt-3 max-w-xs text-base text-slate-300 sm:text-lg md:mt-6 md:text-xl">
The more you contribute, the more points you collect.
<br className="hidden md:block"></br> Unlock benefits like cash bounties, limited merch and more!
</p>
</div>
<div className="max-w-8xl grid gap-6 px-8 md:grid-cols-4 lg:px-24">
{LevelsData.map((badge, index) => (
<LevelCard key={index} {...badge} />
))}
</div>
<div className="max-w-8xl mt-8 grid grid-cols-3 gap-4 px-56">
<div className="px-8">
<p className="h-0 text-lg font-bold text-slate-300">+ Sticker Set</p>
<Image src={ArrowSticker} alt="rookie batch" className="" />
</div>
<div className="px-8">
<p className="h-0 text-lg font-bold text-slate-300">+ Hoodie</p>
<Image src={HoodieSticker} alt="rookie batch" className="" />
</div>
<div className="px-8">
<p className="h-0 text-lg font-bold text-slate-300">+ Handmade Gift</p>
<Image src={ArrowGift} alt="rookie batch" className="" />
</div>
</div>
</div>
{/* Become a Legend */}
<div
className="flex flex-col items-center justify-center bg-gradient-to-br from-white to-slate-100 pb-24 text-center"
id="hof">
<div className="py-16 md:py-24">
<h2 className="mt-10 text-2xl font-bold text-slate-800 sm:text-3xl md:text-4xl">
<span className="xl:inline">
Become a<br className="md:hidden"></br> Formbricks Legend
</span>
</h2>
<p className="xs:max-w-none mx-auto mt-3 max-w-xs text-base text-slate-600 sm:text-lg md:mt-6 md:text-xl">
This is your wall of fame. Were honoured to be in this together!
</p>
</div>
<HallOfFame members={members} />
</div>
{/* Our values */}
<div className="mb-24 flex flex-col items-center justify-center text-center md:mb-40">
<div className="py-16 md:py-24">
<h2 className="mt-10 text-2xl font-bold text-slate-100 sm:text-3xl md:text-4xl">
<span className="xl:inline">Our values</span>
</h2>
<p className="xs:max-w-none mx-auto mt-3 max-w-xs text-base text-slate-300 sm:text-lg md:mt-6 md:text-xl">
Apart from being decent human beings, this is what we value:
</p>
</div>
<div className="max-w-8xl grid gap-x-6 gap-y-6 px-8 md:grid-cols-3 md:px-16">
<ValueCard
emoji="🧘‍♂️"
title="Less is more."
description="Like with friends, were about forming deep and meaningful relationships within our community. If you want to merge a PR with improved punctuation to catch a green square, this is likely not the right place for you :)"
/>
<ValueCard
emoji="🤝"
title="Show up & Pull through."
description="When you pick a task up, please make sure to complete it in timely manner. The longer it floats around, the more merge conflicts arise."
/>
<ValueCard
emoji="🍔"
title="Only bite off what you can chew."
description="Open source is all about learning and so is our community. We love help you learn but have to manage our resources well. Please dont take up tasks far outside your area of competence."
/>
</div>
</div>
{/* Side Quests
<div className="mt-16" id="side-quests">
<h3 className="font-kablammo my-4 text-4xl text-slate-800">🏰 Side Quests: Increase your chances</h3>
<p className="w-3/4 text-slate-600">
While code contributions are what gives the most points, everyone gets to bump up their chance of
winning. Here is a list of side quests you can complete:
</p>
<div className="mt-8">
<TooltipProvider delayDuration={50}>
{SideQuests.map((quest) => (
<div key={quest.points}>
<Tooltip>
<TooltipTrigger>
<div className="mb-2 flex items-center gap-x-6">
<div className="text-2xl">✅</div>
<p className="text-left font-bold text-slate-700">
{quest.points}: <span className="font-normal">{quest.quest}</span>
</p>
</div>
</TooltipTrigger>
<TooltipContent side={"top"}>
<p className="py-2 text-center text-slate-500 dark:text-slate-400">
<p className="mt-1 text-sm text-slate-600">Proof: {quest.proof}</p>
</p>
</TooltipContent>
</Tooltip>
</div>
))}
</TooltipProvider>
</div>
<Button
variant="darkCTA"
href="https://formbricks.notion.site/FormTribe-Side-Quests-4ab3b294cfa04e94b77dfddd66378ea2?pvs=4"
target="_blank"
className="mt-6 bg-gradient-to-br from-[#032E1E] via-[#032E1E] to-[#013C27] text-white ">
Keep track with Notion Template
</Button>
</div> */}
{/* The Promise */}
<div className="flex flex-col items-center justify-center bg-gradient-to-br from-white to-slate-100 pb-24 text-center">
<div className="py-16 md:py-24">
<h2 className="mt-10 text-2xl font-bold text-slate-800 sm:text-3xl md:text-4xl">
<span className="xl:inline">The Deal</span>
</h2>
<p className="xs:max-w-none mx-auto mt-3 max-w-xs text-base text-slate-600 sm:text-lg md:mt-6 md:text-xl">
We&apos;re kinda making a handshake agreement here. This is it:
</p>
</div>
<div className="mx-auto max-w-4xl px-4">
<div>
<div className="grid grid-cols-2 items-end rounded-t-lg border border-slate-200 bg-slate-100 px-6 py-3 text-sm font-bold text-slate-800 sm:text-base md:grid-cols-3">
<div>Self-hosted</div>
<div>Formbricks Cloud</div>
<TooltipProvider delayDuration={50}>
<Tooltip>
<TooltipTrigger asChild>
<div className="hidden md:block">
Formbricks Cloud Pro{" "}
<span className="ml-1 hidden rounded-full bg-slate-700 px-2 text-xs font-normal text-white sm:inline">
Why tho?
</span>
</div>
</TooltipTrigger>
<TooltipContent sideOffset={5} className="max-w-lg font-normal">
You can always self-host to get all features free.
</TooltipContent>
</Tooltip>
</TooltipProvider>
</div>
{TheDeal.map((feature) => (
<div
key={feature.free}
className="grid grid-cols-2 gap-x-2 border-x border-b border-slate-200 px-6 py-3 text-sm text-slate-900 last:rounded-b-lg md:grid-cols-3">
<div>{feature.os}</div>
<div>{feature.free}</div>
<div className="hidden md:block">{feature.pro}</div>
</div>
))}
</div>
<div className="rounded-lg-12 mt-6 grid-cols-6 rounded-lg bg-slate-100 py-12 sm:grid">
<div className="col-span-1 mr-8 flex items-center justify-center sm:justify-end">
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-white text-3xl">
🤓
</div>
</div>
<div className="col-span-5 px-8 text-left sm:px-0">
<h3 className="mt-4 text-lg font-semibold text-slate-700 sm:mt-0">
Are Formbricks in-app surveys also free?
</h3>
<p className="text-slate-500 sm:pr-16">
Just a heads-up: this deal doesn&apos;t cover Formbricks&apos; in-app surveys. We&apos;ve got
a solid free plan, but we&apos;ve gotta keep some control over pricing to keep things running
long-term.
</p>
</div>
</div>
</div>
</div>
{/* Get started */}
<div className=" mb-40 flex flex-col items-center justify-center text-center">
<div className="py-16 md:py-24">
<h2 className="mt-10 text-2xl font-bold text-slate-100 sm:text-3xl md:text-4xl">
<span className="xl:inline">Get started</span>
</h2>
<p className="xs:max-w-none mx-auto mt-3 max-w-xs text-base italic text-slate-300 sm:text-lg md:mt-6 md:text-xl">
We&apos;re still setting things up,{" "}
<Link
href="https://formbricks.com/discord"
className="decoration-brand-dark underline underline-offset-2">
join our Discord
</Link>{" "}
to stay in the loop :)
</p>
</div>
<LoadingSpinner />
</div>
{/* FAQ */}
<div id="faq" className="bg-gradient-to-br from-white to-slate-100 px-8 pb-24 lg:px-32 ">
<div className="max-w-6xl">
<div className="py-16 md:py-24 ">
<h2 className="mt-10 text-2xl font-bold text-slate-800 sm:text-3xl md:text-4xl">
<span className="xl:inline">FAQ</span>
</h2>
<p className="xs:max-w-none mx-auto mt-3 max-w-xs text-base text-slate-600 sm:text-lg md:mt-6 md:text-xl">
Anything unclear?
</p>
</div>
{FAQ.map((question) => (
<div key={question.question} className="">
<div>
<h3 className="mt-6 text-lg font-bold text-slate-700">{question.question} </h3>
<p className="text-slate-600">{question.answer}</p>
</div>
</div>
))}
</div>
</div>
</LayoutTribe>
);
}
const ValueCard = ({ title, description, emoji }) => {
return (
<div className="rounded-xl bg-slate-800 p-3 text-left">
<div className="mb-4 flex h-24 items-center justify-center rounded-xl border border-slate-600 bg-slate-700 text-6xl">
{emoji}
</div>
<div className="px-2">
<h2 className="text-xl font-bold text-slate-300">
<span className="xl:inline">{title}</span>
</h2>
<p className=" leading-6 text-slate-400">{description}</p>
</div>
</div>
);
};

File diff suppressed because it is too large Load Diff

View File

@@ -97,7 +97,7 @@ const linkSurveys = {
{ name: "Custom Styling", free: true, paid: true, comingSoon: true },
{ name: "Recall Information", free: true, paid: true, comingSoon: true },
{ name: "Collect Payments, Signatures and Appointments", free: true, paid: true, comingSoon: true },
{ name: "Custom URL", free: false, paid: true },
{ name: "Custom URL", free: false, paid: true, comingSoon: true },
{ name: "Remove Formbricks Branding", free: false, paid: true },
],