added feed
This commit is contained in:
388
src/styles/feed.css
Normal file
388
src/styles/feed.css
Normal file
@@ -0,0 +1,388 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
:root {
|
||||
--teal: #2de0c8;
|
||||
--teal2: #1fc9b0;
|
||||
--border: rgba(255,255,255,0.09);
|
||||
--muted: rgba(255,255,255,0.38);
|
||||
--muted2: rgba(255,255,255,0.15);
|
||||
--font: 'Nunito', sans-serif;
|
||||
--err: #ff6b6b;
|
||||
}
|
||||
|
||||
.f-app {
|
||||
display: flex; height: 100vh;
|
||||
background: linear-gradient(135deg, #1a2340 0%, #0d1018 100%);
|
||||
overflow: hidden; font-family: var(--font); position: relative;
|
||||
}
|
||||
|
||||
/* Overlay */
|
||||
.f-overlay {
|
||||
position: fixed; inset: 0; background: rgba(0,0,0,0.5);
|
||||
z-index: 40; opacity: 0; pointer-events: none; transition: opacity .32s;
|
||||
}
|
||||
.f-overlay.show { opacity: 1; pointer-events: all; }
|
||||
|
||||
/* Left Sidebar */
|
||||
.f-sidebar {
|
||||
width: 260px; min-width: 260px;
|
||||
background: linear-gradient(180deg, #1a2540 0%, #111827 100%);
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex; flex-direction: column;
|
||||
transform: translateX(-100%);
|
||||
transition: transform .32s cubic-bezier(.4,0,.2,1);
|
||||
position: fixed; left: 0; top: 0; height: 100%; z-index: 50;
|
||||
}
|
||||
.f-sidebar.open { transform: translateX(0); }
|
||||
|
||||
.f-sb-head {
|
||||
padding: 22px 20px 16px;
|
||||
display: flex; align-items: center; gap: 11px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.f-sb-logo {
|
||||
width: 36px; height: 36px;
|
||||
background: linear-gradient(135deg, var(--teal2), var(--teal));
|
||||
border-radius: 10px;
|
||||
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
|
||||
}
|
||||
.f-sb-name { color: #fff; font-weight: 900; font-size: 1.1rem; letter-spacing: -.3px; }
|
||||
.f-sb-nav { padding: 12px 0; flex: 1; }
|
||||
.f-sb-bottom { padding: 12px 0; border-top: 1px solid var(--border); }
|
||||
.f-sb-item {
|
||||
display: flex; align-items: center; gap: 13px;
|
||||
padding: 11px 20px; cursor: pointer;
|
||||
transition: background .15s, color .15s;
|
||||
color: var(--muted); font-size: .9rem; font-weight: 700;
|
||||
border-left: 3px solid transparent;
|
||||
}
|
||||
.f-sb-item:hover { background: rgba(255,255,255,.05); color: #fff; }
|
||||
.f-sb-item.active { background: rgba(45,224,200,.1); color: var(--teal); border-left-color: var(--teal); }
|
||||
|
||||
/* Main */
|
||||
.f-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
|
||||
|
||||
/* Topbar */
|
||||
.f-topbar {
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: rgba(13,16,24,.7); backdrop-filter: blur(12px);
|
||||
position: sticky; top: 0; z-index: 10;
|
||||
}
|
||||
.f-menu-btn {
|
||||
background: none; border: none; cursor: pointer;
|
||||
padding: 6px; border-radius: 8px; transition: background .15s;
|
||||
flex-shrink: 0; line-height: 0; width: 32px;
|
||||
}
|
||||
.f-menu-btn:hover { background: rgba(255,255,255,.08); }
|
||||
.f-topbar-center { flex: 1; display: flex; justify-content: center; }
|
||||
.f-topbar-spacer { width: 32px; flex-shrink: 0; }
|
||||
|
||||
.f-post-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
|
||||
padding: 12px 28px;
|
||||
border-radius: 16px;
|
||||
|
||||
font-family: var(--font);
|
||||
font-weight: 900;
|
||||
font-size: 0.95rem;
|
||||
letter-spacing: 0.3px;
|
||||
|
||||
color: #eafffb;
|
||||
|
||||
background: rgba(45, 224, 200, 0.12);
|
||||
backdrop-filter: blur(14px);
|
||||
-webkit-backdrop-filter: blur(14px);
|
||||
|
||||
border: 1px solid rgba(45, 224, 200, 0.25);
|
||||
|
||||
box-shadow:
|
||||
0 8px 24px rgba(0, 0, 0, 0.35),
|
||||
inset 0 0 12px rgba(45, 224, 200, 0.15),
|
||||
0 0 18px rgba(45, 224, 200, 0.15);
|
||||
|
||||
cursor: pointer;
|
||||
transition: all 0.25s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* градиентное "стекло" сверху */
|
||||
.f-post-btn::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(
|
||||
120deg,
|
||||
rgba(255,255,255,0.25),
|
||||
rgba(255,255,255,0.05) 40%,
|
||||
transparent 60%
|
||||
);
|
||||
opacity: 0.4;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* glow при наведении */
|
||||
.f-post-btn:hover {
|
||||
transform: translateY(-2px) scale(1.02);
|
||||
|
||||
border-color: rgba(45, 224, 200, 0.5);
|
||||
|
||||
box-shadow:
|
||||
0 12px 32px rgba(0, 0, 0, 0.45),
|
||||
inset 0 0 18px rgba(45, 224, 200, 0.25),
|
||||
0 0 26px rgba(45, 224, 200, 0.35);
|
||||
}
|
||||
|
||||
/* нажатие */
|
||||
.f-post-btn:active {
|
||||
transform: translateY(0) scale(0.98);
|
||||
box-shadow:
|
||||
0 4px 12px rgba(0, 0, 0, 0.4),
|
||||
inset 0 0 10px rgba(45, 224, 200, 0.2);
|
||||
}
|
||||
|
||||
/* плюсик */
|
||||
.f-post-btn span {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
|
||||
border-radius: 50%;
|
||||
|
||||
background: rgba(45, 224, 200, 0.2);
|
||||
box-shadow: 0 0 10px rgba(45, 224, 200, 0.4);
|
||||
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.f-post-btn span {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
|
||||
|
||||
/* Feed wrap */
|
||||
.f-wrap { display: flex; flex: 1; overflow: hidden; }
|
||||
|
||||
/* Feed */
|
||||
.f-feed {
|
||||
flex: 1; overflow-y: auto;
|
||||
padding: 16px; display: flex; flex-direction: column; gap: 14px;
|
||||
}
|
||||
.f-feed::-webkit-scrollbar { width: 4px; }
|
||||
.f-feed::-webkit-scrollbar-track { background: transparent; }
|
||||
.f-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
|
||||
|
||||
/* States */
|
||||
.f-center {
|
||||
flex: 1; display: flex; flex-direction: column;
|
||||
align-items: center; justify-content: center;
|
||||
gap: 12px; color: var(--muted); text-align: center; padding: 40px;
|
||||
}
|
||||
.f-center-icon { font-size: 2.8rem; opacity: .3; }
|
||||
.f-center-title { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,.5); }
|
||||
.f-center-sub { font-size: .82rem; line-height: 1.6; }
|
||||
.f-spinner-wrap { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; }
|
||||
.f-spinner {
|
||||
width: 20px; height: 20px;
|
||||
border: 2px solid rgba(45,224,200,.2); border-top-color: var(--teal);
|
||||
border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0;
|
||||
}
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* Ad Card */
|
||||
.f-card {
|
||||
background: linear-gradient(155deg, #1d2436, #131720);
|
||||
border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
|
||||
transition: border-color .2s, transform .2s; cursor: pointer;
|
||||
}
|
||||
.f-card:hover { border-color: rgba(45,224,200,.3); transform: translateY(-2px); }
|
||||
|
||||
.f-card-img {
|
||||
width: 100%; height: 160px;
|
||||
background: linear-gradient(135deg, #1a3a4a 0%, #0f2235 100%);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
position: relative; overflow: hidden;
|
||||
}
|
||||
.f-card-img img { width: 100%; height: 100%; object-fit: cover; }
|
||||
.f-card-emoji { font-size: 3rem; opacity: .22; }
|
||||
.f-cat-badge {
|
||||
position: absolute; top: 10px; left: 10px;
|
||||
background: rgba(13,16,24,.8); backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--border); border-radius: 20px;
|
||||
padding: 3px 10px; font-size: .72rem; font-weight: 700; color: var(--teal);
|
||||
}
|
||||
.f-type-badge {
|
||||
position: absolute; top: 10px; right: 10px;
|
||||
border-radius: 20px; padding: 3px 10px; font-size: .72rem; font-weight: 900;
|
||||
}
|
||||
.f-type-loss { background: rgba(255,107,107,.2); color: #ff6b6b; border: 1px solid rgba(255,107,107,.3); }
|
||||
.f-type-found { background: rgba(45,224,200,.2); color: #2de0c8; border: 1px solid rgba(45,224,200,.3); }
|
||||
|
||||
.f-card-body { padding: 14px 16px; }
|
||||
.f-card-title { color: #fff; font-weight: 900; font-size: 1rem; margin-bottom: 5px; line-height: 1.3; }
|
||||
.f-card-desc {
|
||||
color: var(--muted); font-size: .82rem; line-height: 1.5; margin-bottom: 10px;
|
||||
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
|
||||
}
|
||||
.f-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
|
||||
.f-meta-pill {
|
||||
display: flex; align-items: center; gap: 4px;
|
||||
background: rgba(255,255,255,.05); border: 1px solid var(--border);
|
||||
border-radius: 20px; padding: 3px 9px; font-size: .73rem; color: var(--muted);
|
||||
}
|
||||
.f-card-map {
|
||||
width: 100%; height: 76px;
|
||||
background: #080f1c; margin-bottom: 14px; border-radius: 12px;
|
||||
border: 1px solid var(--border);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
gap: 8px; color: var(--muted); font-size: .78rem;
|
||||
cursor: pointer; transition: border-color .2s;
|
||||
font-family: var(--font); font-weight: 600;
|
||||
}
|
||||
.f-card-map:hover { border-color: rgba(45,224,200,.3); color: var(--teal); }
|
||||
.f-card-foot {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding-top: 10px; border-top: 1px solid var(--border);
|
||||
}
|
||||
.f-card-phone {
|
||||
color: var(--teal); font-size: .82rem; font-weight: 700;
|
||||
text-decoration: none; display: flex; align-items: center; gap: 5px;
|
||||
}
|
||||
.f-card-date { color: var(--muted2); font-size: .75rem; }
|
||||
.f-like-btn {
|
||||
display: flex; align-items: center; gap: 5px;
|
||||
background: none; border: 1px solid var(--border);
|
||||
border-radius: 20px; padding: 5px 11px; cursor: pointer;
|
||||
font-family: var(--font); font-size: .8rem; font-weight: 700;
|
||||
color: var(--muted); transition: all .2s; line-height: 1;
|
||||
}
|
||||
.f-like-btn:hover, .f-like-btn.liked {
|
||||
border-color: rgba(255,107,107,.5); color: #ff6b6b; background: rgba(255,107,107,.08);
|
||||
}
|
||||
|
||||
/* Right Sidebar */
|
||||
.f-right {
|
||||
width: 220px; min-width: 220px; padding: 16px 12px;
|
||||
border-left: 1px solid var(--border);
|
||||
display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
|
||||
}
|
||||
.f-right::-webkit-scrollbar { width: 3px; }
|
||||
.f-right::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 2px; }
|
||||
.f-right-label {
|
||||
font-size: .65rem; font-weight: 900;
|
||||
text-transform: uppercase; letter-spacing: .8px; color: var(--muted2);
|
||||
}
|
||||
.f-right-empty {
|
||||
flex: 1; display: flex; flex-direction: column;
|
||||
align-items: center; justify-content: center;
|
||||
gap: 12px; text-align: center;
|
||||
border: 1.5px dashed rgba(255,255,255,.08);
|
||||
border-radius: 16px; padding: 20px; min-height: 200px;
|
||||
}
|
||||
.f-right-empty-icon { font-size: 2rem; opacity: .2; }
|
||||
.f-right-empty-text { color: var(--muted); font-size: .78rem; line-height: 1.5; }
|
||||
.f-add-promo-btn {
|
||||
background: rgba(45,224,200,.08); border: 1px solid rgba(45,224,200,.25);
|
||||
border-radius: 10px; padding: 9px 14px;
|
||||
color: var(--teal); font-family: var(--font);
|
||||
font-size: .8rem; font-weight: 800; cursor: pointer;
|
||||
transition: background .2s, transform .15s;
|
||||
}
|
||||
.f-add-promo-btn:hover { background: rgba(45,224,200,.15); transform: translateY(-1px); }
|
||||
|
||||
/* Modal */
|
||||
.f-modal-bg {
|
||||
position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 100;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
animation: mfadeIn .2s ease;
|
||||
}
|
||||
@keyframes mfadeIn { from{opacity:0} to{opacity:1} }
|
||||
.f-modal {
|
||||
background: linear-gradient(155deg, #1d2436, #131720);
|
||||
border: 1px solid rgba(255,255,255,.12); border-radius: 24px;
|
||||
width: 440px; max-height: 90vh; overflow-y: auto; padding: 26px 28px 24px;
|
||||
animation: mslideUp .3s cubic-bezier(.34,1.56,.64,1);
|
||||
}
|
||||
@keyframes mslideUp { from{opacity:0;transform:translateY(30px) scale(.96)} to{opacity:1;transform:none} }
|
||||
.f-modal::-webkit-scrollbar { width: 4px; }
|
||||
.f-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
|
||||
|
||||
.f-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
|
||||
.f-modal-title { color: #fff; font-weight: 900; font-size: 1.1rem; }
|
||||
.f-close-btn {
|
||||
background: rgba(255,255,255,.07); border: 1px solid var(--border);
|
||||
border-radius: 8px; width: 32px; height: 32px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; color: var(--muted); transition: background .15s;
|
||||
}
|
||||
.f-close-btn:hover { background: rgba(255,255,255,.13); color: #fff; }
|
||||
|
||||
.f-m-group { margin-bottom: 14px; }
|
||||
.f-m-row { display: flex; gap: 10px; }
|
||||
.f-m-row .f-m-group { flex: 1; }
|
||||
.f-m-label {
|
||||
display: block; color: rgba(255,255,255,.45);
|
||||
font-size: .72rem; font-weight: 700; letter-spacing: .6px;
|
||||
margin-bottom: 6px; text-transform: uppercase; font-family: var(--font);
|
||||
}
|
||||
.f-m-field {
|
||||
width: 100%; background: rgba(255,255,255,.055);
|
||||
border: 1.5px solid rgba(255,255,255,.09); border-radius: 12px;
|
||||
padding: 11px 14px; color: #fff; font-family: var(--font);
|
||||
font-size: .9rem; outline: none; resize: none;
|
||||
transition: border-color .2s, box-shadow .2s;
|
||||
}
|
||||
.f-m-field:focus { border-color: #2de0c8; background: rgba(45,224,200,.07); box-shadow: 0 0 0 3px rgba(45,224,200,.12); }
|
||||
.f-m-field::placeholder { color: rgba(255,255,255,.32); }
|
||||
.f-m-field option { background: #1d2436; color: #fff; }
|
||||
.f-m-field.err { border-color: rgba(255,107,107,.55); }
|
||||
|
||||
.f-type-toggle { display: flex; gap: 8px; }
|
||||
.f-type-opt {
|
||||
flex: 1; padding: 10px; border-radius: 10px;
|
||||
border: 1.5px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04);
|
||||
color: var(--muted); font-family: var(--font); font-size: .85rem;
|
||||
font-weight: 800; cursor: pointer; text-align: center; transition: all .2s;
|
||||
}
|
||||
.f-type-opt.loss { border-color: rgba(255,107,107,.5); background: rgba(255,107,107,.12); color: #ff6b6b; }
|
||||
.f-type-opt.found { border-color: rgba(45,224,200,.5); background: rgba(45,224,200,.1); color: #2de0c8; }
|
||||
|
||||
.f-map-pick {
|
||||
height: 80px; background: linear-gradient(135deg, #0f2235, #0a1a2e);
|
||||
border-radius: 12px; border: 1.5px dashed rgba(255,255,255,.15);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
gap: 8px; color: var(--muted); font-size: .83rem; cursor: pointer;
|
||||
transition: border-color .2s; font-family: var(--font); font-weight: 600;
|
||||
}
|
||||
.f-map-pick:hover { border-color: rgba(45,224,200,.4); color: var(--teal); }
|
||||
.f-hint { font-size: .72rem; color: var(--muted); margin-top: 4px; }
|
||||
.f-err-msg { font-size: .78rem; color: var(--err); margin-top: 5px; }
|
||||
|
||||
.f-m-submit {
|
||||
width: 100%;
|
||||
background: linear-gradient(90deg, #1fc9b0, #2de0c8, #1fc9b0);
|
||||
background-size: 200% 100%; border: none; border-radius: 13px;
|
||||
padding: 14px; color: #082320; font-family: var(--font);
|
||||
font-size: 1rem; font-weight: 900; cursor: pointer; margin-top: 6px;
|
||||
animation: shimmer 3s linear infinite; transition: opacity .15s, transform .15s;
|
||||
}
|
||||
.f-m-submit:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
|
||||
.f-m-submit:active:not(:disabled) { transform: translateY(0); }
|
||||
.f-m-submit:disabled { opacity: .5; cursor: not-allowed; animation: none; background: #444; color: #aaa; }
|
||||
.f-m-submit-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
|
||||
.f-m-spinner {
|
||||
width: 16px; height: 16px;
|
||||
border: 2px solid rgba(8,35,32,.3); border-top-color: #082320;
|
||||
border-radius: 50%; animation: spin .7s linear infinite;
|
||||
}
|
||||
Reference in New Issue
Block a user