Skip to content

Commit

Permalink
Format code and fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
VixieTSQ committed Dec 4, 2023
1 parent 579b1de commit 014a5dc
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 63 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: raibu-web
path: raibu-web.tar.gz
path: raibu-web.tar.gz
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
You can preview the production build with `npm run preview`.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raibu-web",
"version": "1.1.0",
"version": "1.1.1",
"private": true,
"scripts": {
"dev": "vite dev",
Expand Down
10 changes: 5 additions & 5 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
plugins: {
tailwindcss: {},
autoprefixer: {}
}
};
16 changes: 8 additions & 8 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
@apply no-underline text-neutral-100 hover:text-primary-400 duration-200 transition-colors ease-in-out;
}
20 changes: 9 additions & 11 deletions src/app.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>

<body data-sveltekit-preload-data="hover" id="top">
<div style="display: contents">%sveltekit.body%</div>
</body>

</html>
<body data-sveltekit-preload-data="hover" id="top">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
12 changes: 6 additions & 6 deletions src/lib/fonts/CascadiaCode.css
Original file line number Diff line number Diff line change
@@ -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;
}
font-family: 'Cascadia Code';
src: url('./CascadiaCodeItalic.woff');
font-style: italic;
}
2 changes: 1 addition & 1 deletion src/routes/+layout.server.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const prerender = true
export const prerender = true;
1 change: 1 addition & 0 deletions src/routes/Background.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="background absolute inset-0 overflow-hidden z-0" on:mousemove={mouseMove}>
<!-- eslint-disable-next-line no-unused-vars -->
{#each { length: 100 } as _}
<Star mouseTarget={target} />
{/each}
Expand Down
57 changes: 28 additions & 29 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -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: []
};

0 comments on commit 014a5dc

Please sign in to comment.