-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
150 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,31 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer utilities { | ||
.animated-link { | ||
position: relative; | ||
display: inline-block; | ||
line-height: 1; | ||
} | ||
|
||
.animated-link:after { | ||
display: block; | ||
content: ""; | ||
background-color: theme(colors.white); | ||
height: 1px; | ||
width: 0; | ||
left: 0; | ||
position: absolute; | ||
-webkit-transition: width 0.3s ease-in; | ||
transition: width 0.3s ease-in; | ||
} | ||
|
||
.animated-link:hover:after { | ||
width: 100%; | ||
} | ||
|
||
.animated-link:focus:after { | ||
width: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import clsx from 'clsx'; | ||
import {memo} from 'react'; | ||
import envConfig from '@/lib/env/envConfig'; | ||
|
||
const {CONTACT_EMAIL} = envConfig; | ||
|
||
const anchorCn = clsx('animated-link'); | ||
|
||
/** | ||
* @returns React component. | ||
*/ | ||
function Mail() { | ||
return ( | ||
<a | ||
className={anchorCn} | ||
href={`mailto:${CONTACT_EMAIL}`} | ||
> | ||
{CONTACT_EMAIL} | ||
</a> | ||
); | ||
} | ||
|
||
export default memo(Mail); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import clsx from 'clsx'; | ||
import {memo} from 'react'; | ||
import envConfig from '@/lib/env/envConfig'; | ||
|
||
const {CONTACT_PHONE} = envConfig; | ||
|
||
const telCn = clsx('animated-link', 'tracking-wider'); | ||
|
||
/** | ||
* @returns React component. | ||
*/ | ||
function Phone() { | ||
return ( | ||
<a | ||
className={telCn} | ||
href={`tel:${CONTACT_PHONE}`} | ||
> | ||
{CONTACT_PHONE} | ||
</a> | ||
); | ||
} | ||
|
||
export default memo(Phone); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import Link from 'next/link'; | ||
import {memo} from 'react'; | ||
import envConfig from '@/lib/env/envConfig'; | ||
|
||
const {FACEBOOK_ADDRESS, INSTAGRAM_ADDRESS, TELEGRAM_ADDRESS} = envConfig; | ||
|
||
const linksConfig = [ | ||
{ | ||
title: 'Facebook', | ||
href: FACEBOOK_ADDRESS, | ||
}, | ||
{ | ||
title: 'Instagram', | ||
href: INSTAGRAM_ADDRESS, | ||
}, | ||
{ | ||
title: 'Telegram', | ||
href: TELEGRAM_ADDRESS, | ||
}, | ||
] as const; | ||
|
||
const linkCn = 'animated-link'; | ||
|
||
/** | ||
* @returns React component. | ||
*/ | ||
function SocialLinksList() { | ||
return ( | ||
<div> | ||
{linksConfig.map(({title, href}) => ( | ||
<Link | ||
key={title} | ||
href={href} | ||
target="_blank" | ||
className={linkCn} | ||
> | ||
{title.toUpperCase()} | ||
</Link> | ||
))} | ||
</div> | ||
); | ||
} | ||
|
||
export default memo(SocialLinksList); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/** @type {import('tailwindcss/defaultTheme').letterSpacing} */ | ||
module.exports = { | ||
wider: '.25em', | ||
widest: '.9em', | ||
}; |