add list of logos

This commit is contained in:
Abi Raja 2023-12-05 11:36:17 -05:00
parent 70094ea765
commit 30e6b07bb1
2 changed files with 38 additions and 7 deletions

3
.gitignore vendored
View File

@ -11,3 +11,6 @@ backend/backend/*
# Env vars # Env vars
frontend/.env.local frontend/.env.local
.env .env
# Mac files
.DS_Store

View File

@ -11,6 +11,8 @@ import { Input } from "./ui/input";
import toast from "react-hot-toast"; import toast from "react-hot-toast";
import { PICO_BACKEND_FORM_SECRET } from "../config"; import { PICO_BACKEND_FORM_SECRET } from "../config";
const LOGOS = ["microsoft", "amazon", "mit", "stanford", "bytedance", "baidu"];
const TermsOfServiceDialog: React.FC<{ const TermsOfServiceDialog: React.FC<{
open: boolean; open: boolean;
onOpenChange: (open: boolean) => void; onOpenChange: (open: boolean) => void;
@ -31,7 +33,7 @@ const TermsOfServiceDialog: React.FC<{
<AlertDialog open={open} onOpenChange={onOpenChange}> <AlertDialog open={open} onOpenChange={onOpenChange}>
<AlertDialogContent> <AlertDialogContent>
<AlertDialogHeader> <AlertDialogHeader>
<AlertDialogTitle className="mb-2"> <AlertDialogTitle className="mb-2 text-xl">
Enter your email to get started Enter your email to get started
</AlertDialogTitle> </AlertDialogTitle>
</AlertDialogHeader> </AlertDialogHeader>
@ -45,8 +47,8 @@ const TermsOfServiceDialog: React.FC<{
}} }}
/> />
</div> </div>
<div className="flex items-center space-x-2"> <div className="flex flex-col space-y-3 text-sm">
<span> <p>
By providing your email, you consent to receiving occasional product By providing your email, you consent to receiving occasional product
updates, and you accept the{" "} updates, and you accept the{" "}
<a <a
@ -56,8 +58,11 @@ const TermsOfServiceDialog: React.FC<{
> >
terms of service terms of service
</a> </a>
. <br /> .{" "}
<br /> </p>
<p>
{" "}
Prefer to run it yourself locally? This project is open source.{" "} Prefer to run it yourself locally? This project is open source.{" "}
<a <a
href="https://github.com/abi/screenshot-to-code" href="https://github.com/abi/screenshot-to-code"
@ -66,7 +71,7 @@ const TermsOfServiceDialog: React.FC<{
> >
Download the code and get started on Github. Download the code and get started on Github.
</a> </a>
</span> </p>
</div> </div>
<AlertDialogFooter> <AlertDialogFooter>
@ -80,9 +85,32 @@ const TermsOfServiceDialog: React.FC<{
} }
}} }}
> >
Agree Agree & Continue
</AlertDialogAction> </AlertDialogAction>
</AlertDialogFooter> </AlertDialogFooter>
{/* Logos */}
<div>
<div
className="mx-auto grid max-w-lg items-center gap-x-2
gap-y-10 sm:max-w-xl grid-cols-6 lg:mx-0 lg:max-w-none mt-10"
>
{LOGOS.map((companyName) => (
<img
key={companyName}
className="col-span-1 max-h-12 w-full object-contain grayscale opacity-50 hover:opacity-100"
src={`https://picoapps.xyz/logos/${companyName}.png`}
alt={companyName}
width={120}
height={48}
/>
))}
</div>
<div className="text-gray-500 text-xs mt-4 text-center">
Designers and engineers from these organizations use Screenshot to
Code to build interfaces faster.
</div>
</div>
</AlertDialogContent> </AlertDialogContent>
</AlertDialog> </AlertDialog>
); );