Skip to content
Open
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
Binary file added images/.DS_Store
Binary file not shown.
Binary file added images/thermometer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
<nav id="darkMode">
<span id="dark" class="">&#9788</span><span id="light" class="no-display">&#127769</span>
</nav>

<div class="container">
<h1>Temperature Converter</h1>
<h1>Temperature <br>Converter </h1>
<div class="input-container">
<select id="conversion-from-type" class="dropdown-box">
<option value="Fahrenheit">Fahrenheit</option>
Expand Down
71 changes: 44 additions & 27 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
body {
background-image: url(../54700.jpg);
background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
url("images/thermometer.jpg");

background-repeat: no-repeat;
/* Prevent image repetition */
background-size: cover;
Expand All @@ -8,51 +10,50 @@ body {
/* Center both horizontally and vertically */
background-attachment: fixed;
font-family: Arial, sans-serif;
background-color: #a8aaec;

text-align: center;
position: relative;
background-image: -moz-repeating-radial-gradient();
}


.container {
background-color: rgba(245, 242, 242, 0.959);
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
margin: 0 auto;
height: 250px;
max-width: 400px;
height: 500px;
max-width: 700px;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
margin-top: 50px;
margin-top: 100px;
color: black;
}

@media (min-width: 768px) {
.container:hover {
background-color: #c5cccf;
background-color: #89bdf1;
transform: scale(1.1);
}

.container {
background-color: rgba(233, 228, 228, 0.477);
background-color: rgba(69, 169, 235, 0.477);
border-color: #142245;
transform: scale(1.05);
}
}



h1 {

h1 {
position: relative;
margin-top: 20px;
margin-bottom: 20px;
left: 10px;
font-size: 40px;
color: #090909;
}
}

.input-container {
margin-top: 20px;
margin-left: 20px;
margin-right: 20px;
margin-bottom: 20px;
margin: 50px;
}

label {
Expand All @@ -64,31 +65,34 @@ label {
input[type="number"] {
width: 100%;
padding: 10px;
margin-top: 5px;
margin-top: 30px;
border: 2px solid #ccc;
border-radius: 5px;
}

button {
background-color: #007BFF;
font-weight: bold;
font-size: 15px;
background-color: #3a8894;
color: #fff;
border: none;
padding: 10px 20px;
padding: 12px 25px;
cursor: pointer;
margin-top: 10px;
border-radius: 5px;
margin-top: 30px;
border-radius: 6px;
transition: background-color 0.3s, transform 0.2s;
}

button:hover {
background-color: #0056b3;
background-color: #044a54;
transform: translateY(-3px);
}

.result {
margin-top: 20px;
margin-top: 50px;
margin-bottom: 50px;
font-weight: bold;
font-size: 18px;
font-size: 30px;
color: rgb(7, 0, 7);
}

Expand All @@ -105,13 +109,26 @@ button:hover {
}

.dropdown-box {
height: 30px;
font-size: 12px;
height: 35px;
width: 100px;
border-radius: 3px;
margin-top: 20px;
margin-right: 20px;
margin-left: 20px;


}

#temperature{
font-size: 12px;
}

.no-display{
display: none;
}
#dark,#light{
cursor: pointer;
}
}