No description
Find a file
George Birikorang 197f862045
All checks were successful
continuous-integration/drone/push Build is passing
refactor: enhance product detail page layout and specifications display
- Updated product-detail.html to improve spacing and layout for product description and specifications.
- Removed static size and color options sections to streamline the design.
- Added dynamic rendering of product specifications in JavaScript for better user experience.
- Adjusted CSS for improved margin and height settings across various elements.
2025-09-17 22:24:55 -07:00
assets Implement image enlargement modal and enhance product detail functionality 2025-09-17 20:52:03 -07:00
data refactor: enhance product detail page layout and specifications display 2025-09-17 22:24:55 -07:00
scripts refactor: enhance product detail page layout and specifications display 2025-09-17 22:24:55 -07:00
src feat: add tailwind 2025-08-13 16:00:37 -04:00
styles refactor: enhance product detail page layout and specifications display 2025-09-17 22:24:55 -07:00
.drone.yml feat: update Drone CI configuration to include Tailwind CSS build step 2025-09-05 10:03:33 -07:00
.gitignore feat: add hero section 2025-08-13 18:21:13 -04:00
contact.html Update product data, fix icon paths, improve carousel, and increase product card heights 2025-09-17 17:34:11 -07:00
index.html Update product data, fix icon paths, improve carousel, and increase product card heights 2025-09-17 17:34:11 -07:00
package-lock.json fix: style header 2025-08-13 16:26:35 -04:00
package.json feat: initialize project with package.json and Tailwind CSS setup 2025-09-05 09:59:30 -07:00
product-catalog.html Implement image enlargement modal and enhance product detail functionality 2025-09-17 20:52:03 -07:00
product-comparison.html Update product data, fix icon paths, improve carousel, and increase product card heights 2025-09-17 17:34:11 -07:00
product-detail.html refactor: enhance product detail page layout and specifications display 2025-09-17 22:24:55 -07:00
README.md fix: style header 2025-08-13 16:26:35 -04:00
tailwind.config.js feat: implement responsive mobile menu and navigation enhancements across all pages 2025-09-08 20:52:51 -07:00

khy_website

A clean, minimal static website built with HTML, JavaScript, and Tailwind CSS.

Quick Start

Prerequisites

  • Node.js (for Tailwind CSS CLI)
  • npm (comes with Node.js)

Setup Instructions

  1. Clone or download the project

    git clone <repository-url>
    cd khy_website
    
  2. Install Tailwind CSS

    npm install -D tailwindcss@^3.4.0
    
  3. Generate the optimized CSS

    npx tailwindcss -i ./src/input.css -o ./styles/main.css
    
  4. Open the website

    • Open index.html in your web browser
    • Or serve it with a local server

Project Structure

my-site/
├─ index.html          # Main website page
├─ src/
│  └─ input.css        # Tailwind directives
├─ styles/
│  └─ main.css         # Generated optimized CSS
├─ scripts/
│  └─ main.js          # JavaScript functionality
├─ assets/
│  ├─ images/          # Image assets
│  └─ fonts/           # Font assets
├─ tailwind.config.js  # Tailwind configuration
└─ package.json        # Dependencies

Development

For Active Development

If you're making frequent changes to the HTML, you can use watch mode to automatically regenerate CSS:

npx tailwindcss -i ./src/input.css -o ./styles/main.css --watch

Keep this running in a terminal while you work. It will automatically rebuild the CSS whenever you save changes to your HTML files.

Manual Regeneration

If watch mode doesn't work or you prefer manual control:

# One-time build
npx tailwindcss -i ./src/input.css -o ./styles/main.css

# Watch mode (auto-regenerate on changes)
npx tailwindcss -i ./src/input.css -o ./styles/main.css --watch

Note: If watch mode doesn't work, just run the one-time build command after each change.

What This Does

  • Scans your HTML files for used Tailwind classes
  • Generates only the CSS you need (purges unused styles)
  • Creates a tiny, optimized CSS file (~1KB vs ~3MB CDN)

Features

  • Clean, minimal design with Tailwind CSS
  • Optimized performance with purged CSS
  • Responsive layout that works on all devices
  • No build tools required for production
  • Easy maintenance with Tailwind utility classes

Customization

To add new Tailwind classes:

  1. Add the classes to your HTML
  2. Run the CSS generation command
  3. The new styles will be included in the output

To modify the design:

  1. Change Tailwind classes in index.html
  2. Regenerate CSS with the CLI command
  3. Refresh your browser to see changes