From 5800574560a232de64b6c344d1b3aa059a2daf80 Mon Sep 17 00:00:00 2001 From: satr14 Date: Sat, 25 Jul 2026 08:31:12 +0700 Subject: [PATCH 1/2] chess board --- src/routes/+layout.svelte | 5 +++-- src/routes/+page.svelte | 15 +++++++++++++-- src/routes/layout.css | 3 +++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 705a7a5..0806ab6 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -6,5 +6,6 @@ - -{@render children()} +
+ {@render children()} +
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index cc88df0..5a17237 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,2 +1,13 @@ -

Welcome to SvelteKit

-

Visit svelte.dev/docs/kit to read the documentation

+ + +
+ {#each board as info, index} +
+ {index} +
+ {/each} +
\ No newline at end of file diff --git a/src/routes/layout.css b/src/routes/layout.css index d4b5078..e9704fd 100644 --- a/src/routes/layout.css +++ b/src/routes/layout.css @@ -1 +1,4 @@ @import 'tailwindcss'; + +html, body { @apply h-full; } +body { @apply bg-gray-900 text-gray-100; } From e48c6ac6da959707cd6ce50686f08447f6f4c4e5 Mon Sep 17 00:00:00 2001 From: satr14 Date: Sat, 25 Jul 2026 08:31:22 +0700 Subject: [PATCH 2/2] download pieces textures --- static/bishop-b.svg | 27 +++++++++++++++++++++++++++ static/bishop-w.svg | 27 +++++++++++++++++++++++++++ static/king-b.svg | 31 +++++++++++++++++++++++++++++++ static/king-w.svg | 27 +++++++++++++++++++++++++++ static/knight-b.svg | 27 +++++++++++++++++++++++++++ static/knight-w.svg | 25 +++++++++++++++++++++++++ static/pawn-b.svg | 22 ++++++++++++++++++++++ static/pawn-w.svg | 22 ++++++++++++++++++++++ static/queen-b.svg | 30 ++++++++++++++++++++++++++++++ static/queen-w.svg | 29 +++++++++++++++++++++++++++++ static/rook-b.svg | 29 +++++++++++++++++++++++++++++ static/rook-w.svg | 28 ++++++++++++++++++++++++++++ 12 files changed, 324 insertions(+) create mode 100644 static/bishop-b.svg create mode 100644 static/bishop-w.svg create mode 100644 static/king-b.svg create mode 100644 static/king-w.svg create mode 100644 static/knight-b.svg create mode 100644 static/knight-w.svg create mode 100644 static/pawn-b.svg create mode 100644 static/pawn-w.svg create mode 100644 static/queen-b.svg create mode 100644 static/queen-w.svg create mode 100644 static/rook-b.svg create mode 100644 static/rook-w.svg diff --git a/static/bishop-b.svg b/static/bishop-b.svg new file mode 100644 index 0000000..3f5516b --- /dev/null +++ b/static/bishop-b.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/static/bishop-w.svg b/static/bishop-w.svg new file mode 100644 index 0000000..ba52426 --- /dev/null +++ b/static/bishop-w.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/static/king-b.svg b/static/king-b.svg new file mode 100644 index 0000000..059b25b --- /dev/null +++ b/static/king-b.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/king-w.svg b/static/king-w.svg new file mode 100644 index 0000000..9d40b5e --- /dev/null +++ b/static/king-w.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/static/knight-b.svg b/static/knight-b.svg new file mode 100644 index 0000000..6155c58 --- /dev/null +++ b/static/knight-b.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/static/knight-w.svg b/static/knight-w.svg new file mode 100644 index 0000000..091003b --- /dev/null +++ b/static/knight-w.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + diff --git a/static/pawn-b.svg b/static/pawn-b.svg new file mode 100644 index 0000000..1c5027e --- /dev/null +++ b/static/pawn-b.svg @@ -0,0 +1,22 @@ + + + + + + + + diff --git a/static/pawn-w.svg b/static/pawn-w.svg new file mode 100644 index 0000000..35c5d30 --- /dev/null +++ b/static/pawn-w.svg @@ -0,0 +1,22 @@ + + + + + + + + diff --git a/static/queen-b.svg b/static/queen-b.svg new file mode 100644 index 0000000..8580124 --- /dev/null +++ b/static/queen-b.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/queen-w.svg b/static/queen-w.svg new file mode 100644 index 0000000..819173d --- /dev/null +++ b/static/queen-w.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/rook-b.svg b/static/rook-b.svg new file mode 100644 index 0000000..47cef2b --- /dev/null +++ b/static/rook-b.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/static/rook-w.svg b/static/rook-w.svg new file mode 100644 index 0000000..97db1f3 --- /dev/null +++ b/static/rook-w.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + +