aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pages/index.tsx
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2021-09-09 13:43:45 -0400
committerKevin J Hoerr <kjhoerr@protonmail.com>2021-09-09 13:43:45 -0400
commita1268eb07b9c16f05c16a95891260b03119e53c2 (patch)
tree4c543006401776cfe300b0abb84f13411b5075ce /src/pages/index.tsx
parent0615a7c6eed7593c4551f697d668c3b91013cfa6 (diff)
downloadsubmelon.dev-a1268eb07b9c16f05c16a95891260b03119e53c2.tar.gz
submelon.dev-a1268eb07b9c16f05c16a95891260b03119e53c2.tar.bz2
submelon.dev-a1268eb07b9c16f05c16a95891260b03119e53c2.zip
Eslint, Prettier, etc
Diffstat (limited to 'src/pages/index.tsx')
-rw-r--r--src/pages/index.tsx30
1 files changed, 11 insertions, 19 deletions
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.