Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d6e2b96
add initial component library exmamples
garciadanny Dec 11, 2025
5944dcb
add table components
garciadanny Dec 11, 2025
131eeec
Added button component
pangolingo Dec 11, 2025
0bd3785
Added pagination component
pangolingo Dec 11, 2025
3ffa757
add form and search bar
garciadanny Dec 11, 2025
bb07b79
add dialog components
garciadanny Dec 11, 2025
36c61a7
add disclosure component
garciadanny Dec 11, 2025
e4feda4
Added badge component
pangolingo Dec 11, 2025
1e2e81e
Built a Typography component
pangolingo Dec 11, 2025
92f4ca8
Enhanced the Disclosure component
pangolingo Dec 11, 2025
cc576f3
Added a loading indicator component
pangolingo Dec 11, 2025
0890395
Fixed up loading indicator and badge
pangolingo Dec 11, 2025
1dd3ee4
Build initial static site for component library
garciadanny Dec 11, 2025
f561b67
Rename component_library directory to component-library
garciadanny Dec 11, 2025
6c94038
Add Github Actions workflow to deploy site to Github Pages
garciadanny Dec 11, 2025
b24d306
Fixed component imports
pangolingo Dec 11, 2025
1f4876d
Update workflow to deploy from component_library branch
garciadanny Dec 11, 2025
3264e41
Added an alert component
pangolingo Dec 11, 2025
86bf1d3
Configure pathPrefix for GitHub Pages deployment
garciadanny Dec 11, 2025
7750f61
Added a better label to the loading indicator
pangolingo Dec 11, 2025
772a130
Demo status vs alert roles for alert components
pangolingo Dec 11, 2025
90a3180
Use npm ci instead of npm install in the github action
pangolingo Dec 11, 2025
59eb9bb
Apply pathPrefix to component links
garciadanny Dec 11, 2025
8f014c6
Added a quote component
pangolingo Dec 11, 2025
e1de6df
Added a page header component
pangolingo Dec 11, 2025
e7b00d6
Set up a page footer and extracted page-nav component
pangolingo Dec 11, 2025
ad353cc
Update primary button
enatario Dec 12, 2025
980c23f
Improve disabled color
enatario Dec 12, 2025
a7113f8
Add lightningcss for css compilation
enatario Dec 12, 2025
9503420
Merge branch 'main' into component_library
pangolingo Jan 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import lightningcssPlugin from "@11tyrocks/eleventy-plugin-lightningcss";

export default function (eleventyConfig) {
const now = String(Date.now())
eleventyConfig.addShortcode('version', function () {
return now
})

// === COLLECTIONS ===
eleventyConfig.addCollection("component", function(collectionApi) {
return collectionApi.getFilteredByGlob("site/component-library/**/*");
});

// === PASSTHROUGH COPY ===
// Copy the entire styles directory to _site
eleventyConfig.addPassthroughCopy("src/css/");

// === WATCH TARGETS ===
// Watch CSS files for changes during development
eleventyConfig.addWatchTarget("src/css/**/*.css");

eleventyConfig.addPlugin(lightningcssPlugin, {
src: "src/css/app.css",

lightningcssOptions: {
minify: true,
sourceMap: true,
targets: "defaults"
}
});

const config = {
dir: {
input: "site",
output: "_site"
}
};

// Set pathPrefix in production for GitHub Pages
//
// GitHub Pages currently serves this site at
// https://thoughtbot.github.io/roux/,
// but this site is built expecting to be at the root `/`.
// Therefore, we need to set `pathPrefix` to `/roux/` in production
// to serve the site correctly. If we decide to use a custom domain,
// we can remove this.
if (process.env.SITE_ENV === 'production') {
config.pathPrefix = "/roux/";
}

return config;
}
52 changes: 52 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build and Deploy to GitHub Pages

on:
push:
branches: [ component_library ]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build site
run: npm run deploy

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '_site'

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
dist
node_modules
_site
Loading