diff --git a/assets/game1.png b/assets/game1.png new file mode 100644 index 0000000..00b709c Binary files /dev/null and b/assets/game1.png differ diff --git a/assets/game2.png b/assets/game2.png new file mode 100644 index 0000000..aebf073 Binary files /dev/null and b/assets/game2.png differ diff --git a/assets/game3.png b/assets/game3.png new file mode 100644 index 0000000..6f6f182 Binary files /dev/null and b/assets/game3.png differ diff --git a/assets/game4.png b/assets/game4.png new file mode 100644 index 0000000..8c8ba74 Binary files /dev/null and b/assets/game4.png differ diff --git a/index.css b/index.css index a4b97ac..aef8fd5 100644 --- a/index.css +++ b/index.css @@ -1,7 +1,14 @@ +:root { + --color-bg: #161b32; + --color-skyblue: #53e1e3; + --color-pink: #e670b3; +} + html, body { margin: 0; padding: 0; + background-color: var(--color-bg); } div { @@ -11,6 +18,7 @@ div { } .app { position: relative; + height: 100vh; } .title { @@ -36,16 +44,6 @@ div { .title-logout { display: none; } -.modal { - opacity: 1; - transition: opacity 0.5s; - position: absolute; - top: 50%; - width: 300px; - left: calc(50% - 150px); - display: flex; - justify-content: space-evenly; -} .container { transition: opacity 0.5s; @@ -61,8 +59,101 @@ div { } .gameBox { - background-color: salmon; - border: 1px solid black; + border-radius: 10px; + border: none; + display: flex; + + transition: all 0.5s; +} + +.gameBox:hover { + border: 1px solid var(--color-skyblue); + transform: scale(1.05); +} + +.gameBox a { + display: flex; + justify-content: center; + align-items: center; + width: 100%; + height: 100%; + color: hsl(326, 64%, 88%); + text-shadow: 1px 1px 1px var(--color-bg); + font-size: 30px; + text-decoration: none; +} + +.gameBox:first-child { + background-image: url('./assets/game1.png'); + background-size: cover; + background-position: center; +} + +.gameBox:nth-child(2) { + background-image: url('./assets/game2.png'); + background-size: cover; + background-position: center; +} +.gameBox:nth-child(3) { + background-image: url('./assets/game3.png'); + background-size: cover; + background-position: center; +} +.gameBox:last-child { + background-image: url('./assets/game4.png'); + background-size: cover; + background-position: center; +} + +.modal { + opacity: 1; + transition: opacity 0.5s; + position: absolute; + top: 30%; + width: 60%; + height: 100px; + min-width: 300px; + padding: 20px; + left: calc(20%); + display: flex; + gap: 20px; + justify-content: center; + align-items: center; +} + +.username-input { + width: 60%; + height: 35px; + border-radius: 2px; + text-align: center; + outline: none; + border: 0; + box-sizing: border-box; + font-weight: 700; + transition: color 0.3s, background-color 0.3s; +} + +.username-input:focus { + background-color: var(--color-bg); + color: white; +} + +.input-button { + color: var(--color-bg); + font-weight: 700; + height: 35px; + width: 80px; + padding: 5px; + border-radius: 5px; + box-sizing: border-box; + background-image: linear-gradient(90deg, var(--color-skyblue), var(--color-pink)); + transition: transform 0.3s ease-in-out; + cursor: pointer; +} + +.input-button:hover { + transform: scale(1.1) rotate(360deg); + color: white; } @media screen and (max-width: 768px) {