initial vite

This commit is contained in:
2024-10-17 12:32:06 +02:00
parent 000565d75d
commit c8790a0614
15 changed files with 4873 additions and 0 deletions

9
src/index.tsx Normal file
View 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
View 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
View File

@ -0,0 +1,3 @@
@charset 'utf8';
@forward 'bulma/sass';

7
src/views/Home.tsx Normal file
View File

@ -0,0 +1,7 @@
function Home() {
return (
<p>Hi</p>
)
}
export default Home

1
src/vite-env.d.ts vendored Normal file
View File

@ -0,0 +1 @@
/// <reference types="vite/client" />