From 58d132139ba8d5fa17c8681a0275047ce4cca809 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 3 Dec 2025 03:51:29 +0900 Subject: feat(frontend): design update --- frontend/src/pages/Login.tsx | 101 +++++++++++++++++++--------------- frontend/src/pages/NotFound.tsx | 16 +++++- frontend/src/pages/ReadArticles.tsx | 18 ++++-- frontend/src/pages/Settings.tsx | 21 +++---- frontend/src/pages/UnreadArticles.tsx | 20 +++++-- 5 files changed, 104 insertions(+), 72 deletions(-) (limited to 'frontend/src/pages') diff --git a/frontend/src/pages/Login.tsx b/frontend/src/pages/Login.tsx index 4d81234..76a775a 100644 --- a/frontend/src/pages/Login.tsx +++ b/frontend/src/pages/Login.tsx @@ -25,51 +25,64 @@ export function Login() { }; return ( -
-
-

Feedaka Login

-
-
- - setUsername(e.target.value)} - required - className="w-full p-2 border border-gray-300 rounded disabled:opacity-70 disabled:cursor-not-allowed" - disabled={isLoading} - /> -
-
- - setPassword(e.target.value)} - required - className="w-full p-2 border border-gray-300 rounded disabled:opacity-70 disabled:cursor-not-allowed" - disabled={isLoading} - /> -
- {error && ( -
- {error} +
+
+
+

+ feedaka +

+

Sign in to your account

+
+
+ +
+ + setUsername(e.target.value)} + required + className="w-full rounded-lg border border-stone-200 bg-white px-4 py-2.5 text-sm text-stone-900 transition-all duration-200 placeholder:text-stone-400 focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-500/20 disabled:cursor-not-allowed disabled:opacity-70" + disabled={isLoading} + />
- )} - - +
+ + setPassword(e.target.value)} + required + className="w-full rounded-lg border border-stone-200 bg-white px-4 py-2.5 text-sm text-stone-900 transition-all duration-200 placeholder:text-stone-400 focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-500/20 disabled:cursor-not-allowed disabled:opacity-70" + disabled={isLoading} + /> +
+ {error && ( +
+ {error} +
+ )} + + +
); diff --git a/frontend/src/pages/NotFound.tsx b/frontend/src/pages/NotFound.tsx index 23c1184..adc782b 100644 --- a/frontend/src/pages/NotFound.tsx +++ b/frontend/src/pages/NotFound.tsx @@ -1,14 +1,24 @@ +import { Link } from "wouter"; + export function NotFound() { return (
-

404

-

+

+ 404 +

+

Page Not Found

-

+

The page you're looking for doesn't exist.

+ + Go back home +
); diff --git a/frontend/src/pages/ReadArticles.tsx b/frontend/src/pages/ReadArticles.tsx index ccbd2dc..f90c3c9 100644 --- a/frontend/src/pages/ReadArticles.tsx +++ b/frontend/src/pages/ReadArticles.tsx @@ -11,19 +11,27 @@ export function ReadArticles() { }); if (fetching) { - return
Loading read articles...
; + return ( +
+

Loading read articles...

+
+ ); } if (error) { - return
Error: {error.message}
; + return ( +
+ Error: {error.message} +
+ ); } return (
-
-

Read Articles

+
+

Read

{data?.readArticles && ( -

+

{data.readArticles.length} article {data.readArticles.length !== 1 ? "s" : ""}

diff --git a/frontend/src/pages/Settings.tsx b/frontend/src/pages/Settings.tsx index b10cbf1..9b1e04c 100644 --- a/frontend/src/pages/Settings.tsx +++ b/frontend/src/pages/Settings.tsx @@ -16,24 +16,17 @@ export function Settings() { }; return ( -
-

Feed Settings

- - {/* Subscribe to New Feed Section */} -
-

- Subscribe to New Feed -

+
+
-
+ - {/* Manage Feeds Section */} -
-

- Manage Feeds +
+

+ Your Feeds

-

+
); } diff --git a/frontend/src/pages/UnreadArticles.tsx b/frontend/src/pages/UnreadArticles.tsx index dc4c377..28cc8b5 100644 --- a/frontend/src/pages/UnreadArticles.tsx +++ b/frontend/src/pages/UnreadArticles.tsx @@ -11,21 +11,29 @@ export function UnreadArticles() { }); if (fetching) { - return
Loading unread articles...
; + return ( +
+

Loading unread articles...

+
+ ); } if (error) { - return
Error: {error.message}
; + return ( +
+ Error: {error.message} +
+ ); } return (
-
-

Unread Articles

+
+

Unread

{data?.unreadArticles && ( -

+

{data.unreadArticles.length} article - {data.unreadArticles.length !== 1 ? "s" : ""} + {data.unreadArticles.length !== 1 ? "s" : ""} to read

)}
-- cgit v1.2.3-70-g09d2