Spaces:
Running
Running
/* body { | |
font-family: 'Poppins', sans-serif; | |
background: linear-gradient(135deg, #74ebd5, #ACB6E5); | |
margin: 0; | |
padding: 0; | |
min-height: 100vh; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} | |
.container { | |
background: #ffffff; | |
padding: 40px; | |
border-radius: 20px; | |
box-shadow: 0 10px 40px rgba(0,0,0,0.2); | |
max-width: 700px; | |
width: 90%; | |
animation: fadeIn 1s ease-in; | |
} | |
h1 { | |
margin-bottom: 20px; | |
color: #333; | |
font-weight: 600; | |
} | |
.upload-form { | |
display: flex; | |
flex-direction: column; | |
gap: 20px; | |
margin-bottom: 30px; | |
} | |
input[type="file"] { | |
padding: 10px; | |
background: #f5f5f5; | |
border: 2px dashed #ccc; | |
border-radius: 10px; | |
} | |
button { | |
padding: 12px; | |
background: #007bff; | |
color: white; | |
border: none; | |
border-radius: 10px; | |
font-size: 16px; | |
cursor: pointer; | |
transition: background 0.3s; | |
} | |
button:hover { | |
background: #0056b3; | |
} | |
.preview img { | |
max-width: 100%; | |
max-height: 400px; | |
border-radius: 10px; | |
margin-top: 20px; | |
} | |
.output { | |
margin-top: 30px; | |
background: #f9f9f9; | |
padding: 20px; | |
border-radius: 10px; | |
word-break: break-word; | |
} | |
.error { | |
margin-top: 20px; | |
color: red; | |
font-weight: bold; | |
} | |
@keyframes fadeIn { | |
from { opacity: 0; transform: translateY(30px);} | |
to { opacity: 1; transform: translateY(0);} | |
} | |
#result-img { | |
max-width: 100%; | |
height: auto; | |
margin-top: 10px; | |
border: 1px solid #ddd; | |
border-radius: 8px; | |
padding: 4px; | |
} | |
#extracted-text { | |
text-align: left; | |
background: #fff; | |
padding: 15px; | |
border-radius: 8px; | |
border: 1px solid #ddd; | |
} | |
#spinner { | |
position: fixed; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
z-index: 1000; | |
} */ | |
/* static/style.css */ | |
body { | |
background: #f0f2f5; | |
font-family: 'Segoe UI', Tahoma, sans-serif; | |
color: #333; | |
margin: 0; | |
padding: 0; | |
} | |
.container { | |
max-width: 600px; | |
margin: 40px auto; | |
background: #fff; | |
border-radius: 8px; | |
padding: 20px; | |
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
} | |
h1, h2 { | |
color: #444; | |
margin-bottom: 10px; | |
} | |
p { | |
color: #666; | |
} | |
form { | |
margin-top: 20px; | |
display: flex; | |
gap: 10px; | |
} | |
input[type="file"] { | |
flex: 1; | |
padding: 8px; | |
border: 1px solid #ccc; | |
border-radius: 4px; | |
} | |
button { | |
background-color: #007BFF; | |
color: white; | |
border: none; | |
padding: 8px 16px; | |
border-radius: 4px; | |
cursor: pointer; | |
} | |
button:hover { | |
background-color: #0056b3; | |
} | |
.result, .image-preview { | |
margin-top: 20px; | |
padding: 10px; | |
border-top: 1px solid #e1e1e1; | |
} | |
.result pre { | |
background: #f8f9fa; | |
padding: 10px; | |
border-radius: 4px; | |
white-space: pre-wrap; | |
} | |
.flashes { | |
list-style: none; | |
padding: 10px; | |
background: #ffe0e0; | |
border: 1px solid #ffb3b3; | |
border-radius: 4px; | |
color: #a94442; | |
} | |
.flashes li { | |
margin: 5px 0; | |
} | |
img { | |
max-width: 100%; | |
height: auto; | |
border-radius: 4px; | |
} | |