-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Related Issue [Cite any related issue(s) this pull request addresses. If none, simply state "None”] write issue no. here None Fixes: #504 ## Type of PR - [ ] Bug fix - [ ] Feature enhancement - [ ] Documentation update - [ ] Security enhancement - [ ] Other (specify): _______________ check in issue by entering [X] in boxes ## Screenshots / Videos (if applicable) https://github.com/user-attachments/assets/a3e2e087-6c54-44b6-af2c-b1884620d89c @dhairyagothi please review I have made the knowledge quiz app [Attach any relevant screenshots or videos demonstrating the changes] ## Checklist - [ ] I have performed a self-review of my code. - [ ] I have read and followed the Contribution Guidelines. - [ ] I have tested the changes thoroughly before submitting this pull request. - [ ] I have provided relevant issue numbers, screenshots, and videos after making the changes. - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have followed the code style guidelines of this project. - [ ] I have checked for any existing open issues that my pull request may address. - [ ] I have ensured that my changes do not break any existing functionality. - [ ] Each contributor is allowed to create a maximum of 4 issues per day. This helps us manage and address issues efficiently. - [ ] I have read the resources for guidance listed below. - [ ] I have followed security best practices in my code changes. check in issue by entering [X] in boxes ## Additional Context [Include any additional information or context that might be helpful for reviewers.] ## Contribution Guidelines Thank you for considering contributing to our project! To ensure smooth collaboration and effective contribution management, please adhere to the following guidelines: ### Issue Creation 1. **Limit on Issues:** - Each contributor is allowed to create a maximum of **4 issues per day**. This helps us manage and address issues efficiently. ### Contribution Levels 2. **Basic Contributions:** - This project is primarily focused on documentation. Most of the setup has been completed, so contributors will generally need to work on basic code tasks, such as writing tests. - For these tasks, issues will be assigned the **Easy** label. 3. **Acknowledging Hard Work:** - If a contributor puts in significant effort on a task, the issue will be upgraded to **Medium**. This is our way of recognizing and appreciating extra effort. 4. **Feature Additions and Component Work:** - Contributors working on new features or components using JSX/TSX will be assigned a level based on the complexity and quality of their work. - The more complex and valuable the contribution, the higher the level assigned. ### Level Definitions - **Easy:** - Tasks are straightforward, such as fixing minor bugs, writing tests, or making simple documentation updates. - **Medium:** - Tasks require more effort, such as addressing complex bugs, improving existing features, or making substantial documentation improvements. - **Hard:** - Tasks are highly complex and involve significant new feature development, major refactoring, or extensive contributions to the project’s core components. We look forward to your contributions and appreciate your effort in helping us improve the project!
- Loading branch information
Showing
4 changed files
with
318 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
:root{ | ||
--hue-neutral:200; | ||
--hue-wrong:0; | ||
--hue-correct:145; | ||
} | ||
|
||
body{ | ||
--hue: var(--hue-neutral); | ||
padding: 0; | ||
margin: 0; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: aqua; | ||
height: 100vh; | ||
width: 100vw; | ||
} | ||
|
||
body.correct{ | ||
--hue: var(--hue-correct); | ||
} | ||
|
||
body.wrong{ | ||
--hue: var(--hue-wrong); | ||
} | ||
|
||
.container{ | ||
width: 800px; | ||
max-width: 80%; | ||
background-color: aliceblue; | ||
border-radius: 5px; | ||
padding: 10px; | ||
box-shadow: 0 0 10px 2px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.btn-grid { | ||
display: grid; | ||
grid-template-columns: repeat(2, auto); | ||
gap: 10px; | ||
margin: 20px 0; | ||
} | ||
|
||
.btn{ | ||
--hue: var(--hue-neutral); | ||
border: 1px solid hsl(var(--hue), 100%, 30%); | ||
background-color: rgba(6, 109, 109, 0.571); | ||
border-radius: 5px; | ||
padding: 5px 10px; | ||
color: whitesmoke; | ||
outline: none; | ||
cursor: pointer; | ||
} | ||
|
||
.btn.correct { | ||
background-color: hsl(var(--hue-correct), 100%, 30%); | ||
} | ||
|
||
.btn.wrong { | ||
background-color: hsl(var(--hue-wrong), 100%, 30%); | ||
} | ||
|
||
.btn:hover{ | ||
border-color: black; | ||
opacity: 2; | ||
} | ||
|
||
.start-btn, | ||
.next-btn{ | ||
font-size: 1.5rem; | ||
font-weight: bold; | ||
padding: 10px 20px; | ||
cursor: pointer; | ||
} | ||
|
||
.controls{ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.hide{ | ||
display: none; | ||
} | ||
.score-container { | ||
--hue :var(--hue-neutral); | ||
} | ||
|
||
.score { | ||
font-size: 1.5rem; | ||
font-weight: bold; | ||
text-align: center; | ||
padding: 10px; | ||
border-radius: 5px; | ||
background-color: aliceblue; | ||
box-shadow: 0 0 10px 2px; | ||
} | ||
|
||
.score.correct { | ||
color: hsl(var(--hue-correct), 100%, 30%); | ||
|
||
} | ||
|
||
.score.wrong { | ||
color: hsl(var(--hue-wrong), 100%, 30%); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<link rel="stylesheet" href="app.css"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div id="question-container" class="hide"> | ||
<div id="question" class="question">Question</div> | ||
<div id="answer-buttons" class="btn-grid"> | ||
<!-- Answer buttons will be dynamically added here --> | ||
</div> | ||
</div> | ||
<div class="controls"> | ||
<button id="start-btn" class="start-btn btn">Check Your Knowledge</button> | ||
<button id="next-btn" class="next-btn btn hide">Next</button> | ||
</div> | ||
</div> | ||
<div id="score-container" class="score-container"> | ||
<span id="right-answer" class="score">Score: 0</span> <!-- Initialize with zero score --> | ||
</div> | ||
|
||
<script src="script.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.