mirror of
https://github.com/XFox111/my-website.git
synced 2026-04-22 07:28:01 +03:00
feat!: updated contact links section
This commit is contained in:
@@ -26,6 +26,12 @@
|
||||
{
|
||||
align-items: flex-end;
|
||||
text-align: right;
|
||||
|
||||
.links
|
||||
{
|
||||
justify-content: flex-end;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
|
||||
.textarea
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import Button from "@/_components/Button";
|
||||
import SocialLinks from "@/_components/SocialLinks";
|
||||
import contacts from "@/_data/contacts";
|
||||
import FormStatusTracker from "@/_utils/FormStatusTracker";
|
||||
import React, { InputHTMLAttributes, useMemo, useState } from "react";
|
||||
@@ -83,27 +84,17 @@ const ContactSection: React.FC = () =>
|
||||
<div className={ `${cls.container} ${cls.contacts}` }>
|
||||
<h3>Direct contacts</h3>
|
||||
|
||||
<p>
|
||||
{ Object.entries(socials).map(([name, i]) =>
|
||||
<span key={ name }>
|
||||
<span aria-hidden>{ name + ": " }</span>
|
||||
<a aria-label={ `${name}: ${i.username}` } href={ i.href } target="_blank">
|
||||
{ i.username }
|
||||
</a>
|
||||
<br aria-hidden />
|
||||
</span>
|
||||
) }
|
||||
<SocialLinks socials={ socials } className={ cls.links } />
|
||||
|
||||
{ phone &&
|
||||
<span>
|
||||
<span aria-hidden>Telephone: </span>
|
||||
<a aria-label={ `Telephone: ${phone.text} (${phone.country})` } href={ phone.href }>
|
||||
{ phone.text }
|
||||
</a>
|
||||
<span aria-hidden> ({ phone.country })</span>
|
||||
</span>
|
||||
}
|
||||
</p>
|
||||
{ phone &&
|
||||
<p>
|
||||
<span aria-hidden>Telephone: </span>
|
||||
<a aria-label={ `Telephone: ${phone.text} (${phone.country})` } href={ phone.href }>
|
||||
{ phone.text }
|
||||
</a>
|
||||
<span aria-hidden> ({ phone.country })</span>
|
||||
</p>
|
||||
}
|
||||
|
||||
<Button href={ email.href } target="_blank">
|
||||
{ email.text }
|
||||
|
||||
Reference in New Issue
Block a user