erdemyavuz's picture
First commit : Flask app and model files
02ccec1
Raw
History Blame Contribute Delete
2.61 kB
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
body {
background-color: #121212;
color: #e0e0e0;
font-family: 'Inter', sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 2rem;
box-sizing: border-box;
}
.container {
width: 100%;
max-width: 800px;
text-align: center;
}
h1 {
font-size: 2.5rem;
font-weight: 700;
color: #ffffff;
}
p {
color: #a0a0a0;
margin-bottom: 2rem;
}
.card {
background-color: #1e1e1e;
border-radius: 12px;
padding: 2rem;
border: 1px solid #2a2a2a;
margin-bottom: 2rem;
}
.file-input {
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}
.file-label {
display: block;
padding: 0.75rem 1.25rem;
border: 1px dashed #555;
border-radius: 8px;
cursor: pointer;
background-color: #252525;
margin-bottom: 1.5rem;
transition: background-color 0.2s;
}
.file-label:hover {
background-color: #333;
}
.upload-btn {
width: 100%;
padding: 1rem;
background-color: #8A2BE2; /* Mor tonu */
color: white;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s;
}
.upload-btn:hover {
background-color: #7B24CB;
}
.results-card {
text-align: left;
}
.results-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
align-items: center;
}
.result-item h3 {
text-align: center;
margin-bottom: 1rem;
color: #bbb;
font-weight: 500;
}
.result-item img {
width: 100%;
border-radius: 8px;
border: 1px solid #333;
}
.plate-text {
text-align: center;
font-size: 2rem;
font-weight: 700;
letter-spacing: 2px;
background-color: #252525;
padding: 1rem;
border-radius: 8px;
margin-top: 1rem;
color: #fff;
}
/* style.css dosyasının en altına ekleyin */
.file-label {
/* Uzun dosya adlarının taşmasını engellemek için */
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.file-label-text {
/* Metnin de taşmasını engelle */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 0 10px;
}
/* Dosya seçildiğinde görünecek onay işareti için stil */
.file-label.file-chosen::before {
content: '✓'; /* Onay işareti */
color: #4CAF50; /* Yeşil renk */
font-weight: bold;
margin-right: 10px;
}