Skip to content

Commit 0753fd1

Browse files
M09Icclaude
andcommitted
feat(landing): restyle scenario tags as card grid matching open-source matrix
- Replace flat scenario tags with 6-column card grid (mx-sc) - Each card has colored top-bar, label and one-line description - Visual style matches .mx cards (surface bg, cut-corner clip-path, hover) - Stars total kept as separate summary bar below - Responsive: 3-col at 1080px, 1-col at 760px Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2b58d08 commit 0753fd1

1 file changed

Lines changed: 70 additions & 27 deletions

File tree

overrides/home.html

Lines changed: 70 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -813,27 +813,54 @@
813813
margin-top: 0.25rem;
814814
}
815815

816-
.mx-total-scenarios { flex: 1; }
816+
.mx-scenarios {
817+
display: grid;
818+
grid-template-columns: repeat(6, 1fr);
819+
gap: 2px;
820+
margin-top: 2px;
821+
}
817822

818-
.mx-scenario-tags {
819-
display: flex;
820-
flex-wrap: wrap;
821-
gap: 0.4rem;
822-
margin-top: 0.5rem;
823-
justify-content: center;
823+
.mx-sc {
824+
--sc: var(--text-3);
825+
padding: 1rem 1.1rem;
826+
background: var(--surface);
827+
border: 1px solid var(--border);
828+
clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
829+
text-align: center;
830+
transition: all 0.3s ease;
831+
position: relative;
832+
}
833+
834+
.mx-sc::before {
835+
content: "";
836+
position: absolute;
837+
top: 0;
838+
left: 0;
839+
width: 100%;
840+
height: 2px;
841+
background: var(--sc);
842+
opacity: 0.5;
843+
}
844+
845+
.mx-sc:hover {
846+
background: var(--surface-2);
847+
border-color: color-mix(in srgb, var(--sc), transparent 70%);
824848
}
825849

826-
.mx-scenario-tag {
850+
.mx-sc-name {
827851
font-family: var(--heading);
828-
font-size: 0.72rem;
829-
font-weight: 600;
830-
letter-spacing: 0.08em;
852+
font-size: 0.78rem;
853+
font-weight: 700;
854+
letter-spacing: 0.1em;
831855
text-transform: uppercase;
832-
padding: 0.2rem 0.55rem;
833856
color: var(--sc);
834-
background: color-mix(in srgb, var(--sc), transparent 90%);
835-
border: 1px solid color-mix(in srgb, var(--sc), transparent 75%);
836-
clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
857+
}
858+
859+
.mx-sc-desc {
860+
margin-top: 0.35rem;
861+
font-size: 0.82rem;
862+
color: var(--text-2);
863+
line-height: 1.45;
837864
}
838865

839866
/* ── footer ── */
@@ -902,6 +929,7 @@
902929
.timeline { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 0; }
903930
.timeline::before { display: none; }
904931
.matrix { grid-template-columns: repeat(2, 1fr); }
932+
.mx-scenarios { grid-template-columns: repeat(3, 1fr); }
905933
}
906934

907935
@media (max-width: 760px) {
@@ -933,7 +961,7 @@
933961
.stats { flex-direction: column; }
934962
.stat { border-right: none; border-bottom: 1px solid var(--border); }
935963
.stat:last-child { border-bottom: none; }
936-
.timeline, .products, .matrix { grid-template-columns: 1fr !important; }
964+
.timeline, .products, .matrix, .mx-scenarios { grid-template-columns: 1fr !important; }
937965
.mx-total { flex-direction: column; gap: 1.25rem; }
938966
.foot-in { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
939967
}
@@ -1061,22 +1089,37 @@ <h2 class="sec-title">开源项目</h2>
10611089
<div class="mx-meta"><span class="mx-lang">Go</span><span class="mx-cat">Pre-Exploit</span></div>
10621090
</a>
10631091
</div>
1092+
<div class="mx-scenarios rv">
1093+
<div class="mx-sc" style="--sc:var(--blue)">
1094+
<div class="mx-sc-name">Pre-Exploit</div>
1095+
<div class="mx-sc-desc">攻击面发现与漏洞检测</div>
1096+
</div>
1097+
<div class="mx-sc" style="--sc:var(--red)">
1098+
<div class="mx-sc-name">Post-Exploit</div>
1099+
<div class="mx-sc-desc">权限维持与横向移动</div>
1100+
</div>
1101+
<div class="mx-sc" style="--sc:var(--green)">
1102+
<div class="mx-sc-name">Network</div>
1103+
<div class="mx-sc-desc">隧道穿透与流量代理</div>
1104+
</div>
1105+
<div class="mx-sc" style="--sc:var(--violet)">
1106+
<div class="mx-sc-name">AI Agent</div>
1107+
<div class="mx-sc-desc">意图驱动的自主执行</div>
1108+
</div>
1109+
<div class="mx-sc" style="--sc:var(--amber)">
1110+
<div class="mx-sc-name">Library</div>
1111+
<div class="mx-sc-desc">指纹、模板与基础库</div>
1112+
</div>
1113+
<div class="mx-sc" style="--sc:var(--text-3)">
1114+
<div class="mx-sc-name">Tool</div>
1115+
<div class="mx-sc-desc">情报聚合与社区协作</div>
1116+
</div>
1117+
</div>
10641118
<div class="mx-total rv">
10651119
<div class="mx-total-item">
10661120
<div class="mx-total-num">5,400+</div>
10671121
<div class="mx-total-label">Total Stars</div>
10681122
</div>
1069-
<div class="mx-total-item mx-total-scenarios">
1070-
<div class="mx-total-label" style="margin-top:0">覆盖场景</div>
1071-
<div class="mx-scenario-tags">
1072-
<span class="mx-scenario-tag" style="--sc:var(--blue)">Pre-Exploit</span>
1073-
<span class="mx-scenario-tag" style="--sc:var(--red)">Post-Exploit</span>
1074-
<span class="mx-scenario-tag" style="--sc:var(--green)">Network</span>
1075-
<span class="mx-scenario-tag" style="--sc:var(--violet)">AI Agent</span>
1076-
<span class="mx-scenario-tag" style="--sc:var(--amber)">Library</span>
1077-
<span class="mx-scenario-tag" style="--sc:var(--text-3)">Tool</span>
1078-
</div>
1079-
</div>
10801123
</div>
10811124
</div>
10821125
</section>

0 commit comments

Comments
 (0)