Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add About Us #14

Merged
merged 10 commits into from
Mar 12, 2024
53 changes: 53 additions & 0 deletions src/components/AboutUs.jsx
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>
);
}
28 changes: 28 additions & 0 deletions src/data/aboutUsData.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const aboutUsData = {
tag1: "Let's relive & celebrate ",
tag2: 'our ',
tag3_char1: 'g',
tag3_wavy: 'ood day',
tag3: 's Together',
lists: [
{
title: 'Rewind',
img_url: 'https://res.cloudinary.com/dkivz06xv/image/upload/v1710089259/xqpydhigob3opgpzyv1a.png',
},
{
title: 'Reunite',
img_url: 'https://res.cloudinary.com/dkivz06xv/image/upload/v1710089483/kkubnibzjiyaevv6m2gr.png',
},
{
title: 'Rejoice',
img_url: 'https://res.cloudinary.com/dkivz06xv/image/upload/v1710089259/j9zi48resont3yqnudmm.png',
},
],
content1:
'Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur',
content2:
'aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem',
star_img_url: 'https://res.cloudinary.com/dkivz06xv/image/upload/v1710089645/rvqsfd4sqaclbthidnxl.png',
};

export default aboutUsData;
5 changes: 4 additions & 1 deletion src/pages/playground.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Heading, HeroText, Paragraph, PersonalizedText, Text } from '../components/shared';

import Footer from '../components/shared/marginals/footer.jsx';
import AboutUs from '../components/AboutUs.jsx';
import NavBar from '../components/shared/NavBar';

export default function Playground() {
Expand Down Expand Up @@ -31,6 +32,8 @@ export default function Playground() {
<li className='text-black-foreground'>Black Foreground</li>
</ul>
</div>
<AboutUs />
<Footer />
</>
);
}
Loading