Skip to content

codewithdhruba01/FlipClock

Repository files navigation

FlipClock - Aesthetic Digital Clock

Banner

A beautiful, minimal digital clock web application built with Next.js that helps you focus and relax with its aesthetic flip animation design.

Features

Clock Page

  • Real-time Clock Display: Shows current time with smooth updates every second
  • Live Date: Current date displayed in bottom-right corner
  • Flip Animation: Beautiful flip card animation when digits change, mimicking a physical flip clock
  • Fully Responsive: Works seamlessly across all devices (mobile, tablet, desktop)
  • Navigation: Quick access to Stopwatch page with Watch icon

Stopwatch Page

  • Precise Time Tracking: Tracks time with seconds precision
  • Start/Stop Controls: Easy button to start and pause stopwatch
  • Reset Function: Reset timer back to 00:00:00
  • Same UI Design: Matches clock page aesthetic with flip animation digits
  • Navigation: Quick access back to Clock page

Customization Options (Available on Both Pages)

Access all settings by clicking the settings icon at the right corner:

3. Clock Size Control

  • Zoom In/Out: Scale the clock from 50% to 150%
  • Use slider for precise control or quick buttons for 10% increments
  • Perfect for different screen sizes and viewing distances
  • Size preference is saved locally

4. Fullscreen Mode

  • Enter/Exit Fullscreen: Maximize the clock to fill your entire screen
  • Ideal for using as a screensaver or presentation timer
  • Toggle easily from the settings panel

Technology Stack

  • Framework: Next.js 13 (App Router)
  • Language: TypeScript
  • Styling: Tailwind CSS
  • UI Components: shadcn/ui
  • Icons: Lucide React
  • Storage: Browser LocalStorage for preferences

Project Structure

flipclock/
├── app/
│   ├── page.tsx                # Clock page
│   ├── stopwatch/
│   │   └── page.tsx            # Stopwatch page
│   ├── layout.tsx              # Root layout
│   └── globals.css             # Global styles
├── components/
│   ├── FlipClock.tsx           # Clock page component
│   ├── Stopwatch.tsx           # Stopwatch page component
│   ├── FlipDigit.tsx           # Flip digit animation component
│   ├── SettingsDialog.tsx      # Settings panel (shared)
│   └── ui/                     # shadcn/ui components
└── README.md

Installation

  1. Clone the repository:
git clone https://github.com/codewithdhruba01/FlipClock.git
cd flipclock
  1. Install dependencies:
npm install
  1. Run the development server:
npm run dev
  1. Open http://localhost:3000 in your browser

Build for Production

npm run build
npm run start

License

This project is licensed under the MIT License.

Contributing

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


⭐ If you find this project useful, please give it a star!

Built with ❤️ by Dhrubaraj Pati for developers

WebsiteGitHubTwitter

About

A clean, modern digital flip clock built with Next.js + Tailwind CSS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published