Changed from astro to pure solidjs

This commit is contained in:
Patrick Alvin Alcala 2025-09-23 18:38:13 +08:00
parent 3203e91c5a
commit e85dc60101
76 changed files with 2281 additions and 3843 deletions

23
src/layouts/Layout.tsx Normal file
View file

@ -0,0 +1,23 @@
import './Layout.sass'
import { lazy } from 'solid-js'
import { render } from 'solid-js/web'
import { Router } from '@solidjs/router'
const root = document.getElementById('root')
const routes = [
{
path: '/',
component: lazy(() => import('../pages/IndexPage/Index.tsx')),
},
{
path: '/main',
component: lazy(() => import('../pages/MainPage/Main.tsx')),
},
{
path: '/register',
component: lazy(() => import('../pages/RegisterPage/Register.tsx')),
},
]
render(() => <Router>{routes}</Router>, root!)