Compare commits

..
Author SHA1 Message Date
Hafid Nur 0017aff5f4 feat(hackathon): dark mode for user page 2025-11-27 16:08:39 +07:00
Hafid Nur e52776e68a Merge branch 'develop' into hackathon/fix-ui 2025-11-27 15:51:06 +07:00
Hafid Nur cd06a71a9e feat(hackathon): change "edit profile" to modal dialog
- Add "edit profile" modal dialog that can be triggered from dashboard
- Update background overlay for dark mode
- Update dark mode for auth callback
2025-11-27 15:42:18 +07:00
Hafid Nur 0fcd93cb7d feat(hackathon): update dark mode onboarding and edit profile 2025-11-27 14:59:22 +07:00
Hafid Nur 3470853858 feat(hackathon): update team page
- update dark mode color scheme for team page: view, team edit,
  and submit project page
- fix bug in chat where messages are displayed double
- make the form field size consistent
2025-11-27 14:53:38 +07:00
Hafid Nur ff9a02c020 feat(hackathon): browse team page
- update dark mode color scheme
- add some border style to give outline and depth
- change emoji to icon
2025-11-27 13:28:38 +07:00
Hafid Nur f81a7c334e feat(hackathon): dashboard UI improvement and dark mode adjustment 2025-11-27 13:06:13 +07:00
Hafid Nur 2700f7cbb7 feat(hackathon): update auth page dark mode color scheme 2025-11-27 12:02:23 +07:00
Hafid Nur cfcdfa527c feat(hackathon): update landing page dark mode color scheme 2025-11-27 12:01:50 +07:00
Hafid Nur c6579d5295 Merge branch 'develop' into hackathon/fix-ui 2025-11-27 11:20:12 +07:00
Hafid Nur a1640cfe1d Merge branch 'develop' into hackathon/fix-ui 2025-11-26 16:38:22 +07:00
Hafid Nur 00df69fb93 fix: optimize placeholder banner image & minor fix dark mode 2025-11-26 16:35:49 +07:00
Hafid Nur 810dbaa0ca Merge branch 'develop' into hackathon/fix-ui 2025-11-26 16:30:52 +07:00
Hafid Nur cb09709800 feat(hackathon): update UI
- Update dashboard, onboarding user, edit profile, and team layout
  to make it more consistent
2025-11-26 15:51:38 +07:00
Hafid Nur 7e385c6385 fix: landing navbar not sticky to top, fix onboarding UI 2025-11-26 14:33:17 +07:00
Hafid Nur 19aa5bb452 Merge branch 'develop' into hackathon/fix-ui 2025-11-26 14:27:32 +07:00
Hafid Nur e8de897dc9 Merge branch 'develop' into hackathon/fix-ui 2025-11-26 13:51:51 +07:00
Muhammad Zakir Ramadhan eff89d28ed feat: add image loading state and skeleton UI for team dashboard 2025-11-25 20:17:48 +07:00
Maulana SodiqinandGitHub b75a88677a Merge branch 'develop' into hackathon/fix-ui 2025-11-25 19:58:59 +07:00
Hafid Nur 7642fef3e6 chore: update UI for signup and login
- add back button for better UX
2025-11-25 18:57:03 +07:00
Hafid Nur f40e0e35b9 chore: update landing page 2025-11-25 18:29:04 +07:00
Hafid Nur c6c0d6fded Merge branch 'develop' into hackathon/fix-ui 2025-11-25 17:54:41 +07:00
Hafid Nur fcaa449630 chore: remove react-helmet-async 2025-11-25 15:37:47 +07:00
Hafid Nur 4988980384 Merge branch 'develop' into hackathon/fix-ui 2025-11-25 15:23:03 +07:00
Hafid Nur 9547d34f5c feat: Add favicon and SEO (JSON-LD schema, meta tags)
- Add favicon image
- Add JSON-LD schema for Hackathon event
- Add react-helmet-async for managing meta tags
2025-11-25 15:20:10 +07:00
Hafid Nur aeb23a7255 feat: update landing page 2025-11-25 15:05:37 +07:00
2 changed files with 4 additions and 38 deletions
+4 -17
View File
@@ -1,9 +1,4 @@
import {
Outlet,
ScrollRestoration,
useLocation,
useNavigate,
} from 'react-router-dom';
import { Outlet, ScrollRestoration, useLocation, useNavigate } from 'react-router-dom';
import { useEffect, useState } from 'react';
import { supabase } from '@imphnen-frontend-service/service';
@@ -32,21 +27,14 @@ export default function RootLayout() {
}
// Check Supabase session
const {
data: { session },
error,
} = await supabase.auth.getSession();
const { data: { session }, error } = await supabase.auth.getSession();
if (error) {
console.error('[Layout] Session error:', error);
}
// Public auth pages (login, signup, forgot-password, reset-password) - allow unauthenticated access
const isPublicAuthPage = pathname === '/maintenance';
// pathname === '/auth/login' ||
// pathname === '/auth/signup' ||
// pathname === '/auth/forgot-password' ||
// pathname === '/auth/reset-password';
const isPublicAuthPage = pathname === '/auth/login' || pathname === '/auth/signup' || pathname === '/auth/forgot-password' || pathname === '/auth/reset-password';
if (isPublicAuthPage) {
// If already authenticated and not on password reset pages, redirect to dashboard
@@ -68,8 +56,7 @@ export default function RootLayout() {
// Require authentication for all other routes
if (!session) {
navigate('/maintenance', { replace: true });
// navigate('/auth/login', { replace: true });
navigate('/auth/login', { replace: true });
setIsChecking(false);
return;
}
@@ -1,21 +0,0 @@
export default function MaintenancePage() {
return (
<div className="flex justify-center items-center min-h-screen bg-gray-50 dark:bg-gray-950 px-4">
<div className="text-center">
<h1 className="text-6xl font-bold text-yellow-600 mb-4">🚧</h1>
<h2 className="text-3xl font-semibold mb-2">We'll be back soon!</h2>
<p className="text-gray-600">
Our site is currently undergoing scheduled maintenance.
<br />
Thank you for your patience.
</p>
<a
href="/"
className="mt-4 inline-block text-primary-600 hover:underline"
>
Back to Homepage
</a>
</div>
</div>
);
}