;
@@ -28,7 +27,8 @@ const BarsContext = createContext<{
setRightBarSize: () => {},
centerWidth: () => 0,
setCenterWidth: () => {},
- leftBarVisible: () => true,
+ leftBarVisible: () =>
+ typeof window !== "undefined" ? window.innerWidth >= 768 : true,
setLeftBarVisible: () => {},
rightBarVisible: () => true,
setRightBarVisible: () => {},
@@ -45,12 +45,13 @@ export function BarsProvider(props: { children: any }) {
const [_rightBarNaturalSize, _setRightBarNaturalSize] = createSignal(0);
const [syncedBarSize, setSyncedBarSize] = createSignal(0);
const [centerWidth, setCenterWidth] = createSignal(0);
- const [leftBarVisible, _setLeftBarVisible] = createSignal(true);
- const [rightBarVisible, _setRightBarVisible] = createSignal(true);
+ const initialWindowWidth =
+ typeof window !== "undefined" ? window.innerWidth : 1024;
+ const isMobile = initialWindowWidth < 768;
+ const [leftBarVisible, setLeftBarVisible] = createSignal(!isMobile);
+ const [rightBarVisible, setRightBarVisible] = createSignal(true);
const [barsInitialized, setBarsInitialized] = createSignal(false);
- const [windowWidth, setWindowWidth] = createSignal(
- typeof window !== "undefined" ? window.innerWidth : 1024
- );
+ const [windowWidth, setWindowWidth] = createSignal(initialWindowWidth);
let leftBarSized = false;
let rightBarSized = false;
@@ -82,6 +83,16 @@ export function BarsProvider(props: { children: any }) {
}
};
+ // Initialize immediately on mobile if left bar starts hidden
+ onMount(() => {
+ const isMobile = typeof window !== "undefined" && window.innerWidth < 768;
+ if (isMobile && !leftBarVisible()) {
+ // Skip waiting for left bar size on mobile when it starts hidden
+ leftBarSized = true;
+ checkAndSync();
+ }
+ });
+
const wrappedSetRightBarSize = (size: number) => {
if (!barsInitialized()) {
// Before initialization, capture natural size
@@ -124,16 +135,6 @@ export function BarsProvider(props: { children: any }) {
return barsInitialized() ? syncedBarSize() : naturalSize;
});
- // Wrap visibility setters with haptic feedback
- const setLeftBarVisible = (visible: boolean) => {
- hapticFeedback(50);
- _setLeftBarVisible(visible);
- };
-
- const setRightBarVisible = (visible: boolean) => {
- hapticFeedback(50);
- _setRightBarVisible(visible);
- };
return (
{
+ const renderTime = ({ remainingTime }: { remainingTime: number }) => {
return (
-
{time.toFixed(0)}
+
{remainingTime.toFixed(0)}
);
};
diff --git a/src/routes/index.tsx b/src/routes/index.tsx
index 8e24981..f8ed636 100644
--- a/src/routes/index.tsx
+++ b/src/routes/index.tsx
@@ -42,6 +42,9 @@ export default function Home() {
here (github).
+
+ If you want to get in touch, check to side bar for various links.
+
Some of my recent projects:
diff --git a/src/routes/login/index.tsx b/src/routes/login/index.tsx
index 32478e1..b0d4ffc 100644
--- a/src/routes/login/index.tsx
+++ b/src/routes/login/index.tsx
@@ -272,10 +272,10 @@ export default function LoginPage() {
};
// Countdown timer render function
- const renderTime = () => {
+ const renderTime = ({ remainingTime }: { remainingTime: number }) => {
return (
-
{countDown().toFixed(0)}
+
{remainingTime.toFixed(0)}
);
};
diff --git a/src/routes/login/password-reset.tsx b/src/routes/login/password-reset.tsx
index 8c5f619..aa3ba90 100644
--- a/src/routes/login/password-reset.tsx
+++ b/src/routes/login/password-reset.tsx
@@ -181,8 +181,8 @@ export default function PasswordResetPage() {
name="description"
content="Set a new password for your account to regain access to your profile and personalized features."
/>
-
-
+
+
Set New Password
@@ -277,8 +277,8 @@ export default function PasswordResetPage() {
class={`${
passwordChangeLoading() || !passwordsMatch()
? "cursor-not-allowed bg-zinc-400"
- : "bg-blue-400 hover:bg-blue-500 active:scale-90 dark:bg-blue-600 dark:hover:bg-blue-700"
- } my-6 flex justify-center rounded px-4 py-2 font-medium text-white transition-all duration-300 ease-out`}
+ : "bg-blue hover:brightness-125 active:scale-90"
+ } my-6 flex justify-center rounded px-4 py-2 text-base font-medium transition-all duration-300 ease-out`}
>
{passwordChangeLoading() ? "Setting..." : "Set New Password"}
@@ -303,7 +303,7 @@ export default function PasswordResetPage() {
{/* Error Message */}
@@ -311,11 +311,11 @@ export default function PasswordResetPage() {