feat(home): add home page as main entry point

Introduce HomeView with quick links to wiki sections and community features
Update navigation, routing, and logo links to point to the new home page
This commit is contained in:
2026-05-03 17:46:36 +08:00
parent 6782ddd101
commit 6758aaaa7e
9 changed files with 693 additions and 6 deletions

View File

@@ -4272,6 +4272,329 @@ button:disabled,
color: var(--muted);
}
.home-page {
display: grid;
gap: 28px;
}
.home-hero {
min-height: min(720px, calc(100dvh - 88px));
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
gap: 28px;
align-items: center;
}
.home-hero__copy,
.home-section,
.home-section__header,
.home-dex__screen,
.home-dex__copy {
display: grid;
}
.home-hero__copy {
gap: 18px;
align-content: center;
}
.home-hero__title {
max-width: 820px;
margin: 0;
color: var(--ink);
font-family: var(--font-display);
font-size: clamp(44px, 7vw, 82px);
font-weight: 950;
line-height: 0.98;
}
.home-hero__subtitle {
max-width: 68ch;
margin: 0;
color: var(--ink-soft);
font-size: 18px;
line-height: 1.62;
}
.home-hero__actions,
.home-quick-index,
.home-card-grid {
display: grid;
}
.home-hero__actions {
grid-template-columns: repeat(3, max-content);
gap: 10px;
align-items: center;
}
.home-quick-index {
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
max-width: 760px;
}
.home-quick-index a {
min-height: 72px;
display: grid;
align-content: center;
justify-items: start;
gap: 8px;
padding: 12px;
border: 1px solid var(--line);
border-radius: var(--radius-card);
background: var(--surface);
box-shadow: var(--shadow-soft);
color: var(--ink-soft);
font-weight: 900;
transition:
transform 0.16s ease,
border-color 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease;
}
.home-quick-index a:hover,
.home-card:hover {
transform: translateY(-2px);
border-color: var(--pokemon-blue);
box-shadow: 0 5px 0 var(--line-strong);
}
.home-quick-index .ui-icon {
width: 23px;
height: 23px;
color: var(--pokemon-blue);
}
.home-dex {
border: 4px solid #7b0f16;
border-radius: var(--radius-card);
background:
linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 20%, transparent 20% 100%),
linear-gradient(180deg, var(--pokemon-red) 0%, var(--pokemon-red-deep) 100%);
box-shadow: 0 8px 0 #7b0f16, var(--shadow-raised);
overflow: hidden;
}
.home-dex__head {
min-height: 60px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
padding: 14px 16px;
border-bottom: 4px solid #7b0f16;
color: #ffffff;
font-size: 13px;
font-weight: 950;
}
.home-dex__lights {
display: flex;
align-items: center;
gap: 8px;
}
.home-dex__lights span {
width: 16px;
height: 16px;
border: 2px solid var(--line-strong);
border-radius: 50%;
background: var(--pokemon-yellow);
box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.38);
}
.home-dex__lights span:first-child {
width: 30px;
height: 30px;
background: var(--pokemon-blue);
}
.home-dex__lights span:last-child {
background: var(--success);
}
.home-dex__screen {
gap: 18px;
justify-items: center;
margin: 16px;
min-height: 460px;
padding: 22px;
border: 4px solid #172036;
border-radius: var(--radius-card);
background:
linear-gradient(90deg, rgba(42, 117, 187, 0.08) 1px, transparent 1px) 0 0 / 18px 18px,
linear-gradient(rgba(42, 117, 187, 0.08) 1px, transparent 1px) 0 0 / 18px 18px,
#eef9ff;
color: #172036;
text-align: center;
}
.home-dex__copy {
gap: 8px;
max-width: 32ch;
}
.home-dex__copy strong {
font-family: var(--font-display);
font-size: 24px;
font-weight: 950;
line-height: 1.08;
}
.home-dex__copy p {
margin: 0;
color: #354052;
line-height: 1.55;
}
.home-dex__tiles {
width: 100%;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.home-dex__tiles a {
min-height: 74px;
display: grid;
justify-items: center;
align-content: center;
gap: 6px;
padding: 10px;
border: 2px solid rgba(23, 32, 54, 0.34);
border-radius: var(--radius-card);
background: #ffffff;
color: #172036;
font-weight: 950;
transition:
transform 0.16s ease,
border-color 0.16s ease,
box-shadow 0.16s ease;
}
.home-dex__tiles a:hover {
transform: translateY(-2px);
border-color: var(--pokemon-blue);
box-shadow: 0 3px 0 #172036;
}
.home-dex__tiles .ui-icon {
width: 24px;
height: 24px;
color: var(--pokemon-blue);
}
.home-section {
gap: 16px;
}
.home-section__header {
gap: 8px;
}
.home-section__header h2 {
margin: 0;
color: var(--ink);
font-family: var(--font-display);
font-size: clamp(28px, 4vw, 42px);
font-weight: 950;
line-height: 1.08;
}
.home-card-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 14px;
}
.home-card-grid--community {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-card-grid--future {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-card {
min-height: 170px;
display: grid;
align-content: start;
gap: 14px;
padding: 16px;
border: 2px solid var(--line-strong);
border-radius: var(--radius-card);
background: var(--surface);
box-shadow: var(--shadow-control);
color: var(--ink);
transition:
transform 0.16s ease,
border-color 0.16s ease,
box-shadow 0.16s ease;
}
.home-card--wide {
min-height: 148px;
grid-template-columns: auto minmax(0, 1fr);
align-items: start;
}
.home-card--future {
min-height: 154px;
}
.home-card__icon {
width: 54px;
height: 54px;
display: inline-grid;
place-items: center;
border: 2px solid var(--line-strong);
border-radius: var(--radius-control);
background: var(--pokemon-yellow);
box-shadow: 0 3px 0 var(--line-strong);
color: #172036;
}
.home-card:nth-child(2n) .home-card__icon {
background: var(--pokemon-blue);
color: #ffffff;
}
.home-card:nth-child(3n) .home-card__icon {
background: var(--surface-soft);
color: var(--pokemon-blue-deep);
}
.home-card__icon .ui-icon {
width: 27px;
height: 27px;
}
.home-card__copy {
min-width: 0;
display: grid;
gap: 7px;
}
.home-card__copy strong {
color: var(--ink);
font-family: var(--font-display);
font-size: 22px;
font-weight: 950;
line-height: 1.12;
overflow-wrap: anywhere;
}
.home-card__copy span {
color: var(--ink-soft);
line-height: 1.52;
overflow-wrap: anywhere;
}
.home-card--future .status-badge {
align-self: end;
}
.auth-page {
display: grid;
justify-items: center;
@@ -5233,6 +5556,7 @@ button:disabled,
.detail-grid,
.entity-profile-grid,
.home-hero,
.pokemon-image-detail,
.pokemon-profile-grid,
.pokemon-profile-row,
@@ -5300,6 +5624,19 @@ button:disabled,
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-hero {
min-height: auto;
}
.home-dex {
max-width: 560px;
}
.home-card-grid,
.home-card-grid--future {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.appearance-row__main {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
@@ -5334,12 +5671,47 @@ button:disabled,
.toolbar,
.entity-grid,
.grid,
.home-card-grid,
.home-card-grid--community,
.home-card-grid--future,
.home-hero__actions,
.home-quick-index,
.pokemon-fetch-panel,
.pokemon-edit-grid,
.coming-soon-preview {
grid-template-columns: 1fr;
}
.home-page {
gap: 24px;
}
.home-hero {
gap: 22px;
}
.home-hero__title {
font-size: 40px;
}
.home-hero__subtitle {
font-size: 16px;
}
.home-hero__actions .ui-button {
width: 100%;
}
.home-card--wide {
grid-template-columns: 1fr;
}
.home-dex__screen {
min-height: 420px;
margin: 12px;
padding: 16px;
}
.entity-card {
grid-template-columns: 1fr;
}