client-brand-guidelines-3

Brand Guidelines Documentation Site

A documentation site built with 11ty (Eleventy) and Web Awesome components, styled to match the Web Awesome demo page aesthetic.

Features

Getting Started

Prerequisites

Installation

  1. Install dependencies:
    npm install
    
  2. Start the development server:
    npm run serve
    

The site will be available at http://localhost:8080

Building for Production

To build the static site:

npm run build

The output will be in the _site directory.

Project Structure

.
β”œβ”€β”€ src/                    # Source files
β”‚   β”œβ”€β”€ _includes/         # Templates and layouts
β”‚   β”‚   └── layouts/       # Layout templates
β”‚   β”œβ”€β”€ assets/            # CSS, JS, and other assets
β”‚   β”‚   β”œβ”€β”€ css/           # Stylesheets
β”‚   β”‚   └── js/            # JavaScript files
β”‚   └── *.html             # Page files
β”œβ”€β”€ webawesome/            # Web Awesome assets (from dist-cdn)
β”œβ”€β”€ _site/                 # Generated site (gitignored)
β”œβ”€β”€ .eleventy.js           # 11ty configuration
└── package.json           # Dependencies and scripts

Pages

Customization

Adding New Pages

Create a new HTML file in the src/ directory with front matter:

---
layout: layouts/base.njk
title: Page Title
description: Page description
---

Your content here...

Modifying Styles

Edit src/assets/css/main.css to customize the site’s appearance.

Using Web Awesome Components

Web Awesome components are available throughout the site. Refer to the Web Awesome documentation for component usage.

Example:

<wa-button variant="primary">Click Me</wa-button>
<wa-card>
  <h3>Card Title</h3>
  <p>Card content</p>
</wa-card>

Web Awesome Integration

The site uses Web Awesome’s CDN-ready distribution (dist-cdn), which doesn’t require a bundler. The assets are loaded via:

<link rel="stylesheet" href="/webawesome/styles/webawesome.css">
<script type="module" src="/webawesome/webawesome.loader.js" data-webawesome="/webawesome"></script>

License

MIT