fix reference to css resources

This commit is contained in:
Sebastian 2022-06-03 15:56:58 -03:00
parent 075903d4dd
commit 459c1994e6
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
7 changed files with 33 additions and 4 deletions

View File

@ -0,0 +1,29 @@
import { setupI18n } from "@gnu-taler/taler-util";
import { h, render } from "preact";
import App from "./components/app";
//import "./scss/main.scss";
export default App;
function main(): void {
try {
const container = document.getElementById("container");
if (!container) {
throw Error("container not found, can't mount page contents");
}
render(h(App, {}), container);
} catch (e) {
console.error("got error", e);
if (e instanceof Error) {
document.body.innerText = `Fatal error: "${e.message}". Please report this bug at https://bugs.gnunet.org/.`;
}
}
}
// setupI18n("en", strings);
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", main);
} else {
main();
}

View File

@ -18,5 +18,5 @@
font-family: 'Nunito'; font-family: 'Nunito';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: url(./XRXV3I6Li01BKofINeaE.ttf) format('truetype'); src: url(./fonts/XRXV3I6Li01BKofINeaE.ttf) format('truetype');
} }

View File

@ -44,12 +44,12 @@
@import "custom-calendar"; @import "custom-calendar";
@import "loading"; @import "loading";
@import "fonts/nunito.css"; @import "fonts/nunito";
@import "icons/materialdesignicons-4.9.95.min.css"; @import "icons/materialdesignicons-4.9.95.min";
$tooltip-color: red; $tooltip-color: red;
@import "../../node_modules/@creativebulma/bulma-tooltip/dist/bulma-tooltip.min.css"; @import "node_modules/@creativebulma/bulma-tooltip/dist/bulma-tooltip";
// @import "../../node_modules/bulma-timeline/dist/css/bulma-timeline.min.css"; // @import "../../node_modules/bulma-timeline/dist/css/bulma-timeline.min.css";
.notification { .notification {