2021-12-08 03:38:31 +00:00
|
|
|
import ReactMarkdown from 'react-markdown';
|
2022-09-28 00:52:24 +00:00
|
|
|
|
2021-12-08 03:38:31 +00:00
|
|
|
import ReadmeMd from '../README.md';
|
2022-05-15 13:56:45 +00:00
|
|
|
import License from '../LICENSE.txt';
|
2021-12-08 03:38:31 +00:00
|
|
|
import Layout from '../components/layout';
|
2022-09-28 04:01:03 +00:00
|
|
|
import GitHubProfile from '../components/github-profile';
|
2021-12-08 03:38:31 +00:00
|
|
|
|
2022-09-10 06:43:46 +00:00
|
|
|
function AboutPage({usr}: any) {
|
2021-12-08 03:38:31 +00:00
|
|
|
return (
|
2022-04-28 16:37:12 +00:00
|
|
|
<Layout name='About' title='About PaulW.XYZ'>
|
2021-12-08 03:38:31 +00:00
|
|
|
<section className='block'>
|
2022-05-15 13:56:45 +00:00
|
|
|
<p>This is a personal website written by <a href='https://github.com/LambdaPaul'>@LambdaPaul</a>.</p>
|
|
|
|
<p>Why did I write this?
|
|
|
|
I do not really know, at least the content I put here.
|
2022-09-28 04:01:03 +00:00
|
|
|
I wanted a place on the web where I wanted to put everything I think is worth looking at some point in the future.
|
2022-05-15 13:56:45 +00:00
|
|
|
It seems wise to have things up here even though they may not be worthwhile, as many things ultimately are not.</p>
|
2022-09-28 04:01:03 +00:00
|
|
|
<p>Got any questions, concerns, or issues? Contact me via email: <code>lambdapaul [at] pm [dot] me</code>.</p>
|
2022-05-15 13:56:45 +00:00
|
|
|
</section>
|
2022-09-28 00:52:24 +00:00
|
|
|
<section className='block'>
|
2022-09-28 04:01:03 +00:00
|
|
|
<GitHubProfile user={usr} />
|
2022-09-28 00:52:24 +00:00
|
|
|
</section>
|
2022-05-15 13:56:45 +00:00
|
|
|
<hr />
|
|
|
|
<section className='block'>
|
|
|
|
<p>Source for this site is available at <a className='button link extern blue' href='https://github.com/LambdaPaul/www'>GitHub / LambdaPaul / www</a></p>
|
|
|
|
<p>Relevant information regarding the source is available on the repo and is also provided below.</p>
|
2021-12-08 03:38:31 +00:00
|
|
|
</section>
|
|
|
|
<section className='block'>
|
2022-05-15 13:56:45 +00:00
|
|
|
<h2>README</h2>
|
2022-04-28 16:37:12 +00:00
|
|
|
<ReactMarkdown>
|
|
|
|
{ReadmeMd.replace(/^#{1,5} /g, (s: string) => { return `#${s}` })}
|
|
|
|
</ReactMarkdown>
|
2021-12-08 03:38:31 +00:00
|
|
|
</section>
|
2022-05-15 13:56:45 +00:00
|
|
|
<section className='block'>
|
|
|
|
<h2>LICENSE</h2>
|
2022-09-28 04:01:03 +00:00
|
|
|
<pre className='license'>{License}</pre>
|
2022-09-10 06:43:46 +00:00
|
|
|
</section>
|
2021-12-08 03:38:31 +00:00
|
|
|
</Layout>
|
2022-05-15 13:56:45 +00:00
|
|
|
);
|
2021-12-08 03:38:31 +00:00
|
|
|
}
|
|
|
|
|
2022-09-10 06:43:46 +00:00
|
|
|
export async function getStaticProps() {
|
|
|
|
const res = await fetch('https://api.github.com/users/lambdapaul');
|
|
|
|
const usr = await res.json();
|
|
|
|
|
|
|
|
return {
|
|
|
|
props: { usr }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2021-12-08 03:38:31 +00:00
|
|
|
export default AboutPage;
|