feat(web + backend): advanced and simple quote.

This commit is contained in:
2026-01-27 23:38:47 +01:00
parent 7dc6741808
commit 443ff04430
26 changed files with 1773 additions and 52 deletions

View File

@@ -0,0 +1,254 @@
.section-header {
margin-bottom: 2rem;
.back-link {
display: inline-flex;
align-items: center;
color: var(--text-muted);
margin-bottom: 1rem;
font-size: 0.9rem;
.material-icons {
font-size: 1.1rem;
margin-right: 0.25rem;
}
&:hover {
color: var(--primary-color);
}
}
h1 {
font-size: 2.5rem;
margin-bottom: 0.5rem;
}
p {
color: var(--text-muted);
}
}
.upload-area {
border-bottom: 1px solid var(--border-color);
background: var(--surface-color);
transition: all 0.2s;
&.drag-over {
background: rgba(99, 102, 241, 0.1);
box-shadow: inset 0 0 0 2px var(--primary-color);
}
/* Only show pointer on empty state or drag */
&:not(.has-file) {
cursor: pointer;
}
}
.empty-state {
padding: 3rem;
text-align: center;
.upload-icon {
font-size: 4rem;
color: var(--text-muted);
margin-bottom: 1rem;
}
h3 { margin-bottom: 0.5rem; }
p { color: var(--text-muted); margin: 0; }
}
.viewer-wrapper {
height: 350px;
width: 100%;
background: #0f172a;
border-bottom: 1px solid var(--border-color);
}
.file-action-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1.5rem;
background: var(--surface-color);
.file-info {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text-main);
.material-icons { color: var(--primary-color); }
.file-name { font-weight: 500; }
}
.btn-icon {
background: none;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0.5rem;
border-radius: 50%;
transition: background 0.2s;
.material-icons {
font-size: 1.5rem;
color: var(--text-muted);
}
&:hover {
background: var(--surface-hover);
.material-icons { color: var(--text-main); }
}
&.danger {
&:hover {
background: rgba(239, 68, 68, 0.2);
.material-icons { color: #ef4444; } /* Red-500 */
}
}
}
}
.strength-selector {
padding: 1.5rem;
h3 {
font-size: 1.1rem;
margin-bottom: 1rem;
}
}
.strength-options {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.strength-card {
display: flex;
align-items: center;
padding: 1rem;
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
cursor: pointer;
transition: all 0.2s;
.emoji {
font-size: 2rem;
margin-right: 1rem;
}
.info {
h4 {
margin: 0 0 0.25rem 0;
}
p {
margin: 0;
font-size: 0.9rem;
color: var(--text-muted);
}
}
&:hover {
border-color: var(--primary-color);
background: var(--surface-hover);
}
&.active {
border-color: var(--primary-color);
background: rgba(99, 102, 241, 0.1);
.emoji {
transform: scale(1.1);
}
}
}
.actions {
padding: 1.5rem;
border-top: 1px solid var(--border-color);
}
.btn-block {
width: 100%;
display: flex;
}
/* Results */
.result-card {
text-align: center;
background: linear-gradient(135deg, var(--surface-color) 0%, rgba(30, 41, 59, 0.8) 100%);
h2 {
color: var(--text-muted);
font-size: 1.25rem;
margin-bottom: 1rem;
}
.price-big {
font-size: 3.5rem;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 2rem;
}
}
.specs-list {
text-align: left;
margin-bottom: 2rem;
background: rgba(0,0,0,0.2);
border-radius: var(--radius-md);
padding: 1rem;
.spec-item {
display: flex;
justify-content: space-between;
padding: 0.75rem 0;
border-bottom: 1px solid rgba(255,255,255,0.05);
&:last-child {
border-bottom: none;
}
span {
color: var(--text-muted);
}
}
}
.note-box {
background: rgba(236, 72, 153, 0.1);
color: var(--secondary-color);
padding: 0.75rem;
border-radius: var(--radius-sm);
font-size: 0.9rem;
}
.placeholder-card {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: var(--text-muted);
border-style: dashed;
.material-icons {
font-size: 4rem;
margin-bottom: 1rem;
opacity: 0.5;
}
}
/* Animation */
.fade-in {
animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}