AAAA pschyho

This commit is contained in:
snusxd
2026-02-28 02:34:41 +03:00
parent 200666a13c
commit 17bb3f6a39
13 changed files with 75 additions and 41 deletions

View File

@@ -1,9 +1,18 @@
import { mount } from 'svelte'
import './app.css'
import App from './App.svelte'
import { mount } from "svelte";
import "./app.css";
import HomePage from "./routes/+page.svelte";
import HeartPage from "./routes/heart/+page.svelte";
const routes: Record<string, typeof HomePage> = {
"/": HomePage,
"/heart": HeartPage,
};
const normalizedPath = window.location.pathname.replace(/\/+$/, "") || "/";
const App = routes[normalizedPath] ?? HomePage;
const app = mount(App, {
target: document.getElementById('app')!,
})
target: document.getElementById("app")!,
});
export default app
export default app;