diff --git a/README.md b/README.md index 76c9f8a3..4e483e4c 100644 --- a/README.md +++ b/README.md @@ -23,19 +23,20 @@ npm run bundle:core:watch ## Demo page -There are three commands that can be used to play with the demo application: +There are three main commands that can be used to play with the demo application: ``` npm run demo:build -npm run demo:watch npm run demo:serve +npm run demo:watch ``` -- *build* prepare a folder with all the static files compiled. It is located in - dist/demo -- *watch* recompile the typescript files as soon as they are changed -- *serve* starts a live-server pointing to the dist/demo (which will reload the - page whenever the files are changed) +- *demo:build* prepare a folder with all the static files compiled. It is + located in dist/demo +- *demo:serve* simply starts a live-server pointing to the dist/demo (which will + also reload the page whenever the static files are changed) +- *demo:dev* is a single command useful for developping: it will watch the + source files, recompile them as needed, starts a live-server. ## Notes diff --git a/demo/app.scss b/demo/app.scss new file mode 100644 index 00000000..32161680 --- /dev/null +++ b/demo/app.scss @@ -0,0 +1,48 @@ + +html { + height: 100%; +} + +body { + height: 100%; + margin: 0; + font-family: sans-serif; +} + +/* Web Client */ +.o_web_client { + height: 100%; + display: grid; + grid-template-rows: 40px auto; +} + +/* Navbar */ +.o_navbar { + background-color: #875A7B; + color: white; + display: flex; + + span.title { + font-size: 22px; + font-weight: bold; + padding: 8px; + } + + ul { + list-style-type: none; + display: inline-flex; + height: 100%; + margin: 0; + } + + li { + padding: 8px 12px; + font-size: 20px; + } + + a { + color: white; + text-decoration: none; + } +} + diff --git a/demo/index.html b/demo/index.html index 5c8be9c6..3d0b6091 100644 --- a/demo/index.html +++ b/demo/index.html @@ -5,11 +5,11 @@