remove old page, new style for loader, increase debounce time

This commit is contained in:
Michael Freno
2025-12-28 23:21:47 -05:00
parent 4743f1deaf
commit 692f568fd4
4 changed files with 40 additions and 27 deletions

View File

@@ -1,17 +0,0 @@
import { Title, Meta } from "@solidjs/meta";
export default function About() {
return (
<>
<Title>About | Michael Freno</Title>
<Meta
name="description"
content="Learn more about Michael Freno - Software Engineer, game developer, and open source contributor."
/>
<main>
<h1>About</h1>
</main>
</>
);
}

View File

@@ -15,7 +15,7 @@ import { Fire } from "~/components/icons/Fire";
import CommentSectionWrapper from "~/components/blog/CommentSectionWrapper";
import PostBodyClient from "~/components/blog/PostBodyClient";
import type { Comment, CommentReaction, UserPublicData } from "~/types/comment";
import { TerminalSplash } from "~/components/TerminalSplash";
import { Spinner } from "~/components/Spinner";
import { api } from "~/lib/api";
import "../post.css";
@@ -299,7 +299,14 @@ export default function PostPage() {
return (
<>
<Show when={data()} fallback={<TerminalSplash />}>
<Show
when={data()}
fallback={
<div class="flex h-screen items-center justify-center">
<Spinner size="xl" />
</div>
}
>
{(loadedData) => {
// Handle redirect for by-id route
if ("redirect" in loadedData()) {

View File

@@ -169,7 +169,7 @@ export default function LoginPage() {
const result = await response.json();
if (response.ok && result.result?.data) {
navigate("/account");
navigate("/account", { replace: true });
} else {
const errorMsg =
result.error?.message ||
@@ -207,8 +207,7 @@ export default function LoginPage() {
if (response.ok && result.result?.data?.success) {
setShowPasswordSuccess(true);
setTimeout(() => {
navigate(-1); // Go back
window.location.reload(); // Refresh to update session
navigate("/account", { replace: true });
}, 500);
} else {
setShowPasswordError(true);