diff --git a/pages/about.tsx b/pages/about.tsx index 5e84a72..444d984 100644 --- a/pages/about.tsx +++ b/pages/about.tsx @@ -3,7 +3,13 @@ import ReadmeMd from '../README.md'; import License from '../LICENSE.txt'; import Layout from '../components/layout'; -function AboutPage() { +function AboutPage({usr}: any) { + const styUsr = { + fontFamily: 'monospace', + backgroundColor: '#333333', + fontSize: '.8rem', + padding: '.1rem .5rem', + }; return (
@@ -29,8 +35,42 @@ function AboutPage() {

LICENSE

{License}
+ {/* make this a pretty component with more info */} +
+ + + + + + + + + + + + + + + + + + + + + +
Github Profile
Name{usr.login}
Link{usr.html_url}
Location{usr.location}
About{usr.bio}
+
); } +export async function getStaticProps() { + const res = await fetch('https://api.github.com/users/lambdapaul'); + const usr = await res.json(); + + return { + props: { usr } + }; +} + export default AboutPage;