Skip to content

Repository files navigation

RDPR Karnataka — modern public website

A server-rendered, bilingual redesign of the Rural Development and Panchayat Raj Department, Government of Karnataka website. It keeps the department’s public content structure while presenting it through a modern, formal, information-dense interface.

Project status: Public-facing redesign prototype built from official public information. This repository is not the official Government of Karnataka website.

Preview

English RDPR homepage

Kannada RDPR homepage on mobile

Included

  • English (/en) and Kannada (/kn) routes with page-preserving language switching
  • SSR homepage, section indexes, detail pages, search, contact, and public policies
  • Real public notices, documents, services, helplines, and official outbound links
  • Category filtering for information-dense sections
  • WCAG-focused keyboard navigation, visible focus, resizable text, high contrast, reduced motion, semantic landmarks, and automated axe checks
  • Local official Government of Karnataka emblem and RDPR programme photographs
  • Route metadata, localized sitemap, robots rules, and GovernmentOrganization JSON-LD

Technology

  • Next.js 16 App Router and React 19
  • TypeScript
  • Tailwind CSS 4
  • Vitest, Testing Library, and axe-core

Routes

Route Purpose
/en, /kn Localized homepages
/[locale]/[section] Department, Panchayat Raj, rural development, documents, services, and media indexes
/[locale]/[section]/[slug] Public information and document detail pages
/[locale]/search?q=... Server-rendered content search
/[locale]/contact Department contact channels and helplines
/[locale]/policies/[policy] Accessibility and privacy policies

Run locally

Use Node.js 20.9 or newer.

npm ci
npm run dev

Open http://localhost:3000; the locale proxy redirects to /en by default.

Verification

npm run verify

Individual checks are also available:

npm run lint
npm run typecheck
npm run test -- --run
npm run build

The full verification command checks linting, generated route types, all component/content/accessibility tests, and the optimized production build.

Project structure

app/          Next.js routes, metadata, sitemap, robots, and global design tokens
components/   Homepage, content pages, search, navigation, and accessibility controls
content/      Curated English and Kannada public-information catalogue
lib/          Content lookup, search, localization, and route helpers
public/       Local imagery and official visual assets
tests/        Unit, accessibility, routing, search, content, SEO, and smoke tests
docs/         Source inventory and design documentation

Content model

Public information is stored as a curated bilingual snapshot in content/. Runtime page rendering does not scrape the legacy site. Each item keeps a verified official source URL so visitors can open the original government document or authorised service.

The snapshot date and source inventory are documented in docs/content-sources.md. Deployment configuration is intentionally left open for the hosting environment selected later.

Attribution

Department names, public notices, official links, programme information, photographs, and government marks remain the property of their respective public authorities. They are included here solely to demonstrate the redesigned public-service experience.

About

Modern bilingual SSR redesign of Karnataka RDPR built with Next.js, React, TypeScript and Tailwind CSS

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages