From e94cb3115ef5d83c3b98ed988d283e06c79b3526 Mon Sep 17 00:00:00 2001 From: oier Date: Mon, 18 Apr 2022 22:44:24 +0200 Subject: [PATCH] Theme elements --- README.md | 9 +++++++++ index.html | 14 +++++++++++--- src/main.ts | 2 ++ src/style.css | 8 -------- vite.config.js | 10 ++++++++++ 5 files changed, 32 insertions(+), 11 deletions(-) create mode 100644 README.md delete mode 100644 src/style.css create mode 100644 vite.config.js diff --git a/README.md b/README.md new file mode 100644 index 0000000..2214d7c --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# Okupamicoche Hydrogen + +## Theme +- Download and build `hidrogen-web` outside this project. + - `git clone https://github.com/vector-im/hydrogen-web` + - `yarn install` + - `yarn build:sdk` + - `yarn link` +- Inside this project `yarn link hydrogen-view-sdk` \ No newline at end of file diff --git a/index.html b/index.html index 0110c53..124e726 100644 --- a/index.html +++ b/index.html @@ -5,11 +5,19 @@ - Vite App + Okupamicoche + + + + + + + + + - -
+ diff --git a/src/main.ts b/src/main.ts index 41b8374..35efca2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -20,6 +20,8 @@ const assetPaths = { }; import "hydrogen-view-sdk/style.css"; +import "hydrogen-view-sdk/theme-element-dark.css"; + // Don't use a default export here, as we use multiple entries during legacy build, // which does not support default exports, // see https://github.com/rollup/plugins/tree/master/packages/multi-entry diff --git a/src/style.css b/src/style.css deleted file mode 100644 index 852de7a..0000000 --- a/src/style.css +++ /dev/null @@ -1,8 +0,0 @@ -#app { - font-family: Avenir, Helvetica, Arial, sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-align: center; - color: #2c3e50; - margin-top: 60px; -} diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..a41c02e --- /dev/null +++ b/vite.config.js @@ -0,0 +1,10 @@ +// vite.config.js +const {defineConfig} = require('vite'); +export default defineConfig({ + server: { + fs: { + // Allow serving files from one level up to the project root + strict: false + } + } + }) \ No newline at end of file