cy0307 commited on
Commit
35abd95
·
verified ·
1 Parent(s): 6ebc472

Sync mobile site presentation

Browse files
Files changed (2) hide show
  1. docs/assets/loop-hero-scene.js +3 -3
  2. docs/index.html +105 -27
docs/assets/loop-hero-scene.js CHANGED
@@ -885,7 +885,7 @@ if (container && hero) {
885
 
886
  const aspect = width / height;
887
  const viewHeight = compact
888
- ? Math.max(3.45, 5.8 / aspect)
889
  : tablet
890
  ? 11.2 / aspect
891
  : 3.15;
@@ -898,8 +898,8 @@ if (container && hero) {
898
  camera.lookAt(0, compact ? -0.05 : 0, 0);
899
  camera.updateProjectionMatrix();
900
 
901
- stationScale = compact ? 0.93 : tablet ? 0.92 : 1.04;
902
- packetGroup.scale.setScalar(compact ? 1.08 : 1);
903
  stationLabels.forEach((label) => { label.visible = width >= 760; });
904
  numberLabels.forEach((label) => { label.visible = width < 760; });
905
  microLabels.forEach((label) => { label.visible = width >= 980; });
 
885
 
886
  const aspect = width / height;
887
  const viewHeight = compact
888
+ ? Math.max(3.42, 5.0 / aspect)
889
  : tablet
890
  ? 11.2 / aspect
891
  : 3.15;
 
898
  camera.lookAt(0, compact ? -0.05 : 0, 0);
899
  camera.updateProjectionMatrix();
900
 
901
+ stationScale = compact ? 1.01 : tablet ? 0.92 : 1.04;
902
+ packetGroup.scale.setScalar(compact ? 1.12 : 1);
903
  stationLabels.forEach((label) => { label.visible = width >= 760; });
904
  numberLabels.forEach((label) => { label.visible = width < 760; });
905
  microLabels.forEach((label) => { label.visible = width >= 980; });
docs/index.html CHANGED
@@ -656,55 +656,130 @@
656
  .loop-stage:nth-child(n+4) { border-top: 1px solid var(--line); }
657
  }
658
  @media (max-width: 560px) {
659
- html { scroll-padding-top: 70px; }
660
- .nav { min-height: 58px; gap: 8px; }
661
- .links.open { top: 58px; max-height: calc(100vh - 58px); }
662
  .project-links .nav-link:first-child { display: none; }
663
  .project-links { gap: 6px; }
664
- .nav-link { min-height: 40px; padding-inline: 12px; }
665
- .brand .brand-text { display: none; }
666
- section { padding: 52px 0; }
 
 
 
 
 
667
  h1 { font-size: 2.25rem; line-height: 1.08; }
668
  h2 { font-size: 1.85rem; line-height: 1.16; }
669
  .section-label { margin-bottom: 9px; font-size: 0.68rem; }
670
  .section-head { gap: 12px; margin-bottom: 24px; }
671
  .section-intro { font-size: 0.95rem; }
672
- .hero { min-height: 0; padding: 28px 0 14px; }
673
- .hero-kicker { max-width: 330px; margin: 0 auto 10px; line-height: 1.45; }
674
  .tagline { margin-top: 11px; font-size: 1.18rem; }
675
  .lead { margin-top: 8px; font-size: 0.95rem; line-height: 1.48; }
676
- .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
677
  .actions .button { min-width: 0; min-height: 44px; padding-inline: 8px; font-size: 0.82rem; }
678
- .hero-system { margin-top: 18px; }
679
- .scene-head { justify-content: center; min-height: 32px; padding: 6px 0; }
680
  .scene-flow { display: none; }
681
- .hero-scene { width: 100%; height: 244px; }
682
  .hero-scene canvas { opacity: 1; }
683
- .scene-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; min-height: 58px; padding: 5px 0; font-size: 0.62rem; }
684
- .scene-key-item { justify-content: center; min-width: 0; padding: 3px 4px; }
 
 
685
  .scene-key-item::before { width: 13px; flex: 0 0 auto; }
686
- .scene-outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; min-height: 34px; padding: 4px 0; font-size: 0.6rem; line-height: 1.3; }
687
- .scene-outcome { justify-content: center; gap: 5px; }
 
688
  .scene-outcome::before { width: 6px; height: 6px; flex: 0 0 auto; }
