Skip to content

apoorva-as/react-websit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Cocktail Bar Website

A modern, animated single-page cocktail bar/restaurant website built with React and Vite. Features smooth scroll-based animations powered by GSAP and a fully responsive layout styled with Tailwind CSS.

Preview

The site includes the following sections:

  • Navbar — Transparent nav that transitions to a frosted-glass style on scroll
  • Hero — Full-screen intro with animated text (character-by-character reveal)
  • Cocktails — Showcase of featured cocktails
  • About — Brand story / about section
  • Art — Visual/artistic feature section
  • Menu — Full menu display
  • Contact — Contact information / form

🔗 Live Demo

https://react-websit.vercel.app/

Tech Stack

Technology Purpose
React 19 UI framework
Vite 7 Build tool & dev server
GSAP 3 Scroll-based & text animations
Tailwind CSS 4 Utility-first styling
react-responsive Responsive breakpoint hooks

Getting Started

Prerequisites

  • Node.js v18 or higher
  • npm v9 or higher

Installation

# Clone the repository
git clone <your-repo-url>
cd my-app

# Install dependencies
npm install

Running the Dev Server

npm run dev

Open http://localhost:5173 in your browser.

Building for Production

npm run build

The output will be in the dist/ folder.

Preview Production Build

npm run preview

Linting

npm run lint

Project Structure

my-app/
├── public/
│   ├── fonts/          # Custom fonts
│   ├── images/         # Static images
│   └── videos/         # Background/hero videos
├── src/
│   ├── components/
│   │   ├── Navbar.jsx
│   │   ├── Hero.jsx
│   │   ├── Cocktails.jsx
│   │   ├── About.jsx
│   │   ├── Art.jsx
│   │   ├── Menu.jsx
│   │   └── Contact.jsx
│   ├── App.jsx
│   ├── App.css
│   ├── main.jsx
│   └── index.css
├── constants/
│   └── index.js        # Shared constants (nav links, etc.)
├── index.html
├── vite.config.js
└── package.json

Animations

GSAP plugins used:

  • ScrollTrigger — Triggers animations as the user scrolls
  • SplitText — Splits headings into individual characters/lines for staggered reveals

Both plugins are registered globally in App.jsx and Hero.jsx.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors