A modern, responsive wallpaper discovery platform built with Next.js and Tailwind CSS
Features • Tech Stack • Getting Started • Structure • Components
- 🎨 Modern, responsive design
- 🖼️ Dynamic image grid layout
- 🔍 Real-time search functionality
- 💻 Image preview and zoom
- 📱 Mobile-first approach
- ❤️ Favorites management
- 🌙 Dark mode support
- 🚀 Fast image loading
- Framework: Next.js 13 (App Router)
- Styling: Tailwind CSS
- Icons: Heroicons
- HTTP Client: Axios
- State Management: React Hooks
- Typography: Inter font
- Build Tool: Vite
- Package Manager: npm
- Clone the repository
git clone https://github.com/justkelvin/wallzen-ui.git
cd wallzen-ui- Install dependencies
npm install- Set up environment variables
cp .env.example .env.local- Start the development server
npm run devVisit http://localhost:3000 to see the application.
src/
├── app/ # App router pages
├── components/ # React components
│ ├── ui/ # Reusable UI components
│ └── layout/ # Layout components
├── lib/ # Utilities and helpers
│ ├── api/ # API client
│ └── types/ # TypeScript types
├── styles/ # Global styles
└── public/ # Static assets
WallpaperGrid- Masonry grid layout for wallpapersSearchBar- Search interface with suggestionsImageModal- Full-screen image previewPagination- Page navigation component
Button- Customizable button componentInput- Form input elementsLoading- Loading states and spinnersIcons- Custom icon components
We use Tailwind CSS for styling with a custom configuration:
// tailwind.config.js
module.exports = {
content: ['./src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
primary: '#1a1a1a',
secondary: '#2a2a2a',
accent: '#3a3a3a',
},
},
},
plugins: [],
}NEXT_PUBLIC_API_URL=http://localhost:3001/api
NEXT_PUBLIC_SITE_URL=http://localhost:3000- Mobile: 320px - 768px
- Tablet: 768px - 1024px
- Desktop: 1024px+
{
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
}
}- ✅ Component-based architecture
- ✅ TypeScript for type safety
- ✅ Responsive images with next/image
- ✅ SEO optimization
- ✅ Accessibility standards
- ✅ Performance optimization
MIT © [Kelvin]