@@ -15,10 +15,6 @@ const contributorMap = new Map(
1515);
1616const contributors = [... contributorMap .values ()];
1717const contributorPreview = contributors .slice (0 , 12 );
18- const contributorStats = [
19- { value: String (contributors .length ).padStart (2 , ' 0' ), label: ' 公开贡献者' },
20- { value: String (contributorGroups .length ).padStart (2 , ' 0' ), label: ' 角色分组' },
21- ];
2218const liveWire = feed .dynamicFeed .slice (0 , 6 );
2319const recentGeekDaily = feed .recentGeekDaily .slice (0 , 3 );
2420const frontPageHighlights = liveWire .slice (0 , 3 );
@@ -168,19 +164,15 @@ const liveWireTypeLabel = {
168164 <SectionHeader
169165 eyebrow =" 社区共建者"
170166 title =" 由更多真实的人,一起把社区持续往前推"
171- description =" Rebase 由志愿者、GeekDaily 智囊团、编辑与其他社区成员共同维护。首页先展示这张不断扩展的协作网络,再进入完整的贡献者档案。"
172167 href =" /contributors"
173168 hrefLabel =" 查看全部贡献者"
174169 />
175170 <article class =" card contributors-overview" >
176171 <div class =" contributors-copy" >
177- <div class =" contributors-stats" role =" list" >
178- { contributorStats .map ((stat ) => (
179- <article role = " listitem" >
180- <strong >{ stat .value } </strong >
181- <span >{ stat .label } </span >
182- </article >
183- ))}
172+ <div class =" contributors-intro" >
173+ <p >
174+ Rebase 由志愿者、GeekDaily 智囊团、编辑与其他社区成员共同维护。首页先展示这张不断扩展的协作网络,再进入完整的贡献者档案。
175+ </p >
184176 </div >
185177
186178 <div class =" contributors-role-list" >
@@ -525,80 +517,66 @@ const liveWireTypeLabel = {
525517
526518 .contributors-copy {
527519 display: grid;
528- gap: 1rem ;
520+ gap: 0.9rem ;
529521 }
530522
531- .contributors-stats {
532- display: grid;
533- grid-template-columns: repeat(2, minmax(0, 1fr));
534- gap: 0.85rem;
535- }
536-
537- .contributors-stats article {
538- display: grid;
539- gap: 0.22rem;
540- padding: 1rem 1.05rem;
541- border: 1px solid rgba(15, 118, 110, 0.1);
542- border-radius: 1.2rem;
543- background: rgba(255, 255, 255, 0.84);
523+ .contributors-intro p,
524+ .contributors-note,
525+ .role-pill span {
526+ margin: 0;
527+ color: var(--muted);
544528 }
545529
546- .contributors-stats strong {
547- font-size: clamp(1.6rem, 2vw, 2rem);
548- line-height: 1;
530+ .contributors-intro {
531+ max-width: 58ch;
549532 }
550533
551- .contributors-stats span,
552- .contributors-note,
553- .role-pill span {
554- color: var(--muted);
534+ .contributors-intro p,
535+ .contributors-note {
536+ line-height: 1.72;
555537 }
556538
557539 .contributors-role-list {
558540 display: flex;
559541 flex-wrap: wrap;
560- gap: 0.7rem ;
542+ gap: 0.6rem ;
561543 }
562544
563545 .role-pill {
564546 display: grid;
565547 gap: 0.18rem;
566- min-width: 9.5rem ;
567- padding: 0.9rem 1rem ;
568- border: 1px solid rgba(15, 118, 110, 0.1 );
569- border-radius: 1rem ;
570- background: rgba(255, 255, 255, 0.82 );
548+ min-width: 8.6rem ;
549+ padding: 0.76rem 0.9rem ;
550+ border: 1px solid rgba(15, 118, 110, 0.08 );
551+ border-radius: 0.95rem ;
552+ background: rgba(255, 255, 255, 0.76 );
571553 }
572554
573555 .role-pill strong {
574- font-size: 0.98rem ;
556+ font-size: 0.92rem ;
575557 line-height: 1.35;
576558 }
577559
578- .role-pill span,
579- .contributors-note {
580- line-height: 1.65;
581- }
582-
583560 .contributors-note {
584561 margin: 0;
585562 max-width: 56ch;
563+ line-height: 1.72;
586564 }
587565
588566 .contributors-cloud {
589567 display: grid;
590- grid-template-columns: repeat(4, minmax(0, 1fr ));
591- gap: 0.8rem ;
568+ grid-template-columns: repeat(4, minmax(0, 4.2rem ));
569+ gap: 0.65rem ;
592570 align-content: start;
593- justify-items: center ;
571+ justify-content: end ;
594572 }
595573
596574 .avatar-token,
597575 .avatar-fallback,
598576 .avatar-token img {
599- width: 4.6rem ;
600- height: 4.6rem ;
601- border-radius: 1.4rem ;
577+ width: 4.2rem ;
578+ height: 4.2rem ;
579+ border-radius: 1.25rem ;
602580 }
603581
604582 .avatar-token {
@@ -618,7 +596,7 @@ const liveWireTypeLabel = {
618596 display: grid;
619597 place-items: center;
620598 color: white;
621- font-size: 1.4rem ;
599+ font-size: 1.25rem ;
622600 font-weight: 800;
623601 }
624602
@@ -648,13 +626,13 @@ const liveWireTypeLabel = {
648626 font-size: 1.08rem;
649627 }
650628
651- .contributors-stats,
652629 .feed-links {
653630 grid-template-columns: 1fr;
654631 }
655632
656633 .contributors-cloud {
657- grid-template-columns: repeat(3, minmax(0, 1fr));
634+ grid-template-columns: repeat(3, minmax(0, 4.2rem));
635+ justify-content: start;
658636 }
659637 }
660638</style >
0 commit comments