Skip to content

Commit

Permalink
feat: add responsive design for medium device view
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuuriii committed Nov 13, 2023
1 parent a042343 commit d964d37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions app/components/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ export default function Header() {
/>
<div className='w-full bg-[#FFF2E1] lg:bg-transparent min-[1488px]:w-[70rem]'>
<Padding>
<div className='flex lg:pt-0 flex-col items-center justify-center lg:flex-row lg:items-center lg:justify-between h-[100vh] min-[1488px]:h-[45rem]'>
<div className='flex md:hidden'>
<div className='flex pt-[4rem] lg:pt-0 flex-col items-center justify-center lg:flex-row lg:items-center lg:justify-between h-[100vh] md:h-[42rem] min-[1488px]:h-[45rem]'>
<div className='flex lg:hidden'>
<Image
className='shadow-[ 0px 4px 100px 0px rgba(29, 28, 24, 0.25)] h-[12rem] w-auto'
className='shadow-[ 0px 4px 100px 0px rgba(29, 28, 24, 0.25)] h-[13rem] w-auto md:h-[18rem]'
src={Girl}
alt='girlMobile'
/>
</div>
<div className='w-[100%] mt-[1.2rem] md:mt-[0] md:w-[40rem] lg:w-[50%]'>
<h1 className='text-[#2F327D] font-[700] text-center text-[2rem] lg:text-start md:text-[2.9rem] '>
<div className='w-[100%] mt-[3rem] md:mt-[0] md:w-[40rem] lg:w-[50%]'>
<h1 className='text-[#2F327D] font-[700] text-center text-[2rem] lg:text-start lg:text-[2.9rem] '>
<span className='text-[#F48C06]'>Studying</span> Online is now
much easier
</h1>
Expand Down
4 changes: 2 additions & 2 deletions app/components/navbar/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Navbar() {
<div className='w-full min-[1488px]:w-[70rem]'>
<Padding>
<div className='w-full relative flex items-center justify-between py-[0.5rem] lg:py-[1.5rem]'>
<div className='relative'>
<div className='relative ml-[0.8rem] md:ml-[0]'>
<Image
className='h-[2.9rem] top-[-0.4rem] left-[-1.7rem] absolute z-[-1]'
src={Polygon}
Expand All @@ -33,7 +33,7 @@ export default function Navbar() {
</h1>
</div>
<button onClick={handleShow} className='lg:hidden'>
<Image src={Hamburger} alt='hamburger' />
<Image className='h-[3.4rem]' src={Hamburger} alt='hamburger' />
</button>
{/* ul for mobile */}
<ul
Expand Down

0 comments on commit d964d37

Please sign in to comment.