import { RouteDefinition, useRoutes } from 'solid-app-router'; import { For, lazy } from 'solid-js'; import { MetaProvider, Title, Link, Meta } from 'solid-meta'; import head from '../config/head'; import '@fontsource/poppins/400.css'; import '@fontsource/poppins/700.css'; import '@fontsource/ibm-plex-mono/400.css'; import '../styles/default.sass'; const route: RouteDefinition[] = [ { path: '/', component: lazy(() => import('../pages/index')), }, { path: '/project/:repo', component: lazy(() => import('../pages/project/[repo]')), }, { path: '*all', component: lazy(() => import('../pages/index')), }, ]; const Routes = useRoutes(route); function Default() { return ( <> {head.title} {link => } {meta => }
); } export default Default;