feat: add trainer bio (experience, victories, education) across all layers
- Extend TeamMember type with experience/victories/education string arrays - Add DB columns with auto-migration for existing databases - Update API POST route to accept bio fields - Add ListField component for editing string arrays in admin - Add bio section (Опыт/Достижения/Образование) to team member admin form - Create TeamProfile component with full profile view (photo + bio sections) - Add "Подробнее" button to TeamMemberInfo that toggles to profile view Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -5,9 +5,10 @@ interface TeamMemberInfoProps {
|
||||
members: TeamMember[];
|
||||
activeIndex: number;
|
||||
onSelect: (index: number) => void;
|
||||
onOpenBio: () => void;
|
||||
}
|
||||
|
||||
export function TeamMemberInfo({ members, activeIndex, onSelect }: TeamMemberInfoProps) {
|
||||
export function TeamMemberInfo({ members, activeIndex, onSelect, onOpenBio }: TeamMemberInfoProps) {
|
||||
const member = members[activeIndex];
|
||||
|
||||
return (
|
||||
@@ -36,6 +37,13 @@ export function TeamMemberInfo({ members, activeIndex, onSelect }: TeamMemberInf
|
||||
</p>
|
||||
)}
|
||||
|
||||
<button
|
||||
onClick={onOpenBio}
|
||||
className="mt-3 text-sm font-medium text-gold hover:text-gold-light transition-colors cursor-pointer"
|
||||
>
|
||||
Подробнее →
|
||||
</button>
|
||||
|
||||
{/* Progress dots */}
|
||||
<div className="mt-6 flex items-center justify-center gap-1.5">
|
||||
{members.map((_, i) => (
|
||||
|
||||
Reference in New Issue
Block a user