-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7bef6e
commit b5be911
Showing
1 changed file
with
207 additions
and
0 deletions.
There are no files selected for viewing
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,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; | ||
} | ||
} |