fix(static): Rebranding
This commit is contained in:
1 parent
214cb72e1e
commit
680ed76150
6 files changed
+376
-1839
No files matched your search
@@ -0,0 +1,111 @@
|
||||
:root {
|
||||
--bg: #0e1116;
|
||||
--card: #161b22;
|
||||
--line: #262d36;
|
||||
--line-strong: #3a4553;
|
||||
--ink: #e6edf3;
|
||||
--muted: #8b98a5;
|
||||
--accent: #3fb950;
|
||||
--mono: 'JetBrains Mono', monospace;
|
||||
}
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
html { scroll-behavior: smooth; }
|
||||
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; }
|
||||
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
|
||||
code { font-family: var(--mono); font-size: .9em; background: var(--card); padding: 1px 5px; }
|
||||
|
||||
header { border-bottom: 1px solid var(--line-strong); position: sticky; top: 0; background: var(--bg); z-index: 10; }
|
||||
.nav { display: flex; align-items: center; justify-content: space-between; height: 58px; }
|
||||
.logo { font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: none; }
|
||||
.logo b { color: var(--accent); }
|
||||
.nav-links { display: flex; gap: 4px; list-style: none; }
|
||||
.nav-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; font-family: var(--mono); padding: 6px 12px; border: 1px solid transparent; }
|
||||
.nav-links a:hover { color: var(--ink); border-color: var(--line); }
|
||||
.nav-links a.nav-cta { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 500; }
|
||||
.nav-links a.nav-cta:hover { color: #000; border-color: var(--accent); opacity: .9; }
|
||||
|
||||
.hero { padding: 48px 0 36px; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
|
||||
.hero-id { display: flex; align-items: center; gap: 28px; }
|
||||
.avatar { width: 108px; height: 108px; object-fit: cover; flex: none; border: 1px solid var(--line-strong); }
|
||||
.hero h1 { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; }
|
||||
.hero .role { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-top: 4px; }
|
||||
.hero-contacts { display: flex; flex-direction: column; gap: 14px; min-width: 280px; }
|
||||
|
||||
section { padding: 44px 0; border-bottom: 1px solid var(--line); }
|
||||
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
|
||||
.sec-head .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
|
||||
h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
|
||||
.sec-head .rule { flex: 1; height: 1px; background: var(--line); }
|
||||
|
||||
.buttons { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.contact-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); padding: 9px 15px; color: var(--ink); text-decoration: none; font-size: 14px; transition: border-color .15s; }
|
||||
.contact-btn:hover { border-color: var(--accent); }
|
||||
.contact-btn img { width: 16px; height: 16px; }
|
||||
.group-label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
|
||||
.hero-contacts .group-label { margin-bottom: 8px; }
|
||||
|
||||
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
|
||||
.cell { background: var(--card); padding: 24px; }
|
||||
.cell h3 { font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; font-size: 12.5px; font-weight: 500; color: var(--accent); margin-bottom: 10px; }
|
||||
.cell p, .cell li { font-size: 15px; color: var(--muted); }
|
||||
.cell ul { padding-left: 18px; }
|
||||
.cell a { color: var(--accent); }
|
||||
.wide { grid-column: 1 / -1; }
|
||||
|
||||
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); padding: 5px 12px; font-size: 13.5px; }
|
||||
.chip img { width: 14px; height: 14px; }
|
||||
|
||||
details { border-top: 1px solid var(--line); padding: 14px 0; }
|
||||
details:first-of-type { border-top: none; }
|
||||
summary { cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
|
||||
summary::-webkit-details-marker { display: none; }
|
||||
summary .year { color: var(--accent); font-family: var(--mono); font-size: 12.5px; font-weight: 400; }
|
||||
details .body { padding-top: 10px; color: var(--muted); font-size: 14.5px; }
|
||||
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
|
||||
.stack-tag { font-family: var(--mono); background: var(--bg); border: 1px solid var(--line); padding: 2px 8px; font-size: 12px; }
|
||||
|
||||
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
|
||||
.panel { background: var(--card); padding: 24px; }
|
||||
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
|
||||
.panel-head h2 { margin: 0; font-size: 18px; }
|
||||
.panel-head .meta { display: flex; align-items: center; gap: 10px; }
|
||||
.meta { font-size: 12px; color: var(--muted); font-family: var(--mono); }
|
||||
.refresh { background: none; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 13px; line-height: 1; padding: 4px 7px; cursor: pointer; transition: color .15s, border-color .15s; }
|
||||
.refresh:hover { color: var(--accent); border-color: var(--accent); }
|
||||
.sub { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 16px 0 8px; }
|
||||
.sub:first-of-type { margin-top: 0; }
|
||||
.list { list-style: none; }
|
||||
.list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
|
||||
.list li:last-child { border-bottom: none; }
|
||||
.ym-track { display: flex; }
|
||||
.ym-link { display: flex; align-items: center; gap: 12px; width: 100%; color: inherit; text-decoration: none; }
|
||||
.ym-cover { width: 42px; height: 42px; object-fit: cover; flex: none; background: var(--bg); }
|
||||
.ym-cover-empty { display: flex; align-items: center; justify-content: center; font-size: 20px; }
|
||||
.ym-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
|
||||
.ym-track-title { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.ym-artists, .ym-context { font-size: 13px; }
|
||||
.ym-day { font-size: 13px; flex: none; }
|
||||
.ym-track.ym-playing .ym-track-title,
|
||||
.ym-track.ym-playing .ym-artists,
|
||||
.ym-day.ym-now,
|
||||
.ym-now-link .ym-track-title,
|
||||
.ym-now-link .ym-artists { color: var(--accent); }
|
||||
.ym-now-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; margin-bottom: 14px; }
|
||||
.ym-now-cover { width: 60px; height: 60px; object-fit: cover; background: var(--bg); }
|
||||
.ym-now-info { display: flex; flex-direction: column; }
|
||||
.ym-error { color: #f85149; }
|
||||
|
||||
.friend-cta { text-align: center; padding: 30px 0 10px; color: var(--muted); font-size: 14px; font-family: var(--mono); }
|
||||
.friend-cta a { color: var(--accent); font-size: 16px; font-weight: 500; text-decoration: none; }
|
||||
|
||||
footer { border-top: 1px solid var(--line-strong); }
|
||||
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; font-size: 14px; color: var(--muted); font-family: var(--mono); }
|
||||
.footer-inner a { color: var(--muted); text-decoration: none; }
|
||||
.footer-inner a:hover { color: var(--accent); }
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.hero { flex-direction: column; align-items: flex-start; }
|
||||
.hero-id { flex-direction: column; align-items: flex-start; gap: 16px; }
|
||||
.activity-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
:root {
|
||||
--bg: #0e1116;
|
||||
--card: #161b22;
|
||||
--line: #262d36;
|
||||
--line-strong: #3a4553;
|
||||
--ink: #e6edf3;
|
||||
--muted: #8b98a5;
|
||||
--accent: #3fb950;
|
||||
--mono: 'JetBrains Mono', monospace;
|
||||
}
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
html { scroll-behavior: smooth; }
|
||||
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; }
|
||||
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
|
||||
|
||||
header { border-bottom: 1px solid var(--line-strong); background: var(--bg); position: sticky; top: 0; z-index: 10; }
|
||||
.nav { display: flex; align-items: center; justify-content: space-between; height: 58px; }
|
||||
.logo { font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: none; }
|
||||
.logo b { color: var(--accent); }
|
||||
.nav-links { display: flex; gap: 4px; list-style: none; }
|
||||
.nav-links a {
|
||||
color: var(--muted); text-decoration: none; font-size: 13.5px;
|
||||
font-family: var(--mono); padding: 6px 12px; border: 1px solid transparent;
|
||||
}
|
||||
.nav-links a:hover { color: var(--ink); border-color: var(--line); }
|
||||
.nav-links a.nav-cta { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 500; }
|
||||
.nav-links a.nav-cta:hover { color: #000; border-color: var(--accent); opacity: .9; }
|
||||
|
||||
.hero { padding: 80px 0 56px; border-bottom: 1px solid var(--line); }
|
||||
.hero .idx { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 20px; }
|
||||
.hero h1 { font-size: 46px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; max-width: 760px; }
|
||||
.hero p { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 620px; }
|
||||
|
||||
section { padding: 56px 0; }
|
||||
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
|
||||
.sec-head .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
|
||||
h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
|
||||
.sec-head .rule { flex: 1; height: 1px; background: var(--line); }
|
||||
|
||||
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
|
||||
.card { background: var(--card); padding: 26px; display: flex; flex-direction: column; }
|
||||
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
|
||||
.card-top img { width: 26px; height: 26px; object-fit: contain; }
|
||||
.card-top .num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
|
||||
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
|
||||
.card p { font-size: 14.5px; color: var(--muted); flex: 1; }
|
||||
.card a { color: var(--accent); }
|
||||
.cat { margin-top: 16px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
|
||||
|
||||
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
|
||||
.about-grid > div { background: var(--card); padding: 32px; }
|
||||
.about-grid p { color: var(--muted); margin-bottom: 16px; }
|
||||
.about-grid a { color: var(--accent); }
|
||||
.specs { list-style: none; }
|
||||
.specs li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
|
||||
.specs li:first-child { padding-top: 0; }
|
||||
.specs li:last-child { border-bottom: none; }
|
||||
.specs li span:first-child { color: var(--muted); font-family: var(--mono); font-size: 13.5px; }
|
||||
.specs li span:last-child { font-weight: 500; text-align: right; }
|
||||
|
||||
footer { border-top: 1px solid var(--line-strong); }
|
||||
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; font-size: 14px; color: var(--muted); font-family: var(--mono); }
|
||||
.footer-inner a { color: var(--muted); text-decoration: none; }
|
||||
.footer-inner a:hover { color: var(--accent); }
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.hero h1 { font-size: 32px; }
|
||||
.about-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,176 +0,0 @@
|
||||
(() => {
|
||||
"use strict";
|
||||
|
||||
/* ---------- мобильное меню ---------- */
|
||||
const toggle = document.getElementById("navToggle");
|
||||
const links = document.getElementById("navLinks");
|
||||
|
||||
if (toggle && links) {
|
||||
toggle.addEventListener("click", () => {
|
||||
const open = links.classList.toggle("open");
|
||||
toggle.classList.toggle("open", open);
|
||||
toggle.setAttribute("aria-expanded", String(open));
|
||||
});
|
||||
|
||||
links.querySelectorAll("a").forEach((a) =>
|
||||
a.addEventListener("click", () => {
|
||||
links.classList.remove("open");
|
||||
toggle.classList.remove("open");
|
||||
toggle.setAttribute("aria-expanded", "false");
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
/* ---------- тень хедера при скролле ---------- */
|
||||
const header = document.querySelector(".site-header");
|
||||
const onScroll = () => header && header.classList.toggle("scrolled", window.scrollY > 8);
|
||||
onScroll();
|
||||
window.addEventListener("scroll", onScroll, { passive: true });
|
||||
|
||||
/* ---------- появление блоков ---------- */
|
||||
const reveal = document.querySelectorAll("[data-reveal]");
|
||||
if ("IntersectionObserver" in window) {
|
||||
const io = new IntersectionObserver(
|
||||
(entries) => {
|
||||
entries.forEach((entry, i) => {
|
||||
if (entry.isIntersecting) {
|
||||
const el = entry.target;
|
||||
setTimeout(() => el.classList.add("visible"), i * 70);
|
||||
io.unobserve(el);
|
||||
}
|
||||
});
|
||||
},
|
||||
{ threshold: 0.12, rootMargin: "0px 0px -40px 0px" }
|
||||
);
|
||||
reveal.forEach((el) => io.observe(el));
|
||||
} else {
|
||||
reveal.forEach((el) => el.classList.add("visible"));
|
||||
}
|
||||
|
||||
/* ---------- счётчики ---------- */
|
||||
const counters = document.querySelectorAll("[data-count]");
|
||||
const animateCount = (el) => {
|
||||
const target = parseInt(el.dataset.count, 10);
|
||||
const duration = 1400;
|
||||
const start = performance.now();
|
||||
const step = (now) => {
|
||||
const p = Math.min((now - start) / duration, 1);
|
||||
const eased = 1 - Math.pow(1 - p, 3);
|
||||
el.textContent = Math.round(target * eased).toString();
|
||||
if (p < 1) requestAnimationFrame(step);
|
||||
};
|
||||
requestAnimationFrame(step);
|
||||
};
|
||||
|
||||
if ("IntersectionObserver" in window) {
|
||||
const co = new IntersectionObserver(
|
||||
(entries) => {
|
||||
entries.forEach((entry) => {
|
||||
if (entry.isIntersecting) {
|
||||
animateCount(entry.target);
|
||||
co.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
},
|
||||
{ threshold: 0.5 }
|
||||
);
|
||||
counters.forEach((el) => co.observe(el));
|
||||
} else {
|
||||
counters.forEach((el) => (el.textContent = el.dataset.count));
|
||||
}
|
||||
|
||||
/* ---------- выдвижной список проектов (тач/клик) ---------- */
|
||||
const flyoutCards = document.querySelectorAll(".card-flyout");
|
||||
|
||||
flyoutCards.forEach((card) => {
|
||||
card.addEventListener("click", (e) => {
|
||||
if (e.target.closest("a")) return;
|
||||
card.classList.toggle("flyout-open");
|
||||
});
|
||||
});
|
||||
|
||||
document.addEventListener("click", (e) => {
|
||||
flyoutCards.forEach((card) => {
|
||||
if (!card.contains(e.target)) card.classList.remove("flyout-open");
|
||||
});
|
||||
});
|
||||
|
||||
document.addEventListener("keydown", (e) => {
|
||||
if (e.key === "Escape") {
|
||||
flyoutCards.forEach((card) => card.classList.remove("flyout-open"));
|
||||
}
|
||||
});
|
||||
|
||||
/* ---------- печатающийся терминал ---------- */
|
||||
const typed = document.getElementById("typed");
|
||||
if (typed) {
|
||||
const lines = [
|
||||
{ t: '<span class="prompt">$</span> docker ps --format "table {{.Names}}\\t{{.Status}}"', d: 22 },
|
||||
{ t: "\n", d: 0 },
|
||||
{ t: '<span class="dim">NAMES STATUS</span>\n', d: 14 },
|
||||
{ t: "gitea <span class=\"ok\">Up 14 months</span>\n", d: 14 },
|
||||
{ t: "matrix <span class=\"ok\">Up 14 months</span>\n", d: 14 },
|
||||
{ t: "sharkey <span class=\"ok\">Up 14 months</span>\n", d: 14 },
|
||||
{ t: "copyparty <span class=\"ok\">Up 14 months</span>\n", d: 14 },
|
||||
{ t: "grafana <span class=\"ok\">Up 14 months</span>\n", d: 14 },
|
||||
{ t: "freshrss <span class=\"ok\">Up 14 months</span>\n", d: 14 },
|
||||
{ t: "4get <span class=\"ok\">Up 14 months</span>\n", d: 14 },
|
||||
{ t: '<span class="prompt">$</span> uptime', d: 22 },
|
||||
{ t: '\n <span class="ok">all systems nominal</span>', d: 14 },
|
||||
{ t: '<span class="prompt">$</span> ', d: 22 },
|
||||
];
|
||||
|
||||
// токенизируем: HTML-теги — атомарные, текст — посимвольно
|
||||
const tokenize = (str) => str.match(/<[^>]+>|./gs) || [];
|
||||
|
||||
let lineIndex = 0;
|
||||
let tokens = [];
|
||||
let pos = 0;
|
||||
let html = "";
|
||||
|
||||
const render = () => {
|
||||
typed.innerHTML = html + '<span class="cursor"></span>';
|
||||
};
|
||||
|
||||
const typeNext = () => {
|
||||
if (lineIndex >= lines.length) {
|
||||
render();
|
||||
return;
|
||||
}
|
||||
|
||||
if (pos === 0) tokens = tokenize(lines[lineIndex].t);
|
||||
|
||||
if (pos < tokens.length) {
|
||||
html += tokens[pos++];
|
||||
render();
|
||||
const step = tokens[pos - 1].startsWith("<")
|
||||
? 0
|
||||
: lines[lineIndex].d + Math.random() * 35;
|
||||
setTimeout(typeNext, step);
|
||||
} else {
|
||||
lineIndex++;
|
||||
pos = 0;
|
||||
setTimeout(typeNext, 190);
|
||||
}
|
||||
};
|
||||
|
||||
const startTyping = () => setTimeout(typeNext, 500);
|
||||
|
||||
if ("IntersectionObserver" in window) {
|
||||
const to = new IntersectionObserver(
|
||||
(entries) => {
|
||||
entries.forEach((entry) => {
|
||||
if (entry.isIntersecting) {
|
||||
startTyping();
|
||||
to.disconnect();
|
||||
}
|
||||
});
|
||||
},
|
||||
{ threshold: 0.3 }
|
||||
);
|
||||
to.observe(typed);
|
||||
} else {
|
||||
startTyping();
|
||||
}
|
||||
}
|
||||
})();
|
||||
Reference in new issue
Block a user