Skip to content

Commit

Permalink
feat: update <SpeakerCard> styles
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirHosseinKarimi committed Jan 22, 2024
1 parent d4725e2 commit f6f7f75
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions src/app/components/Speakers/SpeakerCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,29 @@ import { TSpeakerCard } from "@/types/home/speakerCard.type";
import Image from "next/image";
import SpeakerSocials from "./SpeakerSocials";

const SpeakerCard = (props: TSpeakerCard) => {
const SpeakerCard = ({
avatar,
company,
fullName,
position,
socials,
}: TSpeakerCard) => {
return (
<div>
<div className="flex flex-col items-center gap-2 lg:gap-4">
<Image
width={128}
height={128}
className="lg:size-[168px]"
src={props.avatar}
alt={props.fullName}
src={avatar}
alt={fullName}
/>
<div className="text-center lg:space-y-0.5">
<p className="mt-2 font-extrabold lg:text-xl">{props.fullName}</p>
<p className="text-sm text-zinc-400 lg:text-base">{props.position}</p>
<p className="text-sm text-zinc-400 lg:text-base">{props.company}</p>
<div className="flex flex-col items-center gap-0.5 lg:gap-1">
<strong className="lg:text-xl">{fullName}</strong>
<span className="text-sm text-zinc-400 lg:text-base">{position}</span>
<span className="text-sm text-zinc-400 lg:text-base">{company}</span>
</div>
<div className="mt-2 flex gap-1 lg:mt-4">
<SpeakerSocials {...props.socials} />
<div className="flex gap-3 lg:gap-2">
<SpeakerSocials {...socials} />
</div>
</div>
);
Expand Down

0 comments on commit f6f7f75

Please sign in to comment.