Skip to content

About

This is one of the best projects I’ve ever seen. For now, I’ve built it using only Tailwind CSS and Swiper, but I plan to develop it further; as the version progresses, the project will become more robust, and I’ll incorporate more frameworks.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

</> COFFEESHOP

MODERN COFFEE SHOP · RTL · RESPONSIVE · DARK MODE

A modern Persian coffee shop landing page built with HTML, Tailwind CSS & JavaScript


HTML5 Tailwind CSS JavaScript Swiper


🌐 LIVE DEMO · 📦 SOURCE CODE


01 — PROJECT

CoffeeShop is a modern Persian RTL coffee shop website focused on combining a polished visual interface with practical front-end interactions.

The project was designed around a clean, responsive and premium coffee-shop experience, with support for both light and dark themes.

The interface includes:

  • Persian RTL layout
  • Responsive navigation
  • Coffee product presentation
  • Product categories
  • Shopping cart drawer
  • Mobile navigation
  • Dark / Light mode
  • Blog section
  • Coffee club section
  • Services section
  • Contact section
  • Responsive hero section
  • Swiper-based sliders
  • Custom Persian typography

DESIGN · RESPONSIVENESS · INTERACTION · FRONT-END ENGINEERING


02 — CORE FEATURES

🎨 Visual System

  • Modern coffee-shop aesthetic
  • RTL-first interface
  • Glass / translucent header treatment
  • Rounded UI elements
  • Custom background imagery
  • Consistent spacing system
  • Responsive typography
  • Custom Persian fonts

🌙 Theme System

The project supports:

LIGHT MODE
    ↓
DARK MODE
    ↓
localStorage
    ↓
Theme Persistence

The theme can be switched manually and is persisted using localStorage.

The initial theme also considers the user's system preference through:

prefers-color-scheme

🛒 Shopping Cart UI

The project includes an interactive cart drawer with:

Cart Button
    ↓
Open Cart
    ↓
Overlay
    ↓
Cart Panel
    ↓
Close / Overlay Click

The cart interface is implemented as a front-end interaction layer.


📱 Responsive Navigation

Desktop and mobile navigation use different layouts.

DESKTOP
Navigation
├── Logo
├── Menu
├── Theme
└── Cart

MOBILE
Menu Button
    ↓
Side Navigation
    ↓
Overlay

📰 Content Sections

The homepage contains multiple content-driven sections:

Hero
   ↓
Categories
   ↓
Popular Products
   ↓
Services
   ↓
Coffee Club
   ↓
Blog
   ↓
Contact
   ↓
Footer

03 — FRONT-END ARCHITECTURE

The project follows a lightweight front-end architecture based on native HTML, Tailwind utility classes and vanilla JavaScript.

                    COFFEESHOP
                         │
          ┌──────────────┼──────────────┐
          │              │              │
        HTML          Tailwind       JavaScript
          │              │              │
      Structure       Styling       Interaction
          │              │              │
          └──────────────┼──────────────┘
                         │
                    Browser UI

The project intentionally keeps the architecture simple and dependency-light.


04 — TECHNOLOGY STACK

Technology Purpose
HTML5 Semantic page structure
Tailwind CSS v4 Utility-first styling
JavaScript ES6+ Interactive UI behavior
Swiper Sliders & carousels
CSS Custom layers, fonts & additional styling
SVG Icons and interface graphics
localStorage Theme persistence

05 — DESIGN SYSTEM

The project uses two custom Persian font families:

Dana
├── Regular
├── Medium
└── DemiBold

Morabba
├── Light
├── Medium
└── Bold

This combination provides separate typography roles for:

BODY TEXT
     ↓
DANA

HEADINGS / DISPLAY
     ↓
MORABBA

The project also uses a custom icon system based on inline SVG symbols.


06 — THEME ARCHITECTURE

Theme initialization happens before the main interface renders:

