import '../resources/sass/app.scss';
import App from './App.svelte';
import { Cookie } from './Global/Cookie';
import { Lang } from './Global/Lang';

Cookie.init();

// フォント設定
if(Lang.lang() == "vi"){
  document.append(`
    <style>
      h2,div,input{
          font-family: 'Quicksand', sans-serif;
          font-weight: bold;
      }
      .top-part-top,.btn-exit,.popup .body-text,.abs-text{
          font-family: Quicksand;
      }
      .popup-body input{
          font-family: Quicksand Medium;
      }
    </style>
  `.replace(/\n/g, "").replace(/ /g, ""));
}

const app = new App({
  target: document.getElementById('app'),
});

export default app;