Заменил приблизительную hex-палитру на настоящие oklch()-цвета из
макета, подключил JetBrains Mono через Google Fonts (обновил CSP:
style-src/font-src для fonts.googleapis.com/fonts.gstatic.com).
Секция "обо мне" резюме — без term-window, плоские абзацы; опыт работы
в формате период/роль/компания·город + буллеты с тире; контакты в виде
label+value, как в макете. Карточки проектов — без бара с точками,
header-строка "drwxr-xr-x {name}" + ссылка справа, как в Projects.dc.html.
matrix-rain.js переписан по алгоритму из макета (shadowBlur на "голове"
капли, katakana-набор символов, накопительное падение). Градиент
глубины поверх дождя взял по факту темнее, чем в инлайн-стилях макета
(0.72–0.96 давал почти невидимый дождь) — подобрал по референс-скриншоту
макета (0.35–0.6), а не по сырым числам.
80 lines
2.9 KiB
JavaScript
80 lines
2.9 KiB
JavaScript
import { getLang, initLangToggle } from './i18n.js';
|
|
|
|
const DATA = {
|
|
ru: {
|
|
heading: 'ls projects/',
|
|
subheading: 'Пара вещей, которые я собрал сам, от идеи до продакшена.',
|
|
projects: [
|
|
{
|
|
name: 'home_automatization',
|
|
description:
|
|
'Микросервисная платформа умного дома на Go и Laravel. Первая зона — гроубокс (полив, свет, климат), дальше — весь дом.',
|
|
tags: ['Go', 'Laravel', 'Docker', 'RabbitMQ', 'ClickHouse', 'gRPC', 'MQTT'],
|
|
url: 'https://git.cactoz.su/cacto/home_automatization',
|
|
linkLabel: 'открыть',
|
|
},
|
|
{
|
|
name: 'cactoz.su',
|
|
description:
|
|
'Личный сайт-визитка: резюме, проекты и мультиплеерный клон BattleCity. Тема — Матрица.',
|
|
tags: ['HTML/CSS/JS', 'C++', 'uWebSockets', 'Quintus.js', 'nginx', 'Docker'],
|
|
url: 'https://git.cactoz.su/cacto/cactoz.su',
|
|
linkLabel: 'открыть',
|
|
},
|
|
],
|
|
},
|
|
en: {
|
|
heading: 'ls projects/',
|
|
subheading: 'A couple of things I built myself, start to finish.',
|
|
projects: [
|
|
{
|
|
name: 'home_automatization',
|
|
description:
|
|
'A microservice smart-home platform on Go and Laravel. First zone is a grow box (watering, lighting, climate), the whole house comes next.',
|
|
tags: ['Go', 'Laravel', 'Docker', 'RabbitMQ', 'ClickHouse', 'gRPC', 'MQTT'],
|
|
url: 'https://git.cactoz.su/cacto/home_automatization',
|
|
linkLabel: 'open',
|
|
},
|
|
{
|
|
name: 'cactoz.su',
|
|
description:
|
|
'A personal portfolio site: résumé, projects and a multiplayer BattleCity clone. Matrix theme throughout.',
|
|
tags: ['HTML/CSS/JS', 'C++', 'uWebSockets', 'Quintus.js', 'nginx', 'Docker'],
|
|
url: 'https://git.cactoz.su/cacto/cactoz.su',
|
|
linkLabel: 'open',
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
function render() {
|
|
const t = DATA[getLang()];
|
|
document.title = `${t.heading} — cacto`;
|
|
|
|
const heading = document.getElementById('projects-heading');
|
|
const subheading = document.getElementById('projects-subheading');
|
|
if (heading) heading.textContent = t.heading;
|
|
if (subheading) subheading.textContent = t.subheading;
|
|
|
|
const list = document.getElementById('project-list');
|
|
if (!list) return;
|
|
list.innerHTML = t.projects
|
|
.map(
|
|
(p) => `
|
|
<li class="project-card">
|
|
<div class="project-card__header">
|
|
<div class="project-card__name"><span class="project-card__perms">drwxr-xr-x</span> ${p.name}</div>
|
|
<a href="${p.url}" target="_blank" rel="noopener">${p.linkLabel} →</a>
|
|
</div>
|
|
<p class="project-card__desc">${p.description}</p>
|
|
<ul class="tag-list">
|
|
${p.tags.map((tag) => `<li class="tag">${tag}</li>`).join('')}
|
|
</ul>
|
|
</li>`
|
|
)
|
|
.join('');
|
|
}
|
|
|
|
render();
|
|
initLangToggle(render);
|