Skip to content

Commit 87a360d

Browse files
committed
fix(config, dependencies, pages, components): update next.config for supabase, upgrade dependencies, enhance layout in blog and trending pages, and improve navbar styling
1 parent 9f5d701 commit 87a360d

File tree

6 files changed

+19
-12
lines changed

6 files changed

+19
-12
lines changed

next.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ const nextConfig: NextConfig = {
1313
hostname: "lh3.googleusercontent.com",
1414
pathname: "/**",
1515
},
16+
{
17+
protocol: "https",
18+
hostname: "aqdmihqntpulvkgwrmwb.supabase.co",
19+
pathname: "/**",
20+
},
1621
],
1722
},
1823
};

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,25 @@
1616
"@react-spring/web": "9.7.5",
1717
"@supabase/ssr": "^0.6.1",
1818
"@supabase/supabase-js": "^2.49.4",
19-
"framer-motion": "^12.6.3",
19+
"date-fns": "^4.1.0",
20+
"framer-motion": "^12.10.5",
2021
"lucide-react": "0.475.0",
2122
"next": "15.2.5",
2223
"next-themes": "^0.4.6",
2324
"react": "^18.3.1",
2425
"react-dom": "^18.3.1",
25-
"react-hook-form": "^7.56.1",
26-
"zod": "^3.24.3",
26+
"react-hook-form": "^7.56.3",
27+
"react-intersection-observer": "^9.16.0",
28+
"zod": "^3.24.4",
2729
"zustand": "5.0.3"
2830
},
2931
"devDependencies": {
30-
"@eslint/eslintrc": "^3",
31-
"@types/node": "^20",
32-
"@types/react": "^19",
32+
"@eslint/eslintrc": "^3.3.1",
33+
"@types/node": "^20.17.46",
34+
"@types/react": "^19.1.3",
3335
"@types/react-dom": "^19",
3436
"autoprefixer": "^10.4.21",
35-
"eslint": "^9",
37+
"eslint": "^9.26.0",
3638
"eslint-config-next": "15.2.5",
3739
"postcss": "^8.5.3",
3840
"tailwindcss": "3.4.17",

src/app/(public)/blog/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const metadata: Metadata = {
1010

1111
export default function BlogPage() {
1212
return (
13-
<main className="max-w-screen-xl mx-auto p-4">
13+
<main className="max-w-screen-xl mx-auto p-4 flex flex-col gap-4">
1414
<Heading title="Blog" subtitle="Articles and posts" />
1515
<p>
1616
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae tenetur

src/app/(public)/trending/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default async function TrendingPage() {
1515
if (resources.length === 0) return <div>No resources found</div>;
1616

1717
return (
18-
<main className="max-w-screen-xl mx-auto p-4">
18+
<main className="max-w-screen-xl mx-auto p-4 flex flex-col gap-4">
1919
<Heading
2020
title="Trending"
2121
subtitle="Trending resources among developers"

src/components/layout/navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function Navbar() {
1313
const { user } = useAuthUser();
1414

1515
return (
16-
<nav className="sticky top-0 z-20 flex items-center justify-between gap-2 px-4 py-4 bg-white dark:bg-neutral-950">
16+
<nav className="sticky top-0 z-20 flex items-center justify-between gap-2 px-4 py-4 bg-white dark:bg-neutral-950 border-b-2 border-neutral-200 dark:border-neutral-800">
1717
<div className="flex items-center gap-4">
1818
<Button
1919
isIconOnly

src/components/ui/heading.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ export default function Heading({
1313

1414
return (
1515
<header className="flex flex-col gap-2">
16-
<HeadingTag className="text-3xl md:text-4xl font-bold text-neutral-950 dark:text-white">
16+
<HeadingTag className="text-3xl md:text-4xl font-bold tracking-tight text-neutral-950 dark:text-white">
1717
{title}
1818
</HeadingTag>
19-
<p className="text-neutral-500">{subtitle}</p>
19+
<p className="text-neutral-500 font-medium">{subtitle}</p>
2020
</header>
2121
);
2222
}

0 commit comments

Comments
 (0)