A beautiful, interactive desktop operating system simulator built with React, TypeScript, and Vite. Features a glassmorphic design, draggable windows, widgets, and multiple applications.
- 🎨 Modern glassmorphic UI design
- 🪟 Draggable application windows
- 📊 Real-time widgets (Weather, Tasks, Calendar, System Monitor)
- 🚀 Multiple built-in applications
- 📱 Responsive design
- 🔒 Lock screen with authentication
Prerequisites: Node.js (v18 or higher)
-
Install dependencies:
npm install
-
Set up environment variables:
- Create a
.env.localfile in the root directory - Add your Gemini API key:
GEMINI_API_KEY=your_api_key_here
- Create a
-
Run the development server:
npm run dev
The app will be available at
http://localhost:3000
Build the project for production deployment:
npm run buildPreview the production build locally:
npm run previewThis project is configured with GitHub Actions for automatic deployment:
-
Push to GitHub:
git add . git commit -m "Deploy to GitHub Pages" git push origin main
-
Enable GitHub Pages:
- Go to your repository settings on GitHub
- Navigate to Pages section
- Under Source, select GitHub Actions
-
Wait for deployment:
- The GitHub Action will automatically build and deploy your site
- Your site will be available at:
https://yourusername.github.io/web2/
Alternatively, deploy manually using gh-pages:
npm run deployThis will build the project and deploy it to the gh-pages branch.
- React 19 - UI framework
- TypeScript - Type safety
- Vite - Build tool and dev server
- Tailwind CSS - Styling (via inline classes)
- Google Generative AI - AI Assistant integration
web2/
├── components/ # React components
│ ├── apps/ # Application components
│ └── widgets/ # Widget components
├── services/ # API services
├── .github/workflows/ # GitHub Actions
├── App.tsx # Main app component
├── constants.ts # App constants
├── types.ts # TypeScript types
└── vite.config.ts # Vite configuration
- Lock Screen: Click "Unlock" to access the desktop
- Open Apps: Click on icons in the dock at the bottom
- Move Windows: Drag windows by their title bar
- Close Apps: Click the red button on window title bar
- Widgets: View real-time information on left and right sides
- Logout: Click the logout button in the bottom-right corner
This project is private and not licensed for public use.
- View in AI Studio: https://ai.studio/apps/drive/1C2xEDtQfIn_DKZOtzs5jCxR8klMxI6n2
