mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
20 lines
521 B
TypeScript
20 lines
521 B
TypeScript
import './index.css';
|
|
import App from './App.svelte';
|
|
import { isEnvBrowser } from './utils/misc';
|
|
|
|
const app = new App({
|
|
target: document.getElementById('app'),
|
|
});
|
|
|
|
if (isEnvBrowser()) {
|
|
const root = document.getElementById('app');
|
|
|
|
// https://i.imgur.com/iPTAdYV.png - Night time img
|
|
root!.style.backgroundImage = 'url("https://i.imgur.com/3pzRj9n.png")';
|
|
root!.style.backgroundSize = 'cover';
|
|
root!.style.backgroundRepeat = 'no-repeat';
|
|
root!.style.backgroundPosition = 'center';
|
|
}
|
|
|
|
export default app;
|