Notes on making demos
Each demo is a standalone *.html file — open it directly in a browser.
The demos index (index.php) needs PHP; serve from the repo root:
$ php -S localhost:8000
then visit http://localhost:8000/demos/
Copy a nearby demo and strip it down. Two ways to get the styles:
-
local build —
<link href="../demo.css" rel="stylesheet">(npm run buildregenerates it fromdemo.sass) -
unpkg — as in flex/flex-row-cl.html:
<link href="https://unpkg.com/@vbarbarosh/[email protected]/dist/reset.css" rel="stylesheet"> <link href="https://unpkg.com/@vbarbarosh/[email protected]/dist/sm.css" rel="stylesheet">
A directory appears in the demos index as soon as it contains at least one
*.html file.
If you need an image in one of your demos feel free to use
- https://unsplash.it/200?random=N
imagesdirectory