From d00083ce8834a3f532022a734fabd4d59f7ba09a Mon Sep 17 00:00:00 2001 From: PranavU-Coder Date: Wed, 14 Oct 2026 21:20:06 +0530 Subject: [PATCH 1/2] feat: add vercel-analytics module & improve detail of map bento grid --- README.md | 4 - app/layout.tsx | 2 + app/page.tsx | 2 +- components/authors/AuthorCard.tsx | 4 +- components/blog/BlogCard.tsx | 3 +- components/blog/PostMeta.tsx | 3 +- components/blog/PostNavigation.tsx | 4 +- components/common/Breadcrumbs.tsx | 4 +- components/common/TransitionLink.tsx | 30 --- components/home/KarnatakaMap.tsx | 265 ++++++++++++++++++++++----- components/home/LinkCell.tsx | 2 +- components/layout/Layout.tsx | 79 ++------ components/layout/NavLinks.tsx | 15 +- package.json | 3 +- pnpm-lock.yaml | 98 ++++------ styles/globals.css | 75 +++++++- 16 files changed, 350 insertions(+), 243 deletions(-) delete mode 100644 components/common/TransitionLink.tsx diff --git a/README.md b/README.md index 9dbd4c5..6ebf10f 100644 --- a/README.md +++ b/README.md @@ -85,10 +85,6 @@ Add server endpoints as Route Handlers in `app/**/route.ts`, using the Web `Requ Use a deployment that supports the Next.js Node.js runtime when adding Route Handlers or request-time server rendering. -## Page transitions - -Internal site links use `components/common/TransitionLink` and `next-transition-router` to finish the current page's exit animation before navigating, then reset scroll and animate the new page in. The shared header and footer stay mounted. Browser Back/Forward uses native navigation and scroll restoration without page transitions. Use the transition-aware Link with `scroll={false}` when adding site navigation; external links and Markdown anchors retain normal browser behavior. - ## Contributing React, Next.js, TypeScript, Tailwind CSS, and basic HTML knowledge are useful. Contributions to content and bug reports are welcome too. diff --git a/app/layout.tsx b/app/layout.tsx index c232082..f395526 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,3 +1,4 @@ +import { SpeedInsights } from '@vercel/speed-insights/next'; import type { Metadata } from 'next'; import type { ReactNode } from 'react'; import ThemeScript from '@/components/common/ThemeScript'; @@ -20,6 +21,7 @@ export default function RootLayout({ children }: { children: ReactNode }) { } footer={