From 1f5e9f3b4dc2ac460fa28280da4429348219c4af Mon Sep 17 00:00:00 2001 From: Emil Widlund Date: Fri, 16 Aug 2024 11:56:58 +0200 Subject: [PATCH] clients/web: improve landing layout --- .../src/components/Auth/GetStartedButton.tsx | 25 ++- .../apps/web/src/components/Landing/API.tsx | 2 +- .../web/src/components/Landing/Community.tsx | 4 +- .../web/src/components/Landing/Hero/Hero.tsx | 10 +- .../src/components/Landing/LandingLayout.tsx | 6 - .../src/components/Landing/LandingPage.tsx | 23 +-- .../web/src/components/Landing/LastPitch.tsx | 5 +- .../apps/web/src/components/Landing/MOR.tsx | 13 +- .../src/components/Landing/Monetization.tsx | 171 ++++++++++-------- .../src/components/Landing/Testamonials.tsx | 4 +- .../Landing/molecules/FeatureItem.tsx | 2 +- .../web/src/components/Layout/PolarMenu.tsx | 2 +- .../components/Layout/Public/TopbarRight.tsx | 2 +- 13 files changed, 140 insertions(+), 129 deletions(-) diff --git a/clients/apps/web/src/components/Auth/GetStartedButton.tsx b/clients/apps/web/src/components/Auth/GetStartedButton.tsx index 773a232c25..beabdc8165 100644 --- a/clients/apps/web/src/components/Auth/GetStartedButton.tsx +++ b/clients/apps/web/src/components/Auth/GetStartedButton.tsx @@ -1,29 +1,38 @@ +import { ArrowForwardOutlined } from '@mui/icons-material' import Link from 'next/link' import Button from 'polarkit/components/ui/atoms/button' +import { ComponentProps } from 'react' import { twMerge } from 'tailwind-merge' -interface GetStartedButtonProps { +interface GetStartedButtonProps extends ComponentProps { text?: string returnTo?: string - wrapperClassNames?: string - className?: string } const GetStartedButton: React.FC = ({ text: _text, returnTo: _returnTo, wrapperClassNames, - className, + size = 'lg', + ...props }) => { - const text = _text || 'Get Started' + const text = _text || 'Start for free' const returnTo = _returnTo ? encodeURIComponent(_returnTo) : '/dashboard' return ( ) diff --git a/clients/apps/web/src/components/Landing/API.tsx b/clients/apps/web/src/components/Landing/API.tsx index b85764b9cd..e3afa5ccdb 100644 --- a/clients/apps/web/src/components/Landing/API.tsx +++ b/clients/apps/web/src/components/Landing/API.tsx @@ -10,7 +10,7 @@ export const API = () => {
diff --git a/clients/apps/web/src/components/Landing/Community.tsx b/clients/apps/web/src/components/Landing/Community.tsx index 4b0495051e..014a24c8fd 100644 --- a/clients/apps/web/src/components/Landing/Community.tsx +++ b/clients/apps/web/src/components/Landing/Community.tsx @@ -13,7 +13,7 @@ export const Community = () => { srcSet={`/assets/landing/post_dark.png`} /> Post in Polar @@ -22,7 +22,7 @@ export const Community = () => {

Grow community alongside transactions

-

+

Crucial for successful developer tools. So it's built-in - for free

diff --git a/clients/apps/web/src/components/Landing/Hero/Hero.tsx b/clients/apps/web/src/components/Landing/Hero/Hero.tsx index aa8dd3b790..ebfb92bf9e 100644 --- a/clients/apps/web/src/components/Landing/Hero/Hero.tsx +++ b/clients/apps/web/src/components/Landing/Hero/Hero.tsx @@ -3,6 +3,7 @@ import GetStartedButton from '@/components/Auth/GetStartedButton' import { Section } from '@/components/Landing/Section' import Link from 'next/link' +import Button from 'polarkit/components/ui/atoms/button' export const Hero = () => { return ( @@ -12,7 +13,7 @@ export const Hero = () => { >
-

+

The best monetization platform for developers

@@ -41,7 +42,7 @@ export const Hero = () => {

-
+
{/*
polar.sh/ @@ -57,6 +58,11 @@ export const Hero = () => { />
*/} + + +