Contact link site
1---
2import type { SvgComponent } from "astro/types";
3import { Image } from "astro:assets";
4export interface Props {
5 name: string;
6 url: string;
7 icon: ImageMetadata & SvgComponent;
8 status: "active" | "wip" | "disabled";
9}
10
11const { name, url, icon } = Astro.props as Props;
12---
13
14<div
15 class="bg-ctp-surface2 pb-1 rounded-full cursor-pointer transition-all duration-75 hover:pb-0.5 hover:pt-0.5 active:pb-0 active:pt-1 active:bg-ctp-surface1 has-tooltip"
16>
17 <a href={url} target="_blank">
18 <div
19 class="flex items-center rounded-full w-72 p-3 bg-ctp-blue text-ctp-mantle"
20 >
21 <Image
22 width={24}
23 height={24}
24 src={icon}
25 alt={name + " logo/icon"}
26 priority
27 />
28 <p class="w-full text-center mr-10 text-lg font-semibold">
29 {name}
30 </p>
31 </div>
32 </a>
33</div>