Skip to content

Commit

Permalink
remove typo in web; add installation section in doc; clean up counter…
Browse files Browse the repository at this point in the history
…-up demo
  • Loading branch information
manuelbarzi committed Dec 28, 2023
1 parent 2f82db9 commit a7b9fe4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

Object-oriented Component-based UI JavaScript library for HTML Canvas (inspired by Java Swing)

##### Usage
## Installation

```sh
$ npm i @b00tc4mp/wings
```

## Usage

```html
<!-- create a canvas in html -->
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1>Wings</h1>
<main>
<h2>Intallation</h2>

<pre><code class="language-sh">$ npm i @b00tc4mp/wings --hello</code></pre>
<pre><code class="language-sh">$ npm i @b00tc4mp/wings</code></pre>

<h2>Usage (example)</h2>

Expand Down
2 changes: 0 additions & 2 deletions scripts/counter-up.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
constructor() {
super()

// set the dimensions
this.width = this.height = 50

// set colors
this.backgroundColor = 'magenta'
this.borderColor = 'cyan'
this.borderWidth = 5
Expand Down
4 changes: 4 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ html {
height: 100%
}

body {
padding: 1rem;
}

body,
header,
article,
Expand Down

0 comments on commit a7b9fe4

Please sign in to comment.