-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
171061f
commit ae75464
Showing
16 changed files
with
114 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { MetadataRoute } from "next"; | ||
|
||
export default function manifest(): MetadataRoute.Manifest { | ||
return { | ||
name: "Wade Hammes", | ||
short_name: "Wade Hammes", | ||
description: "Wade is a software engineer for Rhythm Energy, helping build the best customer experience in retail renewable energy, and a co-founder of Provisioner, a full-service creative agency helping to grow brands.", | ||
start_url: "/", | ||
display: "standalone", | ||
background_color: "#171717", | ||
theme_color: "#171717", | ||
icons: [ | ||
{ | ||
src: "/favicon.ico", | ||
sizes: "any", | ||
type: "image/x-icon", | ||
}, | ||
], | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Wade Hammes - Software Engineer |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,18 @@ | ||
"use client"; | ||
import type { Metadata } from "next"; | ||
import { HomePage } from "src/components/HomePage/HomePage.component"; | ||
|
||
import { type FC, type ReactElement, useEffect, useState } from "react"; | ||
import { useInView } from "react-intersection-observer"; | ||
import { Bio } from "src/components/Bio/Bio.component"; | ||
import { Footer, FooterActions } from "src/components/Layout"; | ||
import { PageContainer } from "src/components/PageContainer/Page.component"; | ||
import { SpiralsActions } from "src/components/Spirals/SpiralsActions"; | ||
import { SpiralsSVG } from "src/components/Spirals/SpiralsSVG.component"; | ||
import { isBrowser } from "src/utils/helpers"; | ||
|
||
const Home: FC = (): ReactElement => { | ||
const [key, updateKey] = useState<Date>(new Date()); | ||
const [clientReady, setClientReady] = useState<boolean>(false); | ||
const { inView, ref } = useInView({ | ||
triggerOnce: true, | ||
initialInView: true, | ||
fallbackInView: true, | ||
}); | ||
export function generateMetadata(): Metadata { | ||
return { | ||
metadataBase: new URL("https://wadehammes.com/"), | ||
creator: "Wade Hammes", | ||
publisher: "Wade Hammes", | ||
description: "Wade Hammes is a software engineer for Rhythm Energy, helping build the best customer experience in retail renewable energy, and a co-founder of Provisioner, a full-service creative agency helping to grow brands.", | ||
}; | ||
} | ||
|
||
useEffect(() => { | ||
if (isBrowser() && inView) { | ||
setClientReady(true); | ||
} | ||
}, [inView]); | ||
|
||
return ( | ||
<> | ||
<PageContainer ref={ref}> | ||
<Footer> | ||
<Bio /> | ||
<FooterActions> | ||
<SpiralsActions handleClick={updateKey} /> | ||
</FooterActions> | ||
</Footer> | ||
</PageContainer> | ||
{clientReady && <SpiralsSVG key={key.toDateString()} visible={inView} />} | ||
</> | ||
); | ||
const Home = () => { | ||
return <HomePage />; | ||
}; | ||
|
||
export default Home; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { MetadataRoute } from "next"; | ||
|
||
export default function robots(): MetadataRoute.Robots { | ||
return { | ||
rules: { | ||
userAgent: "*", | ||
allow: "/", | ||
}, | ||
sitemap: "https://www.wadehammes.com/sitemap-index.xml", | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
"use client"; | ||
|
||
import { useEffect, useState } from "react"; | ||
import { useInView } from "react-intersection-observer"; | ||
import { Bio } from "src/components/Bio/Bio.component"; | ||
import { Footer, FooterActions } from "src/components/Layout"; | ||
import PageContainer from "src/components/PageContainer/Page.component"; | ||
import SpiralsActions from "src/components/Spirals/SpiralsActions"; | ||
import SpiralsSVG from "src/components/Spirals/SpiralsSVG.component"; | ||
import { isBrowser } from "src/helpers/helpers"; | ||
|
||
export const HomePage = () => { | ||
const [key, updateKey] = useState<Date>(new Date()); | ||
const [clientReady, setClientReady] = useState<boolean>(false); | ||
const { inView, ref } = useInView({ | ||
triggerOnce: true, | ||
initialInView: true, | ||
fallbackInView: true, | ||
}); | ||
|
||
useEffect(() => { | ||
if (isBrowser() && inView) { | ||
setClientReady(true); | ||
} | ||
}, [inView]); | ||
|
||
return ( | ||
<> | ||
<PageContainer ref={ref}> | ||
<Footer> | ||
<Bio /> | ||
<FooterActions> | ||
<SpiralsActions handleClick={updateKey} /> | ||
</FooterActions> | ||
</Footer> | ||
</PageContainer> | ||
{clientReady && <SpiralsSVG key={key.toDateString()} visible={inView} />} | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters