Skip to content

Commit

Permalink
feat: originoid promo (cheeky x)
Browse files Browse the repository at this point in the history
  • Loading branch information
dromzeh committed Dec 1, 2024
1 parent df1dd08 commit f83e030
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { AxiomWebVitals } from "next-axiom";
import Script from "next/script";
import { MobileBottomNav } from "~/components/nav/mobile-bottom-nav";
import { ReduxProvider } from "~/redux/redux-provider-csr";
import { OriginoidPromoDialog } from "~/components/ui/originoid-promo-dialog";

const font = Plus_Jakarta_Sans({
style: "normal",
Expand Down Expand Up @@ -44,6 +45,7 @@ export default function RootLayout({
<AxiomWebVitals />
<ScrollToTop />
<NavBar />
<OriginoidPromoDialog />
{children}
<SiteFooter />
<Toaster />
Expand Down
68 changes: 68 additions & 0 deletions src/components/ui/originoid-promo-dialog.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
"use client";

import * as React from "react";
import { Button } from "./button";
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
} from "./dialog";
import { useEffect, useState } from "react";

export function OriginoidPromoDialog() {
const [isOpen, setIsOpen] = useState(false);

useEffect(() => {
const timer = setTimeout(() => {
setIsOpen(true);
}, 200);

return () => clearTimeout(timer);
}, []);

return (
<Dialog open={isOpen} onOpenChange={setIsOpen}>
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
<DialogTitle className="text-2xl font-bold">
OC Creator or Artist?
</DialogTitle>
<DialogDescription className="pt-4 space-y-4">
<p>
Pre-register for <strong>originoid.co</strong> - a
free platform designed exclusively for creators to
share original characters, artwork, edits, and more,
with cutting-edge copy protection, customization &
linking features.
</p>
<p>
We're offering{" "}
<span className="text-foreground font-semibold">
50% off on all yearly plans
</span>{" "}
before our official release. This one-time
opportunity directly supports continued development
& asset updates for wanderer.moe.
</p>
<div className="flex justify-center pt-2">
<Button
onClick={() => {
window.open(
"https://originoid.co",
"_blank",
);
setIsOpen(false);
}}
className="w-full sm:w-auto"
>
Pre-register Now
</Button>
</div>
</DialogDescription>
</DialogHeader>
</DialogContent>
</Dialog>
);
}

0 comments on commit f83e030

Please sign in to comment.