diff --git a/src/components/Footer/Footer.css b/src/components/Footer/Footer.css index 2eba16f..2482f4b 100644 --- a/src/components/Footer/Footer.css +++ b/src/components/Footer/Footer.css @@ -1,6 +1,6 @@ .footer { height: fit-content; - width: 99vw; + width: 100vw; display: flex; justify-content: space-evenly; align-items: center; diff --git a/src/components/Hero/Hero.css b/src/components/Hero/Hero.css index ef47542..fe036a9 100644 --- a/src/components/Hero/Hero.css +++ b/src/components/Hero/Hero.css @@ -1,10 +1,9 @@ .hero { height: 100vh; - width: 99vw; + width: 100vw; display: flex; justify-content: space-evenly; align-items: center; - overflow-x: hidden; } .row-reverse { @@ -25,10 +24,11 @@ @media screen and (max-width: 600px) { .hero { flex-direction: column; + text-align: center; } .hero img, .text-container { - height: 30vh; + height: fit-content; width: 80vw; } } diff --git a/src/pages/Home/Home.css b/src/pages/Home/Home.css new file mode 100644 index 0000000..ec207a4 --- /dev/null +++ b/src/pages/Home/Home.css @@ -0,0 +1,3 @@ +.home { + overflow-x: hidden; +} diff --git a/src/pages/Home/Home.tsx b/src/pages/Home/Home.tsx index 4a4d81c..8b6fbe8 100644 --- a/src/pages/Home/Home.tsx +++ b/src/pages/Home/Home.tsx @@ -2,6 +2,7 @@ import React from 'react'; import Footer from '../../components/Footer/Footer'; import Hero from '../../components/Hero/Hero'; import { HeroDataInterface } from '../../database'; +import './Home.css'; const Home: React.FC = () => { const data: HeroDataInterface = { @@ -19,7 +20,7 @@ const Home: React.FC = () => { ], }; return ( - <> +