Skip to content

Commit

Permalink
Merge branch 'Rakesh9100:main' into update-word-count-calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviuPe authored Feb 9, 2024
2 parents 843c0a0 + 4655ecc commit f2e6ca3
Show file tree
Hide file tree
Showing 75 changed files with 3,211 additions and 136 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Greetings'

on:
issues:
types: [opened]
pull_request_target:
types: [opened]

jobs:
welcome:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: EddieHubCommunity/gh-action-community/src/welcome@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
Hey @${{ github.actor }}, Welcome to the project CalcDiverse! 🎊
Thanks for opening an issue! 🙌 Please wait for the issue to be assigned. Happy Coding!! ✨
pr-message: |
Hey @${{ github.actor }}, Welcome to the project CalcDiverse! 🎊
Thanks for your contribution! Your effort makes this project better. Keep it up! 🙌
Please wait for the PR to be reviewed. Happy Coding!! ✨
15 changes: 15 additions & 0 deletions Calculators/2D-Distance-Calculator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# <p align="center">2D Distance Calculator</p>

## Description :-

Calculates the distance between two points on a 2D plane.

## Tech Stacks :-

- HTML
- CSS
- JavaScript

## Screenshots :-

![image](https://github.com/Rakesh9100/CalcDiverse/assets/73993775/ebc5191e-87c5-4e63-aae1-ec9e72bec5db)
129 changes: 101 additions & 28 deletions Calculators/Age-Calculator/Age-Calculator.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,58 +2,80 @@
margin: 0;
padding: 0;
font-family: 'Lato', sans-serif;

}

#container{
#container {
width: 100%;
height: 100vh;
background:linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);
background: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);
display: flex;
align-items: center;
justify-content: center;
}

#main {
#main {
background-color: white;
width: 60%;
border: 2px solid blue;
border-radius: 25px;
border-radius: 10px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
margin-top: 20px;
margin-bottom: 20px;
}

#main:hover {
border-color: #19248d;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
transition: border-color 0.3s, box-shadow 0.3s;
}

#heading{
#heading {
width: 100%;
display: flex;
justify-content: center;
margin-top: 1.5vmax;
margin-bottom: 2.5vmax;
}

#heading h1{
font-size: 1.5vmax;
#heading h1 {
font-size: 2em;
color: #333;
text-align: center;
text-transform: uppercase;
margin-bottom: 20px;
animation: slideInFromLeft 1s ease-in-out;
}

#oneone{
@keyframes slideInFromLeft {
0% {
transform: translateX(-100%);
}

100% {
transform: translateX(0);
}
}

#oneone {
display: flex;
flex-direction: column;
gap: 1vmax;
align-items: start;
justify-content: space-evenly;
}

#onemain{
#onemain {
display: flex;
align-items: center;
justify-content: center;
gap: 2vmax;
}

#ip1name{
#ip1name {
font-size: 1vmax;
}

#ip1{
#ip1 {
font-size: 0.9vmax;
text-align: center;
border-radius: 0.5vmax;
Expand All @@ -62,11 +84,12 @@
padding-right: 1vmax;

}
#ip2name{

#ip2name {
font-size: 1vmax;
}

#ip2{
#ip2 {
font-size: 0.9vmax;
text-align: center;
border-radius: 0.5vmax;
Expand All @@ -76,28 +99,78 @@

}

#onetwo button{
padding: 0.7vmax;
font-size: 0.8vmax;
text-align: center;
border-radius: 0.8vmax;
border-color: rgb(255, 123, 0);
background-color: rgb(40, 155, 249);
cursor: pointer;
}

#twomain{
#twomain {
margin-top: 3vmax;
margin-bottom: 3vmax;
display: flex;
align-items: center;
justify-content: space-evenly;
}

#twoone img{
#twoone img {
height: 15vmax;
max-width: 80%;
}
#twotwo h2{

#twotwo h2 {
font-size: 1.3vmax;
}
}

/* Button CSS */

#onetwo button {
padding: 0.7em 1.5em;
font-size: 1em;
text-align: center;
border-radius: 0.5em;
border: none;
background-color: rgb(40, 155, 249);
color: white;
cursor: pointer;
transition: background-color 0.3s;
}

#onetwo button:hover {
background-color: #277eae;
}

/* Css for the alert */

.custom-alert {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
display: none;
width: 90%;
max-width: 400px;
}

.alert-content {
display: flex;
justify-content: space-between;
align-items: center;
}

#alert-message {
margin: 0;
}

#close-alert {
background-color: #f5c6cb;
color: #721c24;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
}

#close-alert:hover {
background-color: #f8d7da;
}
22 changes: 18 additions & 4 deletions Calculators/Age-Calculator/Age-Calculator.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Age Calculator</title>
<link rel="shortcut icon" type="image/x-icon" href="../../assets/images/favicon.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="Age-Calculator.css">

</head>

<body>
<div id="container">
<div id="main">
<div id="heading"><h1>Age Calculator</h1></div>
<div id="heading">
<h1>Age Calculator</h1>
</div>

<div id="onemain">
<div id="oneone">
<label for="ip1" id="ip1name">DOB - <input type="datetime-local" name="ip1" id="ip1"></label>
<label for="ip1" id="ip1name">DOB - <input type="datetime-local" name="ip1" id="ip1"
value="yyyy-01-01T00:00"></label>

<label for="ip2" id="ip2name">Till - &nbsp;&nbsp;&nbsp;&nbsp;<input type="datetime-local" name="ip2" id="ip2"></label>
<label for="ip2" id="ip2name">Till - &nbsp;&nbsp;&nbsp;&nbsp;<input type="datetime-local" name="ip2"
id="ip2"></label>
</div>
<div id="onetwo">
<button type="button" onclick="calculateage()">Calculate</button>
Expand Down Expand Up @@ -48,6 +55,13 @@ <h2 id="op6">- 0 Seconds</h2>
</div>

</div>
<div id="custom-alert" class="custom-alert">
<div class="alert-content">
<p id="alert-message"></p>
<button id="close-alert">Close</button>
</div>
</div>
</body>
<script src="Age-Calculator.js"></script>

</html>
Loading

0 comments on commit f2e6ca3

Please sign in to comment.