React Router DOM has been fully integrated into your RailDevHub project with proper navigation and a dedicated Projects page.
npm install react-router-domNew pages/ directory created:
src/pages/LandingPage.jsx- Home page with all sectionssrc/pages/ProjectsPage.jsx- Dedicated projects showcase
src/main.jsx: Wrapped app with BrowserRouter
src/App.jsx: Configured routes:
/β LandingPage/projectsβ ProjectsPage
src/components/Hero.jsx:
- "See Our Projects" button now uses
<Link to="/projects"> - Routes to
/projectsinstead of hash link
src/components/Header.jsx:
- Logo links to home page with
<Link to="/"> - Navigation menu updated:
- Home β Routes to
/ - Expertise β Hash link
#expertise - Projects β Routes to
/projects - About β Hash link
#about
- Home β Routes to
- Active route highlighting with cyan color
- Mobile menu updated with same routing logic
Complete projects page with:
- Header Section: "Our Projects" title with animated background
- RayNext Section: Digital Railway Management System
- 4 key features
- 12 technology badges (Java, Spring Boot, React, TypeScript, PostgreSQL, Redis, Docker, Kubernetes, GraphQL, WebSocket, AWS, Microservices)
- Dashboard mockup visualization
- RayData Section: Advanced Analytics & BI Platform
- 4 key features
- 13 technology badges (Python, Django, TensorFlow, Apache Kafka, TimescaleDB, InfluxDB, D3.js, Plotly, Pandas, NumPy, Azure AI, Power BI API, Elasticsearch)
- Analytics dashboard mockup
- Impact Metrics: 4 key statistics with detailed breakdown
- CTA Section: Call-to-action with two buttons
URL: http://localhost:5173/
Sections:
- Hero - "Where Steel Rails Meet Silicon Dreams"
- Core Values - 4 principle cards
- Innovation Lab - 6 prototype projects
- Tech Stack - 6 technology categories
- Footer
URL: http://localhost:5173/projects
Sections:
- Projects Header
- RayNext Project Details (Blue/Cyan theme)
- RayData Project Details (Purple/Pink theme)
- Project Impact Statistics
- CTA Section
- Background:
bg-gray-900 - Gradient overlays:
from-gray-900 via-blue-950 to-gray-900 - Modern, professional aesthetic
- RayNext: Blue to Cyan gradients (
from-blue-500 to-cyan-400) - RayData: Purple to Pink gradients (
from-purple-500 to-pink-400) - CTAs: Blue to Cyan gradient buttons
- Active Links: Cyan highlight color
- Colorful, rounded pills with gradients
- Hover effects with scale animation
- Backdrop blur for glassmorphism effect
- Feature cards with icons
- Hover animations (lift effect, gradient borders)
- Two-column layouts on desktop
- Single column on mobile
- Mobile: < 640px (single column)
- Tablet: 640px - 1024px (flexible grids)
- Desktop: > 1024px (two-column layouts)
- Hamburger menu in header
- Stacked sections
- Full-width buttons
- Touch-friendly spacing
-
src/main.jsx- Added
BrowserRouterwrapper - Imported from
react-router-dom
- Added
-
src/App.jsx- Restructured to use
<Routes>and<Route> - Header and Footer remain on all pages
- Routes switch between LandingPage and ProjectsPage
- Restructured to use
-
src/components/Hero.jsx- Imported
Linkfromreact-router-dom - Changed "See Our Projects" button from
<a>to<Link> - Routes to
/projects
- Imported
-
src/components/Header.jsx- Imported
LinkanduseLocationfromreact-router-dom - Logo uses
<Link to="/"> - Navigation items differentiate between routes and hash links
- Active route highlighting
- Mobile menu updated
- Imported
-
src/pages/LandingPage.jsx- Combines Hero, Values, InnovationLab, TechStack
- Clean separation of landing page content
-
src/pages/ProjectsPage.jsx- Complete projects showcase page
- RayNext and RayData project sections
- Technology badges and mockups
- Impact metrics
β
Client-side routing (no page reload)
β
Browser back/forward buttons work
β
Direct URL access works
β
Active route highlighting
β
Mobile-responsive navigation
β
Smooth transitions
β
Routes to /projects page
β
Blue-to-cyan gradient styling
β
White text
β
Hover effects (shadow, scale)
β
Arrow icon animation
β
Dark background (bg-gray-900)
β
"Our Projects" title
β
RayNext section with split layout
β
RayData section with split layout
β
Colorful technology badges
β
Project Impact statistics
β
Responsive layouts
β
Modern styling throughout
- Visit
http://localhost:5173/ - Click "See Our Projects" button in Hero section
- You'll be routed to
/projects
- Click "Home" in the header navigation
- Click the RailDevHub logo
- Use browser back button
- Landing Page:
http://localhost:5173/ - Projects Page:
http://localhost:5173/projects
Subtitle: Digital Railway Management System
Features:
- Seamless Integration
- User-Centric Design
- Complete Digital Ecosystem
- Real-Time Updates
Technologies (12 total): Java, Spring Boot, React, TypeScript, PostgreSQL, Redis, Docker, Kubernetes, GraphQL, WebSocket, AWS Cloud, Microservices
Status: β Production Ready (deployed at 8 operators)
Subtitle: Advanced Analytics & Business Intelligence Platform
Features:
- Comprehensive Dashboards
- Detailed Reports
- Predictive Analytics
- Real-Time Monitoring
Technologies (13 total): Python, Django, TensorFlow, Apache Kafka, TimescaleDB, InfluxDB, D3.js, Plotly, Pandas, NumPy, Azure AI, Power BI API, Elasticsearch
Status: β‘ AI-Powered (1M+ data points daily)
- π 2 Major Platforms
- π 100+ Reports & Dashboards
- π 15% Efficiency Increase
- β‘ 40% Faster Decisions
- Operational Excellence: 25% delay reduction
- Cost Savings: $12M annual savings
- Customer Satisfaction: 4.6/5.0 rating
- Click "See Our Projects" routes to
/projects - Click "Home" in header routes to
/ - Click logo routes to
/ - Browser back button works
- Browser forward button works
- Direct URL access works
- Page refresh maintains route
- Projects page has dark theme
- Technology badges display correctly
- Two-column layouts on desktop
- Single column on mobile
- Hover effects work on cards
- Animations are smooth
- Hamburger menu works
- Mobile navigation routes correctly
- Responsive layouts work
- Touch interactions work
β
React Router DOM installed and configured
β
Two routes implemented (/ and /projects)
β
LandingPage component created
β
ProjectsPage component created (complete with RayNext, RayData, Impact)
β
Hero.jsx "See Our Projects" button uses Link component
β
Header.jsx navigation updated with routing
β
Active route highlighting implemented
β
Mobile navigation works
β
Dark theme consistent across pages
β
Technology badges styled (Java, React, Kubernetes, etc.)
β
Split layouts for project details
β
No linting errors
β
Fully responsive design
raildevhub/
βββ src/
β βββ pages/
β β βββ LandingPage.jsx β
NEW
β β βββ ProjectsPage.jsx β
NEW
β βββ components/
β β βββ Header.jsx β
UPDATED (routing)
β β βββ Hero.jsx β
UPDATED (Link to /projects)
β β βββ Footer.jsx
β β βββ Values.jsx
β β βββ InnovationLab.jsx
β β βββ TechStack.jsx
β βββ App.jsx β
UPDATED (routes)
β βββ main.jsx β
UPDATED (BrowserRouter)
β βββ index.css
βββ package.json β
UPDATED (react-router-dom)
βββ README.md
- React Router Docs: https://reactrouter.com/
- Tailwind CSS Docs: https://tailwindcss.com/
- Vite Docs: https://vitejs.dev/
Your RailDevHub project now has:
- β Full routing implementation
- β Dedicated Projects page with RayNext and RayData
- β Working navigation between pages
- β Professional dark theme throughout
- β Responsive design on all devices
- β Modern UI with smooth animations
Visit your site at: http://localhost:5173/
Implementation Status: COMPLETE β
Date: November 5, 2025
Routing Library: React Router DOM v6