Skip to content

Commit

Permalink
style: update Home page styles, responsivness
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav016 committed Apr 14, 2022
1 parent 7fefe19 commit e7b2988
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.footer {
height: fit-content;
width: 99vw;
width: 100vw;
display: flex;
justify-content: space-evenly;
align-items: center;
Expand Down
6 changes: 3 additions & 3 deletions src/components/Hero/Hero.css
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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;
}
}
3 changes: 3 additions & 0 deletions src/pages/Home/Home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.home {
overflow-x: hidden;
}
5 changes: 3 additions & 2 deletions src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -19,7 +20,7 @@ const Home: React.FC = () => {
],
};
return (
<>
<div className='home'>
<Hero
imgPath={data.imgPath[0]}
heading={data.headings[0]}
Expand All @@ -32,7 +33,7 @@ const Home: React.FC = () => {
alternate={true}
/>
<Footer />
</>
</div>
);
};

Expand Down

0 comments on commit e7b2988

Please sign in to comment.