aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pages
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/404.tsx2
-rw-r--r--src/pages/index.tsx30
2 files changed, 12 insertions, 20 deletions
diff --git a/src/pages/404.tsx b/src/pages/404.tsx
index fd99104..0f6164c 100644
--- a/src/pages/404.tsx
+++ b/src/pages/404.tsx
@@ -25,7 +25,7 @@ const codeStyles = {
};
// markup
-const NotFoundPage = () => {
+const NotFoundPage = (): React.ReactElement => {
return (
<main style={pageStyles}>
<title>Not found</title>
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index bfd11c8..ee95918 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -81,23 +81,15 @@ function toShort(valu: number): string {
function getTimestamp(seconds: number): string {
const date = new Date(seconds * 1000);
- const year = date.getUTCFullYear();
- const month = date.getUTCMonth();
- const day = date.getUTCDate();
- const hour = date.getUTCHours();
- const minute = date.getUTCMinutes();
- return (
- toShort(year) +
- "." +
- toShort(month) +
- "." +
- toShort(day) +
- "." +
- toShort(hour) +
- "." +
- toShort(minute) +
- "-0"
- );
+ const dateArr = [
+ date.getUTCFullYear(),
+ date.getUTCMonth(),
+ date.getUTCDate(),
+ date.getUTCHours(),
+ date.getUTCMinutes(),
+ ];
+
+ return dateArr.map(toShort).join(".") + "-0";
}
// styles
@@ -193,7 +185,7 @@ const StyledContainer = styled.div`
`;
// markup
-const IndexPage = () => {
+const IndexPage = (): React.ReactElement => {
return (
<main>
<SEO title="Kevin J Hoerr <kjhoerr@submelon.tech>" />
@@ -212,7 +204,7 @@ const IndexPage = () => {
<div id="tagline">Hello!</div>
<div id="info">
<p>
- I'm a computer science and math graduate from Millersville
+ I&apos;m a computer science and math graduate from Millersville
University. I work as an IT consultant and specialize in
development operations and systems validation for web
applications.