mirror of
https://github.com/Radiquum/radiquum.github.io.git
synced 2025-09-05 22:15:37 +05:00
62 lines
1.4 KiB
TypeScript
62 lines
1.4 KiB
TypeScript
import Link from "next/link";
|
|
import { IconWithText } from "../components/IconWithText";
|
|
import { Section } from "../components/Section";
|
|
|
|
const links = [
|
|
{
|
|
icon: "/icons/ic_baseline-telegram.svg",
|
|
text: "Telegram",
|
|
desc: "@radiquum",
|
|
url: "https://t.me/radiquum",
|
|
},
|
|
{
|
|
icon: "/icons/ic_baseline-discord.svg",
|
|
text: "Discord",
|
|
desc: "radiquum",
|
|
url: null,
|
|
},
|
|
{
|
|
icon: "/icons/material-symbols_mail.svg",
|
|
text: "E-Mail",
|
|
desc: "radiquum@wah.su",
|
|
url: "mailto:radiquum@wah.su",
|
|
},
|
|
{
|
|
icon: "/icons/ri_vk-fill.svg",
|
|
text: "Vkontakte",
|
|
desc: "@radiquum",
|
|
url: "https://vk.com/radiquum",
|
|
},
|
|
];
|
|
|
|
export const Contacts = () => {
|
|
return (
|
|
<Section>
|
|
<h2 className="text-4xl">Contacts</h2>
|
|
<div className="grid grid-cols-2 gap-4">
|
|
{links.map((item) => {
|
|
if (item.url) {
|
|
return (
|
|
<Link href={item.url} key={`socials.link.${item.text}`}>
|
|
<IconWithText
|
|
icon={item.icon}
|
|
text={item.text}
|
|
desc={item.desc}
|
|
/>
|
|
</Link>
|
|
);
|
|
} else {
|
|
return (
|
|
<IconWithText
|
|
key={`socials.${item.text}`}
|
|
icon={item.icon}
|
|
text={item.text}
|
|
desc={item.desc}
|
|
/>
|
|
);
|
|
}
|
|
})}
|
|
</div>
|
|
</Section>
|
|
);
|
|
};
|