From e6574af7984404ea05f156d082a693c4d1f638d1 Mon Sep 17 00:00:00 2001 From: Ehab Elasam Date: Wed, 3 Apr 2024 14:42:27 +0200 Subject: [PATCH] e --- frontend/css/PongEhab.css | 1 - frontend/css/PongGame.css | 31 +++++++++++++++++++++ frontend/index.html | 2 ++ frontend/js/PongEhab.js | 52 +++++++++++++++++++++++------------ frontend/views/playerai1.html | 2 +- frontend/views/pongehab.html | 2 +- 6 files changed, 70 insertions(+), 20 deletions(-) create mode 100644 frontend/css/PongGame.css diff --git a/frontend/css/PongEhab.css b/frontend/css/PongEhab.css index bebd6b2..12f6bdc 100644 --- a/frontend/css/PongEhab.css +++ b/frontend/css/PongEhab.css @@ -1,4 +1,3 @@ - #pongEhabGameCanvas { background-color: #111; } diff --git a/frontend/css/PongGame.css b/frontend/css/PongGame.css new file mode 100644 index 0000000..e206287 --- /dev/null +++ b/frontend/css/PongGame.css @@ -0,0 +1,31 @@ +#pongGameCanvas { + background-color: #111; +} + +.pong-game-over-modal { + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + background-color: #222; + color: white; + padding: 20px; + border-radius: 10px; + text-align: center; + display: none; /* Versteckt das Modal standardmäßig */ +} + +.pong-game-over-modal button { + background-color: #555; + border: none; + padding: 10px 20px; + text-transform: uppercase; + color: white; + cursor: pointer; + margin-top: 20px; + border-radius: 5px; +} + +.pong-game-over-modal button:hover { + background-color: #777; +} \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index 62f85c9..4468b4a 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -18,6 +18,8 @@ + +