Skip to content

Commit 5177952

Browse files
committed
Use spaces instead of tabs, fix account number
1 parent 95f949d commit 5177952

28 files changed

+769
-709
lines changed

.github/workflows/deploy_to_gh.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Deploy to GitHub Pages on merge
2-
"on":
2+
on:
33
push:
44
branches:
55
- main

.markdownlint.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"MD013": false,
3-
"MD025": false
2+
"MD013": false,
3+
"MD025": false
44
}

.prettierrc

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"useTabs": true,
3-
"singleQuote": true,
4-
"trailingComma": "none",
5-
"printWidth": 100,
6-
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
7-
"overrides": [
8-
{
9-
"files": "*.svelte",
10-
"options": {
11-
"parser": "svelte"
12-
}
13-
}
14-
]
2+
"useTabs": false,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
7+
"overrides": [
8+
{
9+
"files": "*.svelte",
10+
"options": {
11+
"parser": "svelte"
12+
}
13+
}
14+
]
1515
}

eslint.config.js

+22-22
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@ import ts from 'typescript-eslint';
88
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));
99

1010
export default ts.config(
11-
includeIgnoreFile(gitignorePath),
12-
js.configs.recommended,
13-
...ts.configs.recommended,
14-
...svelte.configs['flat/recommended'],
15-
prettier,
16-
...svelte.configs['flat/prettier'],
17-
{
18-
languageOptions: {
19-
globals: {
20-
...globals.browser,
21-
...globals.node
22-
}
23-
}
24-
},
25-
{
26-
files: ['**/*.svelte'],
11+
includeIgnoreFile(gitignorePath),
12+
js.configs.recommended,
13+
...ts.configs.recommended,
14+
...svelte.configs['flat/recommended'],
15+
prettier,
16+
...svelte.configs['flat/prettier'],
17+
{
18+
languageOptions: {
19+
globals: {
20+
...globals.browser,
21+
...globals.node
22+
}
23+
}
24+
},
25+
{
26+
files: ['**/*.svelte'],
2727

28-
languageOptions: {
29-
parserOptions: {
30-
parser: ts.parser
31-
}
32-
}
33-
}
28+
languageOptions: {
29+
parserOptions: {
30+
parser: ts.parser
31+
}
32+
}
33+
}
3434
);

package.json

