No description
Find a file
George Birikorang 4d901448eb
All checks were successful
continuous-integration/drone/push Build is passing
refactor: update product comparison layout and JavaScript for improved clarity
- Renamed sections in product-comparison.html for better alignment with product details, changing "Sales Package" to "Materials", "Model Number" to "Design", and "Secondary Material" to "Use Cases".
- Removed redundant product and dimensions sections from the HTML as per request to streamline the comparison layout.
- Updated main.js to reflect changes in the HTML, limiting the sections updated in the comparison table to "general" and "warranty" only, and adjusted data retrieval to match new section names.
2025-09-18 03:42:37 -07:00
assets Implement image enlargement modal and enhance product detail functionality 2025-09-17 20:52:03 -07:00
data refactor: update product entries in products.json for clarity and consistency 2025-09-18 02:58:21 -07:00
scripts refactor: update product comparison layout and JavaScript for improved clarity 2025-09-18 03:42:37 -07:00
src feat: add tailwind 2025-08-13 16:00:37 -04:00
styles refactor: enhance product descriptions and add new executive chair entries in products.json 2025-09-17 22:51:43 -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 refactor: update product comparison layout and JavaScript for improved clarity 2025-09-18 03:42:37 -07:00
product-detail.html refactor: update product-detail layout and enhance product descriptions in products.json 2025-09-18 01:49:36 -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