Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions src/components/home/LiteBand.astro
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,20 @@ const zh = lang === "zh-CN";
font-size: 12px;
color: #c3c7ce;
}
/* The screenshot carries its own window and shadow; only a glow behind it */
.shot {
border-radius: 14px;
box-shadow:
0 0 0 1px rgba(255, 255, 255, 0.14),
0 50px 120px -40px rgba(0, 0, 0, 0.9),
0 30px 100px -40px rgb(var(--a1) / 0.35);
overflow: hidden;
position: relative;
transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.shot::before {
content: "";
position: absolute;
inset: 12% 8%;
z-index: -1;
border-radius: 40px;
background: radial-gradient(closest-side, rgb(var(--a1) / 0.22), rgb(var(--a2) / 0.1) 60%, transparent);
filter: blur(40px);
}
.shot img {
display: block;
width: 100%;
Expand Down
3 changes: 2 additions & 1 deletion src/components/pages/CorePage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ const fileLink = "break-all text-[var(--color-brand-1)] transition-colors hover:
<a class="nx-announce nx-rise" style="--d:0" href={`${repo}/releases/tag/v${version}`}><span class="dot"></span>{c.motion.announce(version)}<span class="chev">→</span></a>
)}
<h1 class="nx-h1 nx-rise" style="--d:1">
{zh ? <span class="whitespace-nowrap">{c.hero.titleA}</span> : c.hero.titleA}<span class:list={["nx-grad", zh && "whitespace-nowrap"]}>{c.hero.titleHighlight}</span>
{/* Chinese: the break goes after 的, so neither half runs under the terminal */}
{zh ? <Fragment><span class="whitespace-nowrap">{c.hero.titleA.trim()}</span><br /></Fragment> : c.hero.titleA}<span class:list={["nx-grad", zh && "whitespace-nowrap"]}>{c.hero.titleHighlight}</span>
</h1>
<p class="nx-lede nx-rise" style="--d:2">{c.hero.sub}</p>
<div class="nx-actions nx-rise" style="--d:3">
Expand Down
Loading
Loading