From 014a5dc63121bdd920270880c0fe65848cf091a4 Mon Sep 17 00:00:00 2001 From: Logan Wemyss <10540653-VixieTSQ@users.noreply.gitlab.com> Date: Sun, 3 Dec 2023 23:00:45 -0700 Subject: [PATCH] Format code and fix lint error --- .github/workflows/docker-image.yml | 2 +- README.md | 2 +- package.json | 2 +- postcss.config.js | 10 +++--- src/app.css | 16 ++++----- src/app.html | 20 +++++------ src/lib/fonts/CascadiaCode.css | 12 +++---- src/routes/+layout.server.js | 2 +- src/routes/Background.svelte | 1 + tailwind.config.js | 57 +++++++++++++++--------------- 10 files changed, 61 insertions(+), 63 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 252fb0c..0e89ae6 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -73,4 +73,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: raibu-web - path: raibu-web.tar.gz \ No newline at end of file + path: raibu-web.tar.gz diff --git a/README.md b/README.md index 945bf2f..51d64a4 100644 --- a/README.md +++ b/README.md @@ -19,4 +19,4 @@ To create a production version of raibu-web: npm run build ``` -You can preview the production build with `npm run preview`. \ No newline at end of file +You can preview the production build with `npm run preview`. diff --git a/package.json b/package.json index 4e05c9d..aef715f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "raibu-web", - "version": "1.1.0", + "version": "1.1.1", "private": true, "scripts": { "dev": "vite dev", diff --git a/postcss.config.js b/postcss.config.js index 2e7af2b..0f77216 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,6 +1,6 @@ export default { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} + plugins: { + tailwindcss: {}, + autoprefixer: {} + } +}; diff --git a/src/app.css b/src/app.css index b6c0080..fabf2e0 100644 --- a/src/app.css +++ b/src/app.css @@ -3,23 +3,23 @@ @tailwind utilities; @media (prefers-reduced-motion: reduce) { - * { - @apply !animate-none !transition-none !transform-none !scroll-auto; - } + * { + @apply !animate-none !transition-none !transform-none !scroll-auto; + } } html { - @apply scroll-smooth + @apply scroll-smooth; } button { - @apply text-sm px-4 py-2 rounded !min-w-[100px] bg-primary-200 text-neutral-800 border border-primary-200 transition-all ease-in-out duration-200 hover:bg-neutral-800 hover:text-primary-200 + @apply text-sm px-4 py-2 rounded !min-w-[100px] bg-primary-200 text-neutral-800 border border-primary-200 transition-all ease-in-out duration-200 hover:bg-neutral-800 hover:text-primary-200; } button:active { - @apply scale-90 transition-transform ease-in-out duration-100; + @apply scale-90 transition-transform ease-in-out duration-100; } a { - @apply no-underline text-neutral-100 hover:text-primary-400 duration-200 transition-colors ease-in-out; -} \ No newline at end of file + @apply no-underline text-neutral-100 hover:text-primary-400 duration-200 transition-colors ease-in-out; +} diff --git a/src/app.html b/src/app.html index cd67e56..0981c80 100644 --- a/src/app.html +++ b/src/app.html @@ -1,14 +1,12 @@ + + + + %sveltekit.head% + - - - - %sveltekit.head% - - - -
%sveltekit.body%
- - - \ No newline at end of file + +
%sveltekit.body%
+ + diff --git a/src/lib/fonts/CascadiaCode.css b/src/lib/fonts/CascadiaCode.css index 9004d2f..dcda80c 100644 --- a/src/lib/fonts/CascadiaCode.css +++ b/src/lib/fonts/CascadiaCode.css @@ -1,10 +1,10 @@ @font-face { - font-family: "Cascadia Code"; - src: url("./CascadiaCode.woff"); + font-family: 'Cascadia Code'; + src: url('./CascadiaCode.woff'); } @font-face { - font-family: "Cascadia Code"; - src: url("./CascadiaCodeItalic.woff"); - font-style: italic; -} \ No newline at end of file + font-family: 'Cascadia Code'; + src: url('./CascadiaCodeItalic.woff'); + font-style: italic; +} diff --git a/src/routes/+layout.server.js b/src/routes/+layout.server.js index 05d87e2..189f71e 100644 --- a/src/routes/+layout.server.js +++ b/src/routes/+layout.server.js @@ -1 +1 @@ -export const prerender = true \ No newline at end of file +export const prerender = true; diff --git a/src/routes/Background.svelte b/src/routes/Background.svelte index c90531c..0eea740 100644 --- a/src/routes/Background.svelte +++ b/src/routes/Background.svelte @@ -15,6 +15,7 @@
+ {#each { length: 100 } as _} {/each} diff --git a/tailwind.config.js b/tailwind.config.js index 242df4b..1de5715 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,32 +1,31 @@ -const defaultTheme = require('tailwindcss/defaultTheme') +const defaultTheme = require('tailwindcss/defaultTheme'); /** @type {import('tailwindcss').Config} */ export default { - content: ['./src/**/*.{html,js,svelte,ts}'], - theme: { - extend: { - fontFamily: { - 'sans': ['"Cascadia Code"', ...defaultTheme.fontFamily.sans], - }, - colors: { - neutral: { - 100: "#fcf8f9", - 200: "rgba(255, 255, 255, 0.5)", - 300: "rgba(255, 255, 255, 0.1)", - 800: "#16080d", - 900: "rgb(8, 1, 2)" - }, - primary: { - 200: "#f495b5", - 400: "#af4b6c" - }, - secondary: { - 800: "#2d151d", - 700: "#3e1f28" - } - } - }, - }, - plugins: [], -} - + content: ['./src/**/*.{html,js,svelte,ts}'], + theme: { + extend: { + fontFamily: { + sans: ['"Cascadia Code"', ...defaultTheme.fontFamily.sans] + }, + colors: { + neutral: { + 100: '#fcf8f9', + 200: 'rgba(255, 255, 255, 0.5)', + 300: 'rgba(255, 255, 255, 0.1)', + 800: '#16080d', + 900: 'rgb(8, 1, 2)' + }, + primary: { + 200: '#f495b5', + 400: '#af4b6c' + }, + secondary: { + 800: '#2d151d', + 700: '#3e1f28' + } + } + } + }, + plugins: [] +};