Skip to content

Commit

Permalink
feat: Design header layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ezechuka committed Oct 31, 2022
1 parent d27d2e1 commit 2f78920
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 0 deletions.
Binary file added submissions/pay-paddy/src/assets/hero-five.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added submissions/pay-paddy/src/assets/hero-four.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added submissions/pay-paddy/src/assets/hero-one.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added submissions/pay-paddy/src/assets/hero-three.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added submissions/pay-paddy/src/assets/hero-two.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions submissions/pay-paddy/src/components/Hero.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@

import heroOne from '../assets/hero-one.png'
import heroTwo from '../assets/hero-two.png'
import heroThree from '../assets/hero-three.png'
import heroFour from '../assets/hero-four.png'
import heroFive from '../assets/hero-five.png'

const Hero = () => {
return (
<div className='container mx-auto px-12 flex flex-row justify-center items-center'>

{/* first column */}
<div className='flex flex-col items-start'>
<img
src={heroOne}
alt={''}
className='rounded-lg p-2 shadow-inner shadow-pink-300/50 drop-shadow-md w-32'
/>
<img
src={heroThree}
alt={''}
className='rounded-lg p-2 ml-20 mt-16 shadow-inner shadow-green-300/50 drop-shadow-md w-32'
/>
</div>

{/* second column */}
<div className='flex flex-col justify-between items-center space-y-6'>
<h1 className='text-center text-5xl max-w-3xl font-epilogue font-semibold'>
Make hassle-free payments across Africa
</h1>
<p className='text-center font-epilogue max-w-md'>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Mollitia vero
quas cupiditate iste! Maiores harum, Quis saepe cum placeat
</p>
<button className='font-epilogue font-medium rounded-lg py-2 px-6 ring-2 ring-gray-400
hover:ring-purple-500 hover:shadow-lg hover:scale-105 transition-all'>
Get Started
</button>
</div>

{/* third column */}
<div className='flex flex-col items-end'>
<img
src={heroFour}
alt={''}
className='rounded-lg p-2 shadow-inner shadow-purple-300/50 drop-shadow-md w-32'
/>
<img
src={heroFive}
alt={''}
className='rounded-lg p-2 mr-20 mt-16 shadow-inner shadow-blue-300/50 drop-shadow-md w-32'
/>
</div>
</div>
)
}

export default Hero
25 changes: 25 additions & 0 deletions submissions/pay-paddy/src/components/Layout.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import Hero from "./Hero"
import Navbar from "./Navbar"

const Layout = ({ children }) => {
return (
<>
<header
className='h-screen flex flex-col justify-start items-center
bg-gradient-to-bl from-purple-50 to-blue-100'>
<Navbar />
<Hero />
</header>

<main className=''>
{children}
</main>

<footer>

</footer>
</>
)
}

export default Layout
25 changes: 25 additions & 0 deletions submissions/pay-paddy/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const Navbar = () => {
return (
<nav className='container mx-auto p-12'>
<div className='flex flex-row justify-between items-center'>
<p className='font-epilogue text-xl font-medium'>
PayPaddy
</p>

<div className='flex flex-row justify-evenly items-center space-x-12'>
<button aria-label='login button'
className='font-epilogue font-medium py-1.5 hover:text-purple-500
transition-all hover:border-b-[3px] hover:border-purple-500'>
Login
</button>
<button className='font-epilogue font-medium rounded-lg py-2 px-6 ring-2 ring-gray-400
hover:ring-purple-500 hover:shadow-lg hover:scale-105 transition-all'>
Signup
</button>
</div>
</div>
</nav>
)
}

export default Navbar

0 comments on commit 2f78920

Please sign in to comment.