Skip to content

Commit

Permalink
Add README to standalone example
Browse files Browse the repository at this point in the history
willcrichton committed May 15, 2024
1 parent 1e777e4 commit 9d3dadc
Showing 2 changed files with 17 additions and 1 deletion.
11 changes: 11 additions & 0 deletions example/standalone/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Standalone example

This shows how to use the `@wcrichto/quiz` package in your own standalone web page. It provides a React quiz component. To build it, install [pnpm](https://pnpm.io/) and then run:

```
pnpm exec vite build
cd dist
python3 -m http.server
```

Then visit <http://localhost:8000>.
7 changes: 6 additions & 1 deletion example/standalone/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
@import "normalize.css/normalize.css";
@import "@wcrichto/quiz/dist/lib.scss";
@import "@wcrichto/quiz/dist/lib.scss";

#root {
max-width: 800px;
margin: 1rem auto;
}

0 comments on commit 9d3dadc

Please sign in to comment.