689
- .hero-inspector { gap: 7px; padding: 8px 0 10px; }
690
  .loop-stage-rail { margin-top: 20px; }
691
  .hero-system .loop-stage-rail { margin: 0; }
692
- .loop-stage { min-height: 38px; padding-inline: 5px; font-size: 0.68rem; }
693
- .loop-stage-number { font-size: 0.59rem; }
694
  .loop-stage-detail { min-height: 40px; margin-top: 8px; font-size: 0.75rem; line-height: 1.45; }
695
- .hero-inspector .loop-stage-detail { min-height: 40px; margin: 0; padding-top: 6px; line-height: 1.38; }
696
- .mental-model { padding: 24px 0 44px; }
697
- .definition { margin-bottom: 22px; font-size: 0.88rem; line-height: 1.55; }
698
  .definition-full { display: none; }
699
  .definition-compact { display: inline; }
700
  .hero-visual { width: min(100%, 420px); }
701
- .stats { margin-top: 24px; }
702
- .stat { padding: 14px 11px; }
703
  .stat b { font-size: 1.22rem; }
704
  .stat span { font-size: 0.68rem; }
705
  .desktop-diagram { display: none; }
706
  .mobile-diagram { display: block; }
707
  .supporting-visual { display: none; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
708
  .principles { margin-top: 24px; }
709
  .principles, .link-grid, .pattern-grid, .footer-grid { grid-template-columns: 1fr; }
710
  .principle + .principle, .card + .card, .pattern + .pattern { padding-left: 0; }
@@ -737,7 +812,7 @@
737
  .resource-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
738
  .resource-toolbar label:first-child { grid-column: 1 / -1; }
739
  }
740
- @media (min-width: 380px) and (max-width: 560px) {
741
  .pattern-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
742
  .pattern { min-height: 112px; padding-right: 12px; }
743
  .pattern + .pattern { padding-left: 12px; }
@@ -746,6 +821,9 @@
746
  }
747
  @media (max-width: 340px) {
748
  h1 { font-size: 2.2rem; }
 
 
 
749
  .hero { padding-bottom: 8px; }
750
  .hero-system { margin-top: 16px; }
751
  .scene-head { min-height: 28px; padding-block: 4px; }
@@ -892,7 +970,7 @@
892
  <button class="menu-btn" type="button" aria-expanded="false" aria-controls="primary-nav" aria-label="Open navigation"><span class="menu-icon" aria-hidden="true">&#9776;</span><span class="menu-label">Menu</span></button>
893
  <nav class="project-links" aria-label="Project links">
894
  <a class="nav-link" href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering"><span class="emoji" aria-hidden="true">🤗</span>Dataset</a>
895
- <a class="nav-link primary" href="https://github.com/ChaoYue0307/awesome-loop-engineering"><span aria-hidden="true">&nearr;</span>GitHub</a>
896
  </nav>
897
  </div>
898
  </header>
@@ -1755,6 +1833,6 @@
1755
  });
1756
  });
1757
  </script>
1758
- <script type="module" src="assets/loop-hero-scene.js?v=20"></script>
1759
  </body>
1760
  </html>
 
656
  .loop-stage:nth-child(n+4) { border-top: 1px solid var(--line); }
657
  }
658
  @media (max-width: 560px) {
659
+ html { scroll-padding-top: 74px; }
660
+ .nav { min-height: 64px; gap: 8px; }
661
+ .links.open { top: 64px; max-height: calc(100vh - 64px); }
662
  .project-links .nav-link:first-child { display: none; }
663
  .project-links { gap: 6px; }
664
+ .nav-link { min-height: 44px; padding-inline: 12px; }
665
+ .brand { min-width: 0; gap: 8px; }
666
+ .brand .logo { width: 30px; height: 30px; }
667
+ .brand .brand-text { display: block; font-size: 0.78rem; line-height: 1.1; }
668
+ .menu-btn { width: 44px; min-height: 44px; justify-content: center; padding: 0; }
669
+ .menu-label { display: none; }
670
+ .menu-icon { font-size: 1.05rem; line-height: 1; }
671
+ section { padding: 56px 0; }
672
  h1 { font-size: 2.25rem; line-height: 1.08; }
673
  h2 { font-size: 1.85rem; line-height: 1.16; }
674
  .section-label { margin-bottom: 9px; font-size: 0.68rem; }
675
  .section-head { gap: 12px; margin-bottom: 24px; }
676
  .section-intro { font-size: 0.95rem; }
677
+ .hero { min-height: 0; padding: 32px 0 18px; }
678
+ .hero-kicker { max-width: 320px; margin: 0 auto 10px; line-height: 1.45; }
679
  .tagline { margin-top: 11px; font-size: 1.18rem; }
680
  .lead { margin-top: 8px; font-size: 0.95rem; line-height: 1.48; }
681
+ .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 420px; gap: 8px; margin: 16px auto 0; }
682
  .actions .button { min-width: 0; min-height: 44px; padding-inline: 8px; font-size: 0.82rem; }
