A modern, interactive leadership assessment tool built with React, TypeScript, and Tailwind CSS.
src/
βββ components/ # Reusable UI components
β βββ Header.tsx # Assessment header with title and description
β βββ QuestionCard.tsx # Individual question display with options
β βββ ResultsPage.tsx # Complete results display with insights
β βββ DesktopSidebar.tsx # Real-time insights for desktop
β βββ MobileInsights.tsx # Mobile-optimized insights
βββ data/ # Static data and configurations
β βββ questions.ts # Assessment questions and scoring
β βββ leadershipStyles.ts # Leadership style definitions
β βββ developmentRoadmap.ts # Development recommendations
βββ types/ # TypeScript type definitions
β βββ index.ts # Shared interfaces and types
βββ App.tsx # Main application component
- Interactive Assessment: 20 carefully crafted questions across multiple leadership dimensions
- Real-time Scoring: Live calculation and display of leadership style tendencies
- Progress Persistence: Automatic saving of user progress using localStorage
- Responsive Design: Optimized for both desktop and mobile devices
The assessment evaluates 8 distinct leadership styles:
- Bureaucratic Leader - Structure and procedure-focused
- Authoritative Leader - Power and authority-driven
- Innovative Leader - Creativity and boundary-pushing
- Pacesetting Leader - High standards and rapid progress
- Democratic Leader - Collaboration and participation
- Affiliative Leader - Relationship and belonging-focused
- Coaching Leader - Development and empowerment
- Altruistic Leader - Well-being and greater good
- Desktop Sidebar: Comprehensive insights with radar charts and detailed scoring
- Mobile Insights: Compact, touch-friendly insights optimized for mobile
- Dynamic Updates: Real-time updates as users answer questions
- Comprehensive Results: Primary and secondary style identification
- Development Roadmap: Actionable steps for leadership growth
- Visual Analytics: Radar charts and progress bars for easy understanding
- Node.js (v14 or higher)
- npm or yarn
# Clone the repository
git clone <repository-url>
# Navigate to the project directory
cd leaders-journey
# Install dependencies
npm install
# Start the development server
npm startnpm run build- Purpose: Main application orchestrator
- Responsibilities:
- State management for assessment flow
- Progress persistence
- Component coordination
- Results calculation
- Purpose: Assessment introduction and branding
- Features: Responsive design with gradient styling
- Purpose: Individual question display and interaction
- Features:
- Progress tracking
- Question explanations
- Answer options with hover effects
- Navigation controls
- Purpose: Complete results display
- Features:
- Primary and secondary style identification
- Characteristic breakdowns
- Development roadmap
- Reset functionality
- Purpose: Real-time insights for desktop users
- Features:
- Current style identification
- Radar chart visualization
- Detailed scoring breakdown
- Motivational messaging
- Purpose: Mobile-optimized insights
- Features:
- Compact design for small screens
- Touch-friendly interactions
- Essential information only
interface Question {
id: number;
category: string;
text: string;
explanation: string;
options: {
text: string;
value: string;
points: Record<string, number>;
}[];
}interface LeadershipStyle {
title: string;
icon: React.ReactElement;
color: string;
description: string;
characteristics: string[];
}interface DevelopmentStep {
title: string;
description: string;
steps: string[];
}The application uses Tailwind CSS for styling with:
- Gradient Backgrounds: Beautiful color transitions
- Responsive Design: Mobile-first approach
- Interactive Elements: Hover effects and transitions
- Modern UI: Rounded corners, shadows, and clean typography
- Desktop: Full sidebar with comprehensive insights
- Tablet: Optimized layout with reduced sidebar
- Mobile: Stacked layout with mobile-specific insights
- Add question to
data/questions.ts - Ensure proper scoring points for all leadership styles
- Include category and explanation
- Update
data/leadershipStyles.ts - Add corresponding development steps in
data/developmentRoadmap.ts - Update scoring logic if needed
- Modify Tailwind classes in component files
- Update color schemes in leadership style definitions
- Adjust responsive breakpoints as needed
# Run tests
npm test
# Run tests with coverage
npm test -- --coverage- React: UI framework
- TypeScript: Type safety
- Tailwind CSS: Styling
- Lucide React: Icons
- PostCSS: CSS processing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License.
For questions or issues, please open an issue in the repository.