This commit is contained in:
2026-02-04 16:25:30 +04:00
parent fa6b4fbff9
commit 74cc476f90
19 changed files with 72 additions and 79 deletions

View File

@@ -60,7 +60,8 @@ const len = page.data.length;
<!-- Заголовок -->
<header class="mb-8">
<h1 class="text-3xl font-bold text-neutral-900 dark:text-neutral-100 mb-3">
{pageTitle}
{/*pageTitle*/}
Добро пожаловать!
</h1>
{pageDescription && (
<p class="text-neutral-600 dark:text-neutral-400">

View File

@@ -36,7 +36,13 @@ const categories = categoryOrder.filter(cat => allCategories.includes(cat));
// 按分类获取技能
const skillsByCategory = categories.reduce(
(acc, category) => {
acc[category] = getSkillsByCategory(category);
const categorySkills = getSkillsByCategory(category);
// 按 опыту сортировка: больше опыта - выше, меньше опыта - ниже
acc[category] = categorySkills.sort((a, b) => {
const aMonths = a.experience.years * 12 + a.experience.months;
const bMonths = b.experience.years * 12 + b.experience.months;
return bMonths - aMonths; // Сортировка по убыванию (больше опыта первым)
});
return acc;
},
{} as Record<string, typeof skillsData>,

View File

@@ -94,7 +94,7 @@ const getTypeIcon = (type: string) => {
<h2 class="text-2xl font-bold text-black/90 dark:text-white/90 mb-4">
{i18n(I18nKey.timelineCurrent)}
</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="grid grid-cols-1 gap-6">
{currentItems.map((item) => (
<TimelineItem item={item} layout="card" size="medium" />
))}