diff --git a/src/layouts/Home/components/Buttons.tsx b/src/layouts/Home/components/Buttons.tsx index 43b775c44..8b9fcd389 100644 --- a/src/layouts/Home/components/Buttons.tsx +++ b/src/layouts/Home/components/Buttons.tsx @@ -11,6 +11,7 @@ import React, { FC } from 'react'; import { css } from 'styled-components'; import ClientSide from 'utils/ClientSide'; import { StyledNavigationLink } from './StyledNavigationLink'; +import { mediaQuery } from '@zendeskgarden/react-theming'; export const TryNowButton = ({ ...rest }) => { return ( @@ -56,6 +57,9 @@ export const PrimaryButton: FC = ({ text, path, fullWidth, iconSrc } color: white; opacity: 0.7; } + ${p => mediaQuery('down', 'sm', p.theme)} { + font-size: 14px; + } `} > {text}{' '} @@ -92,6 +96,9 @@ export const SecondaryButton: FC = ({ text, textColor, path, fullWid font-weight: 400; padding: 18px 24px; width: ${fullWidth ? '100%' : ''}; + ${p => mediaQuery('down', 'sm', p.theme)} { + font-size: 14px; + } `} > {text} @@ -117,6 +124,9 @@ export const TertiaryButton: FC = ({ text, path, fullWidth }) => { font-weight: 400; padding: 18px 24px; width: ${fullWidth ? '100%' : ''}; + ${p => mediaQuery('down', 'sm', p.theme)} { + font-size: 14px; + } `} > {text} diff --git a/src/layouts/Home/components/Hero.tsx b/src/layouts/Home/components/Hero.tsx index fbd17f6c2..a658a518f 100644 --- a/src/layouts/Home/components/Hero.tsx +++ b/src/layouts/Home/components/Hero.tsx @@ -22,12 +22,10 @@ export const Hero = () => { position: relative; background: linear-gradient(207.81deg, #f5faff 54.98%, #fefffe 92.7%); padding: 5rem 10rem; - height: calc(100vh - 77px); ${p => mediaQuery('down', 'md', p.theme)} { padding: 5rem 4rem; } ${p => mediaQuery('down', 'sm', p.theme)} { - height: calc(100vh - 60px); } `} > @@ -63,6 +61,10 @@ export const Hero = () => { font-size: 40px; line-height: 48px; } + ${p => mediaQuery('down', 'xs', p.theme)} { + font-size: 20px; + line-height: 28px; + } display: flex; flex-direction: column; `} @@ -83,16 +85,20 @@ export const Hero = () => {

mediaQuery('down', 'sm', p.theme)} { + font-size: 14px; + } `} > XTTS: local, on-premise, realistic, emotive{' '} - text-to-speech through generative AI. + TTS through generative AI.

mediaQuery('down', 'sm', p.theme)} { + font-size: 14px; + } `} > Interested in a commercial license? @@ -100,9 +106,11 @@ export const Hero = () => {

mediaQuery('down', 'sm', p.theme)} { + font-size: 14px; + } `} > Pricing starts at $1 per day. @@ -110,7 +118,9 @@ export const Hero = () => {

mediaQuery('down', 'sm', p.theme)} { + font-size: 14px; + } `} > Read the FAQ. @@ -119,9 +129,14 @@ export const Hero = () => { css={css` display: flex; flex-direction: row; - gap: 16px; align-items: center; + max-width: 925px; + gap: 20px; padding-top: 20px; + ${p => mediaQuery('down', 'xs', p.theme)} { + flex-wrap: wrap; + justify-content: center; + } `} > @@ -151,13 +166,18 @@ export const Hero = () => { css={css` width: 100%; height: 100%; + ${p => mediaQuery('down', 'md', p.theme)} { + width: 90%; + } + ${p => mediaQuery('down', 'sm', p.theme)} { + width: 80%; + } `} >