683
+ .hero-system { display: flex; flex-direction: column; margin-top: 20px; }
684
+ .scene-head { order: 1; justify-content: center; min-height: 34px; padding: 6px 0; }
685
  .scene-flow { display: none; }
686
+ .hero-scene { order: 2; width: 100%; height: 238px; }
687
  .hero-scene canvas { opacity: 1; }
688
+ .scene-key { order: 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; min-height: 68px; padding: 0; font-size: 0.67rem; }
689
+ .scene-key-item { justify-content: flex-start; min-width: 0; min-height: 34px; padding: 7px 8px; }
690
+ .scene-key-item:nth-child(even) { border-left: 1px solid var(--line); }
691
+ .scene-key-item:nth-child(n+3) { border-top: 1px solid var(--line); }
692
  .scene-key-item::before { width: 13px; flex: 0 0 auto; }
693
+ .scene-outcomes { order: 5; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; min-height: 46px; padding: 0; font-size: 0.64rem; line-height: 1.3; }
694
+ .scene-outcome { justify-content: flex-start; gap: 5px; min-width: 0; padding: 8px 6px; }
695
+ .scene-outcome + .scene-outcome { border-left: 1px solid var(--line); }
696
  .scene-outcome::before { width: 6px; height: 6px; flex: 0 0 auto; }
697
+ .hero-inspector { order: 3; gap: 8px; padding: 0 0 10px; }
698
  .loop-stage-rail { margin-top: 20px; }
699
  .hero-system .loop-stage-rail { margin: 0; }
700
+ .loop-stage { min-height: 44px; padding-inline: 6px; font-size: 0.71rem; }
701
+ .loop-stage-number { font-size: 0.61rem; }
702
  .loop-stage-detail { min-height: 40px; margin-top: 8px; font-size: 0.75rem; line-height: 1.45; }
703
+ .hero-inspector .loop-stage-detail { min-height: 48px; margin: 0; padding: 8px 8px 0 12px; line-height: 1.42; }
704
+ .mental-model { padding: 30px 0 46px; }
705
+ .definition { margin-bottom: 18px; font-size: 0.88rem; line-height: 1.55; text-align: left; }
706
  .definition-full { display: none; }
707
  .definition-compact { display: inline; }
708
  .hero-visual { width: min(100%, 420px); }
709
+ .stats { margin-top: 20px; }
710
+ .stat { min-height: 76px; padding: 14px 11px; }
711
  .stat b { font-size: 1.22rem; }
712
  .stat span { font-size: 0.68rem; }
713
  .desktop-diagram { display: none; }
714
  .mobile-diagram { display: block; }
715
  .supporting-visual { display: none; }
