From b857ab2754e7a67c167c01d5498dad94adbf23b0 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Thu, 19 Feb 2026 14:44:29 -0500 Subject: [PATCH] feat: increase GitHub repository limit and enhance styling - Updated repository limit from 12 to 24 in getRepos function. - Added new icons and adjusted styles for better visual consistency in the page component. - Modified text sizes and spacing for improved layout and readability. --- .env.example | 5 ----- app/projects/github.ts | 2 +- app/projects/page.tsx | 30 ++++++++++++++++-------------- components/layout/header.tsx | 2 +- components/layout/menu.tsx | 2 +- components/layout/page-title.tsx | 2 +- 6 files changed, 20 insertions(+), 23 deletions(-) diff --git a/.env.example b/.env.example index c13638b6..03a7ade6 100644 --- a/.env.example +++ b/.env.example @@ -1,8 +1,3 @@ -############### -# IMPORTANT! -# See lib/env.ts for the list of required environment variables and how to get them. -############### - AUTH_GITHUB_CLIENT_ID= AUTH_GITHUB_CLIENT_SECRET= AUTH_SECRET= diff --git a/app/projects/github.ts b/app/projects/github.ts index ccdebb63..c74ed9a5 100644 --- a/app/projects/github.ts +++ b/app/projects/github.ts @@ -117,7 +117,7 @@ export const getRepos = async (): Promise => { { username: process.env.NEXT_PUBLIC_GITHUB_USERNAME, sort: "STARGAZERS", - limit: 12, + limit: 24, headers: { accept: "application/vnd.github.v3+json", authorization: `token ${process.env.GITHUB_TOKEN}`, diff --git a/app/projects/page.tsx b/app/projects/page.tsx index 61637afd..8a8b489f 100644 --- a/app/projects/page.tsx +++ b/app/projects/page.tsx @@ -1,8 +1,7 @@ -import { GitForkIcon, StarIcon } from "lucide-react"; +import { ExternalLinkIcon, GitForkIcon, StarIcon } from "lucide-react"; import { notFound } from "next/navigation"; import { Suspense } from "react"; import { ActivityCalendar } from "@/components/activity-calendar"; -import { GitHubIcon } from "@/components/icons"; import { PageTitle } from "@/components/layout/page-title"; import { RelativeTime } from "@/components/relative-time"; import { Button } from "@/components/ui/button"; @@ -83,23 +82,23 @@ const Page = async () => { href={repo?.url} target="_blank" rel="noopener noreferrer" - className="inline-block font-semibold text-[#0969da] text-base leading-relaxed hover:underline dark:text-[#4493f8]" + className="inline-block font-semibold text-[#0969da] text-base leading-relaxed hover:underline dark:text-[#76affa]" > {repo?.name} {repo?.description && ( -

+

{repo?.description}

)} -
+
{repo?.primaryLanguage && ( -
+
{repo?.primaryLanguage.color && ( { title={`${Intl.NumberFormat(process.env.NEXT_PUBLIC_SITE_LOCALE).format(repo?.stargazerCount)} ${repo?.stargazerCount === 1 ? "star" : "stars"}`} target="_blank" rel="noopener noreferrer" - className="inline-flex flex-nowrap items-center gap-2 text-muted-foreground hover:text-primary hover:no-underline" + className="inline-flex flex-nowrap items-center gap-1.5 text-muted-foreground hover:text-primary hover:no-underline" >
-
+