A stunning, modern smart home dashboard built with React, Next.js, and Tailwind CSS featuring glassmorphism design, smooth animations, and real-time monitoring.
- Glassmorphism UI with frosted glass effects
- Gradient backgrounds and neon accents
- Smooth animations powered by Framer Motion
- Responsive layout - looks great on all devices
- Dark theme with cyberpunk aesthetics
- Real-time temperature tracking with sine-wave simulation
- Humidity monitoring with animated progress bars
- Air Quality Index (AQI) with color-coded status
- COโ level monitoring
- Beautiful gradient cards for each metric
- Live power consumption chart with area graphs
- Real-time cost calculation
- Voltage and current monitoring
- Daily energy usage tracking (kWh)
- Color-coded power status (Efficient/Moderate/High Usage)
- 5 room control: Living Room, Bedroom, Kitchen, Bathroom, Study
- Interactive ON/OFF toggles
- Brightness indicators with animated progress bars
- Power consumption per room
- Active lights counter
- Room-specific emojis and colors
- Door sensors (Front, Back, Garage)
- Motion detectors (Hallway, Living Room, Garden, Driveway)
- Window sensors (Kitchen, Bedroom, Study)
- Real-time alert feed with animations
- Color-coded status indicators
- Arm/Disarm toggle button
- Security statistics dashboard
- Animated weather icons
- 5 weather conditions: Sunny, Partly Cloudy, Cloudy, Rainy, Stormy
- Current temperature display
- Wind speed monitoring
- Humidity tracking
- Atmospheric pressure
- "Feels like" temperature
- Real-time data simulation with realistic patterns
- Smooth transitions and micro-interactions
- Staggered animations for elegant loading
- Hover effects and scale transforms
- Auto-updating charts using Recharts
- Context-based data generation
- Responsive grid layout
- Node.js 16.x or higher
- npm or yarn
# Install dependencies
npm install
# Run development server
npm run devOpen http://localhost:3000 to see the dashboard!
# Create optimized production build
npm run build
# Start production server
npm startsmart-home-dashboard/
โโโ pages/
โ โโโ _app.js # App wrapper with global styles
โ โโโ index.js # Main dashboard page
โโโ components/
โ โโโ StatusCard.js # Metric status cards
โ โโโ ClimateCard.js # Temperature & humidity
โ โโโ EnergyChart.js # Power monitoring chart
โ โโโ SecurityPanel.js # Security alerts feed
โ โโโ LightingControl.js # Room lighting controls
โ โโโ WeatherWidget.js # Weather information
โโโ styles/
โ โโโ globals.css # Global styles & Tailwind
โโโ public/ # Static assets
โโโ tailwind.config.js # Tailwind configuration
โโโ next.config.js # Next.js configuration
โโโ package.json # Dependencies
- Primary Cyan:
#00d9ff- Main accent color - Purple:
#7b2cbf- Secondary accent - Neon Green:
#06ffa5- Success states - Yellow:
#ffb800- Warnings - Pink:
#ff006e- Alerts/Critical
- Glass Cards: Frosted glass effect with backdrop blur
- Gradient Text: Multi-color gradient text effects
- Neon Borders: Glowing cyan borders on hover
- Stat Cards: Hoverable cards with scale animations
- Progress Bars: Animated gradient progress indicators
- Next.js - React framework with SSR
- React - UI component library
- Tailwind CSS - Utility-first CSS framework
- Framer Motion - Animation library
- Recharts - Chart visualization
- Lucide React - Icon library
All data is generated client-side with realistic patterns:
- Temperature: Sine-wave based variations for smooth, natural changes
- Energy: Dynamic power simulation with cost calculations
- Security: Random events with realistic probabilities
- Lighting: Auto-toggles with brightness variations
- Weather: Condition changes with appropriate temperatures
Edit tailwind.config.js:
theme: {
extend: {
colors: {
accent: {
cyan: '#00d9ff', // Change these!
purple: '#7b2cbf',
green: '#06ffa5',
// ...
}
}
}
}Edit component useEffect intervals:
// Example: Change update frequency
const interval = setInterval(() => {
// Update logic
}, 2000) // Change from 2000ms (2s) to your preferred intervalEdit LightingControl.js:
const [rooms, setRooms] = useState([
{ id: 6, name: 'Office', icon: '๐ฅ๏ธ', on: false, brightness: 0, color: '#00BFFF' },
// Add more rooms here
])- Page load: Staggered animation of all components
- Data updates: Smooth value transitions
- Hover effects: Scale, glow, and color transitions
- Weather icon: Rotating and scaling animation
- Security feed: Slide-in alerts with exit animations
- Lighting toggles: Click to turn lights on/off
- Security arm/disarm: Toggle system status
- Hover cards: All cards respond to hover with scale effects
- Chart tooltips: Interactive data point information
The dashboard is fully responsive:
- Mobile: Single column layout
- Tablet: 2-column grid
- Desktop: 3-4 column grid
- 4K: Maximum width with centered content
Potential additions:
- Real API integration (weather, IoT devices)
- User authentication
- Historical data persistence
- Voice control integration
- Mobile app version
- Custom themes/color schemes
- Automation rules & schedules
MIT License - Feel free to use for your projects!
Contributions welcome! Feel free to:
- Report bugs
- Suggest new features
- Submit pull requests
- Improve documentation
This dashboard is inspired by:
- Modern IoT platforms
- Cyberpunk aesthetics
- Glassmorphism design trend
- Smart home control interfaces
Built with โค๏ธ using React, Next.js, and Tailwind CSS
Enjoy your beautiful smart home dashboard! ๐โจ