Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions UI Snippets/Game interface/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="game-interface">
<div class="game-header">
<h1>My Awesome Game</h1>
</div>
<div class="game-content">
<div class="game-info">
<h2>Player Info</h2>
<p>Name: John Doe</p>
<p>Level: 5</p>
<p>Score: 1000</p>
</div>
<div class="game-screen">
<!-- Your game content goes here -->
</div>
</div>
<div class="game-footer">
<button class="game-button">Start Game</button>
</div>
</div>
</body>
</html>
55 changes: 55 additions & 0 deletions UI Snippets/Game interface/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

.game-interface {
max-width: 800px;
margin: 0 auto;
background-color: #333;
color: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.game-header {
text-align: center;
font-size: 24px;
}

.game-content {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-top: 20px;
}

.game-info, .game-screen {
flex: 1;
padding: 20px;
}

.game-info {
background-color: #444;
border-radius: 5px;
}

.game-info h2 {
font-size: 18px;
margin: 0;
}

.game-info p {
margin: 10px 0;
}

.game-button {
background-color: #3498db;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}

.game-button:hover {
background-color: #2980b9;
}
6 changes: 6 additions & 0 deletions client/src/lib/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@
"codepen-link":"https://codepen.io/rohancs127/pen/XWoOaoG",
"image-link":"https://i.imgur.com/yNfGcdF.png",
"author":"Rohan"
},
{
"name":"Game Interface",
"codepen-link":"https://codepen.io/Nandan-aghera/pen/LYqYZjv",
"image-link":"https://imagetolink.com/ib/DIWEoDwgGu",
"author":"Nandan"
}

]