-
Notifications
You must be signed in to change notification settings - Fork 0
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
5 changed files
with
105 additions
and
96 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,55 @@ | ||
import React from 'react' | ||
import { DashedAnimation } from '../animations/animatedTriangle' | ||
import { IconBox } from '../icon-box' | ||
import { useProgressWithInView } from '@/model/interactions/use-progress-in-view' | ||
import React from "react"; | ||
import { DashedAnimation } from "../animations/animatedTriangle"; | ||
import { IconBox } from "../icon-box"; | ||
import { useProgressWithInView } from "@/model/interactions/use-progress-in-view"; | ||
|
||
type Props = {} | ||
type Props = {}; | ||
|
||
export default function BenefitsTriangle({}: Props) { | ||
const { | ||
isActive, | ||
clickOnIcon, | ||
currentStatus, | ||
progressLeft, | ||
|
||
} = useProgressWithInView(); | ||
const { isActive, currentStatus, progressLeft, } = | ||
useProgressWithInView(); | ||
return ( | ||
<div className="md:w-1/2 w-full md:h-full pt-12 relative flex items-center justify-center"> | ||
<div className="flex-col gap-6 md:gap-0 items-center justify-center flex max-w-sm relative w-full"> | ||
<DashedAnimation active={currentStatus.current} /> | ||
<div className="flex items-center h-fit w-full justify-center md:px-16 md:justify-start"> | ||
<IconBox | ||
text="Business" | ||
icon="/images/Business_Icon.svg" | ||
isActive={isActive(0)} | ||
onClick={clickOnIcon(0, 1)} | ||
progress={progressLeft} | ||
/> | ||
</div> | ||
<div className="flex-col gap-6 md:gap-0 items-center justify-center flex max-w-sm relative w-full"> | ||
<DashedAnimation active={currentStatus.current} /> | ||
<div className="flex items-center h-fit w-full justify-center md:px-16 md:justify-start cursor-not-allowed"> | ||
<IconBox | ||
text="Business" | ||
className="cursor-default" | ||
icon="/images/Business_Icon.svg" | ||
isActive={isActive(0)} | ||
progress={progressLeft} | ||
/> | ||
</div> | ||
|
||
<div className="flex items-center h-fit w-full justify-between px-12 md:justify-end"> | ||
<IconBox | ||
text="Salespeople" | ||
icon="/images/SA_Sales_Icon.svg" | ||
isActive={isActive(1)} | ||
onClick={clickOnIcon(1, 168)} | ||
className="order-2 md:order-1" | ||
progress={progressLeft} | ||
/> | ||
<div className="flex items-center h-fit w-full justify-between px-12 md:justify-end"> | ||
<IconBox | ||
text="Salespeople" | ||
icon="/images/SA_Sales_Icon.svg" | ||
isActive={isActive(1)} | ||
className="order-2 md:order-1 cursor-default" | ||
progress={progressLeft} | ||
/> | ||
|
||
<IconBox | ||
text="Customer" | ||
icon="/images/SA_Customer_Icon.svg" | ||
className="md:hidden " | ||
isActive={isActive(2)} | ||
onClick={clickOnIcon(2, 373)} | ||
progress={progressLeft} | ||
/> | ||
</div> | ||
<IconBox | ||
text="Customer" | ||
icon="/images/SA_Customer_Icon.svg" | ||
className="md:hidden cursor-default" | ||
isActive={isActive(2)} | ||
progress={progressLeft} | ||
/> | ||
</div> | ||
|
||
<div className="w-full flex items-center "> | ||
<IconBox | ||
text="Customer" | ||
icon="/images/SA_Customer_Icon.svg" | ||
className="hidden md:flex md:flex-col" | ||
isActive={isActive(2)} | ||
onClick={clickOnIcon(2, 373)} | ||
progress={progressLeft} | ||
/> | ||
<div className="w-full flex items-center "> | ||
<IconBox | ||
text="Customer" | ||
icon="/images/SA_Customer_Icon.svg" | ||
className="hidden md:flex md:flex-col cursor-default" | ||
isActive={isActive(2)} | ||
progress={progressLeft} | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
); | ||
} |
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
71 changes: 43 additions & 28 deletions
71
src/components/organism/sections/about-us/team-members/index.tsx
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 |
---|---|---|
@@ -1,36 +1,51 @@ | ||
import { TeamIcon } from "@/components/atoms/team-icon"; | ||
import { Section } from '@/components/atoms/section'; | ||
import { Section } from "@/components/atoms/section"; | ||
|
||
interface AboutUsTeamMembers { | ||
team: TeamMembers[]; | ||
team: TeamMembers[]; | ||
} | ||
|
||
interface TeamMembers { | ||
name: string; | ||
title: string; | ||
social: string; | ||
code?: string; | ||
name: string; | ||
title: string; | ||
social: string; | ||
code?: string; | ||
} | ||
type Props ={ | ||
data: AboutUsTeamMembers | ||
} | ||
export function AboutUsTeam ({ data }:Props){ | ||
return ( | ||
<section className='section bg-zinc-800'> | ||
<Section className='flex-grow container mx-auto'> | ||
<div className='w-full flex items-center justify-center flex-col text-white'> | ||
{/* first row */} | ||
<div className='w-full flex flex-wrap items-start justify-center gap-2'> | ||
{data.team.slice(0, 4).map((team) => <TeamIcon code={team.code} key={team.social} link={team.social} name={team.name} title={team.title}/>)} | ||
</div> | ||
|
||
{/* first row */} | ||
<div className='w-full flex flex-wrap items-start justify-center gap-2'> | ||
{data.team.slice(4, data.team.length).map((team) => <TeamIcon code={team.code} key={team.social} link={team.social} name={team.name} title={team.title}/>)} | ||
</div> | ||
|
||
</div> | ||
</Section> | ||
</section> | ||
) | ||
type Props = { | ||
data: AboutUsTeamMembers; | ||
}; | ||
export function AboutUsTeam({ data }: Props) { | ||
return ( | ||
<section className="section bg-zinc-800"> | ||
<Section className="flex-grow container mx-auto"> | ||
<div className="w-full flex items-center justify-center flex-col text-white"> | ||
{/* first row */} | ||
<div className="w-full flex flex-wrap items-start justify-center gap-2"> | ||
{data.team.slice(0, 4).map((team) => ( | ||
<TeamIcon | ||
code={team.code} | ||
key={team.social} | ||
link={team.social} | ||
name={team.name} | ||
title={team.title} | ||
/> | ||
))} | ||
</div> | ||
|
||
{/* second row */} | ||
<div className="w-full flex flex-wrap items-start justify-center gap-2"> | ||
{data.team.slice(4, data.team.length).map((team) => ( | ||
<TeamIcon | ||
code={team.code} | ||
key={team.social} | ||
link={team.social} | ||
name={team.name} | ||
title={team.title} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
</Section> | ||
</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