added files in git

This commit is contained in:
SlimusMinus
2026-07-03 00:04:56 +03:00
parent a5d457b07a
commit b924bc5f94
33 changed files with 2916 additions and 2 deletions

324
src/styles/reviews.css Normal file
View File

@@ -0,0 +1,324 @@
/* ── Reviews Page ── */
.rv-page-title {
font-size: 1.15rem;
font-weight: 900;
color: #fff;
margin: 0;
}
.rv-layout {
display: flex;
gap: 24px;
padding: 20px;
flex: 1;
overflow-y: auto;
}
/* ── Left sidebar (summary + form) ── */
.rv-sidebar {
width: 300px;
min-width: 280px;
display: flex;
flex-direction: column;
gap: 20px;
}
/* ── Summary block ── */
.rv-summary {
background: rgba(255, 255, 255, .04);
border: 1px solid var(--border);
border-radius: 16px;
padding: 20px;
display: flex;
flex-direction: column;
gap: 10px;
}
.rv-summary-score {
display: flex;
align-items: center;
gap: 12px;
}
.rv-summary-num {
font-size: 2.6rem;
font-weight: 900;
color: #f5a623;
line-height: 1;
}
.rv-summary-none {
color: var(--muted);
font-size: .9rem;
font-weight: 700;
}
.rv-summary-total {
color: var(--muted);
font-size: .8rem;
font-weight: 600;
}
/* Distribution */
.rv-distribution {
display: flex;
flex-direction: column;
gap: 6px;
margin-top: 6px;
}
.rv-dist-row {
display: flex;
align-items: center;
gap: 8px;
}
.rv-dist-star {
font-size: .75rem;
color: var(--muted);
min-width: 32px;
text-align: right;
font-weight: 700;
}
.rv-dist-bar {
flex: 1;
height: 6px;
background: rgba(255, 255, 255, .06);
border-radius: 3px;
overflow: hidden;
}
.rv-dist-fill {
height: 100%;
background: linear-gradient(90deg, #f5a623, #f7c948);
border-radius: 3px;
transition: width .4s ease;
}
.rv-dist-count {
font-size: .7rem;
color: var(--muted);
min-width: 16px;
text-align: right;
font-weight: 700;
}
/* ── Star Rating ── */
.rv-stars {
display: flex;
gap: 3px;
}
.rv-star {
color: rgba(255, 255, 255, .2);
transition: color .15s, transform .15s;
flex-shrink: 0;
}
.rv-star.filled {
color: #f5a623;
}
.rv-star.interactive {
cursor: pointer;
}
.rv-star.interactive:hover {
transform: scale(1.2);
}
/* ── Review Form ── */
.rv-form {
background: rgba(255, 255, 255, .04);
border: 1px solid var(--border);
border-radius: 16px;
padding: 20px;
display: flex;
flex-direction: column;
gap: 14px;
}
.rv-form-title {
margin: 0;
font-size: 1rem;
font-weight: 800;
color: #fff;
}
.rv-form-rating {
display: flex;
align-items: center;
gap: 10px;
}
.rv-form-label {
font-size: .85rem;
font-weight: 700;
color: var(--muted);
}
.rv-form-error {
color: #ff6b6b;
font-size: .8rem;
font-weight: 700;
}
.rv-form-textarea {
background: rgba(255, 255, 255, .05);
border: 1px solid var(--border);
border-radius: 10px;
padding: 12px 14px;
color: #fff;
font-family: var(--font);
font-size: .88rem;
resize: vertical;
transition: border-color .15s, box-shadow .15s;
}
.rv-form-textarea:focus {
outline: none;
border-color: var(--teal);
box-shadow: 0 0 0 3px rgba(45, 224, 200, .12);
}
.rv-form-textarea::placeholder {
color: rgba(255, 255, 255, .32);
}
.rv-form-footer {
display: flex;
align-items: center;
justify-content: space-between;
}
.rv-form-counter {
font-size: .72rem;
color: var(--muted);
font-weight: 600;
}
.rv-form-submit {
background: linear-gradient(135deg, var(--teal2), var(--teal));
border: none;
border-radius: 10px;
padding: 10px 22px;
color: #111;
font-family: var(--font);
font-size: .85rem;
font-weight: 800;
cursor: pointer;
transition: opacity .15s, transform .15s;
}
.rv-form-submit:hover:not(:disabled) {
opacity: .9;
transform: translateY(-1px);
}
.rv-form-submit:disabled {
opacity: .5;
cursor: not-allowed;
}
/* ── Login prompt ── */
.rv-login-prompt {
background: rgba(255, 255, 255, .04);
border: 1px solid var(--border);
border-radius: 16px;
padding: 20px;
text-align: center;
}
.rv-login-prompt p {
color: var(--muted);
font-size: .88rem;
margin: 0 0 14px;
}
.rv-login-btn {
background: linear-gradient(135deg, var(--teal2), var(--teal));
border: none;
border-radius: 10px;
padding: 10px 24px;
color: #111;
font-family: var(--font);
font-size: .85rem;
font-weight: 800;
cursor: pointer;
transition: opacity .15s;
}
.rv-login-btn:hover {
opacity: .9;
}
/* ── Reviews List ── */
.rv-list {
flex: 1;
display: flex;
flex-direction: column;
gap: 14px;
min-width: 0;
}
/* ── Review Card ── */
.rv-card {
background: rgba(255, 255, 255, .04);
border: 1px solid var(--border);
border-radius: 16px;
padding: 18px 20px;
display: flex;
flex-direction: column;
gap: 12px;
transition: border-color .15s;
animation: rvCardIn .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.rv-card:hover {
border-color: rgba(45, 224, 200, .25);
}
@keyframes rvCardIn {
from { opacity: 0; transform: translateY(16px); }
to { opacity: 1; transform: translateY(0); }
}
.rv-card-head {
display: flex;
align-items: center;
gap: 12px;
}
.rv-card-avatar {
width: 38px;
height: 38px;
border-radius: 50%;
background: rgba(45, 224, 200, .15);
border: 2px solid rgba(45, 224, 200, .3);
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
font-weight: 800;
color: var(--teal);
flex-shrink: 0;
}
.rv-card-meta {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.rv-card-name {
font-size: .88rem;
font-weight: 700;
color: #fff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.rv-card-date {
font-size: .72rem;
color: var(--muted);
}
.rv-card-rating {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 2px;
flex-shrink: 0;
}
.rv-card-rating-num {
font-size: .7rem;
color: var(--muted);
font-weight: 700;
}
.rv-card-text {
margin: 0;
font-size: .88rem;
color: rgba(255, 255, 255, .78);
line-height: 1.55;
}
/* ── Responsive ── */
@media (max-width: 768px) {
.rv-layout {
flex-direction: column;
padding: 14px;
}
.rv-sidebar {
width: 100%;
min-width: 0;
}
}