+44-44
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
{
2-
"name": "flow-landing",
3-
"private": true,
4-
"version": "0.0.1",
5-
"type": "module",
6-
"scripts": {
7-
"dev": "vite dev --open",
8-
"build": "vite build",
9-
"preview": "vite preview",
10-
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
11-
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
12-
"format": "prettier --write .",
13-
"lint": "prettier --check . && eslint .",
14-
"gh-pages": "pnpm run build && pnpx gh-pages -d build -t",
15-
"gh-pages-actions": "pnpm run build && pnpx gh-pages -d build -t -u \"github-actions-bot <[email protected]>\""
16-
},
17-
"devDependencies": {
18-
"@eslint/compat": "^1.2.3",
19-
"@sveltejs/adapter-auto": "^3.3.1",
20-
"@sveltejs/adapter-static": "^3.0.8",
21-
"@sveltejs/kit": "^2.0.0",
22-
"@sveltejs/vite-plugin-svelte": "^4.0.0",
23-
"@tailwindcss/typography": "^0.5.16",
24-
"@types/aos": "^3.0.7",
25-
"autoprefixer": "^10.4.20",
26-
"eslint": "^9.7.0",
27-
"eslint-config-prettier": "^9.1.0",
28-
"eslint-plugin-svelte": "^2.36.0",
29-
"gh-pages": "^6.3.0",
30-
"globals": "^15.0.0",
31-
"mdsvex": "^0.11.2",
32-
"prettier": "^3.3.2",
33-
"prettier-plugin-svelte": "^3.2.6",
34-
"prettier-plugin-tailwindcss": "^0.6.10",
35-
"svelte": "^5.0.0",
36-
"svelte-check": "^4.0.0",
37-
"tailwindcss": "^3.4.17",
38-
"typescript": "^5.0.0",
39-
"typescript-eslint": "^8.0.0",
40-
"vite": "^5.4.11"
41-
},
42-
"dependencies": {
43-
"@tailwindcss/typography": "^0.5.15",
44-
"aos": "^2.3.4"
45-
}
2+
"name": "flow-landing",
3+
"private": true,
4+
"version": "0.0.1",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite dev --open",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
11+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
12+
"format": "prettier --write .",
13+
"lint": "prettier --check . && eslint .",
14+
"gh-pages": "pnpm run build && pnpx gh-pages -d build -t",
15+
"gh-pages-actions": "pnpm run build && pnpx gh-pages -d build -t -u \"github-actions-bot <[email protected]>\""
16+
},
17+
"devDependencies": {
18+
"@eslint/compat": "^1.2.3",
19+
"@sveltejs/adapter-auto": "^3.3.1",
20+
"@sveltejs/adapter-static": "^3.0.8",
21+
"@sveltejs/kit": "^2.0.0",
22+
"@sveltejs/vite-plugin-svelte": "^4.0.0",
23+
"@tailwindcss/typography": "^0.5.16",
24+
"@types/aos": "^3.0.7",
25+
"autoprefixer": "^10.4.20",
26+
"eslint": "^9.7.0",
27+
"eslint-config-prettier": "^9.1.0",
28+
"eslint-plugin-svelte": "^2.36.0",
29+
"gh-pages": "^6.3.0",
30+
"globals": "^15.0.0",
31+
"mdsvex": "^0.11.2",
32+
"prettier": "^3.3.2",
33+
"prettier-plugin-svelte": "^3.2.6",
34+
"prettier-plugin-tailwindcss": "^0.6.10",
35+
"svelte": "^5.0.0",
36+
"svelte-check": "^4.0.0",
37+
"tailwindcss": "^3.4.17",
38+
"typescript": "^5.0.0",
39+
"typescript-eslint": "^8.0.0",
40+
"vite": "^5.4.11"
41+
},
42+
"dependencies": {
43+
"@tailwindcss/typography": "^0.5.15",
44+
"aos": "^2.3.4"
45+
}
4646
}

postcss.config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
2-
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {}
5-
}
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {}
5+
}
66
};

src/app.css

+26-26
Original file line numberDiff line numberDiff line change
@@ -4,69 +4,69 @@
44
@import 'tailwindcss/utilities';
55

66
:root {
7-
@apply bg-background text-text;
7+
@apply bg-background text-text;
88

9-
font-size: 16px;
10-
font-family: Poppins, Montserrat, 'Segoe UI', Helvetica, 'Noto Sans Mongolian', sans-serif;
9+
font-size: 16px;
10+
font-family: Poppins, Montserrat, 'Segoe UI', Helvetica, 'Noto Sans Mongolian', sans-serif;
1111
}
1212

1313
* {
14-
padding: 0;
15-
margin: 0;
16-
box-sizing: border-box;
14+
padding: 0;
15+
margin: 0;
16+
box-sizing: border-box;
1717
}
1818

1919
html,
2020
body {
21-
min-height: 100vh;
21+
min-height: 100vh;
2222

23-
width: 100vw;
24-
max-width: 100vw;
23+
width: 100vw;
24+
max-width: 100vw;
2525

26-
overflow-x: hidden;
27-
overflow-y: auto;
26+
overflow-x: hidden;
27+
overflow-y: auto;
2828
}
2929

3030
a {
31-
@apply text-primary;
31+
@apply text-primary;
3232

33-
text-decoration: none;
34-
font-weight: medium;
33+
text-decoration: none;
34+
font-weight: medium;
3535
}
3636

3737
a:visited {
38-
@apply text-primary;
38+
@apply text-primary;
3939

40-
font-weight: medium;
40+
font-weight: medium;
4141
}
4242

