From 4a5fd2fb62586e04200fb08d786ccd02f49600fe Mon Sep 17 00:00:00 2001 From: StepanovPlaton Date: Wed, 4 Feb 2026 18:00:06 +0400 Subject: [PATCH] Updated --- src/components/data/skillCard.astro | 18 +++++++++++++++++- src/components/sidebar/profile.astro | 16 ++++++++++++---- src/content/worth-mentioning.md | 2 +- src/i18n/languages/ru.ts | 2 +- twilight.config.yaml | 5 ++++- 5 files changed, 35 insertions(+), 8 deletions(-) diff --git a/src/components/data/skillCard.astro b/src/components/data/skillCard.astro index 14bd8d8..7cdd1f2 100644 --- a/src/components/data/skillCard.astro +++ b/src/components/data/skillCard.astro @@ -77,6 +77,22 @@ const getLevelWidth = (level: string) => { } }; +// 技能等级进度条颜色映射 (从绿色到红色) +const getLevelProgressColor = (level: string) => { + switch (level) { + case "expert": + return "#ef4444"; // red-500 + case "advanced": + return "#f97316"; // orange-500 + case "intermediate": + return "#eab308"; // yellow-500 + case "beginner": + return "#22c55e"; // green-500 + default: + return "#6b7280"; // gray-500 + } +}; + // 尺寸样式映射 const getSizeClasses = (size: string) => { switch (size) { @@ -175,7 +191,7 @@ const getExperienceText = (experience: Props["skill"]["experience"]) => {
diff --git a/src/components/sidebar/profile.astro b/src/components/sidebar/profile.astro index 5fd7149..de24ae4 100644 --- a/src/components/sidebar/profile.astro +++ b/src/components/sidebar/profile.astro @@ -41,13 +41,21 @@ const id = `profile-${side}`;
{profileConfig.bio}
{profileConfig.links.length > 1 && profileConfig.links.map(item => - - + + {item.rawIcon ? ( + + ) : ( + + )} )} {profileConfig.links.length == 1 && - + class="btn-regular rounded-lg h-10 gap-2 px-3 font-bold active:scale-95 flex items-center"> + {profileConfig.links[0].rawIcon ? ( + + ) : ( + + )} {profileConfig.links[0].name} }
diff --git a/src/content/worth-mentioning.md b/src/content/worth-mentioning.md index bc132fe..dcb4e29 100644 --- a/src/content/worth-mentioning.md +++ b/src/content/worth-mentioning.md @@ -27,7 +27,7 @@ Интернет огромен, и в нём куча страниц. Некоторые популярны, другие не очень, но эти особенно интересны: + [Онлайн книга Linux From Scratch](https://linuxfromscratch.org) — бесплатное руководство по созданию своей GNU/Linux системы из исходного кода (с нуля). Лучшее развлечение на вечер для админа. -+ [Этаж 796](https://floor796.com) — проект русского художника, который объединил на 796 этаже космической станции всех самых знаковых персонажей, гиков, мемов, фильмов, комиксов и сериалов человечества. Тут залип на 2 часа... ++ [Этаж 796](https://floor796.com) — проект русского художника, который объединил на 796 этаже космической станции всех самых знаковых персонажей из мемов, фильмов, комиксов и сериалов. Тут залип на 2 часа... + [SCP Foundation](https://scpfoundation.net) — открытая научно-фантастическая онлайн вселенная. Мурашки по коже, невозможно оторваться. Обязательно прочтите [SCP-079 — Старый ИИ](https://scpfoundation.net/scp-079) и [Хаб отдела антимеметики](https://scpfoundation.net/antimemetics-division-hub). + [CashGo](https://cashgo.ru) — онлайн игра, тренажёр финансового интеллекта. Здесь я успел ухватить кусочек старого интернета с ламповыми форумами. Спасибо за детство, передавайте привет Оксюше, Пингвинатко, Успеху и Лису! + [Неолурк](https://neolurk.org) — народная википедия. diff --git a/src/i18n/languages/ru.ts b/src/i18n/languages/ru.ts index 76f4c59..c68e00d 100644 --- a/src/i18n/languages/ru.ts +++ b/src/i18n/languages/ru.ts @@ -88,7 +88,7 @@ export const ru: Translation = { [Key.projectsCompleted]: "Завершён", [Key.projectsInProgress]: "В разработке", [Key.projectsTechStack]: "Статистика технологий", - [Key.projectsFeatured]: "Лучшие проекты", + [Key.projectsFeatured]: "Сейчас я работаю этим", [Key.projectsPlanned]: "Запланированных", [Key.projectsDemo]: "Демо", [Key.projectsSource]: "Исходный код", diff --git a/twilight.config.yaml b/twilight.config.yaml index aee3a7f..5af5efc 100644 --- a/twilight.config.yaml +++ b/twilight.config.yaml @@ -135,9 +135,12 @@ profile: - name: "Telegram" icon: "fa6-brands:telegram" url: "https://t.me/StepanovPlaton" + - name: "HeadHunter" + rawIcon: '' + url: "https://hh.ru/resume/15c78a92ff09c786890039ed1f6f7474704952" - name: "Email" icon: "material-symbols:mail-outline" - url: "mailto:mail2platon@yandex.ru" + url: "mailto:mail2platon@yandex.ru" announcement: enable: false