From cf7e85fa6d179b97b9d323bf873c62e11c8087dc Mon Sep 17 00:00:00 2001 From: Paul W Date: Sat, 10 Sep 2022 02:43:46 -0400 Subject: [PATCH] Add basic GitHub acc. info on about page --- pages/about.tsx | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) 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;