Skip to content

Commit

Permalink
feat: add back in product hunt button
Browse files Browse the repository at this point in the history
  • Loading branch information
agrattan0820 committed Nov 16, 2023
1 parent a34a2a5 commit 08bdf12
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 22 deletions.
20 changes: 18 additions & 2 deletions apps/client/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export default async function Home() {
<>
<Header session={session} />
<main className="relative">
<section className="container mx-auto flex min-h-[100dvh] flex-col-reverse items-start justify-center gap-8 px-4 md:items-center lg:flex-row lg:gap-24">
{runningGame && (
<section className="container mx-auto flex min-h-[100dvh] flex-col-reverse items-start justify-center gap-8 px-4 sm:items-center lg:flex-row lg:gap-24">
{runningGame ? (
<div className=" absolute left-1/2 top-16 mx-auto w-full -translate-x-1/2 sm:top-8">
<LinkSecondaryButton
href={`/room/${runningGame.roomCode}/game/${runningGame.id}`}
Expand All @@ -37,6 +37,22 @@ export default async function Home() {
Join Back Into {runningGame ? "Game" : "Room"} <FiLogIn />
</LinkSecondaryButton>
</div>
) : (
<div className="absolute left-1/2 top-16 mx-auto w-full -translate-x-1/2 text-center sm:top-8 lg:hidden">
<a
href="https://www.producthunt.com/posts/artificial-unintelligence?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-artificial&#0045;unintelligence"
target="_blank"
className="mx-auto flex w-full max-w-fit items-center"
>
<img
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=419632&theme=neutral"
alt="Artificial&#0032;Unintelligence - Compete&#0032;to&#0032;create&#0032;the&#0032;funniest&#0032;AI&#0032;images&#0032;in&#0032;this&#0032;party&#0032;game | Product Hunt"
style={{ width: "250px", height: "54px" }}
width="250"
height="54"
/>
</a>
</div>
)}
<div>
<p className="mb-2">The AI Image Party Game</p>
Expand Down
55 changes: 35 additions & 20 deletions apps/client/src/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,41 @@
const Footer = () => {
return (
<footer className="absolute bottom-8 left-1/2 w-full -translate-x-1/2 text-center">
<div className="flex flex-col items-center justify-center gap-2 text-xs sm:text-sm">
<p>
Made with 💜 by{" "}
<a
href="https://github.com/agrattan0820"
className="text-indigo-300 underline underline-offset-2"
>
Alexander
</a>
</p>
<p>
Like the game?{" "}
<a
href="https://www.buymeacoffee.com/agrattan"
className="text-indigo-300 underline underline-offset-2"
>
Buy me a bowl of cereal
</a>{" "}
🥣
</p>
<div className="mx-auto flex w-full items-center justify-center gap-4">
<a
href="https://www.producthunt.com/posts/artificial-unintelligence?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-artificial&#0045;unintelligence"
target="_blank"
className="hidden lg:inline-block"
>
<img
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=419632&theme=neutral"
alt="Artificial&#0032;Unintelligence - Compete&#0032;to&#0032;create&#0032;the&#0032;funniest&#0032;AI&#0032;images&#0032;in&#0032;this&#0032;party&#0032;game | Product Hunt"
style={{ width: "250px", height: "54px" }}
width="250"
height="54"
/>
</a>
<div className="flex flex-col items-center justify-center gap-2 text-left text-xs sm:text-sm lg:items-start">
<p>
Made with 💜 by{" "}
<a
href="https://github.com/agrattan0820"
className="text-indigo-300 underline underline-offset-2"
>
Alexander
</a>
</p>
<p>
Like the game?{" "}
<a
href="https://www.buymeacoffee.com/agrattan"
className="text-indigo-300 underline underline-offset-2"
>
Buy me a bowl of cereal
</a>{" "}
🥣
</p>
</div>
</div>
</footer>
);
Expand Down

0 comments on commit 08bdf12

Please sign in to comment.