-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSocialList.tsx
More file actions
35 lines (34 loc) · 826 Bytes
/
SocialList.tsx
File metadata and controls
35 lines (34 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React from "react";
import Twitter from "../assets/twitter-alt.svg";
import GitHub from "../assets/github-alt.svg";
import config from "../lib/config";
export function SocialList({}) {
return (
<div>
<a
title="Twitter"
href={`https://twitter.com/${config.twitter_account}`}
target="_blank"
rel="noopener"
>
<Twitter width={24} height={24} fill={"#222"} />
</a>
<a
title="GitHub"
href={`https://github.com/${config.github_account}`}
target="_blank"
rel="noopener"
>
<GitHub width={24} height={24} fill={"#222"} />
</a>
<style jsx>{`
a {
display: inline-block;
}
a:not(:last-child) {
margin-right: 2em;
}
`}</style>
</div>
);
}