diff --git a/client/src/pages/News.jsx b/client/src/pages/News.jsx index de98806..5044364 100644 --- a/client/src/pages/News.jsx +++ b/client/src/pages/News.jsx @@ -105,7 +105,7 @@ const News = () => { return (
setHoveredCard(news.id)} onMouseLeave={() => setHoveredCard(null)} @@ -176,24 +176,24 @@ const News = () => { > {news.category} -
+
{news.date}
{/* Title */} -

+

{news.title}

{/* Description */} -

{news.description}

+

{news.description}

{/* Footer */}
-
+
{news.readTime}
@@ -202,14 +202,14 @@ const News = () => { href={news.link} target="_blank" rel="noopener noreferrer" - className="flex items-center text-indigo-600 hover:text-indigo-800 font-medium transition-colors duration-300 group/btn" + className="flex items-center text-indigo-400 hover:text-indigo-300 font-medium transition-colors duration-300 group/btn" > Read More
-
+
{news.author @@ -217,7 +217,7 @@ const News = () => { .map((n) => n[0]) .join("")}
- By {news.author} + By {news.author}
@@ -227,7 +227,7 @@ const News = () => { }; return ( -
+
{/* Header */}
diff --git a/client/src/pages/SignIn.jsx b/client/src/pages/SignIn.jsx index 6fb29a5..04ddc3a 100644 --- a/client/src/pages/SignIn.jsx +++ b/client/src/pages/SignIn.jsx @@ -232,8 +232,6 @@ export default function Signin() { // The old, now-missing route: window.location.href = `${backendUrl}/api/github/oauth/login`; }; - - const validateForm = () => { const newErrors = {}; @@ -362,12 +360,6 @@ export default function Signin() { setErrors((prev) => ({ ...prev, [name]: "" })); } }; - - const handleGitHubLogin = () => { - console.log("GitHub login clicked"); - //implement GitHub OAuth login logic here later -}; - return ( <> diff --git a/client/src/routes/routes.jsx b/client/src/routes/routes.jsx index f4c7072..efca0a9 100644 --- a/client/src/routes/routes.jsx +++ b/client/src/routes/routes.jsx @@ -38,7 +38,6 @@ const router = createBrowserRouter([ children: [ { index: true, element: }, { path: "about", element: }, - { path: "blog", element: }, { path: "contactus", element: }, { path: "news", element: }, { path: "contributors", element: }, @@ -55,28 +54,6 @@ const router = createBrowserRouter([ }, ], }, - - { - - path: "care-co-pilot", - element: , - }, - { - path: "*", - element: , - handle: { noLayout: true }, - }, - - { - path: "babyfeeder", - element: , - }, - { - path: "sleeper", - element: , - - }, - { path: "learning-hub", element: }, { path: "vaccine-reminder", element: }, { path: "growth-tracker", element: }, @@ -84,10 +61,7 @@ const router = createBrowserRouter([ { path: "terms-of-service", element: }, { path: "cookie-policy", element: }, { path: "services", element: }, - { path: "github-login-redirect", element: }, - { path: "*", element: , handle: { noLayout: true } }, - ], }, { @@ -101,5 +75,4 @@ const router = createBrowserRouter([ { path: "/oauth-success", element: } ]); -export default router; - +export default router; \ No newline at end of file