Skip to content

Commit

Permalink
Add hero section
Browse files Browse the repository at this point in the history
  • Loading branch information
iZooGooD committed Jan 14, 2024
1 parent 8b70d2e commit 8336398
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/gloabal-navbar/navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Navbar = () => {
}, []);

return (
<div className="relative flex flex-wrap justify-between items-center px-12 global-navbar__container background-brand shadow-sm">
<div className="relative flex flex-wrap justify-between items-center px-12 global-navbar__container bg-brand brand-divider-bottom">
<div className="flex">
<img src={logo} alt="site logo" className="site-logo__img" />
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/routes/home/Home.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import Navbar from '../../components/gloabal-navbar/navbar';
import HeroCover from './components/hero-cover/HeroCover';

const Home = () => {
return (
<>
<Navbar />
<div className="container mx-auto"></div>
<HeroCover />
</>
);
};
Expand Down
20 changes: 20 additions & 0 deletions src/routes/home/components/hero-cover/HeroCover.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const HeroCover = () => {
return (
<div className="bg-brand min-h-60 text-slate-100 relative">
<div className="hero-content__container container mx-auto">
<></>
<div className="hero-content__text py-4">
<h3 className="text-4xl font-medium">Search hotels in Pune</h3>
<p className="my-1">
Enter your dates to see the latest prices and deals for Pune hotels
</p>
</div>
<div className="hero-content__search-box">
<input type="text"></input>
</div>
</div>
</div>
);
};

export default HeroCover;
4 changes: 2 additions & 2 deletions src/styles/_utility.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.background-brand {
background-color: $primary-color;
.brand-divider-bottom {
border-bottom: 1px solid #053679;
}

// animations and effects
Expand Down
6 changes: 5 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
theme: {
extend: {},
extend: {
colors: {
'brand': '#074498'
}
},
},
plugins: [],
};

0 comments on commit 8336398

Please sign in to comment.