Skip to content
Closed
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 26 additions & 16 deletions pages/community/ambassadors/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import type { Ambassador } from '@/types/pages/community/Community';
import { HeadingTypeStyle } from '@/types/typography/Heading';

import Button from '../../../components/buttons/Button';
import IconGithub from '../../../components/icons/Github';
import IconLinkedIn from '../../../components/icons/LinkedIn';
import IconTwitter from '../../../components/icons/Twitter';
import GenericLayout from '../../../components/layout/GenericLayout';
import NewsletterSubscribe from '../../../components/NewsletterSubscribe';
import Heading from '../../../components/typography/Heading';
Expand Down Expand Up @@ -85,8 +88,8 @@ export default function Index() {
<div className='mt-10 text-center lg:w-[55%]' data-testid='Ambassadors-contributions'>
<Heading typeStyle={HeadingTypeStyle.lg}>AsyncAPI Ambassador Contributions</Heading>
<Heading typeStyle={HeadingTypeStyle.bodyLg} textColor='text-gray-700' className='mt-5 text-slate-500'>
AsyncAPI Ambassadors are passionate about APIs and AsyncAPI. They share their interest, expertise, and
excitement within their communities to help others build better software.
AsyncAPI Ambassadors are passionate about APIs and AsyncAPI. They share their interest, expertise,
and excitement within their communities to help others build better software.
</Heading>
</div>
</div>
Expand Down Expand Up @@ -123,11 +126,8 @@ export default function Index() {
<div data-testid='Ambassadors-members-country'>{ambassador.country}</div>
</div>
<Link href={`ambassadors/${ambassador.github}`} as={`ambassadors/${ambassador.github}`}>
<div className='p-2'>
<div
className='h-auto w-full cursor-pointer rounded-md bg-center'
data-testid='Ambassadors-members-img'
>
<div className='p-2 cursor-pointer'>
<div className='h-auto w-full rounded-md bg-center' data-testid='Ambassadors-members-img'>
<img
src={ambassador.img}
alt={ambassador.name}
Expand All @@ -140,21 +140,31 @@ export default function Index() {
</div>
<div className='flex h-full flex-col justify-between'>
<div className='p-2 text-sm'>{ambassador.bio}</div>
<div className='flex border-t p-2' data-testid='Ambassadors-members-socials'>
<div className='flex border-t p-2 gap-4' data-testid='Ambassadors-members-socials'>
<a
href={ambassador.twitterUrl}
target='_blank'
rel='noreferrer'
className='underline'
className='text-gray-500 hover:text-black transition-colors'
data-testid='Ambassadors-members-twitter'
>
Twitter ↗
<IconTwitter className='h-5 w-5 fill-current' />
</a>
<a href={ambassador.githubUrl} target='_blank' rel='noreferrer' className='ml-3 underline'>
Github ↗
<a
href={ambassador.githubUrl}
target='_blank'
rel='noreferrer'
className='text-gray-500 hover:text-black transition-colors'
>
<IconGithub className='h-5 w-5 fill-current' />
</a>
<a href={ambassador.linkedinUrl} target='_blank' rel='noreferrer' className='ml-3 underline'>
Linkedin ↗
<a
href={ambassador.linkedinUrl}
target='_blank'
rel='noreferrer'
className='text-gray-500 hover:text-[#0077b5] transition-colors'
>
<IconLinkedIn className='h-5 w-5 fill-current' />
</a>
</div>
</div>
Expand All @@ -167,8 +177,8 @@ export default function Index() {
<div className='mt-10 text-center lg:w-[55%]' data-testid='Events-token'>
<Heading typeStyle={HeadingTypeStyle.lg}>Tokens of our appreciation</Heading>
<Heading typeStyle={HeadingTypeStyle.bodyLg} textColor='text-gray-700' className='mt-5 text-slate-500'>
We appreciate your commitment and passion for sharing your knowledge with your communities. Let us support
you!
We appreciate your commitment and passion for sharing your knowledge with your communities.
Let us support you!
</Heading>
</div>
</div>
Expand Down
Loading