sakura-gallery Tailwind Templates

Sakura Gallery

Sakura Gallery is a beautiful, responsive web application that showcases cherry blossom images using the Pixabay API. With features like infinite scrolling, dark mode, and a masonry layout, it provides an immersive viewing experience for cherry blossom enthusiasts.

Sakura Gallery

Sakura Gallery Banner

Sakura Gallery is a beautiful, responsive web application that showcases cherry blossom images using the Pixabay API. With features like infinite scrolling, dark mode, and a masonry layout, it provides an immersive viewing experience for cherry blossom enthusiasts.

Visit the Live Demo

Features

  • 🌸 Infinite scrolling of cherry blossom images
  • šŸŒ™ Dark mode toggle for comfortable viewing
  • šŸ“± Responsive design for all device sizes
  • šŸ–¼ļø Masonry layout for aesthetically pleasing image display
  • šŸ” Modal view for detailed image inspection
  • šŸƒ Animated cherry blossom petals for an immersive experience

Tech Stack

  • React
  • TypeScript
  • Vite
  • Tailwind CSS
  • Express.js (for API proxy)
  • Vercel (for deployment)

Getting Started

Prerequisites

  • Node.js (v14 or later)
  • npm or yarn or bun

Installation

  1. Clone the repository:

    git clone https://github.com/waylake/sakura-gallery.git
    cd sakura-gallery
    
  2. Install dependencies:

    bun install
    
  3. Create a .env file in the root directory and add your Pixabay API key:

    PIXABAY_API_KEY=your_api_key_here
    

Running the Application

  1. Start the development server:

    bun run dev
    
  2. Open your browser and visit http://localhost:5173

Project Structure

sakura-gallery/
ā”œā”€ā”€ api/
│   ā”œā”€ā”€ image-proxy.js
│   └── images.js
ā”œā”€ā”€ public/
ā”œā”€ā”€ server/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ components/
│   ā”œā”€ā”€ contexts/
│   ā”œā”€ā”€ hooks/
│   ā”œā”€ā”€ types/
│   └── utils/
ā”œā”€ā”€ .env
ā”œā”€ā”€ package.json
ā”œā”€ā”€ tsconfig.json
ā”œā”€ā”€ vite.config.ts
└── vercel.json

Deployment

The project is deployed on Vercel. Any push to the main branch will trigger a new deployment.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.

Cherry Blossom Background

Top categories

Loading Svelte Themes