Skip to content

Commit

Permalink
Final push
Browse files Browse the repository at this point in the history
  • Loading branch information
emrebilge committed Sep 21, 2023
1 parent 8e6b103 commit 23ae90e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
22 changes: 22 additions & 0 deletions frontend/word-guessing-game/src/GamePage/Rules.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* Rules.css */
.rules-container {
background-color: #f0f0f0;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rules-title {
font-size: 24px;
margin-bottom: 10px;
}

.rules-list {
list-style-type: disc;
padding-left: 20px;
}

.rules-list li {
font-size: 16px;
margin-bottom: 10px;
}
20 changes: 20 additions & 0 deletions frontend/word-guessing-game/src/GamePage/Rules.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Rules.js
import React from 'react';
import './Rules.css'; // Import the CSS file for styling

function Rules() {
return (
<div className="rules-container">
<h2 className="rules-title">Rules to Play 'ekreb'</h2>
<ul className="rules-list">
<li>Unscramble the given word to its original form.</li>
<li>You have a limited time to guess each word.</li>
<li>Each correct guess earns you points.</li>
<li>Incorrect guesses won't affect your score.</li>
<li>Try to achieve the highest accuracy!</li>
</ul>
</div>
);
}

export default Rules;

0 comments on commit 23ae90e

Please sign in to comment.