commit f2f0b0e57424fc5d71258fb3e4e197f400cda791 Author: Kaan Barmore-Genc Date: Sat Nov 18 11:09:07 2023 -0600 start diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..3897265 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,13 @@ +.DS_Store +node_modules +/build +/.svelte-kit +/package +.env +.env.* +!.env.example + +# Ignore files for PNPM, NPM and YARN +pnpm-lock.yaml +package-lock.json +yarn.lock diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..ebc1958 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,30 @@ +module.exports = { + root: true, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:svelte/recommended', + 'prettier' + ], + parser: '@typescript-eslint/parser', + plugins: ['@typescript-eslint'], + parserOptions: { + sourceType: 'module', + ecmaVersion: 2020, + extraFileExtensions: ['.svelte'] + }, + env: { + browser: true, + es2017: true, + node: true + }, + overrides: [ + { + files: ['*.svelte'], + parser: 'svelte-eslint-parser', + parserOptions: { + parser: '@typescript-eslint/parser' + } + } + ] +}; diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..24a8e87 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.png filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6635cf5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +.DS_Store +node_modules +/build +/.svelte-kit +/package +.env +.env.* +!.env.example +vite.config.js.timestamp-* +vite.config.ts.timestamp-* diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b6f27f1 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..3897265 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,13 @@ +.DS_Store +node_modules +/build +/.svelte-kit +/package +.env +.env.* +!.env.example + +# Ignore files for PNPM, NPM and YARN +pnpm-lock.yaml +package-lock.json +yarn.lock diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..9573023 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +{ + "useTabs": true, + "singleQuote": true, + "trailingComma": "none", + "printWidth": 100, + "plugins": ["prettier-plugin-svelte"], + "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..5c91169 --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# create-svelte + +Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte). + +## Creating a project + +If you're seeing this, you've probably already done this step. Congrats! + +```bash +# create a new project in the current directory +npm create svelte@latest + +# create a new project in my-app +npm create svelte@latest my-app +``` + +## Developing + +Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: + +```bash +npm run dev + +# or start the server and open the app in a new browser tab +npm run dev -- --open +``` + +## Building + +To create a production version of your app: + +```bash +npm run build +``` + +You can preview the production build with `npm run preview`. + +> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..1b0aad5 Binary files /dev/null and b/bun.lockb differ diff --git a/package.json b/package.json new file mode 100644 index 0000000..3289842 --- /dev/null +++ b/package.json @@ -0,0 +1,34 @@ +{ + "name": "bgenc.net-new", + "version": "0.0.1", + "private": true, + "scripts": { + "dev": "vite dev", + "build": "vite build", + "preview": "vite preview", + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", + "lint": "prettier --check . && eslint .", + "format": "prettier --write ." + }, + "devDependencies": { + "@sveltejs/adapter-auto": "^2.1.1", + "@sveltejs/kit": "^1.27.6", + "@typescript-eslint/eslint-plugin": "^6.11.0", + "@typescript-eslint/parser": "^6.11.0", + "eslint": "^8.54.0", + "eslint-config-prettier": "^9.0.0", + "eslint-plugin-svelte": "^2.35.0", + "prettier": "^3.1.0", + "prettier-plugin-svelte": "^3.1.0", + "svelte": "^4.2.5", + "svelte-check": "^3.6.0", + "tslib": "^2.6.2", + "typescript": "^5.2.2", + "vite": "^4.4.2" + }, + "type": "module", + "dependencies": { + "mdsvex": "^0.11.0" + } +} diff --git a/src/app.css b/src/app.css new file mode 100644 index 0000000..f85794a --- /dev/null +++ b/src/app.css @@ -0,0 +1,72 @@ +html { + --color-primary-h: 49; + --color-primary-s: 79%; + --color-primary-l: 53%; + --color-primary: hsl(var(--color-primary-h), var(--color-primary-s), var(--color-primary-l)); + --color-secondary-h: 27; + --color-secondary-s: 96%; + --color-secondary-l: 48%; + --color-secondary: hsl(var(--color-secondary-h), var(--color-secondary-s), var(--color-secondary-l)); + --color-tertiary-h: 191; + --color-tertiary-s: 55%; + --color-tertiary-l: 53%; + --color-tertiary: hsl(var(--color-tertiary-h), var(--color-tertiary-s), var(--color-tertiary-l)); + --color-quaternary-h: 241; + --color-quaternary-s: 48%; + --color-quaternary-l: 41%; + --color-quaternary: hsl(var(--color-quaternary-h), var(--color-quaternary-s), var(--color-quaternary-l)); + --color-quinary-h: 237; + --color-quinary-s: 97%; + --color-quinary-l: 27%; + --color-quinary: hsl(var(--color-quinary-h), var(--color-quinary-s), var(--color-quinary-l)); + + --color-text-h: 0; + --color-text-s: 0%; + --color-text-l: 0%; + --color-text: hsl(var(--color-text-h), var(--color-text-s), var(--color-text-l)); + --color-bg-h: 0; + --color-bg-s: 0%; + --color-bg-l: 100%; + --color-bg: hsl(var(--color-bg-h), var(--color-bg-s), var(--color-bg-l)); + + --size-container: 640px; + + background-color: var(--color-bg); + color: var(--color-text); +} + +/* Reset */ +*, *::before, *::after { + box-sizing: border-box; + font-size: 16px; +} +* { + margin: 0; + padding: 0; + font-weight: normal; +} +body { + line-height: 1.5; + -webkit-font-smoothing: antialiased; + font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; +} +img, picture, video, canvas, svg { + display: block; + max-width: 100%; + height: auto; +} +input, button, textarea, select { + font: inherit; +} +p, h1, h2, h3, h4, h5, h6 { + overflow-wrap: break-word; +} +ol, ul { + list-style: none; +} + +body { + min-height: 100vh; + display: flex; + flex-direction: column; +} \ No newline at end of file diff --git a/src/app.d.ts b/src/app.d.ts new file mode 100644 index 0000000..f59b884 --- /dev/null +++ b/src/app.d.ts @@ -0,0 +1,12 @@ +// See https://kit.svelte.dev/docs/types#app +// for information about these interfaces +declare global { + namespace App { + // interface Error {} + // interface Locals {} + // interface PageData {} + // interface Platform {} + } +} + +export {}; diff --git a/src/app.html b/src/app.html new file mode 100644 index 0000000..77a5ff5 --- /dev/null +++ b/src/app.html @@ -0,0 +1,12 @@ + + + + + + + %sveltekit.head% + + +
%sveltekit.body%
+ + diff --git a/src/lib/index.ts b/src/lib/index.ts new file mode 100644 index 0000000..856f2b6 --- /dev/null +++ b/src/lib/index.ts @@ -0,0 +1 @@ +// place files you want to import through the `$lib` alias in this folder. diff --git a/src/lib/spacer.svelte b/src/lib/spacer.svelte new file mode 100644 index 0000000..49e4604 --- /dev/null +++ b/src/lib/spacer.svelte @@ -0,0 +1,7 @@ +
+ + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte new file mode 100644 index 0000000..68861e5 --- /dev/null +++ b/src/routes/+layout.svelte @@ -0,0 +1,11 @@ + + +
+
+ +