Skip to content

Commit

Permalink
Update Header.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
lyokoth committed Jan 27, 2024
1 parent 4c22f98 commit e549bee
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions src/Components/Header/Header.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import React from 'react'
import './Header.css'
import BlockRevealAnimation from 'react-block-reveal-animation';
import { images, headerData } from '../../constants';
import { Link } from 'react-router-dom';




// put in header-container div when page is ready
const Header = () => {

return (
<header>

<div className="app__header-data">
<BlockRevealAnimation color="#F4CE14">
<h1>
{headerData.title}
</h1>
</BlockRevealAnimation>
<BlockRevealAnimation color='#EDEFEE'>
<h3>
{headerData.location}
</h3>
<p>
{headerData.description}
</p>
</BlockRevealAnimation>
<BlockRevealAnimation color="#F4CE14">
<Link to= "/reservations">
<button>
{headerData.btnName}
</button>
</Link>
</BlockRevealAnimation>

</div>
<BlockRevealAnimation color='#333333'>

<div
className="app__header-image"
style={{backgroundImage:`url(${images.restaurantFood})`}}
/>

</BlockRevealAnimation>
</header> );
}
export default Header;

0 comments on commit e549bee

Please sign in to comment.