diff --git a/s1/static/favicon.png b/s1/static/favicon.png new file mode 100644 index 0000000..825b9e6 Binary files /dev/null and b/s1/static/favicon.png differ diff --git a/s1/static/stylee.css b/s1/static/stylee.css new file mode 100644 index 0000000..09c0987 --- /dev/null +++ b/s1/static/stylee.css @@ -0,0 +1,33 @@ +body { + font-family: sans-serif; + margin: 0; + padding: 20px; +} + +header { + text-align: center; +} + +main { + display: flex; + justify-content: center; + align-items: center; + min-height: calc(100vh - 120px); /* Subtract header and footer height */ +} + +.options { + text-align: center; +} + +.options a { + display: block; + margin-bottom: 10px; + padding: 10px 20px; + border: 1px solid #ddd; + text-decoration: none; + color: #000; +} + +.options a:hover { + background-color: #eee; +} diff --git a/s1/svelte.config.js b/s1/svelte.config.js new file mode 100644 index 0000000..4a82086 --- /dev/null +++ b/s1/svelte.config.js @@ -0,0 +1,18 @@ +import adapter from '@sveltejs/adapter-auto'; +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; + +/** @type {import('@sveltejs/kit').Config} */ +const config = { + // Consult https://kit.svelte.dev/docs/integrations#preprocessors + // for more information about preprocessors + preprocess: vitePreprocess(), + + kit: { + // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. + // If your environment is not supported, or you settled on a specific environment, switch out the adapter. + // See https://kit.svelte.dev/docs/adapters for more information about adapters. + adapter: adapter() + } +}; + +export default config; diff --git a/s1/tsconfig.json b/s1/tsconfig.json new file mode 100644 index 0000000..fc93cbd --- /dev/null +++ b/s1/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "./.svelte-kit/tsconfig.json", + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "sourceMap": true, + "strict": true, + "moduleResolution": "bundler" + } + // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias + // except $lib which is handled by https://kit.svelte.dev/docs/configuration#files + // + // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes + // from the referenced tsconfig.json - TypeScript does not merge them in +} diff --git a/s1/vite.config.ts b/s1/vite.config.ts new file mode 100644 index 0000000..bbf8c7d --- /dev/null +++ b/s1/vite.config.ts @@ -0,0 +1,6 @@ +import { sveltekit } from '@sveltejs/kit/vite'; +import { defineConfig } from 'vite'; + +export default defineConfig({ + plugins: [sveltekit()] +}); diff --git a/src/main.v b/src/main.v index 7bd65a3..60cc2ac 100644 --- a/src/main.v +++ b/src/main.v @@ -21,7 +21,6 @@ fn main() { sql db { create table Faculty - // create table Product } or { panic('error on create table: ${err}') } db.close() or { panic(err) } diff --git a/src/src b/src/src new file mode 100755 index 0000000..ea25ee9 Binary files /dev/null and b/src/src differ