A modern, responsive file management interface built with Next.js 15, TypeScript, and CSS Modules.
- Header Component: Sticky header with 10 logout buttons and gradient background
- Folder Components: Three main folders (Folder 1, Folder 2, Folder 3) with 800px height
- Document Grid: Each folder contains 5 evenly spaced document boxes
- Responsive Design: Mobile-first approach with responsive grid layouts
- Modern UI: Beautiful gradients, shadows, and hover effects
- Reusable Components: Modular architecture following React best practices
src/
├── app/
│ ├── globals.css # Global styles and CSS variables
│ ├── layout.tsx # Root layout with metadata
│ └── page.tsx # Main page component
├── components/
│ ├── Header/
│ │ ├── Header.tsx # Header component with logout buttons
│ │ ├── Header.module.css # Header-specific styles
│ │ └── index.ts # Component export
│ ├── Folder/
│ │ ├── Folder.tsx # Folder component with documents
│ │ ├── Folder.module.css # Folder-specific styles
│ │ └── index.ts # Component export
│ ├── MainContent/
│ │ ├── MainContent.tsx # Main content area with folders
│ │ ├── MainContent.module.css # Layout styles
│ │ └── index.ts # Component export
│ └── index.ts # Main components export
- Sticky positioning with gradient background
- 10 logout buttons with hover effects
- Responsive design for mobile devices
- Customizable logout handler
- 800px height with full width
- 5 evenly spaced document boxes
- Hover animations and modern card design
- Responsive grid layout
- Responsive grid layout (1 column on mobile, 2 on tablet, 3 on desktop)
- Contains three Folder components
- Gradient background
-
Install dependencies:
npm install
-
Run development server:
npm run dev
-
Open your browser and navigate to
http://localhost:3000
- Create a new folder in
src/components/ - Include the component file, CSS module, and index.ts
- Export from the main components index
- Uses CSS Modules for component-scoped styles
- Tailwind CSS utilities available
- Responsive design with mobile-first approach
- Modern CSS features like CSS Grid and Flexbox
- Full TypeScript support
- Interface definitions for all component props
- Strict type checking enabled
# Build for production
npm run build
# Start production server
npm start
# Lint code
npm run lint- Next.js 15 - React framework with App Router
- TypeScript - Type-safe JavaScript
- CSS Modules - Component-scoped styling
- Tailwind CSS - Utility-first CSS framework
- React 19 - Latest React features
- Modern browsers (Chrome, Firefox, Safari, Edge)
- Mobile responsive design
- Progressive enhancement
- Follow the existing component structure
- Use TypeScript interfaces for props
- Include CSS modules for styling
- Add responsive design considerations
- Test on multiple screen sizes