From f6cd0537f47eec21d3e4c9012604bafc40b2fb11 Mon Sep 17 00:00:00 2001 From: Thomas Butler <108088199+ThomasJButler@users.noreply.github.com> Date: Sat, 5 Jul 2025 23:54:28 +0100 Subject: [PATCH] fix: improve game portal layout and optimize Matrix Cloud performance - Reduce game portal size for better screen fit - Optimize vertical space with compact header/footer - Fix Matrix Cloud performance by reducing particles and removing shadows - Improve responsive design across all screen sizes --- src/App.tsx | 44 +++++----- src/components/games/MatrixCloud.tsx | 115 ++++++++++++--------------- src/styles/theme.css | 55 +++++++++++++ 3 files changed, 126 insertions(+), 88 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 6f9db56..2f41b71 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -300,9 +300,9 @@ function App() { {/* Header */}
-
+
@@ -315,10 +315,10 @@ function App() { rel="noopener noreferrer" className="flex items-center gap-2 text-sm hover:text-green-400 transition-colors group" > -

+

THE MATRIX ARCADE

-

+

SYSTEM v1.0.5

@@ -401,7 +401,7 @@ function App() { )} {/* Main Content */} -
+
{/* Fullscreen Game View */} {isPlaying && GameComponent ? (
@@ -438,7 +438,7 @@ function App() {
) : ( -
+
{/* Matrix Rain Effect */}
{[...Array(50)].map((_, i) => ( @@ -460,14 +460,14 @@ function App() {
{/* Game Portal */} -
+
{/* Game Display */} -
+
{/* Controls */} -
+
@@ -501,11 +501,11 @@ function App() {
{games[selectedGame].icon}
-

+

{games[selectedGame].title}

-

+

{games[selectedGame].description}

{typeof GameComponent !== 'undefined' && ( @@ -565,7 +565,7 @@ function App() { } } }} - className="px-6 py-2 lg:px-8 lg:py-3 bg-green-500 text-black font-mono rounded-full hover:bg-green-400 transition-colors flex items-center gap-2 mx-auto transform hover:scale-105 text-base lg:text-lg" + className="px-4 py-2 lg:px-6 lg:py-2.5 bg-green-500 text-black font-mono rounded-full hover:bg-green-400 transition-colors flex items-center gap-2 mx-auto transform hover:scale-105 text-sm lg:text-base font-bold" > {isPlaying ? 'STOP' : 'PLAY'} @@ -575,10 +575,10 @@ function App() {
@@ -596,12 +596,12 @@ function App() { {/* Enhanced Footer */}