Skip to content

Commit

Permalink
Ed's feedback homepage: button size + add new signup button on top of…
Browse files Browse the repository at this point in the history
… price table (#2391)
  • Loading branch information
PopDaph authored Nov 6, 2023
1 parent 374e5ba commit 0d24530
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 3 additions & 1 deletion front/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,14 @@ export function SignInDropDownButton({
export function SignUpDropDownButton({
buttonVariant = "primary",
buttonLabel = "Start with Dust",
buttonSize = "sm",
buttonIcon = RocketIcon,
buttonClassname = "",
onClickGoogle,
}: {
buttonVariant?: "primary" | "secondary" | "tertiary";
buttonLabel?: string;
buttonSize?: "sm" | "md" | "lg";
buttonIcon?: typeof Icon;
buttonClassname?: string;
onClickGoogle: () => void;
Expand All @@ -121,7 +123,7 @@ export function SignUpDropDownButton({
<Button
variant={buttonVariant}
className={buttonClassname}
size="sm"
size={buttonSize}
label={buttonLabel}
icon={buttonIcon}
/>
Expand Down
14 changes: 13 additions & 1 deletion front/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export default function Home({
<div className="sm: flex w-full flex-wrap gap-4 sm:justify-start sm:gap-4 md:gap-6">
<SignUpDropDownButton
buttonLabel="Start with Dust Now"
buttonSize="md"
onClickGoogle={() =>
signIn("google", {
callbackUrl: getCallbackUrl(router.query),
Expand Down Expand Up @@ -656,13 +657,24 @@ export default function Home({
id="sectionPricing"
className="col-span-12 text-center md:pb-6 xl:pb-10"
>
<H2 className="text-slate-50">
<H2 className="text-slate-50 md:pb-6 xl:pb-10">
Start with Dust!
<br />
<span className="text-slate-200/50">
Meet our pricing plans.
</span>
</H2>
<div className="lg:px-2 2xl:px-24">
<SignUpDropDownButton
buttonLabel="Start with Dust Now"
buttonSize="md"
onClickGoogle={() =>
signIn("google", {
callbackUrl: getCallbackUrl(router.query),
})
}
/>
</div>
</div>
<div className="s-dark col-span-12 flex flex-row justify-center lg:px-2 2xl:px-24">
<PricePlans size="xs" className="lg:hidden" isTabs />
Expand Down

0 comments on commit 0d24530

Please sign in to comment.