4343
img:not(.draggable) {
44-
user-select: none;
45-
-webkit-user-drag: none;
44+
user-select: none;
45+
-webkit-user-drag: none;
4646
}
4747

4848
[data-no-bullet] li {
49-
list-style: none !important;
49+
list-style: none !important;
5050
}
5151

5252
li {
53-
list-style-position: inside;
53+
list-style-position: inside;
5454
}
5555

5656
@media (max-width: 768px) {
57-
.hide-mobile {
58-
display: none;
59-
}
57+
.hide-mobile {
58+
display: none;
59+
}
6060
}
6161

6262
h1 {
63-
@apply text-3xl font-bold;
63+
@apply text-3xl font-bold;
6464
}
6565

6666
h2 {
67-
@apply text-2xl font-bold;
67+
@apply text-2xl font-bold;
6868
}
6969

7070
h3 {
71-
@apply text-xl font-bold;
71+
@apply text-xl font-bold;
7272
}

src/app.d.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// See https://svelte.dev/docs/kit/types#app.d.ts
22
// for information about these interfaces
33
declare global {
4-
namespace App {
5-
// interface Error {}
6-
// interface Locals {}
7-
// interface PageData {}
8-
// interface PageState {}
9-
// interface Platform {}
10-
}
4+
namespace App {
5+
// interface Error {}
6+
// interface Locals {}
7+
// interface PageData {}
8+
// interface PageState {}
9+
// interface Platform {}
10+
}
1111
}
1212

1313
export {};

src/lib/components/Card.svelte

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<script lang="ts">
2-
import type { Snippet } from 'svelte';
2+
import type { Snippet } from 'svelte';
33
4-
interface $Props {
5-
children: Snippet;
6-
}
4+
interface $Props {
5+
children: Snippet;
6+
}
77
8-
let { children }: $Props = $props();
8+
let { children }: $Props = $props();
99
</script>
1010

11-
<div class="flex flex-col gap-2 rounded-lg bg-primary px-3 py-2 text-background">
12-
{@render children()}
11+
<div class="flex flex-col gap-2 rounded-lg border border-primary bg-background px-3 py-2 text-text">
12+
{@render children()}
1313
</div>

src/lib/components/DiscordLogo.svelte

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<div>
2-
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"
3-
><path
4-
fill="#5865F2"
5-
d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"
6-
/></svg
7-
>
2+
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"
3+
><path
4+
fill="#5865F2"
5+
d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"
6+
/></svg
7+
>
88
</div>
99

1010
<style>
11-
div {
12-
display: inline-block;
13-
font-size: 1em;
14-
vertical-align: middle;
15-
}
11+
div {
12+
display: inline-block;
13+
font-size: 1em;
14+
vertical-align: middle;
15+
}
1616
17-
svg {
18-
height: 1em;
19-
width: 1em;
20-
}
17+
svg {
18+
height: 1em;
19+
width: 1em;
20+
}
2121
</style>

src/lib/components/DocHeader.svelte

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<script lang="ts">
2-
import type { Snippet } from 'svelte';
2+
import type { Snippet } from 'svelte';
33
4-
interface $Props {
5-
children?: Snippet;
6-
id: string;
7-
}
4+
interface $Props {
5+
children?: Snippet;
6+
id: string;
7+
}
88
9-
let { id, children }: $Props = $props();
9+
let { id, children }: $Props = $props();
1010
</script>
1111

1212
<h3 {id} class="mt-8 scroll-mt-20 md:mt-12">
13-
<button class="text-inherit opacity-60" onclick={() => (location.hash = id)}>#</button>
14-
&nbsp;{@render children?.()}
13+
<button class="text-inherit opacity-60" onclick={() => (location.hash = id)}>#</button>
14+
&nbsp;{@render children?.()}
1515
</h3>

0 commit comments

Comments
 (0)