716
+ .mobile-contract-summary { border-bottom: 1px solid var(--line-strong); }
717
+ .mobile-contract-group { padding: 16px 0 0; }
718
+ .mobile-contract-group + .mobile-contract-group { margin-top: 14px; border-top: 1px solid var(--line); }
719
+ .mobile-contract-group > p { margin-bottom: 9px; border-left: 3px solid var(--blue); padding-left: 9px; }
720
+ .mobile-contract-grid { gap: 6px; }
721
+ .mobile-contract-part {
722
+ grid-template-columns: 28px minmax(0, 1fr);
723
+ gap: 7px;
724
+ min-height: 48px;
725
+ padding: 9px;
726
+ border: 1px solid var(--line);
727
+ border-radius: 6px;
728
+ background: var(--surface);
729
+ }
730
+ .mobile-contract-part:nth-child(even) { padding-left: 9px; border-left: 1px solid var(--line); }
731
+ .mobile-contract-part span {
732
+ display: inline-flex;
733
+ align-items: center;
734
+ justify-content: center;
735
+ width: 24px;
736
+ height: 24px;
737
+ border: 1px solid #b8ccf8;
738
+ border-radius: 50%;
739
+ color: var(--blue);
740
+ background: #eef4ff;
741
+ }
742
+ .mobile-next-action {
743
+ display: grid;
744
+ grid-template-columns: 96px minmax(0, 1fr);
745
+ gap: 10px;
746
+ margin-top: 16px;
747
+ border-top: 1px solid #b8ccf8;
748
+ border-bottom: 0;
749
+ border-left: 3px solid var(--blue);
750
+ padding: 13px 12px;
751
+ background: #eef4ff;
752
+ }
753
+ .mobile-next-action span { text-align: left; }
754
+ .mobile-lifecycle-summary { border-bottom: 1px solid var(--line-strong); }
755
+ .mobile-lifecycle-list { grid-template-columns: 1fr; }
756
+ .mobile-lifecycle-list li {
757
+ grid-template-columns: 34px minmax(0, 1fr);
758
+ gap: 10px;
759
+ align-items: center;
760
+ min-height: 58px;
761
+ padding: 10px 0;
762
+ }
763
+ .mobile-lifecycle-list li:nth-child(even) { padding-left: 0; border-left: 0; }
764
+ .mobile-lifecycle-list span {
765
+ display: inline-flex;
766
+ align-items: center;
767
+ justify-content: center;
768
+ width: 30px;
769
+ height: 30px;
770
+ border: 1px solid #b8ccf8;
771
+ border-radius: 50%;
772
+ background: #eef4ff;
773
+ }
774
+ .mobile-lifecycle-list strong { font-size: 0.91rem; }
775
+ .mobile-lifecycle-list small { margin-top: 2px; font-size: 0.73rem; }
776
+ .mobile-lifecycle-outcomes { gap: 6px; padding-top: 10px; }
777
+ .mobile-lifecycle-outcomes div { padding: 10px 8px 12px; border-top: 2px solid var(--violet); background: var(--surface); }
778
+ .mobile-lifecycle-outcomes div:nth-child(2) { border-top-color: #d97706; }
779
+ .mobile-lifecycle-outcomes div:nth-child(3) { border-top-color: var(--green); }
780
+ .mobile-lifecycle-outcomes div + div { padding-left: 8px; border-left: 1px solid var(--line); }
781
+ .mobile-lifecycle-outcomes strong { font-size: 0.76rem; }
782
+ .mobile-lifecycle-outcomes span { font-size: 0.67rem; }
783
  .principles { margin-top: 24px; }
784
  .principles, .link-grid, .pattern-grid, .footer-grid { grid-template-columns: 1fr; }
785
  .principle + .principle, .card + .card, .pattern + .pattern { padding-left: 0; }
 
812
  .resource-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
813
  .resource-toolbar label:first-child { grid-column: 1 / -1; }
814
  }
815
+ @media (min-width: 480px) and (max-width: 560px) {
816
  .pattern-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
817
  .pattern { min-height: 112px; padding-right: 12px; }
818
  .pattern + .pattern { padding-left: 12px; }
 
821
  }
822
  @media (max-width: 340px) {
823
  h1 { font-size: 2.2rem; }
824
+ .brand .brand-text { display: none; }
825
+ .project-links .nav-label { display: none; }
826
+ .project-links .nav-link { width: 44px; padding: 0; }
827
  .hero { padding-bottom: 8px; }
828
  .hero-system { margin-top: 16px; }
829
  .scene-head { min-height: 28px; padding-block: 4px; }
 
970
  <button class="menu-btn" type="button" aria-expanded="false" aria-controls="primary-nav" aria-label="Open navigation"><span class="menu-icon" aria-hidden="true">&#9776;</span><span class="menu-label">Menu</span></button>
971
  <nav class="project-links" aria-label="Project links">
972
  <a class="nav-link" href="https://huggingface.co/datasets/cy0307/awesome-loop-engineering"><span class="emoji" aria-hidden="true">🤗</span>Dataset</a>
973
+ <a class="nav-link primary" href="https://github.com/ChaoYue0307/awesome-loop-engineering"><span aria-hidden="true">&nearr;</span><span class="nav-label">GitHub</span></a>
974
  </nav>
975
  </div>
976
  </header>
 
1833
  });
1834
  });
1835
  </script>
1836
+ <script type="module" src="assets/loop-hero-scene.js?v=21"></script>
1837
  </body>
1838
  </html>