Skip to content
Merged

Dev #45

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
8 changes: 8 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ Examples:
- Avoid mixing unrelated changes in the same commit.
- Keep each commit scoped to a single clear goal so it is easy to review or revert.

## Branch and release flow

- Keep day-to-day work on `dev`.
- After a coherent batch is committed locally, push it to `origin/dev`.
- Open a pull request from `dev` to `main` for review and release tracking.
- Merge the pull request into `main` only after the release candidate is ready.
- Do not push release changes directly to `origin/main`.

## Documentation Map

- Start with `README.md` for the current project baseline and document index.
Expand Down
104 changes: 68 additions & 36 deletions apps/web/src/pages/geekdaily/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Astro.response.headers.set('Cache-Control', 'public, max-age=300, stale-while-re

<BaseLayout
site={site}
title="GeekDaily 归档"
title="Rebase极客日报"
description="浏览、筛选并检索 Rebase 社区的 GeekDaily 历史归档。"
>
<section class="shell page-hero single">
Expand All @@ -29,58 +29,62 @@ Astro.response.headers.set('Cache-Control', 'public, max-age=300, stale-while-re
</div>
<h1 class="hero-title">Rebase 极客日报</h1>
<p class="hero-summary">
极客日报是 Rebase 最稳定的持续发声机制。每天更新的极客日报,把社区推荐、工具、研究和信号组织成可搜索、可订阅的长期档案。
由社区志愿者持续整理发布,每期收录值得关注的技术内容、推荐人和推荐语,方便你按期回看、检索与订阅。
</p>
</article>
</section>

<section class="shell page-section controls-grid">
<div class="card search-panel">
<label for="geekdaily-search">搜索 GeekDaily</label>
<div class="search-head">
<label for="geekdaily-search">搜索 GeekDaily</label>
</div>
<input
id="geekdaily-search"
name="q"
type="search"
placeholder="搜索期数、geekdaily-编号、标题、推荐语、条目标题或推荐人"
placeholder="搜索期数、标题、推荐语、条目标题或推荐人"
autocomplete="off"
/>
<p>支持期数编号、<code>geekdaily-1915</code>、标题、推荐语、推荐人和条目标题关键词。</p>
</div>

<div class="card quick-filter-panel">
{featuredTags.length > 0 && (
<div>
<p class="panel-title">标签筛选</p>
<div class="filter-stack">
{featuredTags.length > 0 && (
<div class="filter-block">
<p class="panel-title">标签筛选</p>
<div class="chip-row" role="list">
{featuredTags.map((tag) => (
<button
type="button"
class="chip-button"
data-tag={tag}
aria-pressed="false"
aria-controls="results-list"
>
{tag}
</button>
))}
</div>
</div>
)}
<div class="filter-block">
<p class="panel-title">年份筛选</p>
<div class="chip-row" role="list">
{featuredTags.map((tag) => (
{years.slice(0, 6).map((year) => (
<button
type="button"
class="chip-button"
data-tag={tag}
class="chip-button muted"
data-year={year}
aria-pressed="false"
aria-controls="results-list"
>
{tag}
{year}
</button>
))}
</div>
</div>
)}
<div>
<p class="panel-title">年份筛选</p>
<div class="chip-row" role="list">
{years.slice(0, 6).map((year) => (
<button
type="button"
class="chip-button muted"
data-year={year}
aria-pressed="false"
aria-controls="results-list"
>
{year}
</button>
))}
</div>
</div>
<button type="button" class="reset-button" id="reset-filters" aria-controls="results-list">清空筛选</button>
</div>
Expand Down Expand Up @@ -689,7 +693,7 @@ Astro.response.headers.set('Cache-Control', 'public, max-age=300, stale-while-re
.quick-filter-panel,
.episode-list :global(.episode-card),
.pager {
padding: 1.2rem;
padding: 1rem 1.05rem;
}

.panel-title,
Expand Down Expand Up @@ -721,19 +725,27 @@ Astro.response.headers.set('Cache-Control', 'public, max-age=300, stale-while-re
.controls-grid {
display: grid;
grid-template-columns: 1.15fr 1fr;
gap: 1rem;
gap: 0.85rem;
}

.search-panel {
display: grid;
gap: 0.9rem;
gap: 0.65rem;
align-content: start;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 246, 0.88));
}

.search-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
}

.search-panel input {
width: 100%;
padding: 1rem 1.05rem;
padding: 0.88rem 1rem;
border: 1px solid rgba(31, 41, 51, 0.12);
border-radius: 1rem;
background: rgba(255, 255, 255, 0.82);
Expand All @@ -742,23 +754,34 @@ Astro.response.headers.set('Cache-Control', 'public, max-age=300, stale-while-re

.quick-filter-panel {
display: grid;
gap: 1rem;
align-content: start;
grid-template-columns: minmax(0, 1fr) auto;
gap: 0.85rem;
align-items: end;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 239, 0.9));
}

.filter-stack {
display: grid;
gap: 0.7rem;
}

.filter-block {
display: grid;
gap: 0.4rem;
}

.chip-row {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
margin-top: 0.85rem;
gap: 0.5rem;
margin-top: 0;
}

.chip-button,
.reset-button,
.pager button {
padding: 0.75rem 0.95rem;
padding: 0.68rem 0.9rem;
border: 0;
border-radius: 999px;
cursor: pointer;
Expand Down Expand Up @@ -788,6 +811,10 @@ Astro.response.headers.set('Cache-Control', 'public, max-age=300, stale-while-re
font-weight: 700;
}

.reset-button {
white-space: nowrap;
}

.results-head,
.pager {
display: flex;
Expand Down Expand Up @@ -916,6 +943,11 @@ Astro.response.headers.set('Cache-Control', 'public, max-age=300, stale-while-re
grid-template-columns: 1fr;
}

.quick-filter-panel {
grid-template-columns: 1fr;
align-items: start;
}

.episode-list :global(.episode-card ul) {
columns: 1;
}
Expand Down
99 changes: 1 addition & 98 deletions apps/web/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const featuredContributors = contributors.slice(0, 2);
const liveWire = feed.dynamicFeed.slice(0, 6);
const recentGeekDaily = feed.recentGeekDaily.slice(0, 3);
const frontPageHighlights = liveWire.slice(0, 3);
const featuredSignals = site.homeSignals.slice(0, 2);

const liveWireTypeLabel = {
article: '文章',
Expand Down Expand Up @@ -47,18 +46,6 @@ const liveWireTypeLabel = {
</a>
))}
</div>
<div class="hero-footnotes">
<article>
<span>双域名入口</span>
<strong>{site.primaryDomain.replace('https://', '')}</strong>
<p>默认内容主域名,第二域名保留社区入口一致性。</p>
</article>
<article>
<span>公开阅读</span>
<strong>无需登录</strong>
<p>读者直接访问,管理侧通过专用后台维护结构化内容。</p>
</article>
</div>
</article>

<aside class="signal-panel card live-desk">
Expand All @@ -67,7 +54,6 @@ const liveWireTypeLabel = {
title="正在发生什么"
description="用一条实时更新的社区新闻线,把文章、活动、GeekDaily 和招聘放在同一个阅读入口里。"
/>
<p class="desk-note">右侧保留更高频的更新视图,左侧则负责建立对 Rebase 的第一印象和内容主张。</p>
<ol class="live-wire-list">
{liveWire.map((item) => (
<li class="live-wire-item">
Expand All @@ -82,15 +68,6 @@ const liveWireTypeLabel = {
</li>
))}
</ol>
<div class="signal-list signal-compact">
{featuredSignals.map((signal) => (
<a class="signal-item" href={signal.href}>
<p>{signal.eyebrow}</p>
<h3>{signal.title}</h3>
<span>{signal.summary}</span>
</a>
))}
</div>
</aside>
</section>

Expand Down Expand Up @@ -340,46 +317,6 @@ const liveWireTypeLabel = {
line-height: 1.65;
}

.hero-footnotes {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.9rem;
margin-top: 1.5rem;
}

.hero-footnotes article {
padding: 1rem;
border-radius: 1rem;
background: rgba(255, 255, 255, 0.62);
border: 1px solid rgba(31, 41, 51, 0.08);
}

.hero-footnotes span,
.hero-footnotes strong,
.hero-footnotes p {
display: block;
margin: 0;
}

.hero-footnotes span {
color: var(--accent-strong);
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.14em;
text-transform: uppercase;
}

.hero-footnotes strong {
margin-top: 0.45rem;
font-size: 1.05rem;
}

.hero-footnotes p {
margin-top: 0.45rem;
color: var(--muted);
line-height: 1.65;
}

.live-desk {
display: grid;
gap: 1rem;
Expand Down Expand Up @@ -410,13 +347,6 @@ const liveWireTypeLabel = {
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.desk-note {
margin: -0.25rem 0 0;
color: rgba(223, 244, 238, 0.74);
font-size: 0.95rem;
line-height: 1.7;
}

.live-wire-list {
display: grid;
gap: 0.85rem;
Expand Down Expand Up @@ -480,31 +410,6 @@ const liveWireTypeLabel = {
line-height: 1.65;
}

.signal-compact {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signal-compact .signal-item {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(223, 244, 238, 0.12);
}

.signal-compact .signal-item:hover,
.signal-compact .signal-item:focus-visible {
background: rgba(255, 255, 255, 0.14);
border-color: rgba(243, 196, 110, 0.3);
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
}

.signal-compact .signal-item p,
.signal-compact .signal-item h3 {
color: white;
}

.signal-compact .signal-item span {
color: rgba(223, 244, 238, 0.7);
}

.current-desk {
padding-top: 1.9rem;
}
Expand Down Expand Up @@ -565,10 +470,8 @@ const liveWireTypeLabel = {
}

@media (max-width: 960px) {
.hero-footnotes,
.hero-highlights,
.dispatch-grid,
.signal-compact {
.dispatch-grid {
grid-template-columns: 1fr;
}

Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/pages/who-is-hiring/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const jobLeadPoints = [
];
---

<BaseLayout site={site} title="社区招聘" description="查看 Rebase 社区当前公开的招聘信息与岗位详情。">
<BaseLayout site={site} title="Who-Is-Hiring | Rebase社区招聘" description="查看 Rebase 社区当前公开的招聘信息与岗位详情。">
<ListPageHero
kicker="社区招聘"
edition="Opportunity Board"
Expand Down
Loading
Loading