Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: updated css to weight.html #21

Merged
Merged
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
107 changes: 104 additions & 3 deletions Unit Converter/CSS/weight.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,104 @@
.wei{
background-color: grey;
}

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Dancing+Script:wght@400..700&family=El+Messiri:wght@400..700&display=swap');

* {
margin: 0px;
padding: 0px;
}

body {
display: flex;
flex-direction: column;
background-image: url("https://time.com/wp-content/uploads/2017/10/229-westerlund-21.jpg?w=2000");
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
height: 100vh;
width: 100vw;
justify-content: center;
align-items: center;
}

button {
background: #fff;
color: #000;
font-weight: 600;
padding: 12px 20px;
cursor: pointer;
border-radius: 4px;
font-size: 18px;
border: 2px solid black;
margin-top: 30px;
}

h1 {
color: #fff;
text-decoration: underline;
text-align: center;
font-family: El Messiri;
}

select option{
background-color: #82caff;
color: black;
}

.container-fluid {
border: 1px solid rgba(255, 255, 255, 0.5);
backdrop-filter: blur(7px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: 15px;
padding: 20px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
#desc{
text-align: center;
margin: 0 0 20px;
}

p {
font-size: 25px;
color: #fff;
}

#selectfr {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 18px;
gap: 8px;
}


.form-select, .form-control {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
width: 50%;
font-size: 15px;
font-weight: 700;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.form-select:hover, .form-control:hover {
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
transform: scale(1.02);
}

#value {
gap: 8px;
display: flex;
align-items: center;
justify-content: center;
}

img {
width: 50px;
border-radius: 50px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
8 changes: 6 additions & 2 deletions Unit Converter/HTML/weight.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@

<p id="desc">This is a simple unit converter.</p>

<p>You can also convert from one unit to another unit.</p>
<p>You can convert from one unit to another unit.</p>

<div class="container-fluid ">
<h1>Weight</h1>
<div class="row justify-content-evenly">
<select id="selectfr" name="slfrom" class="form-select slfr" aria-label="Default select example">
<option value="0">Select unit you are converting from</option>
Expand All @@ -43,6 +44,7 @@
<option value="3">Milligram (mg)</option>
<option value="4">Tonne (TON)</option>
</select>
<img id="conversion" src="../weight.png" alt="">
<select id="selectto" name="slto" class="form-select slto" aria-label="Default select example">
<option value="0">Select unit you are converting to</option>
<option value="1">Kilogram (Kg)</option>
Expand All @@ -53,14 +55,16 @@
</div>
</select>
<form>
<div class="container-fluid">
<div class="container-fluid" id=""value>
<div class="row justify-content-evenly">
<form>
<input id="select1fr" name="etfrom" class="form-control" type="number" placeholder="Enter value to be changed" value="" aria-label="default input example">
<input id="select1to" name="etto" class="form-control" type="number" placeholder="Result" value="" aria-label="default input example">

</form>
</div>
<!--button-->
<button class="calculate">Calculate</button>
</div>


Expand Down
Loading