Browser
   │
   ├── localStorage.theme
   │
   └── prefers-color-scheme
            │
            ▼
       Theme Decision
            │
      ┌─────┴─────┐
      ▼           ▼
    LIGHT        DARK

User theme changes are stored locally:

localStorage.theme = "dark";

This allows the selected theme to persist between visits.


07 — INTERACTION SYSTEM

The main interactive behaviors are handled inside:

scripts/
└── app.js

Theme Toggle

Toggle Button
     ↓
Check Current Theme
     ↓
Add / Remove .dark
     ↓
Update localStorage

Navigation Drawer

Menu Button
     ↓
Open Navigation
     ↓
Show Overlay
     ↓
Navigation Panel
     ↓
Close

Cart Drawer

Cart Button
     ↓
Open Cart
     ↓
Show Overlay
     ↓
Cart Panel
     ↓
Close

Submenu

Submenu Button
      ↓
Toggle Submenu
      ↓
Rotate Arrow
      ↓
Update Active State

08 — PROJECT STRUCTURE

CoffeeShop/
│
├── index.html
│
├── styles/
│   ├── app.css
│   └── swiper-bundle.min.css
│
├── scripts/
│   ├── app.js
│   └── swiper-bundle.min.js
│
├── fonts/
│   ├── Dana/
│   │   └── woff2/
│   │
│   └── Morabba/
│       └── woff2/
│
├── images/
│   ├── CoffeeShop-Files/
│   │   ├── blogs/
│   │   ├── categories/
│   │   ├── club/
│   │   ├── products/
│   │   └── svgs/
│   │
│   ├── app-logo.png
│   ├── body-bg.png
│   ├── category-left.jpg
│   ├── category-right.jpg
│   ├── fav-icon.png
│   ├── headerBgDesktop.webp
│   └── headerBgMobile.webp
│
└── README.md

09 — CONTENT ARCHITECTURE

The website is organized around a complete coffee-shop landing experience.

COFFEESHOP
│
├── HEADER
│   ├── Logo
│   ├── Navigation
│   ├── Theme Toggle
│   └── Cart
│
├── HERO
│   └── Main Introduction
│
├── CATEGORIES
│   └── Coffee Categories
│
├── PRODUCTS
│   └── Coffee Products
│
├── SERVICES
│   ├── Coffee
│   ├── Delivery
│   ├── Support
│   └── Additional Services
│
├── COFFEE CLUB
│   ├── Activity
│   ├── Discovery
│   └── Rewards
│
├── BLOG
│   └── Coffee Articles
│
├── CONTACT
│   ├── Phone
│   ├── Email
│   ├── Location
│   └── Social Media
│
└── FOOTER

10 — RESPONSIVE STRATEGY

The interface is designed for multiple screen sizes.

┌───────────────────────────────┐
│           DESKTOP             │
│                               │
│  Full Navigation + Content    │
│                               │
└───────────────────────────────┘

              ↓

┌─────────────────────┐
│       TABLET        │
│                     │
│  Adaptive Layout    │
│                     │
└─────────────────────┘

              ↓

┌─────────────────┐
│     MOBILE      │
│                 │
│  Drawer Menu    │
│  Compact UI     │
│                 │
└─────────────────┘

Responsive behavior is implemented primarily through Tailwind CSS utilities.


11 — SLIDER SYSTEM

The project integrates Swiper for interactive carousel experiences.

Swiper is used to create smooth, responsive content sliders while keeping the implementation optimized for touch and different viewport sizes.

Swiper
  │
  ├── Responsive Slides
  ├── Touch Interaction
  ├── Product Content
  └── Section Carousels

12 — SVG ICON SYSTEM

Instead of relying entirely on external icon libraries, the project contains a reusable SVG symbol system.

Examples include:

shopping-cart
moon
sun
user
bars-3
shopping-bag
heart
star
map-pin
envelope
phone
instagram
telegram
chevron-down
chevron-left
arrow-left

