Changed from astro to pure solidjs
This commit is contained in:
parent
3203e91c5a
commit
e85dc60101
76 changed files with 2281 additions and 3843 deletions
23
src/layouts/Layout.tsx
Normal file
23
src/layouts/Layout.tsx
Normal 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!)
|
||||
Loading…
Add table
Add a link
Reference in a new issue