Website for Nagai and its subprojects (Naosu, Rai, Fune)
| assets | ||
| components | ||
| database | ||
| layouts | ||
| pages | ||
| .envrc | ||
| .gitignore | ||
| .prettierrc | ||
| biome.json | ||
| bun.lock | ||
| eslint.config.js | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| shell.nix | ||
| tsconfig.json | ||
| vite.config.ts | ||
Website
This is the source code for the nagai.cc website, built with Vike.
temporary notes for developers as it's just now initialized below
Generated with vike.dev/new (version 419) using this command:
bun create vike@latest --solid --tailwindcss --daisyui --plausible.io --eslint --prettier --biome --skip-git
Contents
/pages/+config.ts- Routing
/pages/_error/+Page.jsx/pages/+onPageTransitionStart.tsand/pages/+onPageTransitionEnd.ts- SSR
- HTML Streaming
This app is ready to start. It's powered by Vike and SolidJS.
/pages/+config.ts
Such + files are the interface between Vike and your code. It defines:
- A default
<Layout>component (that wraps your<Page>components). - A default
title. - Global
<head>tags.
Routing
Vike's built-in router lets you choose between:
- Filesystem Routing (the URL of a page is determined based on where its
+Page.jsxfile is located on the filesystem) - Route Strings
- Route Functions
/pages/_error/+Page.jsx
The error page which is rendered when errors occur.
/pages/+onPageTransitionStart.ts and /pages/+onPageTransitionEnd.ts
The onPageTransitionStart() hook, together with onPageTransitionEnd(), enables you to implement page transition animations.
SSR
SSR is enabled by default. You can disable it for all your pages or only for some pages.
HTML Streaming
You can enable/disable HTML streaming for all your pages, or only for some pages while still using it for others.