-
Notifications
You must be signed in to change notification settings - Fork 123
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 #376 ## Description [Please include a brief description of the changes or features added] ## Type of PR - [ ] Bug fix - [x] Feature enhancement - [ ] Documentation update - [ ] Security enhancement - [ ] Other (specify): _______________ check in issue by entering [X] in boxes ## Screenshots / Videos (if applicable) ![image](https://github.com/user-attachments/assets/57323ce7-45bf-41a6-ae12-98ac80f039c4) [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. - [x] 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
5 changed files
with
232 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,44 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<link rel="stylesheet" href="style.css"> | ||
|
||
</head> | ||
|
||
<body> | ||
<div class="contentbox"> | ||
<h1><span>Love</span> Calculator</h1> | ||
<p>Enter your name and your crush's name to see the chance that this relationship will work out: </p> | ||
|
||
<div class="input-group"> | ||
<input type="text" required id="fname"> | ||
<span class="highlight"></span> | ||
<span class="bar"></span> | ||
<label>Your Name</label> | ||
</div> | ||
|
||
<div class="input-group"> | ||
<input type="text" required id="cname"> | ||
<span class="highlight"></span> | ||
<span class="bar"></span> | ||
<label>Crush Name</label> | ||
</div> | ||
<button id="calculate">Calculate</button> | ||
|
||
<div class="footer"> | ||
<h2 id="result-message"></h2> | ||
<p id="result-percentage"></p> | ||
|
||
</div> | ||
|
||
|
||
</div> | ||
<script src="script.js"></script> | ||
</body> | ||
|
||
</html> |
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,15 @@ | ||
window.onload = function() { | ||
let button = document.getElementById("calculate"); | ||
button.addEventListener("click", calculateLove) | ||
} | ||
|
||
function calculateLove() { | ||
let yourName = document.getElementById("fname").value; | ||
let crushName = document.getElementById("cname").value; | ||
|
||
if (yourName != "" && crushName != "") { | ||
let percentage = Math.floor(Math.random() * 101); | ||
document.getElementById("result-message").innerText = yourName + " and " + crushName + " 's chance of love: "; | ||
document.getElementById("result-percentage").innerText = percentage.toString() + "%"; | ||
} | ||
} |
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,168 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap'); | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
font-family: 'poppins', sans-serif; | ||
} | ||
|
||
body { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
min-height: 100vh; | ||
background: #f472b6; | ||
} | ||
|
||
.contentbox { | ||
text-align: center; | ||
width: 400px; | ||
height: 600px; | ||
padding: 20px; | ||
margin: 0 auto; | ||
border-radius: 10px; | ||
background: #FFF; | ||
color: #0f172a; | ||
} | ||
|
||
.contentbox h1 span { | ||
color: #ec4899; | ||
} | ||
|
||
#calculate { | ||
margin-top: 2rem; | ||
width: 150px; | ||
height: 50px; | ||
background-color: #ec4899; | ||
color: white; | ||
font-size: 20px; | ||
border: none; | ||
border-radius: 10px; | ||
} | ||
|
||
.gap { | ||
margin-bottom: 0.5rem; | ||
} | ||
|
||
.footer { | ||
margin-top: 2rem; | ||
} | ||
|
||
.input-group { | ||
position: relative; | ||
margin: 40px 0 20px; | ||
} | ||
|
||
input { | ||
font-size: 18px; | ||
padding: 10px 10px 10px 5px; | ||
display: block; | ||
width: 100%; | ||
border: none; | ||
border-bottom: 1px solid #757575; | ||
} | ||
|
||
input:focus { | ||
outline: none; | ||
} | ||
|
||
label { | ||
color: #999; | ||
font-size: 18px; | ||
font-weight: normal; | ||
position: absolute; | ||
pointer-events: none; | ||
left: 5px; | ||
top: 10px; | ||
transition: 0.2s ease all; | ||
-moz-transition: 0.2s ease all; | ||
-webkit-transition: 0.2s ease all; | ||
} | ||
|
||
input:focus~label, | ||
input:valid~label { | ||
top: -20px; | ||
font-size: 14px; | ||
color: #ec4899; | ||
} | ||
|
||
.bar { | ||
position: relative; | ||
display: block; | ||
width: 315px; | ||
} | ||
|
||
.bar:before, | ||
.bar:after { | ||
content: ''; | ||
height: 2px; | ||
width: 0; | ||
bottom: 1px; | ||
position: absolute; | ||
background: #ec4899; | ||
transition: 0.2s ease all; | ||
-moz-transition: 0.2s ease all; | ||
-webkit-transition: 0.2s ease all; | ||
} | ||
|
||
.bar:before { | ||
left: 50%; | ||
} | ||
|
||
.bar:after { | ||
right: 50%; | ||
} | ||
|
||
input:focus~.bar:before, | ||
input:focus~.bar:after { | ||
width: 50%; | ||
} | ||
|
||
.highlight { | ||
position: absolute; | ||
height: 60%; | ||
width: 100px; | ||
top: 25%; | ||
left: 0; | ||
pointer-events: none; | ||
opacity: 0.5; | ||
} | ||
|
||
input:focus~.highlight { | ||
-webkit-animation: inputHighlighter 0.3s ease; | ||
-moz-animation: inputHighlighter 0.3s ease; | ||
animation: inputHighlighter 0.3s ease; | ||
} | ||
|
||
|
||
/* animations */ | ||
|
||
@-webkit-keyframes inputHighlighter { | ||
from { | ||
background: #ec4899; | ||
} | ||
to { | ||
width: 0; | ||
background: #ec4899; | ||
} | ||
} | ||
|
||
@-moz-keyframes inputHighlighter { | ||
from { | ||
background: #ec4899; | ||
} | ||
to { | ||
width: 0; | ||
background: transparent; | ||
} | ||
} | ||
|
||
@keyframes inputHighlighter { | ||
from { | ||
background: #ec4899; | ||
} | ||
to { | ||
width: 0; | ||
background: transparent; | ||
} | ||
} |