Pong
-
-
-
-
Game Over
-
-
-
Snake
-
-
+
+
+
+
Snake Head Location:
Food Location:
View Code
--
2.45.2
From 343af77bd1ec987330441926d968d1aa8fa7f80a Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 15:20:56 -0600
Subject: [PATCH 002/122] snake: make game resizable by user
---
index.html | 6 ++++++
src/snake.ts | 17 ++++++++++++++++-
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/index.html b/index.html
index b1eb112..0724c96 100644
--- a/index.html
+++ b/index.html
@@ -34,6 +34,12 @@
+
+ Adjust game size -- Width:
+
+ Height:
+
+
Snake Head Location:
Food Location:
View Code
diff --git a/src/snake.ts b/src/snake.ts
index 236ac7d..871b9ec 100644
--- a/src/snake.ts
+++ b/src/snake.ts
@@ -169,6 +169,21 @@ class SnakeCore {
document.getElementById("snakeHead").innerHTML = "x: " + this.body[this.body.length - 1].x + " y: " + this.body[this.body.length - 1].y;
document.getElementById("snakeFood").innerHTML = "x: " + this.food.x + " y: " + this.food.y ;
}
+
+ // Update width and height from page to match game
+ getPageNumbers() {
+ let specifiedWidth = parseInt((document.getElementById("snakeWidth") as HTMLInputElement).value);
+ let specifiedHeight = parseInt((document.getElementById("snakeHeight") as HTMLInputElement).value);
+ if (this.width == specifiedWidth && this.height == specifiedHeight)
+ return false;
+ this.width = specifiedWidth;
+ this.height = specifiedHeight;
+ while (this.height > this.board.length)
+ this.board.push(new Array(this.width));
+ this.canvas.setAttribute("width", String(specifiedWidth * this.grid));
+ this.canvas.setAttribute("height", String(specifiedHeight * this.grid));
+ return true;
+ }
}
class Bot {
@@ -270,7 +285,7 @@ const g_snakebot: Bot = new Bot();
// game loop
function snakeloop() {
// Reset of needed
- if (g_snake.gameover)
+ if (g_snake.gameover || g_snake.getPageNumbers())
g_snake.reset();
// Simulate movement of snake
--
2.45.2
From f1346a628ccc5a3ad74dc381169edaeedb1d633b Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 15:34:53 -0600
Subject: [PATCH 003/122] core: make entire card same border radius
---
default.css | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/default.css b/default.css
index cf6e7eb..08efe3c 100644
--- a/default.css
+++ b/default.css
@@ -132,9 +132,7 @@ a.button {
.card {
background: #363a4f;
text-align: center;
- border-radius: 6px;
- border-top-left-radius: 18px;
- border-top-right-radius: 18px;
+ border-radius: 18px;
animation: card 3s linear infinite;
width: 800px;
height: 800px;
--
2.45.2
From c27b5c0ea98db1d5c641445534d99c6cea99ab6c Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 15:37:20 -0600
Subject: [PATCH 004/122] core: remove background color on nav bar
---
default.css | 3 ---
1 file changed, 3 deletions(-)
diff --git a/default.css b/default.css
index 08efe3c..4ad4495 100644
--- a/default.css
+++ b/default.css
@@ -10,10 +10,7 @@ body {
}
#navigation {
- background: #181926;
display: flex;
- border-bottom-left-radius: 18px;
- border-bottom-right-radius: 18px;
}
.navItem {
--
2.45.2
From f3a5359a845fd63c47a8572a03a005edb9008f56 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 15:43:19 -0600
Subject: [PATCH 005/122] core: restyle catppuccin-macchiato to
catppuccin-latte
---
default.css | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
diff --git a/default.css b/default.css
index 4ad4495..b5d8a20 100644
--- a/default.css
+++ b/default.css
@@ -1,11 +1,11 @@
body {
font-family: Arial, sans-serif;
font-size: 14px;
- color: #cad3f5;
+ color: #4c4f69;
line-height: 1.5;
max-width: 1920px;
margin-inline: auto;
- background: #24273a;
+ background: #eff1f5;
margin: 0px auto;
}
@@ -34,7 +34,6 @@ body {
#main {
margin: 0px 120px;
display: flex;
- /*background: #1e2030;*/
}
.canvas {
@@ -102,32 +101,32 @@ a:hover, a:active {
a.button {
margin: 14px 10%;
padding: 4px 12px;
- border: 1px outset #494d64;
+ border: 1px outset #bcc0cc;
border-radius: 9px;
- color: #8aadf4;
+ color: #1e66f5;
display: inline-block;
- background-color: #363a4f;
+ background-color: #ccd0da;
text-decoration: none;
width: 80px;
text-align: center;
}
@keyframes hover {
- 0% { box-shadow: 0 0 8px 4px #24273a; }
- 15% { box-shadow: 0 0 8px 4px #494d64; }
- 50% { box-shadow: 0 0 8px 4px #b7bdf8; }
- 85% { box-shadow: 0 0 8px 4px #494d64; }
- 100% { box-shadow: 0 0 8px 4px #24273a; }
+ 0% { box-shadow: 0 0 8px 4px #eff1f5; }
+ 15% { box-shadow: 0 0 8px 4px #bcc0cc; }
+ 50% { box-shadow: 0 0 8px 4px #7287fd; }
+ 85% { box-shadow: 0 0 8px 4px #bcc0cc; }
+ 100% { box-shadow: 0 0 8px 4px #eff1f5; }
}
@keyframes card {
- 0% { box-shadow: 0 0 8px 4px #24273a; }
+ 0% { box-shadow: 0 0 8px 4px #eff1f5; }
50% { box-shadow: 0 0 8px 4px #df8e1d; }
- 100% { box-shadow: 0 0 8px 4px #24273a; }
+ 100% { box-shadow: 0 0 8px 4px #eff1f5; }
}
.card {
- background: #363a4f;
+ background: #ccd0da;
text-align: center;
border-radius: 18px;
animation: card 3s linear infinite;
@@ -139,7 +138,7 @@ a.button {
}
.cardTop {
- background: #1e2030;
+ background: #e6e9ef;
border-top-left-radius: 18px;
border-top-right-radius: 18px;
}
--
2.45.2
From b4ef84bc04407960d4216328792a2a73dff4ae1b Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 15:46:29 -0600
Subject: [PATCH 006/122] nav: increase padding and make text bold
---
default.css | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/default.css b/default.css
index b5d8a20..777914d 100644
--- a/default.css
+++ b/default.css
@@ -16,10 +16,11 @@ body {
.navItem {
margin: 6px;
margin-top: 0px;
- padding: 8px;
+ padding: 16px;
line-height: 21px;
display: inline-block;
text-align: right;
+ font-weight: bold;
}
#top {
--
2.45.2
From 97f832de2299c8ef89e62dc7e373b0294479850a Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 15:49:19 -0600
Subject: [PATCH 007/122] card: match top text color
---
default.css | 1 -
1 file changed, 1 deletion(-)
diff --git a/default.css b/default.css
index 777914d..0b40e10 100644
--- a/default.css
+++ b/default.css
@@ -61,7 +61,6 @@ h1 {
}
h2 {
- color: #6c6f85;
font-size: 1.8rem;
text-align: center;
margin-top: 0;
--
2.45.2
From 9c3539ebeff67d290bb82517603863284fe60355 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 17:06:50 -0600
Subject: [PATCH 008/122] nav: move padding to bar instead of items
---
default.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/default.css b/default.css
index 0b40e10..aab40da 100644
--- a/default.css
+++ b/default.css
@@ -11,12 +11,12 @@ body {
#navigation {
display: flex;
+ padding: 16px;
}
.navItem {
margin: 6px;
margin-top: 0px;
- padding: 16px;
line-height: 21px;
display: inline-block;
text-align: right;
--
2.45.2
From 028ef8df27d0f915bf9ec6626f7a473b83d8cd76 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 17:12:30 -0600
Subject: [PATCH 009/122] nav: reintroduce background and add border to items
---
default.css | 2 ++
1 file changed, 2 insertions(+)
diff --git a/default.css b/default.css
index aab40da..03f9bd1 100644
--- a/default.css
+++ b/default.css
@@ -10,6 +10,7 @@ body {
}
#navigation {
+ background: #dce0e8;
display: flex;
padding: 16px;
}
@@ -21,6 +22,7 @@ body {
display: inline-block;
text-align: right;
font-weight: bold;
+ border: 1px solid #4c4f69;
}
#top {
--
2.45.2
From 95bba8bde199f0de477c2cb0e0c2b834f514e4d7 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 17:14:00 -0600
Subject: [PATCH 010/122] nav: add radius to border
---
default.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/default.css b/default.css
index 03f9bd1..b4f00e5 100644
--- a/default.css
+++ b/default.css
@@ -23,6 +23,7 @@ body {
text-align: right;
font-weight: bold;
border: 1px solid #4c4f69;
+ border-radius: 12px;
}
#top {
--
2.45.2
From c10676064de345c7cd27d363ce1f96041647728e Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 18:13:39 -0600
Subject: [PATCH 011/122] navbar: fix padding issues
---
default.css | 2 +-
index.html | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/default.css b/default.css
index b4f00e5..28a4e32 100644
--- a/default.css
+++ b/default.css
@@ -18,6 +18,7 @@ body {
.navItem {
margin: 6px;
margin-top: 0px;
+ padding: 8px;
line-height: 21px;
display: inline-block;
text-align: right;
@@ -90,7 +91,6 @@ p {
a {
text-decoration: none;
- padding: 8px;
color: #8aadf4;
}
diff --git a/index.html b/index.html
index 0724c96..9600d53 100644
--- a/index.html
+++ b/index.html
@@ -7,7 +7,9 @@
--
2.45.2
From e330c9ab081c01b35fd4ab11ab60eb230b76e3fc Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 18:16:24 -0600
Subject: [PATCH 012/122] navbar: adjust left size styling, especially since
not a button
---
default.css | 6 ++++++
index.html | 4 +---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/default.css b/default.css
index 28a4e32..ba4aa02 100644
--- a/default.css
+++ b/default.css
@@ -15,6 +15,12 @@ body {
padding: 16px;
}
+#navBarLeft {
+ text-align: left;
+ flex-grow: 1;
+ font-size: 18px;
+}
+
.navItem {
margin: 6px;
margin-top: 0px;
diff --git a/index.html b/index.html
index 9600d53..df95f02 100644
--- a/index.html
+++ b/index.html
@@ -7,9 +7,7 @@
--
2.45.2
From c856505bb4d4a1cc2272c1e4180a435ed5cf2dde Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 18:19:22 -0600
Subject: [PATCH 013/122] navbar: increase font size of name
---
default.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/default.css b/default.css
index ba4aa02..cb89d44 100644
--- a/default.css
+++ b/default.css
@@ -18,7 +18,7 @@ body {
#navBarLeft {
text-align: left;
flex-grow: 1;
- font-size: 18px;
+ font-size: 24px;
}
.navItem {
--
2.45.2
From 68b7d66f2dd0a920c85db6317314f2098472abe7 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 18:22:49 -0600
Subject: [PATCH 014/122] body: only do single line if it could fit
---
default.css | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/default.css b/default.css
index cb89d44..b74244c 100644
--- a/default.css
+++ b/default.css
@@ -44,7 +44,9 @@ body {
#main {
margin: 0px 120px;
- display: flex;
+ @media (min-width: 1920px) {
+ display: flex;
+ }
}
.canvas {
--
2.45.2
From 794a1c23d02e660f53240bf207cc72bbf8b24510 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 18:30:51 -0600
Subject: [PATCH 015/122] navbar: set fixed to top of screen
---
default.css | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/default.css b/default.css
index b74244c..5fbc040 100644
--- a/default.css
+++ b/default.css
@@ -7,12 +7,17 @@ body {
margin-inline: auto;
background: #eff1f5;
margin: 0px auto;
+ padding-top: 80px;
}
#navigation {
background: #dce0e8;
display: flex;
padding: 16px;
+ position: fixed;
+ top: 0px;
+ left: 0px;
+ right: 0px;
}
#navBarLeft {
--
2.45.2
From ad7d7e1c85ee01550fd08c31e0c7d9b3af9c4bf5 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 18:35:59 -0600
Subject: [PATCH 016/122] canvas: fix margin gaps
---
default.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/default.css b/default.css
index 5fbc040..fae15a4 100644
--- a/default.css
+++ b/default.css
@@ -59,7 +59,7 @@ body {
height: 600px;
align-items: center;
justify-content: center;
- display: flex;
+ margin: auto;
}
.cardStats {
--
2.45.2
From 8e839e4efd9d6d228458007bd6f5611727b92816 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 18:40:22 -0600
Subject: [PATCH 017/122] canvas: fix the canvas element usage of space
---
default.css | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/default.css b/default.css
index fae15a4..77350ef 100644
--- a/default.css
+++ b/default.css
@@ -10,6 +10,10 @@ body {
padding-top: 80px;
}
+canvas {
+ margin: auto;
+}
+
#navigation {
background: #dce0e8;
display: flex;
--
2.45.2
From c0f669d4195eaf7fd297ea8ebd2a2adcb4a051c1 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 18:51:11 -0600
Subject: [PATCH 018/122] navitem: increase border size
---
default.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/default.css b/default.css
index 77350ef..f9458a6 100644
--- a/default.css
+++ b/default.css
@@ -38,7 +38,7 @@ canvas {
display: inline-block;
text-align: right;
font-weight: bold;
- border: 1px solid #4c4f69;
+ border: 2px solid #4c4f69;
border-radius: 12px;
}
--
2.45.2
From 688a31cff979b79164de131f1f55265e5cc4b75c Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 19:05:28 -0600
Subject: [PATCH 019/122] navbar: potentially fix mobile spacing
---
default.css | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/default.css b/default.css
index f9458a6..de55a1d 100644
--- a/default.css
+++ b/default.css
@@ -16,7 +16,6 @@ canvas {
#navigation {
background: #dce0e8;
- display: flex;
padding: 16px;
position: fixed;
top: 0px;
@@ -25,6 +24,7 @@ canvas {
}
#navBarLeft {
+ display: inline-block;
text-align: left;
flex-grow: 1;
font-size: 24px;
@@ -35,7 +35,6 @@ canvas {
margin-top: 0px;
padding: 8px;
line-height: 21px;
- display: inline-block;
text-align: right;
font-weight: bold;
border: 2px solid #4c4f69;
--
2.45.2
From f00bc01ad76d7f6f04ce60488c726465bce54647 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 19:07:25 -0600
Subject: [PATCH 020/122] navbar: don't forget float
---
default.css | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/default.css b/default.css
index de55a1d..b5041aa 100644
--- a/default.css
+++ b/default.css
@@ -21,12 +21,12 @@ canvas {
top: 0px;
left: 0px;
right: 0px;
+ text-align: right;
}
#navBarLeft {
- display: inline-block;
+ float: left;
text-align: left;
- flex-grow: 1;
font-size: 24px;
}
--
2.45.2
From 84643c765a5f35243443f50b164de1d1e69490a4 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 19:32:38 -0600
Subject: [PATCH 021/122] core: add meta viewport tag
---
index.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/index.html b/index.html
index df95f02..8718e36 100644
--- a/index.html
+++ b/index.html
@@ -4,6 +4,7 @@
Trianta
+
--
2.45.2
From f58effc9048a176edcb02f79780ef5b042eef44f Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 19:43:15 -0600
Subject: [PATCH 022/122] core: remove viewport tag until mobile dev is ready
to start
---
index.html | 1 -
1 file changed, 1 deletion(-)
diff --git a/index.html b/index.html
index 8718e36..df95f02 100644
--- a/index.html
+++ b/index.html
@@ -4,7 +4,6 @@
Trianta
-
--
2.45.2
From 833cbdbe071394cd11b09c09d321baf6bc50c2e6 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 19:46:33 -0600
Subject: [PATCH 023/122] navbar: extra container to center items
---
default.css | 7 ++++++-
index.html | 8 +++++---
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/default.css b/default.css
index b5041aa..1f61ee8 100644
--- a/default.css
+++ b/default.css
@@ -16,7 +16,6 @@ canvas {
#navigation {
background: #dce0e8;
- padding: 16px;
position: fixed;
top: 0px;
left: 0px;
@@ -24,6 +23,12 @@ canvas {
text-align: right;
}
+#navArea {
+ padding: 16px;
+ width: 600px;
+ margin: auto;
+}
+
#navBarLeft {
float: left;
text-align: left;
diff --git a/index.html b/index.html
index df95f02..d23e73b 100644
--- a/index.html
+++ b/index.html
@@ -7,9 +7,11 @@
--
2.45.2
From ed18ddfa59ffdcef462275317bef08f56e45c599 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 19:51:49 -0600
Subject: [PATCH 024/122] navbar: color my name
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index d23e73b..ca9b4f7 100644
--- a/index.html
+++ b/index.html
@@ -8,7 +8,7 @@
--
2.45.2
From 901faf6d4ea6f37c69dfaaccb242d5f18744f780 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 19:52:32 -0600
Subject: [PATCH 025/122] navbar: increase width of container
---
default.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/default.css b/default.css
index 1f61ee8..f002b86 100644
--- a/default.css
+++ b/default.css
@@ -25,7 +25,7 @@ canvas {
#navArea {
padding: 16px;
- width: 600px;
+ width: 1300px;
margin: auto;
}
--
2.45.2
From 6068c2b4fa582a8ba8ca176605c20580a90375d0 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 22:33:22 -0600
Subject: [PATCH 026/122] navbar: add shadow coloring to name
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index ca9b4f7..3967aa0 100644
--- a/index.html
+++ b/index.html
@@ -8,7 +8,7 @@
--
2.45.2
From a0972d19cf3becb2faab853959f99abd710b0391 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 22:35:40 -0600
Subject: [PATCH 027/122] navbar: shorten width
---
default.css | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/default.css b/default.css
index f002b86..0831a5c 100644
--- a/default.css
+++ b/default.css
@@ -3,7 +3,7 @@ body {
font-size: 14px;
color: #4c4f69;
line-height: 1.5;
- max-width: 1920px;
+ max-width: 900px;
margin-inline: auto;
background: #eff1f5;
margin: 0px auto;
@@ -56,10 +56,7 @@ canvas {
}
#main {
- margin: 0px 120px;
- @media (min-width: 1920px) {
- display: flex;
- }
+ margin: 0px auto;
}
.canvas {
--
2.45.2
From bb119f34c0e96ed3d972ea848f1c22e27e57ecd1 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 22:40:51 -0600
Subject: [PATCH 028/122] nav: remove extra container
---
default.css | 9 ++++-----
index.html | 8 +++-----
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/default.css b/default.css
index 0831a5c..a136e9c 100644
--- a/default.css
+++ b/default.css
@@ -3,7 +3,7 @@ body {
font-size: 14px;
color: #4c4f69;
line-height: 1.5;
- max-width: 900px;
+ max-width: 800px;
margin-inline: auto;
background: #eff1f5;
margin: 0px auto;
@@ -21,11 +21,10 @@ canvas {
left: 0px;
right: 0px;
text-align: right;
-}
-
-#navArea {
+ border-bottom-left-radius: 12px;
+ border-bottom-right-radius: 12px;
padding: 16px;
- width: 1300px;
+ max-width: 900px;
margin: auto;
}
diff --git a/index.html b/index.html
index 3967aa0..ab3593a 100644
--- a/index.html
+++ b/index.html
@@ -7,11 +7,9 @@
--
2.45.2
From 6a7be4362df18cc4025d8f3669f0bf0a7814f48c Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 22:42:27 -0600
Subject: [PATCH 029/122] nav: reduce padding
---
default.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/default.css b/default.css
index a136e9c..7798fea 100644
--- a/default.css
+++ b/default.css
@@ -23,7 +23,7 @@ canvas {
text-align: right;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
- padding: 16px;
+ padding: 6px;
max-width: 900px;
margin: auto;
}
--
2.45.2
From b048216da2ed815e38e9fb9e6f222e2a42846c30 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 22:48:00 -0600
Subject: [PATCH 030/122] color: update main palette choices
---
default.css | 6 +++---
index.html | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/default.css b/default.css
index 7798fea..5a0db00 100644
--- a/default.css
+++ b/default.css
@@ -5,7 +5,7 @@ body {
line-height: 1.5;
max-width: 800px;
margin-inline: auto;
- background: #eff1f5;
+ background: #dce0e8;
margin: 0px auto;
padding-top: 80px;
}
@@ -15,7 +15,7 @@ canvas {
}
#navigation {
- background: #dce0e8;
+ background: #ccd0da;
position: fixed;
top: 0px;
left: 0px;
@@ -158,7 +158,7 @@ a.button {
}
.cardTop {
- background: #e6e9ef;
+ background: #acb0be;
border-top-left-radius: 18px;
border-top-right-radius: 18px;
}
diff --git a/index.html b/index.html
index ab3593a..a7099e4 100644
--- a/index.html
+++ b/index.html
@@ -36,9 +36,9 @@
Adjust game size -- Width:
-
+
Height:
-
+
Snake Head Location:
Food Location:
--
2.45.2
From 2d9acc6df7fb23364d6e2fc0864b8ce76e0a8b42 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 22:54:58 -0600
Subject: [PATCH 031/122] nav: fix name font size breaking element alignment
---
default.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/default.css b/default.css
index 5a0db00..5729723 100644
--- a/default.css
+++ b/default.css
@@ -32,6 +32,7 @@ canvas {
float: left;
text-align: left;
font-size: 24px;
+ line-height: 20px;
}
.navItem {
--
2.45.2
From ddfc99cd9d18f1cc88959a7af701ab9812d999ac Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 23:22:17 -0600
Subject: [PATCH 032/122] nav: fix float area
---
default.css | 5 +++++
index.html | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/default.css b/default.css
index 5729723..64e12dd 100644
--- a/default.css
+++ b/default.css
@@ -26,13 +26,17 @@ canvas {
padding: 6px;
max-width: 900px;
margin: auto;
+ display: flex;
}
#navBarLeft {
+ color: #fe640b;
+ text-shadow:1px 1px 10px #fe640b;
float: left;
text-align: left;
font-size: 24px;
line-height: 20px;
+ margin-right: auto;
}
.navItem {
@@ -44,6 +48,7 @@ canvas {
font-weight: bold;
border: 2px solid #4c4f69;
border-radius: 12px;
+ display: inline-block;
}
#top {
diff --git a/index.html b/index.html
index a7099e4..6beefb4 100644
--- a/index.html
+++ b/index.html
@@ -7,7 +7,7 @@
--
2.45.2
From 64b04cc03130a30a637a53dcd5d7efd48e2e02ae Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 23:27:21 -0600
Subject: [PATCH 033/122] nav: final cleanup fix for nav bar
---
default.css | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/default.css b/default.css
index 64e12dd..d8d92e7 100644
--- a/default.css
+++ b/default.css
@@ -32,10 +32,9 @@ canvas {
#navBarLeft {
color: #fe640b;
text-shadow:1px 1px 10px #fe640b;
- float: left;
text-align: left;
font-size: 24px;
- line-height: 20px;
+ padding: 4px;
margin-right: auto;
}
@@ -43,8 +42,6 @@ canvas {
margin: 6px;
margin-top: 0px;
padding: 8px;
- line-height: 21px;
- text-align: right;
font-weight: bold;
border: 2px solid #4c4f69;
border-radius: 12px;
--
2.45.2
From 38f216c2af676c41d6ed14f222797a9cb4851ceb Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 23:29:38 -0600
Subject: [PATCH 034/122] core: add main h1 elements for sectioning
---
index.html | 3 +++
1 file changed, 3 insertions(+)
diff --git a/index.html b/index.html
index 6beefb4..e81303c 100644
--- a/index.html
+++ b/index.html
@@ -12,6 +12,7 @@
Projects
+
Completed Projects
Pong
+
Current Projects
+
Other Projects
--
2.45.2
From 526a0f1952eefd64e5bcb23fc37a78b18a8be219 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 23:37:18 -0600
Subject: [PATCH 035/122] core: color fixup for new elements
---
default.css | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/default.css b/default.css
index d8d92e7..08a363b 100644
--- a/default.css
+++ b/default.css
@@ -15,7 +15,7 @@ canvas {
}
#navigation {
- background: #ccd0da;
+ background: #9ca0b0;
position: fixed;
top: 0px;
left: 0px;
@@ -64,8 +64,6 @@ canvas {
.canvas {
width: 780px;
height: 600px;
- align-items: center;
- justify-content: center;
margin: auto;
}
@@ -74,14 +72,13 @@ canvas {
}
h1 {
- width: 130px;
+ width: 400px;
text-align: center;
- display: inline-block;
font-size: 1.8rem;
- margin: 0px;
+ margin: auto;
padding: 8px;
- border-top-left-radius: 18px;
- border-top-right-radius: 18px;
+ background: #e6e9ef;
+ border-radius: 24px;
}
h2 {
--
2.45.2
From c77b69127996bff3a72f264a7d07a4b1a8252848 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 23:38:48 -0600
Subject: [PATCH 036/122] core: chance nav background color
---
default.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/default.css b/default.css
index 08a363b..a7c50f1 100644
--- a/default.css
+++ b/default.css
@@ -15,7 +15,7 @@ canvas {
}
#navigation {
- background: #9ca0b0;
+ background: #dce0e8;
position: fixed;
top: 0px;
left: 0px;
--
2.45.2
From d2ba977656c1946d555de79a14755126a4bb36cb Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Mon, 25 Nov 2024 23:39:57 -0600
Subject: [PATCH 037/122] core: body background switched to base
---
default.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/default.css b/default.css
index a7c50f1..7bf591d 100644
--- a/default.css
+++ b/default.css
@@ -5,7 +5,7 @@ body {
line-height: 1.5;
max-width: 800px;
margin-inline: auto;
- background: #dce0e8;
+ background: #eff1f5;
margin: 0px auto;
padding-top: 80px;
}
--
2.45.2
From b87d48182699f03078f341631b0916d532f7e813 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Tue, 26 Nov 2024 00:33:58 -0600
Subject: [PATCH 038/122] core: too much color and border, try remove
---
default.css | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/default.css b/default.css
index 7bf591d..503b494 100644
--- a/default.css
+++ b/default.css
@@ -30,10 +30,9 @@ canvas {
}
#navBarLeft {
- color: #fe640b;
text-shadow:1px 1px 10px #fe640b;
text-align: left;
- font-size: 24px;
+ font-size: 14px;
padding: 4px;
margin-right: auto;
}
@@ -43,8 +42,6 @@ canvas {
margin-top: 0px;
padding: 8px;
font-weight: bold;
- border: 2px solid #4c4f69;
- border-radius: 12px;
display: inline-block;
}
@@ -108,24 +105,19 @@ p {
a {
text-decoration: none;
- color: #8aadf4;
}
a:hover, a:active {
border-radius: 9px;
text-decoration: underline;
- text-shadow: 1px 1px 1px #333;
animation: hover 3s linear infinite;
}
a.button {
margin: 14px 10%;
padding: 4px 12px;
- border: 1px outset #bcc0cc;
- border-radius: 9px;
color: #1e66f5;
display: inline-block;
- background-color: #ccd0da;
text-decoration: none;
width: 80px;
text-align: center;
--
2.45.2
From fa7fc16fd2d78f2c030a3879480d229ba9fd5cc1 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Tue, 26 Nov 2024 00:39:30 -0600
Subject: [PATCH 039/122] core: remove bold font
---
default.css | 1 -
1 file changed, 1 deletion(-)
diff --git a/default.css b/default.css
index 503b494..25244e7 100644
--- a/default.css
+++ b/default.css
@@ -41,7 +41,6 @@ canvas {
margin: 6px;
margin-top: 0px;
padding: 8px;
- font-weight: bold;
display: inline-block;
}
--
2.45.2
From a6ffab5181cf384704ff9f64d87b5a59a97860bb Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Tue, 26 Nov 2024 00:41:14 -0600
Subject: [PATCH 040/122] core: remove shadows
---
default.css | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/default.css b/default.css
index 25244e7..5bbd636 100644
--- a/default.css
+++ b/default.css
@@ -30,7 +30,6 @@ canvas {
}
#navBarLeft {
- text-shadow:1px 1px 10px #fe640b;
text-align: left;
font-size: 14px;
padding: 4px;
@@ -107,9 +106,9 @@ a {
}
a:hover, a:active {
+ color: #fe640b;
border-radius: 9px;
text-decoration: underline;
- animation: hover 3s linear infinite;
}
a.button {
--
2.45.2
From 3b666182a322ed96b5533e4c30853c5d1c74e514 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Tue, 26 Nov 2024 00:43:25 -0600
Subject: [PATCH 041/122] core: match 'view code' button color
---
default.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/default.css b/default.css
index 5bbd636..9308633 100644
--- a/default.css
+++ b/default.css
@@ -37,6 +37,7 @@ canvas {
}
.navItem {
+ color: #4c4f69;
margin: 6px;
margin-top: 0px;
padding: 8px;
--
2.45.2
From ecda9ea2108007fde8edcdf9a8f585b5d8d775ac Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Tue, 26 Nov 2024 00:47:03 -0600
Subject: [PATCH 042/122] core: add h3 summary
---
default.css | 6 ++----
index.html | 1 +
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/default.css b/default.css
index 9308633..a2e3415 100644
--- a/default.css
+++ b/default.css
@@ -85,10 +85,8 @@ h2 {
}
h3 {
- color: #dc8a78;
- font-size: 1.3rem;
- margin-top: 0;
- margin-bottom: 0;
+ font-size: 1.4rem;
+ text-align: left;
}
h4 {
diff --git a/index.html b/index.html
index e81303c..7176663 100644
--- a/index.html
+++ b/index.html
@@ -12,6 +12,7 @@
Projects
+
An engineer creating solutions on current problems that preserve the future.
Completed Projects
Pong
--
2.45.2
From 07a1e245f6300675213601dcb40d6e17622023c7 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Tue, 26 Nov 2024 00:50:03 -0600
Subject: [PATCH 043/122] core: improve h3 element
---
default.css | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/default.css b/default.css
index a2e3415..2168c6a 100644
--- a/default.css
+++ b/default.css
@@ -85,8 +85,10 @@ h2 {
}
h3 {
- font-size: 1.4rem;
+ font-size: 3.0rem;
text-align: left;
+ width: 550px;
+ background: #7c7f93;
}
h4 {
--
2.45.2
From 4442393049a0f10a5a9b37ba479c183e04fd19c6 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Tue, 26 Nov 2024 00:59:18 -0600
Subject: [PATCH 044/122] core: finalize summary
---
default.css | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/default.css b/default.css
index 2168c6a..4645601 100644
--- a/default.css
+++ b/default.css
@@ -85,10 +85,10 @@ h2 {
}
h3 {
- font-size: 3.0rem;
- text-align: left;
- width: 550px;
- background: #7c7f93;
+ font-size: 2.8rem;
+ text-align: right;
+ padding: 8px;
+ color: #ccd0da;
}
h4 {
--
2.45.2
From e45f348e47b721321d37ab521b0bb05184ca3cb4 Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Tue, 26 Nov 2024 17:40:30 -0600
Subject: [PATCH 045/122] core: add more cards and information to page
---
index.html | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 55 insertions(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 7176663..bb774ce 100644
--- a/index.html
+++ b/index.html
@@ -46,8 +46,62 @@
Food Location:
View Code
-
Current Projects
+
Current Personal Projects
+
+
Wrench
+
Description: A simple application to handle all of your Linux configuration needs.
+
Language: C++26
+
Tools: CMake
+
Frameworks: Qt6
+
View Repository
+
+
+
Synopsis
+
Description: A markdown repository containing details and changes of servers I maintain.
+
View Repository
+
Other Projects
+
+
+
+
Cloudcare
+
Description: A sample repository that uses downloaded .bed files to train a model on DNA using PyTorch.
+
View Repository
+
Languages: Python, Bash
+
Libraries: PyTorch
+
Tools: Conda
+
+
+
N-Queens
+
Description: The N-Queens problem recreated in C++ which gets solved using a Genetic Algorithm.
+
View Repository
+
Language: C++11
+
Tools: CMake
+