-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
358 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { PersonalizedText, Paragraph } from './shared/typography/index.jsx'; | ||
import aboutUsData from '../data/aboutUsData.js'; | ||
|
||
export default function AboutUs() { | ||
return ( | ||
<section> | ||
<div className='container py-6 flex flex-col items-center md:pb-[30px] sm:pb-[51px]'> | ||
<Paragraph variant='body2' className='text-center text-xs sm:text-2xl font-semibold'> | ||
{aboutUsData.tag1} | ||
<br /> | ||
{aboutUsData.tag2} | ||
<span className='font-syne text-left text-base sm:text-3.5xl font-extrabold'> | ||
{aboutUsData.tag3_char1} | ||
<span className='relative underline decoration-wavy decoration-1 sm:decoration-2 underline-offset-4 sm:underline-offset-8 decoration-primary-foreground -z-50'> | ||
{aboutUsData.tag3_wavy} | ||
</span> | ||
{aboutUsData.tag3} | ||
</span> | ||
</Paragraph> | ||
</div> | ||
|
||
<div className='flex justify-between px-[0px] sm:px-[77px] md:px-[115px] lg:px-[175px] grid grid-cols-1 sm:grid-cols-3 gap-3 pb-[70px] sm:pb-[130px] md:pb-[135px]'> | ||
{aboutUsData.lists.map((list, index) => ( | ||
<div key={index} className='flex flex-col pb-[10px]'> | ||
<img src={list.img_url} alt={list.title} className='mx-auto md:w-[85px] sm:w-[70px] w-[55px] pb-[15px]' /> | ||
<Paragraph variant='body2' className='text-center font-bold text-xs sm:text-2xl'> | ||
{list.title} | ||
</Paragraph> | ||
</div> | ||
))} | ||
</div> | ||
|
||
<PersonalizedText | ||
className='relative pl-[20px] sm:pl-[90px] md:pl-[80px] lg:pl-[90px] xl:pl-[100px] 2xl:pl-[300px] pb-[50px] sm:pb-[32px] md:pb-[23px] lg:pb-[33px] text-[8px] sm:text-base xl:text-base 2xl:text-lg -z-50' | ||
style={{ transform: 'rotate(-10.62deg)', transformOrigin: '0 0', color: '#FF6108', fontWeight: '400' }}> | ||
You all are coming right ??... | ||
</PersonalizedText> | ||
|
||
<Paragraph | ||
variant='body2' | ||
className='text-center mx-auto px-[30px] sm:px-[135px] mt-[-60px] pb-[25px] sm:pb-[40px] md:pb-[55px] lg:pb-[80px] text-xs sm:text-2xl'> | ||
{aboutUsData.content1}{' '} | ||
<span className='font-syne text-left text-base sm:text-3.5xl font-bold mr-[15px]'> {aboutUsData.content2}</span> | ||
<img | ||
src={aboutUsData.star_img_url} | ||
alt='star' | ||
className='sm:h-[76px] sm:w-[76px] h-[45px]' | ||
style={{ display: 'inline-block', verticalAlign: 'top' }} | ||
/> | ||
</Paragraph> | ||
</section> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { cva } from 'class-variance-authority'; | ||
import { cn } from '../../lib/utils'; | ||
|
||
const buttonVariants = cva(['flex', 'items-center', 'justify-center', 'rounded'], { | ||
variants: { | ||
variant: { | ||
primary: [ | ||
'bg-[#ff7647]', | ||
'border', | ||
'border-black', | ||
'border-solid', | ||
'rounded-[8px]', | ||
'px-[12px]', | ||
'py-[10px]', | ||
'gap-[10px]', | ||
'text-black', | ||
'font-semibold', | ||
], | ||
}, | ||
size: { | ||
large: 'text-xl', | ||
medium: 'text-lg', | ||
small: 'text-base', | ||
}, | ||
}, | ||
defaultVariants: { | ||
variant: 'primary', | ||
size: 'medium', | ||
}, | ||
}); | ||
|
||
export default function Button({ variant, size, className, children, ...props }) { | ||
return ( | ||
<button className={cn(buttonVariants({ variant, size, className }))} {...props}> | ||
{children} | ||
</button> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { cn } from '../../lib/utils'; | ||
import { cva } from 'class-variance-authority'; | ||
|
||
const hamburgerVariants = cva(['hamburger-icon', 'flex-col'], { | ||
variants: { | ||
isOpen: { | ||
true: 'open', | ||
false: 'closed', | ||
}, | ||
}, | ||
defaultVariants: { | ||
isOpen: false, | ||
}, | ||
}); | ||
|
||
export default function Hamburger({ isOpen, onClick }) { | ||
return ( | ||
<button className={cn(hamburgerVariants({ isOpen }), 'md:hidden', 'mr-[56.6px]', 'mt-2')} onClick={onClick}> | ||
<div | ||
id='line1' | ||
className='md:w-[52px] w-[44px] md:h-2 h-1 bg-black mb-2 rounded-lg border-black border-solid bg-orange-600' | ||
style={{ | ||
boxShadow: '2px 2px 0px 0px #000, 3px 4px 9.2px 0px rgba(222, 222, 222, 0.48) inset', | ||
transition: 'transform 0.3s ease', | ||
transform: isOpen ? 'rotate(-46deg) translateY(19px) translateX(5px)' : 'rotate(0deg)', | ||
}}></div> | ||
|
||
<div | ||
id='line2' | ||
className='md:w-[52px] w-[44px] md:h-2 h-1 bg-black mb-2 rounded-lg border-black border-solid bg-orange-600' | ||
style={{ | ||
boxShadow: '2px 2px 0px 0px #000, 3px 4px 9.2px 0px rgba(222, 222, 222, 0.48) inset', | ||
transform: isOpen ? 'scaleY(0)' : 'scaleY(1)', | ||
}}></div> | ||
<div | ||
id='line3' | ||
className='md:w-[52px] w-[44px] md:h-2 h-1 bg-black rounded-lg border-black border-solid bg-orange-600' | ||
style={{ | ||
boxShadow: '2px 2px 0px 0px #000, 3px 4px 9.2px 0px rgba(222, 222, 222, 0.48) inset', | ||
transition: 'transform 0.3s ease', | ||
transform: isOpen ? 'rotate(45deg) translateY(-26px) translateX(3px)' : 'rotate(0deg)', | ||
}}></div> | ||
</button> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { cva } from 'class-variance-authority'; | ||
import { cn } from '../../lib/utils'; | ||
|
||
const imgVariants = cva(['w-auto'], { | ||
variants: { | ||
size: { | ||
small: ['h-16'], | ||
medium: ['h-20'], | ||
large: ['h-24'], | ||
}, | ||
}, | ||
defaultVariants: { | ||
size: 'medium', | ||
}, | ||
}); | ||
|
||
export default function Logo({ className, src, alt, size, ...props }) { | ||
return <img className={cn(imgVariants({ size, className }), 'h-[50px] w-[50px]')} src={src} alt={alt} {...props} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { useState } from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import Text from './typography/Text'; | ||
import Navigation from '../../data/Navigation'; | ||
import image from '../../assets/images/image.png'; | ||
import Button from './Button'; | ||
import Logo from './Logo'; | ||
import Hamburger from './Hamburger'; | ||
|
||
function NavBar() { | ||
const { navItems, logo } = Navigation; | ||
const [isNavOpen, setIsNavOpen] = useState(false); | ||
|
||
const toggleNav = () => { | ||
setIsNavOpen(!isNavOpen); | ||
}; | ||
|
||
return ( | ||
<nav style={{ position: 'sticky', top: '0' }}> | ||
<div | ||
className='navbar flex justify-between items-center opacity-53 bg-hard-light bg-center bg-cover bg-[#F9F5F2] h-[73.8px] overflow-hidden pl-10 ' | ||
style={{ backgroundImage: `url(${image})` }}> | ||
<Logo src={logo.src} alt={logo.alt} /> | ||
<div className={`navitem md:flex ${isNavOpen ? 'hidden' : 'flex'} hidden`}> | ||
{navItems.map((item, index) => ( | ||
<Link to={item.link} key={index}> | ||
<Text variant='nav' className='mx-[55px] max-[1100px]:mx-[25px]'> | ||
{item.name} | ||
</Text> | ||
</Link> | ||
))} | ||
</div> | ||
<div> | ||
<Hamburger onClick={toggleNav} isOpen={isNavOpen}></Hamburger> | ||
<Button | ||
variant='primary' | ||
size='medium' | ||
className='mr-[56.6px] hidden md:flex' | ||
style={{ | ||
boxShadow: '2px 2px 0px 0px #000, 3px 4px 9.2px 0px rgba(222, 222, 222, 0.48) inset', | ||
}}> | ||
<Text variant='navButton'>Login</Text> | ||
</Button> | ||
</div> | ||
</div> | ||
<div className='w-full' style={{ height: '1px', backgroundColor: 'black' }}></div> | ||
{isNavOpen && ( | ||
<div | ||
className='navMobile flex flex-col justify-center bg-[#252525] items-center gap-[41px] h-[376px] text-white md:hidden' | ||
style={{ position: 'absolute', top: '74px', left: '0', right: '0', bottom: '0' }}> | ||
{navItems.map((item, index) => ( | ||
<Link to={item.link} key={index}> | ||
<Text variant='nav' className='mx-[55px]'> | ||
{item.name} | ||
</Text> | ||
</Link> | ||
))} | ||
</div> | ||
)} | ||
</nav> | ||
); | ||
} | ||
|
||
export default NavBar; |
Oops, something went wrong.