Skip to content

Commit

Permalink
biome formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliiiu committed Oct 5, 2023
1 parent 017b9b2 commit c0f0dc4
Show file tree
Hide file tree
Showing 3 changed files with 392 additions and 392 deletions.
208 changes: 104 additions & 104 deletions src/components/layouts/braindao-team/index.tsx
Original file line number Diff line number Diff line change
@@ -1,114 +1,114 @@
import InViewAnimateFadeIn from '@/components/transitions/InViewAnimateFadeIn';
import { editors, productTeam } from '@/data/team';
import Image, { ImageProps } from 'next/image';
import React from 'react';
import InViewAnimateFadeIn from "@/components/transitions/InViewAnimateFadeIn";
import { editors, productTeam } from "@/data/team";
import Image, { ImageProps } from "next/image";
import React from "react";

type TTeam = {
src?: ImageProps['src'];
name?: string;
role?: string;
twitterLink?: string;
linkedlnLink?: string;
delay?: number;
src?: ImageProps["src"];
name?: string;
role?: string;
twitterLink?: string;
linkedlnLink?: string;
delay?: number;
};
const TeamCard = ({
src,
name,
role,
twitterLink,
linkedlnLink,
delay,
src,
name,
role,
twitterLink,
linkedlnLink,
delay,
}: TTeam) => {
return (
<InViewAnimateFadeIn
delay={delay}
className='border bg-white dark:bg-gray700 border-gray200 dark:border-whiteAlpha-400 rounded-xl px-4 py-5'
>
<div className='rounded-md relative h-[373px] md:h-[318px] lg:h-[360px] xl:h-[300px] 2xl:h-[324px] overflow-hidden hover:scale-105 ease-in-out duration-300'>
<Image src={src || ''} alt='' fill sizes='50vw' />
<div className='absolute top-0 left-0 h-full w-full bg-transparent px-5 pb-5 flex flex-col justify-end'>
<div className='bg-white dark:bg-gray700 relative rounded-[4px] py-2 px-1 flex flex-col gap-2 items-center w-full'>
<div className='rounded-full h-4 w-4 bg-brand-500 dark:bg-brand-800 absolute -top-2'></div>
<div className='flex flex-col items-center'>
<h4 className='text-gray800 dark:text-whiteAlpha-900 text-sm font-semibold'>
{name || 'Cesar Rodriguez'}
</h4>
<p className='text-brand-500 dark:text-brand-800 text-center font-medium text-xs'>
{role || 'Chief Technology Officer'}
</p>
</div>
<div className='flex justify-center'>
<div className='flex gap-2'>
{twitterLink && (
<a
href={twitterLink}
target='_blank'
className='w-4 h-4 bg-twitter bg-no-repeat bg-contain dark:bg-twitter-dark'
/>
)}
{linkedlnLink && (
<a
href={linkedlnLink}
target='_blank'
className='w-4 h-4 bg-linkedln bg-no-repeat bg-contain dark:bg-linkedln-dark'
/>
)}
</div>
</div>
</div>
</div>
</div>
</InViewAnimateFadeIn>
);
return (
<InViewAnimateFadeIn
delay={delay}
className="border bg-white dark:bg-gray700 border-gray200 dark:border-whiteAlpha-400 rounded-xl px-4 py-5"
>
<div className="rounded-md relative h-[373px] md:h-[318px] lg:h-[360px] xl:h-[300px] 2xl:h-[324px] overflow-hidden hover:scale-105 ease-in-out duration-300">
<Image src={src || ""} alt="" fill sizes="50vw" />
<div className="absolute top-0 left-0 h-full w-full bg-transparent px-5 pb-5 flex flex-col justify-end">
<div className="bg-white dark:bg-gray700 relative rounded-[4px] py-2 px-1 flex flex-col gap-2 items-center w-full">
<div className="rounded-full h-4 w-4 bg-brand-500 dark:bg-brand-800 absolute -top-2"></div>
<div className="flex flex-col items-center">
<h4 className="text-gray800 dark:text-whiteAlpha-900 text-sm font-semibold">
{name || "Cesar Rodriguez"}
</h4>
<p className="text-brand-500 dark:text-brand-800 text-center font-medium text-xs">
{role || "Chief Technology Officer"}
</p>
</div>
<div className="flex justify-center">
<div className="flex gap-2">
{twitterLink && (
<a
href={twitterLink}
target="_blank"
className="w-4 h-4 bg-twitter bg-no-repeat bg-contain dark:bg-twitter-dark"
/>
)}
{linkedlnLink && (
<a
href={linkedlnLink}
target="_blank"
className="w-4 h-4 bg-linkedln bg-no-repeat bg-contain dark:bg-linkedln-dark"
/>
)}
</div>
</div>
</div>
</div>
</div>
</InViewAnimateFadeIn>
);
};
const BraindaoTeam = () => {
return (
<div className='bg-[#F9FAFB] text-gray600 dark:bg-gray800 dark:text-whiteAlpha-900'>
<div className='max-w-[1536px] px-4 md:px-20 xl:px-16 2xl:px-[120px] mx-auto py-[48px] sm:py-[80px] 2xl:py-24'>
<h2 className='text-center text-3xl sm:text-4xl xl:text-5xl text-gray800 dark:text-whiteAlpha-900 font-semibold mb-10 xl:mb-14'>
Humans of BrainDAO
</h2>
<div className='flex flex-col gap-5 sm:gap-16 mt-10 md:mt-14'>
<span className='p-2 lg:p-5 text-brand-500 font-semibold text-2xl sm:text-4xl border-b border-[#E2E8F0] dark:border-whiteAlpha-400'>
Product Team
</span>
<div className='grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-y-5 sm:gap-y-10 2xl:gap-y-16 gap-x-8 lg:gap-x-4'>
{productTeam.map((team, idx) => {
return (
<TeamCard
delay={0.6 * team.delay}
src={team.src}
name={team.name}
role={team.role}
key={team.name}
linkedlnLink={team.linkedlnLink}
twitterLink={team.twitterLink}
/>
);
})}
</div>
</div>
<div className='flex flex-col gap-5 sm:gap-16 mt-8 md:mt-14'>
<span className='p-2 lg:p-5 text-brand-500 font-semibold text-2xl sm:text-4xl border-b border-[#E2E8F0] dark:border-whiteAlpha-400'>
Editors
</span>
<div className='grid md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-y-5 sm:gap-y-16 gap-x-4'>
{editors.map((item) => (
<TeamCard
delay={0.6 * item.delay}
key={item.name}
src={item.src}
name={item.name}
role={item.role}
linkedlnLink={item.linkedlnLink}
twitterLink={item.twitterLink}
/>
))}
</div>
</div>
</div>
</div>
);
return (
<div className="bg-[#F9FAFB] text-gray600 dark:bg-gray800 dark:text-whiteAlpha-900">
<div className="max-w-[1536px] px-4 md:px-20 xl:px-16 2xl:px-[120px] mx-auto py-[48px] sm:py-[80px] 2xl:py-24">
<h2 className="text-center text-3xl sm:text-4xl xl:text-5xl text-gray800 dark:text-whiteAlpha-900 font-semibold mb-10 xl:mb-14">
Humans of BrainDAO
</h2>
<div className="flex flex-col gap-5 sm:gap-16 mt-10 md:mt-14">
<span className="p-2 lg:p-5 text-brand-500 font-semibold text-2xl sm:text-4xl border-b border-[#E2E8F0] dark:border-whiteAlpha-400">
Product Team
</span>
<div className="grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-y-5 sm:gap-y-10 2xl:gap-y-16 gap-x-8 lg:gap-x-4">
{productTeam.map((team, idx) => {
return (
<TeamCard
delay={0.6 * team.delay}
src={team.src}
name={team.name}
role={team.role}
key={team.name}
linkedlnLink={team.linkedlnLink}
twitterLink={team.twitterLink}
/>
);
})}
</div>
</div>
<div className="flex flex-col gap-5 sm:gap-16 mt-8 md:mt-14">
<span className="p-2 lg:p-5 text-brand-500 font-semibold text-2xl sm:text-4xl border-b border-[#E2E8F0] dark:border-whiteAlpha-400">
Editors
</span>
<div className="grid md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-y-5 sm:gap-y-16 gap-x-4">
{editors.map((item) => (
<TeamCard
delay={0.6 * item.delay}
key={item.name}
src={item.src}
name={item.name}
role={item.role}
linkedlnLink={item.linkedlnLink}
twitterLink={item.twitterLink}
/>
))}
</div>
</div>
</div>
</div>
);
};

export default BraindaoTeam;
Loading

0 comments on commit c0f0dc4

Please sign in to comment.