This allows icons to be reused directly inside the HTML interface.


13 — PERFORMANCE & FRONT-END PRACTICES

The project focuses on keeping the interface lightweight while maintaining a rich visual experience.

Implemented

  • Local assets
  • Local font files
  • SVG-based icons
  • CSS utility architecture
  • Minimal JavaScript interaction layer
  • Responsive image assets
  • Separate desktop/mobile hero backgrounds
  • Reusable UI patterns
  • Browser-native localStorage

The project avoids introducing a heavy JavaScript framework for a relatively focused landing-page experience.


14 — DEVELOPMENT FLOW

DESIGN
  ↓
HTML STRUCTURE
  ↓
TAILWIND STYLING
  ↓
RESPONSIVE LAYOUT
  ↓
JAVASCRIPT INTERACTIONS
  ↓
THEME SYSTEM
  ↓
SLIDERS
  ↓
POLISH
  ↓
DEPLOYMENT

The project was built with an emphasis on understanding the underlying front-end technologies rather than hiding the implementation behind a framework.


15 — RUN LOCALLY

Clone the repository:

git clone https://github.com/yosuf-dev/CoffeeShop.git

Move into the project:

cd CoffeeShop

Because the project is a static front-end application, it can be opened directly in a browser or served through a local development server.

For the best development experience, use a local server such as VS Code Live Server.


16 — LIVE PROJECT

🌐 Production

CoffeeShop

https://yosuf-dev.github.io/CoffeeShop/

📦 Repository

https://github.com/yosuf-dev/CoffeeShop


17 — WHAT I LEARNED

Building CoffeeShop helped strengthen several practical front-end skills:

HTML
│
├── RTL Structure
├── Semantic Sections
└── SVG Integration

CSS / Tailwind
│
├── Responsive Design
├── Utility Classes
├── Dark Mode
├── Layout Systems
└── Custom Typography

JavaScript
│
├── DOM Manipulation
├── Event Listeners
├── UI State
├── localStorage
└── Interactive Drawers

UI Engineering
│
├── Responsive Navigation
├── Cart Interface
├── Sliders
└── Component-like UI Patterns

18 — DEVELOPMENT ROADMAP

Potential future improvements:

[ ] Product detail pages
[ ] Functional shopping cart
[ ] Quantity management
[ ] Product filtering
[ ] Search system
[ ] Authentication
[ ] Backend integration
[ ] Online ordering
[ ] Payment integration
[ ] Admin dashboard
[ ] Product management
[ ] Real database

The current project is primarily a front-end experience, making these possible next steps for turning it into a complete e-commerce platform.


19 — DEVELOPMENT MINDSET

Don't just build interfaces. Understand how they work.

CoffeeShop was built as a practical front-end project to combine:

DESIGN
+
RESPONSIVE ENGINEERING
+
INTERACTION
+
TYPOGRAPHY
+
USER EXPERIENCE

The goal is not simply to make a page that looks good.

The goal is to understand the engineering behind a polished interface.


20 — PROJECT STATUS

STATUS: COMPLETED

TYPE:
Modern Coffee Shop Website

DIRECTION:
Front-End Development

LAYOUT:
RTL / Persian

RESPONSIVE:
YES

DARK MODE:
YES

INTERACTIVE UI:
YES

DEPLOYMENT:
GitHub Pages

21 — DEVELOPER

</> YOSUF

FULL-STACK WEB DEVELOPER

Frontend Engineering · Backend Development · Database Design


GitHub LinkedIn


22 — PROJECT

CoffeeShop

Modern RTL Coffee Shop Experience


🌐 Live Demo   ·   📦 GitHub Repository


</> BUILD · LEARN · REFACTOR · SHIP

About

This is one of the best projects I’ve ever seen. For now, I’ve built it using only Tailwind CSS and Swiper, but I plan to develop it further; as the version progresses, the project will become more robust, and I’ll incorporate more frameworks.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages