Skip to content

Commit d05312c

Browse files
committed
Init of v3
1 parent 72d1a51 commit d05312c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+6370
-15773
lines changed

.editorconfig

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
indent_style = space
11+
indent_size = 2
12+
13+
# Matches multiple files with brace expansion notation
14+
# Set default charset
15+
[*.{js,html}]
16+
charset = utf-8
17+
18+
# 2 space indentation
19+
[*.{html,css,scss,js}]
20+
indent_style = space
21+
indent_size = 2
22+
23+
# Markdown files
24+
[*.md]
25+
trim_trailing_whitespace = false

.github/workflows/deploy.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["master"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
jobs:
25+
# Single deploy job since we're just deploying
26+
deploy:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
35+
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
36+
run: |
37+
npm ci
38+
npm run build
39+
40+
- name: Setup Pages
41+
uses: actions/configure-pages@v4
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v3
44+
with:
45+
# Upload entire repository
46+
path: 'src'
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
# Dependencies
21
node_modules
32

4-
# Compiled output
5-
/dist
6-
/.tmp
7-
/zip
8-
9-
# System Files
103
.DS_Store
114
Thumbs.db
5+
6+
*.map

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Nigel O Toole
3+
Copyright (c) 2020 Nigel O Toole
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 8 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,16 @@
1-
# SASS Progress Tracker
2-
### A HTML component to illustrate the steps in a multi step process e.g. a multi step form, a timeline or a quiz.
1+
# Progress Tracker
2+
### Illustrate the steps in a multi step process like a form or a timeline.
33

4-
### [View demo](http://nigelotoole.github.io/progress-tracker/)
5-
6-
7-
8-
## Installation
9-
10-
```javascript
11-
$ npm install progress-tracker --save
12-
```
13-
14-
### Import
15-
16-
After installation you can import it into your Sass files with the statement below.
17-
18-
```scss
19-
@import "node_modules/progress-tracker/src/styles/progress-tracker.scss";
20-
```
21-
22-
The JS that is part of this site is just for demonstration purposes, add your own JS as needed to toggle the classes for the step states.
23-
24-
### Markup
25-
26-
Follow the HTML code example below for basic usage; each demo sets the first two steps as complete, the third step as active and the last two steps as inactive.
27-
28-
For additional styles add modifier classes and additional markup as needed in the examples below. You can add multiple modifier classes to achieve additional styles that those shown below.
29-
30-
```html
31-
<ul class="progress-tracker">
32-
<li class="progress-step is-complete">
33-
<div class="progress-marker"></div>
34-
</li>
35-
<li class="progress-step is-complete">
36-
<div class="progress-marker"></div>
37-
</li>
38-
<li class="progress-step is-active">
39-
<div class="progress-marker"></div>
40-
</li>
41-
<li class="progress-step">
42-
<div class="progress-marker"></div>
43-
</li>
44-
<li class="progress-step">
45-
<div class="progress-marker"></div>
46-
</li>
47-
</ul>
48-
```
49-
50-
51-
### Demo site
52-
53-
Clone or download from Github.
4+
### [Demo and documentation](http://nigelotoole.github.io/progress-tracker/)
545

6+
---
7+
## Quick start
558
```javascript
56-
$ npm install
57-
$ gulp serve
9+
$ npm install @nigelotoole/progress-tracker --save-dev
5810
```
5911

12+
Import the CSS into your project and add the elements to your HTML.
6013

14+
---
6115
### License
6216
MIT © Nigel O Toole

0 commit comments

Comments
 (0)