Skip to content

Commit

Permalink
docs(lp): 💄 Small visual fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 17, 2022
1 parent 8ba231f commit 52b7733
Show file tree
Hide file tree
Showing 12 changed files with 159 additions and 83 deletions.
10 changes: 10 additions & 0 deletions apps/landing-page/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,19 @@
.animation-delay-2000 {
animation-delay: 2s;
}

.animation-delay-2000 {
animation-delay: 2s;
}
.animation-delay-3000 {
animation-delay: 3s;
}
.animation-delay-4000 {
animation-delay: 4s;
}
.animation-delay-5000 {
animation-delay: 5s;
}

@keyframes blob {
0% {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const EasyBuildingExperience = () => {
justifyContent="space-between"
alignItems="center"
>
<Stack spacing="6" maxW="300px">
<Stack spacing="6" maxW="300px" minW={[0, '300px']}>
<Heading as="h1" data-aos="fade">
Easy building experience
</Heading>
Expand Down
2 changes: 1 addition & 1 deletion apps/landing-page/components/Homepage/EasyEmbed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const EasyEmbed = () => {
justifyContent="space-between"
alignItems="center"
>
<Stack spacing="6" maxW="300px">
<Stack spacing="6" maxW="300px" minW={[0, '300px']}>
<Heading as="h1" data-aos="fade">
Embed it in a click
</Heading>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const BackgroundPolygons = () => {
<>
<chakra.div
display={{ base: 'none', xl: 'block' }}
animation="float 6s ease-in-out infinite;"
className="floating animation-delay-3000"
pos="absolute"
left="0px"
top="100px"
Expand All @@ -17,7 +17,7 @@ export const BackgroundPolygons = () => {
</chakra.div>
<chakra.div
display={{ base: 'none', xl: 'block' }}
animation="float 6s ease-in-out 700ms infinite;"
className="floating animation-delay-4000"
pos="absolute"
right="-10px"
top="30px"
Expand Down
20 changes: 3 additions & 17 deletions apps/landing-page/components/Homepage/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { BackgroundPolygons } from './BackgroundPolygons'
import * as Logos from './Brands'
import Image from 'next/image'
import builderScreenshotSrc from 'public/images/homepage/builder.png'
import { GitHubIcon } from 'assets/icons'

export const Hero = () => {
return (
Expand Down Expand Up @@ -62,23 +61,10 @@ export const Hero = () => {
>
Create a typebot
</Button>
<Button
as={NextChakraLink}
href="https://github.com/baptisteArno/typebot.io"
isExternal={true}
colorScheme="gray"
size="lg"
height="4rem"
px="2rem"
variant="outline"
leftIcon={<GitHubIcon />}
>
Star us on GitHub
</Button>
</Stack>

<Text color="gray.400" data-aos="fade-up" data-aos-delay="300">
No trial. Generous, unlimited <strong>free</strong> plan.
Generous, unlimited <strong>free</strong> plan.
</Text>
</VStack>
<Box maxW="1200px" pos="relative">
Expand All @@ -90,7 +76,7 @@ export const Hero = () => {
rounded="full"
filter="blur(40px)"
opacity="0.7"
className="animated-blob animation-delay-2000"
className="animated-blob"
data-aos="fade"
data-aos-delay="1200"
/>
Expand All @@ -102,7 +88,7 @@ export const Hero = () => {
rounded="full"
filter="blur(40px)"
opacity="0.7"
className="animated-blob animation-delay-4000"
className="animated-blob animation-delay-5000"
data-aos="fade"
data-aos-delay="1200"
/>
Expand Down
4 changes: 2 additions & 2 deletions apps/landing-page/components/Homepage/Integrations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const Integrations = () => (
align="center"
borderWidth="1px"
data-aos="fade"
data-aos-delay={idx * 100}
data-aos-delay={idx * 200}
>
<Icon w="full" h="full" />
</Flex>
Expand All @@ -94,7 +94,7 @@ export const Integrations = () => (
align="center"
borderWidth="1px"
data-aos="fade"
data-aos-delay={(secondRowIcons.length - idx) * 100}
data-aos-delay={(secondRowIcons.length - idx) * 200}
>
<Icon w="full" h="full" />
</Flex>
Expand Down
1 change: 1 addition & 0 deletions apps/landing-page/components/Homepage/RealTimeResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export const RealTimeResults = () => {
borderRadius: '0.5rem',
border: 'none',
backgroundColor: 'white',
pointerEvents: 'none',
}}
/>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const Testimonials = () => {
on my marketing campaigns. I noticed the improvement on day one.
That was a game-changer.
</Testimonial>
<Testimonial
{/* <Testimonial
name="Nicolai Grut"
role="Growth Strategist @ X"
image={joshuaPictureSrc}
Expand All @@ -39,7 +39,7 @@ export const Testimonials = () => {
I am really loving using Typebot! I have used so many bot builders
(ActiveChat, Botstar, Uchat, Monkeybot) and Typebot is definitely
the most user-friendly, and yet still powerful.
</Testimonial>
</Testimonial> */}
<Testimonial
name="Julien Muratot"
role="Growth Manager @ Hornetwork"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export const Card = (props: CardProps) => {
bg={useColorModeValue('white', 'gray.700')}
position="relative"
px="6"
pb="6"
pt="16"
py="6"
overflow="hidden"
shadow="lg"
maxW="md"
Expand Down
77 changes: 41 additions & 36 deletions apps/landing-page/components/PricingPage/PricingCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,43 +31,48 @@ export const PricingCard = (props: PricingCardProps) => {

return (
<Card rounded="xl" bgColor="gray.800" {...rest}>
<VStack spacing={6}>
{icon}
<Heading size="md" fontWeight="extrabold">
{name}
</Heading>
</VStack>
<Flex
align="flex-end"
justify="center"
fontWeight="extrabold"
color={accentColor}
my="8"
>
<Heading size="2xl" fontWeight="inherit" lineHeight="0.9em">
{price}
</Heading>
{(price.includes('$') || price.includes('€')) && (
<Text fontWeight="inherit" fontSize="xl">
/ mo
</Text>
)}
<Flex justifyContent="space-between" flexDir="column" h="full">
<Flex flexDir="column">
<VStack spacing={6}>
{icon}
<Heading size="md" fontWeight="extrabold">
{name}
</Heading>
</VStack>
<Flex
align="flex-end"
justify="center"
fontWeight="extrabold"
color={accentColor}
my="8"
>
<Heading size="2xl" fontWeight="inherit" lineHeight="0.9em">
{price}
</Heading>
{(price.includes('$') || price.includes('€')) && (
<Text fontWeight="inherit" fontSize="xl">
/ month
</Text>
)}
</Flex>
<List spacing="4" mb="8" maxW="30ch" mx="auto">
{features.map((feature, index) => (
<ListItem fontWeight="medium" key={index}>
<ListIcon
fontSize="xl"
as={CheckIcon}
marginEnd={2}
color={accentColor}
fill="blue.200"
/>
{feature}
</ListItem>
))}
</List>
</Flex>

{button}
</Flex>
<List spacing="4" mb="8" maxW="30ch" mx="auto">
{features.map((feature, index) => (
<ListItem fontWeight="medium" key={index}>
<ListIcon
fontSize="xl"
as={CheckIcon}
marginEnd={2}
color={accentColor}
fill="blue.200"
/>
{feature}
</ListItem>
))}
</List>
{button}
</Card>
)
}
2 changes: 1 addition & 1 deletion apps/landing-page/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MyDocument extends Document {
<link href="./styles/aos-noscript.css" rel="stylesheet" />
</noscript>
</Head>
<body>
<body style={{ backgroundColor: '#171923' }}>
<ColorModeScript initialColorMode={theme.config.initialColorMode} />
<Main />
<NextScript />
Expand Down
Loading

0 comments on commit 52b7733

Please sign in to comment.