@ -1,11 +0,0 @@ |
|||||||
import { SocialLink } from '../interfaces/social-link.model'; |
|
||||||
|
|
||||||
interface Props { |
|
||||||
// eslint-disable-next-line react/no-unused-prop-types
|
|
||||||
links: SocialLink[]; |
|
||||||
} |
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
export default function SocialLinks(props: Props) { |
|
||||||
return <div>Social links component goes here</div>; |
|
||||||
} |
|
@ -0,0 +1,9 @@ |
|||||||
|
.logo { |
||||||
|
width: 120px; |
||||||
|
border-radius: 50%; |
||||||
|
border-width: 3px; |
||||||
|
border-style: solid; |
||||||
|
border-color: var(--theme-primary-color); |
||||||
|
background-color: var(--theme-background-secondary); |
||||||
|
padding: 3px; |
||||||
|
} |
@ -0,0 +1,5 @@ |
|||||||
|
import s from './Logo.module.scss'; |
||||||
|
|
||||||
|
export default function SocialLinks() { |
||||||
|
return <img className={s.logo} src="/logo" alt="logo" />; |
||||||
|
} |
@ -0,0 +1,11 @@ |
|||||||
|
.link { |
||||||
|
width: 2em; |
||||||
|
margin-left: 4px; |
||||||
|
margin-right: 4px; |
||||||
|
} |
||||||
|
|
||||||
|
.links { |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
justify-content: flex-end; |
||||||
|
} |
@ -0,0 +1,21 @@ |
|||||||
|
import { SocialLink } from '../../../interfaces/social-link.model'; |
||||||
|
import s from './SocialLinks.module.scss'; |
||||||
|
|
||||||
|
interface Props { |
||||||
|
// eslint-disable-next-line react/no-unused-prop-types
|
||||||
|
links: SocialLink[]; |
||||||
|
} |
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
export default function SocialLinks(props: Props) { |
||||||
|
const { links } = props; |
||||||
|
return ( |
||||||
|
<div className={s.links}> |
||||||
|
{links.map(link => ( |
||||||
|
<a key={link.platform} href={link.url} className={s.link} target="_blank" rel="noreferrer"> |
||||||
|
<img src={link.icon} alt={link.platform} title={link.platform} className={s.link} /> |
||||||
|
</a> |
||||||
|
))} |
||||||
|
</div> |
||||||
|
); |
||||||
|
} |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 2.4 KiB |