Project Video link :- https://drive.google.com/file/d/1ylMGsPxzA3m2uvcZe3E7GN70wOsWPVh8/view?usp=sharing
A modern, enterprise-grade frontend for a decentralized cybersecurity platform built with Next.js, TypeScript, and Tailwind CSS.
- 🎨 Modern Design: Clean, minimal UI with enterprise-grade aesthetics
- 📱 Responsive: Mobile-first design with collapsible sidebar navigation
- 🔗 Modular Architecture: Easy to refactor and swap components
- 🎯 TypeScript: Fully typed for better development experience
- 🎨 Tailwind CSS: Utility-first styling for rapid development
- ⛓️ Blockchain Ready: Built-in hooks for Web3 integration
- 📊 Dashboard: Comprehensive security monitoring dashboard
- 📝 Logs Management: Advanced log filtering and blockchain verification
- 🚨 Alert System: Real-time threat monitoring and alerts
The application uses a consistent color palette for visual cues:
- Primary:
#124e66
- Headers, buttons, navigation - Accent:
#e65870
- Danger actions, critical elements - Background:
#f5f7fa
- Page backgrounds - Card:
#ffffff
- Card backgrounds - Critical:
#e53e3e
- Critical alerts and errors - Warning:
#f6ad55
- Warning states - Info:
#3182ce
- Information states - Success:
#38a169
- Success states - Text:
#212529
- Primary text color
src/
├── app/ # Next.js App Router pages
│ ├── dashboard/ # Dashboard page
│ ├── logs/ # Logs management page
│ ├── threats/ # Threats & alerts page
│ ├── identity/ # Identity management page
│ ├── audit/ # Audit reports page
│ └── settings/ # Settings page
├── components/ # Reusable components
│ ├── layout/ # Layout components (Sidebar, etc.)
│ ├── dashboard/ # Dashboard-specific components
│ └── logs/ # Logs-specific components
└── hooks/ # Custom hooks for data fetching
├── useDashboardData.ts
└── useLogsData.ts
- Node.js 18+
- npm, yarn, or pnpm
-
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser.
npm run dev
- Start development servernpm run build
- Build for productionnpm run start
- Start production servernpm run lint
- Run ESLint
- Threat Score Widget: Real-time security threat assessment
- Login Attempts Chart: Visual representation of authentication events
- Traffic Anomalies: Network traffic analysis and anomaly detection
- Blockchain Verification: Verification status and statistics
- Alerts List: Recent security alerts and their status
- System Metrics: Key performance indicators
- Filterable Log Table: Search and filter system logs
- Blockchain Verification: Chain verification status for each log entry
- Event Types: Authentication, Data Access, Security Events, etc.
- Status Indicators: Success, Info, Warning, Error states
- Export Functionality: Download logs for compliance
Each component is designed to be:
- Self-contained: Minimal external dependencies
- Reusable: Can be easily moved or refactored
- Typed: Full TypeScript support
- Responsive: Mobile-first design approach
All data fetching is abstracted into custom hooks:
useDashboardData
- Dashboard metrics and statisticsuseLogsData
- Log entries with filtering capabilities- Easy to replace with real API calls
- Utility-first: Tailwind CSS for rapid development
- Consistent spacing: Standardized padding and margins
- Color system: Semantic color usage for status and actions
- No custom CSS: Everything done through Tailwind utilities
The application is prepared for easy API integration:
// Easy to replace with real API calls
export function useThreatData(): ThreatData {
// Replace with actual API call
// return apiClient.getThreatData()
}
- Wallet connection button in sidebar
- Blockchain verification badges in logs
- Transaction hash links to blockchain explorers
- Verification status indicators
The application is fully responsive with:
- Mobile Navigation: Hamburger menu for small screens
- Flexible Grid Layouts: Adapts to different screen sizes
- Touch-friendly: Appropriate button sizes and spacing
- Semantic HTML: Proper accessibility support
The modular architecture allows for easy addition of:
- Real-time WebSocket connections
- Advanced charting libraries
- Additional authentication methods
- Extended blockchain integrations
- Custom theming system
- Internationalization (i18n)
- Follow the established component structure
- Use TypeScript for all new code
- Follow Tailwind utility-first principles
- Ensure mobile responsiveness
- Add proper TypeScript types for all data structures
This project is part of a cybersecurity SaaS platform development.