diff --git a/src/components/organisms/hero/hero.tsx b/src/components/organisms/hero/hero.tsx index 8001dd0..d24785e 100644 --- a/src/components/organisms/hero/hero.tsx +++ b/src/components/organisms/hero/hero.tsx @@ -6,9 +6,8 @@ import { HeroContent } from "./hero-content"; const HeroSection = styled.section` position: relative; - width: 100vw; + width: 100%; min-height: clamp(620px, 82vh, 760px); - margin-left: calc(50% - 50vw); overflow: hidden; background: ${({ theme }) => theme.color.background}; isolation: isolate; diff --git a/src/globalStyles.ts b/src/globalStyles.ts index d87f168..b378475 100644 --- a/src/globalStyles.ts +++ b/src/globalStyles.ts @@ -12,6 +12,7 @@ export const GlobalStyles = createGlobalStyle` } html { + overflow-x: clip; scroll-behavior: smooth; } @@ -24,6 +25,7 @@ export const GlobalStyles = createGlobalStyle` body { margin: 0; min-width: 320px; + overflow-x: clip; background: ${({ theme }) => theme.color.background}; color: ${({ theme }) => theme.color.text}; font-family: ${({ theme }) => theme.typography.mono}; diff --git a/src/pages/home-page.tsx b/src/pages/home-page.tsx index e7f0fd9..f7bacae 100644 --- a/src/pages/home-page.tsx +++ b/src/pages/home-page.tsx @@ -22,9 +22,7 @@ export function HomePage({ content }: HomePageProps): JSX.Element { <>
- - - +