Skip to content

Commit

Permalink
Create styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatSINEWAVE committed Jun 4, 2024
1 parent f7bef6e commit b5be911
Showing 1 changed file with 207 additions and 0 deletions.
207 changes: 207 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
font-family: 'Poppins', sans-serif;
background-color: #f5f5f5;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}

.container {
background-color: #fff;
padding: 3rem;
border-radius: 1rem;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
text-align: center;
max-width: 800px;
width: 100%;
}

h1 {
margin-bottom: 2rem;
color: #333;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.options {
display: flex;
justify-content: center;
margin-bottom: 3rem;
}

.option-btn {
background-color: #007bff;
color: #fff;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
cursor: pointer;
margin: 0 1rem;
transition: background-color 0.3s ease, transform 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.option-btn:hover {
background-color: #0056b3;
transform: translateY(-3px);
}

.option-menu {
display: none;
}

.option-menu.active {
display: block;
}

.color-display {
width: 300px;
height: 300px;
border-radius: 1rem;
margin: 1rem auto;
margin-top: 1px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.color-codes {
display: flex;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 2rem;
}

.color-code {
display: flex;
align-items: center;
margin: 1rem;
background-color: #f5f5f5;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.color-code span {
margin-right: 1rem;
font-weight: 600;
color: #333;
}

.copy-btn {
background-color: #007bff;
color: #fff;
border: none;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.copy-btn:hover {
background-color: #0056b3;
transform: translateY(-2px);
}

.back-btn {
background-color: #6c757d;
color: #fff;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
background-color: #495057;
transform: translateY(-2px);
}

#hue-input,
#converter-input {
padding: 0.75rem;
border-radius: 0.5rem;
border: 1px solid #ced4da;
margin-bottom: 2rem;
font-size: 1rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#converter-input-type,
#converter-output-type {
padding: 0.75rem;
border-radius: 0.5rem;
border: 1px solid #ced4da;
margin-bottom: 2rem;
margin-right: 1rem;
font-size: 1rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

.option-menu.active {
animation: fadeIn 0.5s ease;
}

footer {
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
padding: 10px;
background: transparent;
}

footer a {
margin: 0 15px;
display: inline-block;
font-size: 20px;
color: #1e1f22;
animation: neonGlow 2s infinite alternate;
}

/* Media Queries */
@media (max-width: 768px) {
.container {
padding: 2rem;
}

.color-display {
width: 200px;
height: 200px;
}

.option-btn {
padding: 0.5rem 1rem;
margin: 0 0.5rem;
}

.back-btn {
padding: 0.5rem 1rem;
}

#hue-input,
#converter-input,
#converter-input-type,
#converter-output-type {
font-size: 0.9rem;
}
}

0 comments on commit b5be911

Please sign in to comment.