MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / CommunityCard

Function CommunityCard

apps/web/pages/index.tsx:362–393  ·  view source on GitHub ↗
({
  url,
  brandColor,
  logoUrl,
}: {
  url: string;
  communityName: string;
  description: string;
  brandColor: string;
  logoUrl: string;
})

Source from the content-addressed store, hash-verified

360};
361
362const CommunityCard = ({
363 url,
364 brandColor,
365 logoUrl,
366}: {
367 url: string;
368 communityName: string;
369 description: string;
370 brandColor: string;
371 logoUrl: string;
372}) => {
373 return (
374 <a
375 className="flex items-center justify-center rounded"
376 style={{
377 backgroundColor: brandColor,
378 }}
379 href={url}
380 target="_blank"
381 rel="noreferrer"
382 >
383 <div className="relative h-28 w-52 m-2">
384 <Image
385 src={logoUrl}
386 alt="Logo"
387 fill
388 style={{ objectFit: 'contain' }}
389 ></Image>
390 </div>
391 </a>
392 );
393};
394
395type Props = {
396 logoUrl: string;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected