还原 fwnet 模板的首屏呼吸光晕 #26

Merged
enoch merged 2 commits from ChatGPT/laysite:laysite-fwnet-hero into main 2026-11-28 20:11:25 +08:00
2 changed files with 37 additions and 3 deletions
Showing only changes of commit 11aa155f6b - Show all commits
Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

+37 -3
View File
@@ -307,7 +307,40 @@
.fwnet-nav a:hover { color: var(--accent); }
.fwnet-brand { gap: .5rem; font-weight: 700; }
.fwnet-brand img { width: 26px; height: 26px; }
.fwnet-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 3rem); }
.fwnet-hero {
--fwnet-glow-size: 16rem;
position: relative;
isolation: isolate;
display: grid;
grid-template-columns: 1.2fr 1fr;
align-items: center;
gap: 2rem;
padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
}
.fwnet-hero::before {
position: absolute;
grid-area: 1 / 2 / 2 / 3;
inset: 0;
margin: auto;
inline-size: var(--fwnet-glow-size);
block-size: var(--fwnet-glow-size);
border-radius: 50%;
background: linear-gradient(90deg, #e0e7ff, #e0f2fe, #cffafe);
filter: blur(68px);
pointer-events: none;
z-index: -1;
}
.fwnet-hero:has(> img:not([hidden]))::before { content: ""; }
@media (min-width: 60rem) {
.fwnet-hero { --fwnet-glow-size: 20rem; }
}
@media (prefers-reduced-motion: no-preference) {
.fwnet-hero::before { animation: fwnet-hero-breathe 2.5s cubic-bezier(.45, .05, .55, .95) infinite alternate; }
}
@keyframes fwnet-hero-breathe {
from { opacity: .8; }
to { opacity: 1.2; }
}
.fwnet-hero h1 span { color: var(--accent); }
.fwnet-hero p { color: var(--muted); font-size: clamp(1.125rem, 2.2vw, 1.5rem); font-weight: 500; }
.fwnet-hero > img { width: min(100%, 330px); height: auto; margin-inline: auto; }
@@ -325,8 +358,9 @@
.fwnet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
.fwnet-hero { grid-template-columns: 1fr; text-align: center; }
.fwnet-hero { --fwnet-glow-size: 12rem; grid-template-columns: 1fr; gap: 1.25rem; text-align: center; }
.fwnet-hero::before { grid-area: 1 / 1 / 2 / 2; }
.fwnet-hero .actions { justify-content: center; }
.fwnet-hero > img { grid-row: 1; width: 135px; }
.fwnet-hero > img { grid-row: 1; width: min(100%, 12rem); height: 12rem; object-fit: contain; }
.fwnet-grid { grid-template-columns: 1fr; }
}