first commit

This commit is contained in:
micialware committed 2026-10-09 22:15:22 +03:00
commit 865786f210
16 files changed
+743

No files matched your search

+93
View File
@@ -0,0 +1,93 @@
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0; background: #000; color: #fff;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
overflow: hidden;
}
.topbar {
position: fixed; inset: 0 0 auto 0; z-index: 20;
display: flex; gap: 8px; align-items: center; padding: 10px 12px;
background: linear-gradient(#000c, #0000);
}
.logo { font-weight: 800; font-size: 18px; letter-spacing: 1px; }
.logo span { color: #fe2c55; }
.search {
flex: 1; max-width: 320px; background: #ffffff22; border: 0; border-radius: 20px;
color: #fff; padding: 8px 14px; outline: none;
}
.seg { display: flex; background: #ffffff22; border-radius: 20px; overflow: hidden; }
.seg button { border: 0; background: transparent; color: #fff; padding: 8px 14px; cursor: pointer; }
.seg button.on { background: #fff; color: #000; font-weight: 700; }
.sort { background: #ffffff22; color: #fff; border: 0; border-radius: 20px; padding: 8px; }
.chips {
position: fixed; top: 52px; left: 0; right: 0; z-index: 20;
display: flex; gap: 6px; overflow-x: auto; padding: 6px 12px;
}
.chips:empty { display: none; }
.chips button {
flex: none; border: 1px solid #ffffff44; background: #000a;
color: #fff; border-radius: 16px; padding: 5px 12px; cursor: pointer; font-size: 13px;
}
.chips button.on { background: #fe2c55; border-color: #fe2c55; }
.feed {
height: 100dvh; overflow-y: scroll; scroll-snap-type: y mandatory;
scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }
.slide {
position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always;
display: flex; align-items: center; justify-content: center; background: #111;
}
.slide video { height: 100%; max-width: 100%; object-fit: contain; background: #000; }
.slide .meta {
position: absolute; left: 12px; right: 76px; bottom: 18px; z-index: 5;
font-size: 14px; text-shadow: 0 1px 6px #000;
}
.slide .meta .fname { font-weight: 600; margin-bottom: 6px; word-break: break-word; }
.slide .meta .tag { color: #7dd3fc; margin-right: 8px; cursor: pointer; }
.actions {
position: absolute; right: 8px; bottom: 90px; z-index: 5;
display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.actions button {
width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
background: #ffffff22; color: #fff; font-size: 22px; backdrop-filter: blur(4px);
display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.actions button small { font-size: 11px; }
.actions button.liked { background: #fe2c55; }
.hint {
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
font-size: 64px; opacity: 0; pointer-events: none;
}
.grid {
display: none; height: 100dvh; overflow-y: auto; padding: 100px 12px 20px;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px;
align-content: start;
}
body.mode-grid { overflow: auto; }
body.mode-grid .feed, body.mode-grid .chips { display: none; }
body.mode-grid .grid { display: grid; }
.card { position: relative; border-radius: 12px; overflow: hidden; background: #1a1a1a; }
.card video { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; }
.card .row {
position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px;
display: flex; justify-content: space-between; font-size: 12px;
background: linear-gradient(#0000, #000d);
}
.card .open { position: absolute; inset: 0; }
.tagform {
position: fixed; z-index: 30; left: 50%; bottom: 24px; transform: translateX(-50%);
display: none; gap: 6px; background: #1c1c1c; padding: 10px; border-radius: 14px;
border: 1px solid #ffffff33; width: min(92vw, 380px);
}
.tagform.show { display: flex; }
.tagform input {
flex: 1; background: #000; border: 1px solid #ffffff33; color: #fff;
border-radius: 10px; padding: 10px;
}
.tagform button { border-radius: 10px; border: 0; padding: 0 14px; cursor: pointer; }
.empty { text-align: center; padding: 40dvh 20px 0; color: #aaa; }
.more { display: block; margin: 12px auto; padding: 10px 26px; border-radius: 20px; border: 0; }