pazham / webapp /static /style.css
Icarus013's picture
Upload folder using huggingface_hub
bc8984b verified
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
body {
font-family: 'Poppins', sans-serif;
background: linear-gradient(135deg, #fff9c4 0%, #ffecb3 100%);
color: #333;
margin: 0;
padding: 20px;
min-height: 100vh;
}
.container {
max-width: 800px;
margin: 2rem auto;
padding: 2rem;
background-color: rgba(255, 255, 255, 0.9);
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
text-align: center;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
h1 {
color: #f57f17;
font-size: 2.5rem;
margin-bottom: 1.5rem;
font-weight: 600;
}
h2 {
color: #f9a825;
font-size: 1.8rem;
margin: 2rem 0 1rem;
}
button {
background: linear-gradient(45deg, #fbc02d 30%, #f57f17 90%);
border: none;
padding: 12px 24px;
color: white;
font-weight: 500;
font-size: 1rem;
cursor: pointer;
border-radius: 8px;
margin: 1rem;
transition: transform 0.2s, box-shadow 0.2s;
text-transform: uppercase;
letter-spacing: 0.5px;
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(251, 192, 45, 0.3);
}
button:active {
transform: translateY(0);
}
input[type="file"] {
margin: 1.5rem auto;
padding: 10px;
width: 100%;
max-width: 300px;
border: 2px dashed #fbc02d;
border-radius: 8px;
background: rgba(251, 192, 45, 0.1);
}
.minion-gif {
display: block;
margin: 2rem auto;
width: 180px;
border-radius: 12px;
animation: bounce 2s infinite;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.description {
font-size: 1.2rem;
color: #666;
margin-bottom: 2rem;
}
.upload-section {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
margin-top: 2rem;
}
.upload-card, .camera-card {
background: white;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease;
}
.upload-card:hover, .camera-card:hover {
transform: translateY(-5px);
}
.file-input-wrapper {
position: relative;
margin-bottom: 1.5rem;
}
.file-input-wrapper input[type="file"] {
position: absolute;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
.file-label {
display: block;
padding: 2rem;
border: 2px dashed #fbc02d;
border-radius: 8px;
background: rgba(251, 192, 45, 0.1);
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
}
.file-label:hover {
background: rgba(251, 192, 45, 0.2);
}
.file-label i {
font-size: 2rem;
margin-bottom: 1rem;
color: #fbc02d;
}
.file-label span {
display: block;
margin-top: 0.5rem;
color: #666;
}
.camera-wrapper {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
#video {
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
background: #f5f5f5;
}
/* Result page styles */
.result-card {
background: white;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
margin: 2rem 0;
}
.image-section {
padding: 1rem;
background: #f5f5f5;
}
.result-image {
max-width: 100%;
height: auto;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.predictions-section {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
padding: 2rem;
}
.prediction-item {
text-align: center;
padding: 1.5rem;
background: rgba(251, 192, 45, 0.1);
border-radius: 12px;
}
.prediction-item i {
font-size: 2rem;
color: #f57f17;
margin-bottom: 1rem;
}
.prediction-item h3 {
color: #333;
margin: 0.5rem 0;
font-size: 1.2rem;
}
.prediction-value {
font-size: 2rem;
font-weight: 600;
color: #f57f17;
margin: 0.5rem 0;
}
.back-button {
display: inline-flex;
align-items: center;
gap: 0.5rem;
text-decoration: none;
}
/* Responsive Design */
@media (max-width: 768px) {
.upload-section {
grid-template-columns: 1fr;
}
.container {
padding: 1rem;
}
h1 {
font-size: 2rem;
}
.predictions-section {
grid-template-columns: 1fr;
gap: 1rem;
}
}
border: none;
padding: 0.7rem 1.5rem;
color: #333;
font-weight: bold;
cursor: pointer;
border-radius: 12px;
margin-top: 1rem;
transition: transform 0.3s ease;
}
.fun-button:hover {
background-color: #f9a825;
transform: scale(1.1) rotate(5deg);
}
@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
}