added frame on posts
This commit is contained in:
13
src/App.js
13
src/App.js
@@ -1,5 +1,6 @@
|
||||
import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
|
||||
import { AuthProvider } from './context/AuthContext';
|
||||
import { ThemeProvider } from './context/ThemeContext';
|
||||
import RegisterPage from './components/Authentication';
|
||||
import MainFeed from './components/MainFeed';
|
||||
import ChatPage from './components/ChatPage';
|
||||
@@ -9,6 +10,7 @@ import './styles/chat.css';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<ThemeProvider>
|
||||
<AuthProvider>
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
@@ -21,8 +23,9 @@ function App() {
|
||||
<Route path="/chats/:chatId" element={<ChatPage />} />
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
</AuthProvider>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
</AuthProvider>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
@@ -2,6 +2,7 @@ import LogoIcon from "./icons/LogoIcon";
|
||||
import {NAV_BOTTOM, NAV_ITEMS} from "../config/feedConstants";
|
||||
import {NavIcons} from "./icons/NavIcons";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useTheme } from "../context/ThemeContext";
|
||||
|
||||
export default function Sidebar({
|
||||
open,
|
||||
@@ -14,6 +15,7 @@ export default function Sidebar({
|
||||
onReviewsClick,
|
||||
}) {
|
||||
const navigate = useNavigate();
|
||||
const { theme, toggle: toggleTheme } = useTheme();
|
||||
return (
|
||||
<>
|
||||
<div className={`f-overlay${open ? " show" : ""}`} onClick={onClose} />
|
||||
@@ -78,6 +80,20 @@ export default function Sidebar({
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
<div className="f-sb-divider" />
|
||||
<div className="f-sb-item f-sb-theme-toggle" onClick={toggleTheme}>
|
||||
{theme === "dark" ? (
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
||||
<circle cx="12" cy="12" r="5"/>
|
||||
<path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/>
|
||||
</svg>
|
||||
) : (
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
||||
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>
|
||||
</svg>
|
||||
)}
|
||||
{theme === "dark" ? "Светлая тема" : "Тёмная тема"}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export default function MenuIcon () {
|
||||
return (
|
||||
<svg width={20} height={20} viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.8)" strokeWidth={2.2} strokeLinecap="round">
|
||||
<svg width={20} height={20} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2.2} strokeLinecap="round" opacity="0.8">
|
||||
<line x1="3" y1="6" x2="21" y2="6" />
|
||||
<line x1="3" y1="12" x2="21" y2="12" />
|
||||
<line x1="3" y1="18" x2="21" y2="18" />
|
||||
|
||||
@@ -4,12 +4,45 @@
|
||||
|
||||
:root {
|
||||
--teal: #2de0c8;
|
||||
--teal-rgb: 45, 224, 200;
|
||||
--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;
|
||||
|
||||
--bg-app: linear-gradient(135deg, #1a2340 0%, #0d1018 100%);
|
||||
--bg-card: linear-gradient(155deg, #1d2436, #131720);
|
||||
--bg-surface: rgba(13,16,24,.7);
|
||||
--bg-surface-solid: #131720;
|
||||
--bg-filter: rgba(13,16,24,.4);
|
||||
--bg-card-img: linear-gradient(135deg, #1a3a4a 0%, #0f2235 100%);
|
||||
--bg-input: rgba(255,255,255,.055);
|
||||
--bg-overlay: rgba(0,0,0,.65);
|
||||
--text-primary: #fff;
|
||||
--hover-bg: rgba(255,255,255,.08);
|
||||
}
|
||||
|
||||
[data-theme="light"] {
|
||||
--teal: #1a9e8a;
|
||||
--teal-rgb: 26, 158, 138;
|
||||
--teal2: #148d7a;
|
||||
--border: rgba(0,0,0,0.1);
|
||||
--muted: rgba(0,0,0,0.45);
|
||||
--muted2: rgba(0,0,0,0.18);
|
||||
--err: #d32f2f;
|
||||
|
||||
--bg-app: linear-gradient(135deg, #f0f2f5 0%, #e2e6ed 100%);
|
||||
--bg-card: #ffffff;
|
||||
--bg-surface: rgba(255,255,255,.8);
|
||||
--bg-surface-solid: #ffffff;
|
||||
--bg-filter: rgba(255,255,255,.6);
|
||||
--bg-card-img: linear-gradient(135deg, #e8ecf2 0%, #d6dce6 100%);
|
||||
--bg-input: rgba(0,0,0,.04);
|
||||
--bg-overlay: rgba(0,0,0,.35);
|
||||
--text-primary: #111;
|
||||
--hover-bg: rgba(0,0,0,.06);
|
||||
}
|
||||
|
||||
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/* ── Ad Card ── */
|
||||
.f-card {
|
||||
flex-shrink: 0;
|
||||
background: linear-gradient(155deg, #1d2436, #131720);
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
|
||||
transition: border-color .2s, transform .2s; cursor: pointer;
|
||||
transition: border-color .2s, transform .2s, background .2s; cursor: pointer;
|
||||
}
|
||||
.f-card:hover { border-color: rgba(45,224,200,.3); transform: translateY(-2px); }
|
||||
.f-card:hover { border-color: rgba(var(--teal-rgb), .3); transform: translateY(-2px); }
|
||||
|
||||
.f-card-inner {
|
||||
display: flex; flex-direction: row; min-height: 180px;
|
||||
@@ -14,8 +14,8 @@
|
||||
/* Image Panel */
|
||||
.f-card-img {
|
||||
width: 180px; min-width: 180px;
|
||||
align-self: stretch; /* растягивается на всю высоту карточки */
|
||||
background: linear-gradient(135deg, #1a3a4a 0%, #0f2235 100%);
|
||||
align-self: stretch;
|
||||
background: var(--bg-card-img);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
position: relative; overflow: hidden; flex-shrink: 0;
|
||||
}
|
||||
@@ -39,7 +39,7 @@
|
||||
margin-left: auto;
|
||||
}
|
||||
.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-type-found { background: rgba(var(--teal-rgb), .2); color: var(--teal); border: 1px solid rgba(var(--teal-rgb), .3); }
|
||||
|
||||
/* Status badge for closed/found posts */
|
||||
.f-status-badge {
|
||||
@@ -96,7 +96,7 @@
|
||||
flex: 1; padding: 14px 16px;
|
||||
display: flex; flex-direction: column; min-width: 0;
|
||||
}
|
||||
.f-card-title { color: #fff; font-weight: 900; font-size: 1rem; margin-bottom: 5px; line-height: 1.3; }
|
||||
.f-card-title { color: var(--text-primary); 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;
|
||||
@@ -106,21 +106,21 @@
|
||||
.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);
|
||||
background: var(--hover-bg); border: 1px solid var(--border);
|
||||
border-radius: 20px; padding: 3px 9px; font-size: .73rem; color: var(--muted);
|
||||
}
|
||||
|
||||
/* Map stub */
|
||||
.f-card-map {
|
||||
width: 100%; height: 76px;
|
||||
background: #080f1c; margin-bottom: 14px; border-radius: 12px;
|
||||
background: var(--bg-input); 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-map:hover { border-color: rgba(var(--teal-rgb), .3); color: var(--teal); }
|
||||
|
||||
/* Footer */
|
||||
.f-card-foot {
|
||||
@@ -172,7 +172,7 @@
|
||||
color: var(--muted); padding: 0;
|
||||
}
|
||||
.f-card-edit-btn:hover {
|
||||
border-color: rgba(45,224,200,.5); color: #2de0c8; background: rgba(45,224,200,.08);
|
||||
border-color: rgba(var(--teal-rgb), .5); color: var(--teal); background: rgba(var(--teal-rgb), .08);
|
||||
}
|
||||
.f-card-delete-btn:hover {
|
||||
border-color: rgba(255,107,107,.5); color: #ff6b6b; background: rgba(255,107,107,.08);
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
}
|
||||
|
||||
@keyframes logoPulse {
|
||||
0%, 100% { filter: drop-shadow(0 0 18px rgba(45,224,200,.45)); }
|
||||
50% { filter: drop-shadow(0 0 38px rgba(45,224,200,.8)); }
|
||||
0%, 100% { filter: drop-shadow(0 0 18px rgba(var(--teal-rgb), .45)); }
|
||||
50% { filter: drop-shadow(0 0 38px rgba(var(--teal-rgb), .8)); }
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
@@ -32,9 +32,9 @@
|
||||
}
|
||||
|
||||
.li:focus {
|
||||
border-color: #2de0c8 !important;
|
||||
background: rgba(45,224,200,.07) !important;
|
||||
box-shadow: 0 0 0 3px rgba(45,224,200,.12) !important;
|
||||
border-color: var(--teal) !important;
|
||||
background: rgba(var(--teal-rgb), .07) !important;
|
||||
box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .12) !important;
|
||||
}
|
||||
.li::placeholder { color: rgba(255,255,255,.32); }
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/* ── App Shell ── */
|
||||
.f-app {
|
||||
display: flex; height: 100vh;
|
||||
background: linear-gradient(135deg, #1a2340 0%, #0d1018 100%);
|
||||
background: var(--bg-app);
|
||||
overflow: hidden; font-family: var(--font); position: relative;
|
||||
}
|
||||
|
||||
/* ── Overlay (mobile sidebar backdrop) ── */
|
||||
.f-overlay {
|
||||
position: fixed; inset: 0; background: rgba(0,0,0,0.5);
|
||||
position: fixed; inset: 0; background: var(--bg-overlay);
|
||||
z-index: 40; opacity: 0; pointer-events: none; transition: opacity .32s;
|
||||
}
|
||||
.f-overlay.show { opacity: 1; pointer-events: all; }
|
||||
@@ -23,15 +23,16 @@
|
||||
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);
|
||||
background: var(--bg-surface); 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;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.f-menu-btn:hover { background: rgba(255,255,255,.08); }
|
||||
.f-menu-btn:hover { background: var(--hover-bg); }
|
||||
.f-topbar-center { flex: 1; display: flex; justify-content: center; }
|
||||
.f-topbar-spacer { width: 32px; flex-shrink: 0; }
|
||||
|
||||
@@ -42,7 +43,7 @@
|
||||
cursor: pointer; border-radius: 50%;
|
||||
transition: background .15s;
|
||||
}
|
||||
.f-topbar-profile:hover { background: rgba(255,255,255,.08); }
|
||||
.f-topbar-profile:hover { background: var(--hover-bg); }
|
||||
.f-topbar-profile .f-profile-avatar {
|
||||
width: 28px; height: 28px; border-width: 1.5px;
|
||||
}
|
||||
@@ -56,7 +57,7 @@
|
||||
display: flex; gap: 10px;
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: rgba(13,16,24,.4); backdrop-filter: blur(8px);
|
||||
background: var(--bg-filter); backdrop-filter: blur(8px);
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@@ -64,17 +65,17 @@
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
padding: 10px 18px; border-radius: 12px;
|
||||
font-family: var(--font); font-size: 0.9rem; font-weight: 600;
|
||||
background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
|
||||
color: rgba(255,255,255,.6); cursor: pointer;
|
||||
background: var(--hover-bg); border: 1px solid var(--border);
|
||||
color: var(--muted); cursor: pointer;
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
.f-filter-btn:hover {
|
||||
background: rgba(255,255,255,.1); border-color: rgba(45,224,200,.3);
|
||||
color: rgba(255,255,255,.8);
|
||||
background: var(--hover-bg); border-color: rgba(var(--teal-rgb), .3);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.f-filter-btn.active {
|
||||
background: rgba(45,224,200,.15); border-color: rgba(45,224,200,.5);
|
||||
color: #2de0c8; box-shadow: 0 0 12px rgba(45,224,200,.25);
|
||||
background: rgba(var(--teal-rgb), .15); border-color: rgba(var(--teal-rgb), .5);
|
||||
color: var(--teal); box-shadow: 0 0 12px rgba(var(--teal-rgb), .25);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@@ -87,7 +88,7 @@
|
||||
}
|
||||
.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; }
|
||||
.f-feed::-webkit-scrollbar-thumb { background: var(--muted2); border-radius: 2px; }
|
||||
|
||||
@media (max-width: 768px) {
|
||||
/* Лента занимает весь экран без отступов */
|
||||
|
||||
@@ -1,79 +1,79 @@
|
||||
/* ── Modal Backdrop ── */
|
||||
.f-modal-bg {
|
||||
position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 100;
|
||||
position: fixed; inset: 0; background: var(--bg-overlay); z-index: 100;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
animation: mfadeIn .2s ease;
|
||||
}
|
||||
.f-modal {
|
||||
background: linear-gradient(155deg, #1d2436, #131720);
|
||||
border: 1px solid rgba(255,255,255,.12); border-radius: 24px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border); 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);
|
||||
}
|
||||
.f-modal::-webkit-scrollbar { width: 4px; }
|
||||
.f-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
|
||||
.f-modal::-webkit-scrollbar-thumb { background: var(--muted2); border-radius: 2px; }
|
||||
|
||||
/* Header */
|
||||
.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-modal-title { color: var(--text-primary); font-weight: 900; font-size: 1.1rem; }
|
||||
.f-close-btn {
|
||||
background: rgba(255,255,255,.07); border: 1px solid var(--border);
|
||||
background: var(--hover-bg); 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-close-btn:hover { background: var(--hover-bg); color: var(--text-primary); }
|
||||
|
||||
/* Form Fields */
|
||||
.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);
|
||||
display: block; color: var(--muted);
|
||||
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);
|
||||
width: 100%; background: var(--bg-input);
|
||||
border: 1.5px solid var(--border); border-radius: 12px;
|
||||
padding: 11px 14px; color: var(--text-primary); 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:focus { border-color: var(--teal); background: rgba(var(--teal-rgb), .07); box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .12); }
|
||||
.f-m-field::placeholder { color: var(--muted); }
|
||||
.f-m-field option { background: var(--bg-surface-solid); color: var(--text-primary); }
|
||||
.f-m-field.err { border-color: rgba(255,107,107,.55); }
|
||||
|
||||
/* Type Toggle */
|
||||
.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);
|
||||
border: 1.5px solid var(--border); background: var(--bg-input);
|
||||
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-type-opt.found { border-color: rgba(var(--teal-rgb), .5); background: rgba(var(--teal-rgb), .1); color: var(--teal); }
|
||||
|
||||
/* Map picker */
|
||||
.f-map-pick {
|
||||
height: 80px; background: linear-gradient(135deg, #0f2235, #0a1a2e);
|
||||
border-radius: 12px; border: 1.5px dashed rgba(255,255,255,.15);
|
||||
height: 80px; background: var(--bg-card-img);
|
||||
border-radius: 12px; border: 1.5px dashed var(--border);
|
||||
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-map-pick:hover { border-color: rgba(var(--teal-rgb), .4); color: var(--teal); }
|
||||
|
||||
/* Image Upload */
|
||||
.f-img-upload-label {
|
||||
display: flex; align-items: center; justify-content: center; gap: 8px;
|
||||
border: 2px dashed rgba(255,255,255,.15); border-radius: 12px; padding: 20px;
|
||||
border: 2px dashed var(--border); border-radius: 12px; padding: 20px;
|
||||
cursor: pointer; color: var(--muted); font-size: .85rem; font-family: var(--font);
|
||||
transition: border-color .2s, background .2s;
|
||||
}
|
||||
.f-img-upload-label:hover { border-color: var(--teal); background: rgba(45,224,200,.05); color: var(--teal); }
|
||||
.f-img-upload-label:hover { border-color: var(--teal); background: rgba(var(--teal-rgb), .05); color: var(--teal); }
|
||||
.f-img-input { display: none; }
|
||||
|
||||
/* Image Preview */
|
||||
@@ -95,7 +95,7 @@
|
||||
/* Submit Button */
|
||||
.f-m-submit {
|
||||
width: 100%;
|
||||
background: linear-gradient(90deg, #1fc9b0, #2de0c8, #1fc9b0);
|
||||
background: linear-gradient(90deg, var(--teal2), var(--teal), var(--teal2));
|
||||
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;
|
||||
@@ -103,7 +103,7 @@
|
||||
}
|
||||
.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:disabled { opacity: .5; cursor: not-allowed; animation: none; background: var(--muted2); color: var(--muted); }
|
||||
.f-m-submit-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
|
||||
|
||||
/* ── Modal Logout Button ── */
|
||||
@@ -120,7 +120,7 @@
|
||||
}
|
||||
.f-m-spinner {
|
||||
width: 16px; height: 16px;
|
||||
border: 2px solid rgba(8,35,32,.3); border-top-color: #082320;
|
||||
border: 2px solid var(--border); border-top-color: var(--teal);
|
||||
border-radius: 50%; animation: spin .7s linear infinite;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,15 +1,3 @@
|
||||
/* ── 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;
|
||||
@@ -21,7 +9,7 @@
|
||||
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-name { color: var(--text-primary); 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 {
|
||||
@@ -31,17 +19,14 @@
|
||||
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); }
|
||||
|
||||
/* ── 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-sb-item:hover { background: var(--hover-bg); color: var(--text-primary); }
|
||||
.f-sb-item.active { background: rgba(var(--teal-rgb), .1); color: var(--teal); border-left-color: var(--teal); }
|
||||
.f-sb-divider {
|
||||
height: 1px; background: var(--border);
|
||||
margin: 8px 0;
|
||||
}
|
||||
.f-right::-webkit-scrollbar { width: 3px; }
|
||||
.f-right::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 2px; }
|
||||
.f-right::-webkit-scrollbar-thumb { background: var(--muted2); border-radius: 2px; }
|
||||
.f-right-label {
|
||||
font-size: .65rem; font-weight: 900;
|
||||
text-transform: uppercase; letter-spacing: .8px; color: var(--muted2);
|
||||
@@ -50,23 +35,23 @@
|
||||
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: 1.5px dashed var(--border);
|
||||
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);
|
||||
background: rgba(var(--teal-rgb), .08); border: 1px solid rgba(var(--teal-rgb), .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); }
|
||||
.f-add-promo-btn:hover { background: rgba(var(--teal-rgb), .15); transform: translateY(-1px); }
|
||||
|
||||
.f-sidebar {
|
||||
width: 260px; min-width: 260px;
|
||||
background: linear-gradient(180deg, rgba(26,37,64,.82) 0%, rgba(17,24,39,.88) 100%);
|
||||
background: var(--bg-surface);
|
||||
backdrop-filter: blur(18px);
|
||||
-webkit-backdrop-filter: blur(18px);
|
||||
border-right: 1px solid var(--border);
|
||||
@@ -75,24 +60,17 @@
|
||||
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-right {
|
||||
width: 220px; min-width: 220px; padding: 16px 12px;
|
||||
border-left: 1px solid var(--border);
|
||||
background: rgba(17,24,39,.55);
|
||||
background: var(--bg-surface);
|
||||
backdrop-filter: blur(14px);
|
||||
-webkit-backdrop-filter: blur(14px);
|
||||
display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
|
||||
}
|
||||
|
||||
.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;
|
||||
box-shadow: 0 0 12px rgba(45,224,200,.3); /* мягкое свечение */
|
||||
}
|
||||
|
||||
/* ── Profile Component ── */
|
||||
.f-profile {
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
@@ -121,7 +99,7 @@
|
||||
|
||||
.f-profile-info { flex: 1; min-width: 0; }
|
||||
.f-profile-name {
|
||||
color: #fff; font-weight: 700; font-size: .85rem;
|
||||
color: var(--text-primary); font-weight: 700; font-size: .85rem;
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.f-profile-email {
|
||||
@@ -129,11 +107,6 @@
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.f-sb-divider {
|
||||
height: 1px; background: rgba(255, 255, 255, .08);
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.f-right {
|
||||
display: none;
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
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);
|
||||
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);
|
||||
color: var(--teal);
|
||||
background: rgba(var(--teal-rgb), 0.12); backdrop-filter: blur(14px);
|
||||
border: 1px solid rgba(var(--teal-rgb), 0.25);
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 0 12px rgba(var(--teal-rgb), 0.15), 0 0 18px rgba(var(--teal-rgb), 0.15);
|
||||
cursor: pointer; transition: all 0.25s ease;
|
||||
position: relative; overflow: hidden;
|
||||
}
|
||||
@@ -17,22 +17,22 @@
|
||||
}
|
||||
.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);
|
||||
border-color: rgba(var(--teal-rgb), 0.5);
|
||||
box-shadow: 0 12px 32px rgba(0,0,0,0.45), inset 0 0 18px rgba(var(--teal-rgb), 0.25), 0 0 26px rgba(var(--teal-rgb), 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);
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 0 10px rgba(var(--teal-rgb), 0.2);
|
||||
}
|
||||
/* ── Login Button (topbar) ── */
|
||||
.f-login-btn {
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
padding: 8px 18px; border-radius: 14px;
|
||||
font-family: var(--font); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.3px;
|
||||
color: #eafffb;
|
||||
background: rgba(45,224,200,0.12); backdrop-filter: blur(14px);
|
||||
border: 1px solid rgba(45,224,200,0.25);
|
||||
box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 0 10px rgba(45,224,200,0.12), 0 0 14px rgba(45,224,200,0.12);
|
||||
color: var(--teal);
|
||||
background: rgba(var(--teal-rgb), 0.12); backdrop-filter: blur(14px);
|
||||
border: 1px solid rgba(var(--teal-rgb), 0.25);
|
||||
box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 0 10px rgba(var(--teal-rgb), 0.12), 0 0 14px rgba(var(--teal-rgb), 0.12);
|
||||
cursor: pointer; transition: all 0.25s ease;
|
||||
position: relative; overflow: hidden; white-space: nowrap;
|
||||
}
|
||||
@@ -43,18 +43,18 @@
|
||||
}
|
||||
.f-login-btn:hover {
|
||||
transform: translateY(-2px) scale(1.02);
|
||||
border-color: rgba(45,224,200,0.5);
|
||||
box-shadow: 0 10px 26px rgba(0,0,0,0.45), inset 0 0 14px rgba(45,224,200,0.22), 0 0 20px rgba(45,224,200,0.3);
|
||||
border-color: rgba(var(--teal-rgb), 0.5);
|
||||
box-shadow: 0 10px 26px rgba(0,0,0,0.45), inset 0 0 14px rgba(var(--teal-rgb), 0.22), 0 0 20px rgba(var(--teal-rgb), 0.3);
|
||||
}
|
||||
.f-login-btn:active {
|
||||
transform: translateY(0) scale(0.98);
|
||||
box-shadow: 0 3px 10px rgba(0,0,0,0.4), inset 0 0 8px rgba(45,224,200,0.18);
|
||||
box-shadow: 0 3px 10px rgba(0,0,0,0.4), inset 0 0 8px rgba(var(--teal-rgb), 0.18);
|
||||
}
|
||||
|
||||
.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);
|
||||
background: rgba(var(--teal-rgb), 0.2); box-shadow: 0 0 10px rgba(var(--teal-rgb), 0.4);
|
||||
font-size: 1.2rem; transform: translateY(-2px);
|
||||
}
|
||||
|
||||
@@ -65,13 +65,13 @@
|
||||
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-title { font-size: 1rem; font-weight: 700; color: var(--muted); }
|
||||
.f-center-sub { font-size: .82rem; line-height: 1.6; }
|
||||
|
||||
/* ── Loading Spinner ── */
|
||||
.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: 2px solid rgba(var(--teal-rgb), .2); border-top-color: var(--teal);
|
||||
border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user