Skip to content
This repository has been archived by the owner on Feb 21, 2025. It is now read-only.

Commit

Permalink
feat: project archived
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Umali committed Feb 21, 2025
1 parent 8cb2c8f commit d6f8099
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions client/app/(landing)/(routes)/login/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ export default function Login() {
const { mutate: mutateRegister, isPending: registerPending } = useRegisterUser();

useEffect(() => {
const redirectString = decodeURIComponent(urlSearchParams.get("redirect") || "/generate");
const redirectString = decodeURIComponent(urlSearchParams.get("redirect") ?? "/generate");

setRedirectTo(redirectString.startsWith("/") ? redirectString : `/${redirectString}`);

const otherParams = new URLSearchParams(urlSearchParams);
const otherParams = new URLSearchParams(urlSearchParams.toString());
otherParams.delete("redirect");
const paramsString = otherParams.toString();

Expand Down
14 changes: 5 additions & 9 deletions client/app/maintenance/maintenance.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
"use client";

import { useRouter } from "next/navigation";

import { Button } from "@/components/ui/button";
import { Label } from "@/components/ui/label";

const Maintenance: React.FC = () => {
const { refresh } = useRouter();

return (
<div className="flex min-h-screen items-center justify-center py-5 sm:py-10">
<div className="p-6 text-center">
<Label className="mb-2 block text-2xl font-bold">Under Maintenance</Label>
<Label className="text-md my-4 block">You can try to refresh the page to see if the issue is resolved.</Label>
<Label className="mb-2 block text-2xl font-bold">Project Archived</Label>
<Label className="text-md my-4 block">This project is archived and will no longer receive updates or new features. However, you can still explore the existing code on GitHub.</Label>
<div className="mt-4 flex flex-col space-y-2">
<Button onClick={refresh} className="w-full border px-4 py-2">
Refresh
</Button>
<a href="https://github.com/Kevin-Umali/diyspire" target="_blank" rel="noopener noreferrer">
<Button className="w-full border px-4 py-2">View on GitHub</Button>
</a>
</div>
</div>
</div>
Expand Down

0 comments on commit d6f8099

Please sign in to comment.