diff --git a/packages/ui/src/theme/overwrites/foundations/breakpoints.ts b/packages/ui/src/theme/overwrites/foundations/breakpoints.ts index 0ae61a96..143a3ace 100644 --- a/packages/ui/src/theme/overwrites/foundations/breakpoints.ts +++ b/packages/ui/src/theme/overwrites/foundations/breakpoints.ts @@ -5,5 +5,6 @@ export const breakpoints = createBreakpoints({ md: '768px', lg: '1024px', xl: '1280px', - '2xl': '1536px', + '1xl': '1366px', + '2xl': '1540px', }); diff --git a/packages/website/src/components/Hero.tsx b/packages/website/src/components/Hero.tsx index 650b3fef..ea832aa9 100644 --- a/packages/website/src/components/Hero.tsx +++ b/packages/website/src/components/Hero.tsx @@ -1,5 +1,4 @@ import { Button } from '@coderscamp/ui/components/Button'; -import { Flex } from '@coderscamp/ui/components/Flex'; import { Stack, VStack } from '@coderscamp/ui/components/Stack'; import { Typography } from '@coderscamp/ui/components/Typography'; import { useBreakpointValue } from '@coderscamp/ui/hooks/useBreakpointValue'; @@ -7,19 +6,39 @@ import { useBreakpointValue } from '@coderscamp/ui/hooks/useBreakpointValue'; import { MENTOR_RECRUITMENT_FORM_URL, PARTICIPANT_RECRUITMENT_FORM_URL, PROJECTS_COUNT, TEAM_SIZE } from '@/constants'; import { externalLinkBaseProps } from './ExternalLink'; +import { Section } from './Section'; export const Hero = () => { const buttonSize = useBreakpointValue({ base: 'sm', sm: 'md', md: 'lg' } as const); const buttonsStackDirection = useBreakpointValue({ base: 'column', md: 'row' } as const); - const mainHeaderSize = { base: '4xl', sm: '6xl', md: '7xl', xl: '8xl' } as const; - const subheaderSize = { base: 'md', sm: 'xl', md: '2xl' } as const; + const widthValue = { + base: '100%', + lg: 'min(960px, calc(100%-128px))', + xl: '1080px', + '2xl': '1280px', + } as const; + + const mainHeaderSize = { base: '4xl', md: '6xl', '1xl': '7xl', '2xl': '8xl' } as const; + const subheaderSize = { base: 'md', sm: 'xl', '1xl': '2xl' } as const; const buttonProps = { size: buttonSize, width: 'min(280px, 75vw)' } as const; return ( - - - +
+ + Największy otwarty kurs programowania webowego w Polsce @@ -44,6 +63,6 @@ export const Hero = () => { - +
); };