Files
FastCheck/src/app/components/history/history.component.scss

271 lines
3.9 KiB
SCSS
Raw Normal View History

2026-01-23 00:52:04 +04:00
.page-container {
min-height: 100vh;
background: #f5f7fa;
}
.header {
background: white;
padding: 20px 40px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 24px;
font-weight: 700;
color: #667eea;
}
.nav {
display: flex;
gap: 30px;
}
.nav-link {
text-decoration: none;
color: #666;
font-weight: 500;
padding: 8px 16px;
border-radius: 8px;
transition: all 0.3s;
&:hover {
color: #667eea;
background: #f0f0f0;
}
&.active {
color: #667eea;
background: #e8ebff;
}
}
.content {
padding: 40px;
max-width: 1000px;
margin: 0 auto;
@media (max-width: 768px) {
padding: 20px;
}
}
.page-header {
margin-bottom: 40px;
h1 {
font-size: 32px;
color: #333;
margin-bottom: 10px;
}
p {
color: #666;
font-size: 16px;
}
}
.loading {
text-align: center;
padding: 60px 20px;
.spinner {
width: 50px;
height: 50px;
border: 4px solid #f3f3f3;
border-top: 4px solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
p {
color: #666;
}
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.error-card {
background: white;
border-radius: 15px;
padding: 40px;
text-align: center;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
p {
color: #c33;
margin-bottom: 20px;
}
}
.btn-retry {
background: #667eea;
color: white;
border: none;
padding: 12px 30px;
border-radius: 8px;
cursor: pointer;
font-weight: 500;
transition: all 0.3s;
&:hover {
background: #764ba2;
}
}
.empty-state {
background: white;
border-radius: 20px;
padding: 60px 40px;
text-align: center;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
.empty-icon {
font-size: 64px;
margin-bottom: 20px;
}
h3 {
font-size: 24px;
color: #333;
margin-bottom: 10px;
}
p {
color: #666;
margin-bottom: 30px;
}
}
.btn-primary {
display: inline-block;
background: #667eea;
color: white;
text-decoration: none;
padding: 14px 30px;
border-radius: 8px;
font-weight: 600;
transition: all 0.3s;
&:hover {
background: #764ba2;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
}
.history-list {
display: flex;
flex-direction: column;
gap: 20px;
}
.history-item {
background: white;
border-radius: 12px;
padding: 25px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
transition: all 0.3s;
@media (max-width: 768px) {
padding: 20px;
}
&:hover {
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
}
.item-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid #f0f0f0;
}
.item-info {
display: flex;
align-items: center;
gap: 15px;
}
.type-badge {
padding: 6px 14px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
&.type-created {
background: #e8ebff;
color: #667eea;
}
&.type-accepted {
background: #e6f7ff;
color: #1890ff;
}
}
.item-number {
font-family: monospace;
font-size: 16px;
color: #666;
font-weight: 500;
}
.item-amount {
font-size: 24px;
font-weight: 700;
color: #333;
}
.item-details {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
@media (max-width: 768px) {
grid-template-columns: 1fr;
gap: 10px;
}
}
.detail {
display: flex;
flex-direction: column;
gap: 5px;
}
.detail-label {
font-size: 12px;
color: #999;
text-transform: uppercase;
font-weight: 600;
}
.detail-value {
font-size: 14px;
color: #333;
font-weight: 500;
}
.status-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
background: #f5f5f5;
color: #999;
}