Skip to content

Commit

Permalink
chore: add figma landing
Browse files Browse the repository at this point in the history
  • Loading branch information
Pagebakers committed Nov 17, 2023
1 parent fe6d770 commit 3ddf877
Show file tree
Hide file tree
Showing 3 changed files with 143 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/website/src/components/layout/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const Header = () => {

return (
<HStack flex="1" ps="4">
<HStack spacing="2" flexShrink={0} flex="1" justifyContent="flex-start">
<HStack spacing="1" flexShrink={0} flex="1" justifyContent="flex-start">
{headerNav.map(({ href, id, ...props }, i) => {
return (
<NavLink
Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/components/signup-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function SignupForm({ isOpen, onClose }: any) {
<ModalOverlay />
<ModalContent>
<ModalHeader>
Figma early access <ModalCloseButton />
Figma Pro early access <ModalCloseButton />
</ModalHeader>
<ModalBody pb="6">
<Box
Expand Down
141 changes: 141 additions & 0 deletions apps/website/src/pages/figma.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
import * as React from 'react'

import Script from 'next/script'

import {
AspectRatio,
Box,
Button,
CardHeader,
Center,
IconButton,
SimpleGrid,
Tag,
useClipboard,
useDisclosure,
} from '@chakra-ui/react'
import {
Heading,
Text,
HStack,
VStack,
Stack,
useColorModeValue,
Avatar,
Tooltip,
Card,
CardBody,
} from '@chakra-ui/react'

import Section from '@/components/marketing/section-wrapper'
import SectionTitle from '@/components/marketing/section-title'

import SEO from '@/components/seo'
import { CheckIcon } from '@chakra-ui/icons'
import { ButtonLink } from '@/components/link'

import { Faq } from '@/components/faq'

import { Testimonials } from '@/components/testimonials'

import { BackgroundGradientRadial } from '@/components/background-gradient-radial'
import { Br } from '@saas-ui/react'
import { useRouter } from 'next/router'
import CodePanel from '@/components/code-panel/code-panel'
import { FiCheck, FiCopy } from 'react-icons/fi'
import { SignupForm } from '@/components/signup-form'
import { FaFigma } from 'react-icons/fa6'

const FigmaPage = () => {
return (
<Box>
<SEO
title="Saas UI"
description="The React component library for Startups"
titleTemplate="%s - Pricing"
/>
<BackgroundGradientRadial
top="-30%"
bottom="auto"
opacity="0.3"
_dark={{ opacity: 0.5 }}
pointerEvents="none"
/>
<Box mb={8} w="full" position="relative" overflow="hidden">
<Figma />

<FigmaEmbed />

<Testimonials />
</Box>
</Box>
)
}

const Figma = () => {
const figma = useDisclosure()

return (
<Section id="pricing" pos="relative" innerWidth="container.xl" py="20">
<Box zIndex="2" pos="relative">
<SectionTitle
title="Saas UI Figma Kit"
description={
<>
<Text fontSize="xl" mb="12">
Professionally crafted Figma design system for <br /> designing
beautiful products at any scale.
</Text>
</>
}
pt={{ base: '8', lg: '20' }}
sx={{ mb: 0, textAlign: 'center' }}
/>

<HStack justifyContent="center">
<Button
onClick={figma.onOpen}
variant="primary"
size="lg"
leftIcon={<FaFigma />}
>
Figma Pro early access
</Button>
</HStack>

<SignupForm isOpen={figma.isOpen} onClose={figma.onClose} />
</Box>
</Section>
)
}

const FigmaEmbed = () => {
return (
<Box>
<Heading textAlign="center" size="md" fontWeight="medium" mb="8">
Free community library
</Heading>
<AspectRatio ratio={16 / 9} w="full" maxW="container.xl" mx="auto">
<Box
as="iframe"
objectFit={'cover'}
rounded="xl"
src="https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Ffile%2FPxBbup77UKMM8ApWacxlCb%2FSaas-UI-Theme-1.1-(Community)%3Ftype%3Ddesign%26node-id%3D0%253A1%26mode%3Ddesign%26t%3DD2h54RiMJdxlk72N-1"
></Box>
</AspectRatio>
</Box>
)
}

export default FigmaPage

export async function getStaticProps() {
return {
props: {
header: {
position: 'fixed',
variant: 'dark',
},
},
}
}

1 comment on commit 3ddf877

@vercel
Copy link

@vercel vercel bot commented on 3ddf877 Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.