Skip to content
Merged
Changes from all 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
28 changes: 10 additions & 18 deletions src/components/communitySupportedPlatforms/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Image from 'next/image';
import Link from 'next/link';

import {ExternalLink} from '../externalLink';

Expand Down Expand Up @@ -110,31 +109,24 @@ const CommunityPlatforms = [

export function CommunitySupportedPlatforms() {
return (
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<ul className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
{CommunityPlatforms.map(platform => (
<Link
href={platform.url}
key={platform.name}
style={{
textDecoration: 'none',
color: 'var(--foreground) !important',
}}
>
<div className="flex gap-2 items-center">
<li key={platform.name} style={{listStyle: 'none', padding: '0', margin: '0'}}>
<ExternalLink
href={platform.url}
className="flex gap-2 items-center !no-underline"
>
<Image
src={platform.icon.src}
width={20}
height={20}
alt={platform.name}
className="!border-none !shadow-none"
/>
<div className="flex space-x-1">
<span className="text-[var(--accent)]">{platform.name}</span>
<ExternalLink href={platform.url} />
</div>
</div>
</Link>
<span className="text-[var(--accent)]">{platform.name}</span>
</ExternalLink>
</li>
))}
</div>
</ul>
);
}
Loading