refactor: extract contact links to shared config

This commit is contained in:
Ilia Mashkov
2026-04-24 10:07:25 +03:00
parent fce4672218
commit f3b4e1d064
4 changed files with 30 additions and 7 deletions
+5 -5
View File
@@ -1,7 +1,7 @@
'use client';
import { useEffect, useState } from 'react';
import { cn } from '$shared/lib';
import { CONTACT_LINKS, cn } from '$shared/lib';
import type { NavItem } from '../model/types';
interface Props {
@@ -85,16 +85,16 @@ export function SidebarNav({ items }: Props) {
<div className="mt-12 pt-12 brutal-border-top">
<p className="text-sm uppercase tracking-wider mb-4 opacity-60">Quick Links</p>
<div className="space-y-3">
<a href="mailto:hello@allmy.work" className="block">
<a href={`mailto:${CONTACT_LINKS.email}`} className="block">
Email
</a>
<a href="https://linkedin.com" className="block">
<a href={CONTACT_LINKS.linkedin} className="block">
LinkedIn
</a>
<a href="https://instagram.com" className="block">
<a href={CONTACT_LINKS.instagram} className="block">
Instagram
</a>
<a href="https://are.na" className="block">
<a href={CONTACT_LINKS.arena} className="block">
Are.na
</a>
</div>
+3 -2
View File
@@ -1,5 +1,6 @@
'use client';
import { CONTACT_LINKS } from '$shared/lib';
import { Button } from '$shared/ui';
/**
@@ -18,8 +19,8 @@ export function UtilityBar() {
<div className="max-w-[2560px] mx-auto px-6 md:px-12 lg:px-16 py-4 flex items-center justify-between">
<div className="flex items-center gap-4">
<span className="text-sm uppercase tracking-wider">Contact</span>
<a href="mailto:hello@allmy.work" className="text-base hover:text-burnt-oxide transition-colors">
hello@allmy.work
<a href={`mailto:${CONTACT_LINKS.email}`} className="text-base hover:text-burnt-oxide transition-colors">
{CONTACT_LINKS.email}
</a>
</div>
<Button variant="primary" size="sm" onClick={handleDownloadCV}>