initial vite
This commit is contained in:
9
src/index.tsx
Normal file
9
src/index.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
/* @refresh reload */
|
||||
import { render } from 'solid-js/web';
|
||||
import { Router } from "@solidjs/router";
|
||||
import './styles/bulma.scss';
|
||||
import routes from './routes';
|
||||
|
||||
const root = document.getElementById('root')
|
||||
|
||||
render(() => <Router>{routes}</Router>, root!)
|
11
src/routes.ts
Normal file
11
src/routes.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { RouteDefinition } from "@solidjs/router";
|
||||
import Home from "./views/Home";
|
||||
|
||||
const routes: RouteDefinition[] = [
|
||||
{
|
||||
path: '/',
|
||||
component: Home
|
||||
}
|
||||
];
|
||||
|
||||
export default routes;
|
3
src/styles/bulma.scss
vendored
Normal file
3
src/styles/bulma.scss
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
@charset 'utf8';
|
||||
|
||||
@forward 'bulma/sass';
|
7
src/views/Home.tsx
Normal file
7
src/views/Home.tsx
Normal file
@ -0,0 +1,7 @@
|
||||
function Home() {
|
||||
return (
|
||||
<p>Hi</p>
|
||||
)
|
||||
}
|
||||
|
||||
export default Home
|
1
src/vite-env.d.ts
vendored
Normal file
1
src/vite-env.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
Reference in New Issue
Block a user