mirror of
https://github.com/vinta/awesome-python.git
synced 2026-05-09 22:53:49 +08:00
feat(website): add /sponsorship/ landing page
Adds a dedicated sponsorship page at /sponsorship/ built from the Jinja2 template, with hero stats, tier cards, and CSS. Updates the index.html sponsor sidebar link to point to /sponsorship/ instead of the GitHub SPONSORSHIP.md. Adds the URL to the sitemap and test fixtures. Also renames .impeccable.md to DESIGN.md. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+308
-1
@@ -1082,6 +1082,298 @@ th[data-sort].sort-asc::after {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.sponsorship-hero .category-hero-shell {
|
||||
padding-bottom: clamp(3.25rem, 6vw, 5rem);
|
||||
gap: clamp(2rem, 5vw, 3.5rem);
|
||||
}
|
||||
|
||||
.sponsorship-hero-copy h1 {
|
||||
font-size: clamp(3.4rem, 8.5vw, 6.5rem);
|
||||
}
|
||||
|
||||
.sponsorship-proof {
|
||||
margin-top: 1.6rem;
|
||||
}
|
||||
|
||||
.sponsorship-proof .proof-sep {
|
||||
color: oklch(100% 0 0 / 0.32);
|
||||
margin-inline: 0.15rem;
|
||||
}
|
||||
|
||||
.sponsorship-hero .hero-actions {
|
||||
margin-top: 1.9rem;
|
||||
}
|
||||
|
||||
.sponsorship-section {
|
||||
padding-block: clamp(2.75rem, 5.5vw, 4.25rem);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.sponsorship-section:first-of-type {
|
||||
padding-top: clamp(3.25rem, 6vw, 4.75rem);
|
||||
}
|
||||
|
||||
.sponsorship-section:last-of-type {
|
||||
border-bottom: 0;
|
||||
padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
|
||||
}
|
||||
|
||||
.sponsorship-getstarted {
|
||||
background: var(--cta-bg);
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.sponsorship-shell {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
|
||||
gap: clamp(1.75rem, 5vw, 4rem);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.sponsorship-meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.85rem;
|
||||
position: sticky;
|
||||
top: 1.5rem;
|
||||
}
|
||||
|
||||
.sponsorship-meta .section-label {
|
||||
margin-bottom: 0;
|
||||
font-size: var(--text-lg);
|
||||
}
|
||||
|
||||
.sponsorship-meta-note {
|
||||
color: var(--ink-muted);
|
||||
font-size: var(--text-sm);
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.sponsorship-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.6rem;
|
||||
font-size: var(--text-lg);
|
||||
color: var(--ink-soft);
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.sponsorship-body p {
|
||||
text-wrap: pretty;
|
||||
}
|
||||
|
||||
.sponsorship-body code {
|
||||
font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
|
||||
font-size: 0.92em;
|
||||
padding: 0.08rem 0.4rem;
|
||||
border-radius: 0.4rem;
|
||||
background: var(--bg-paper-strong);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.sponsorship-body a:not(.hero-action):not(.tier-cta) {
|
||||
color: var(--accent-deep);
|
||||
text-decoration: underline;
|
||||
text-decoration-color: var(--accent-underline);
|
||||
text-underline-offset: 0.2em;
|
||||
transition: color 180ms ease;
|
||||
}
|
||||
|
||||
.sponsorship-body a:not(.hero-action):not(.tier-cta):hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.sponsorship-lede {
|
||||
font-family: var(--font-display);
|
||||
font-size: clamp(1.55rem, 2.6vw, 2rem);
|
||||
line-height: 1.25;
|
||||
color: var(--ink);
|
||||
letter-spacing: -0.01em;
|
||||
text-wrap: pretty;
|
||||
}
|
||||
|
||||
.sponsorship-facts {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 1.4rem;
|
||||
border-top: 1px solid var(--line);
|
||||
padding-top: 1.6rem;
|
||||
}
|
||||
|
||||
.sponsorship-facts > div {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
|
||||
gap: clamp(1rem, 3vw, 2rem);
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.sponsorship-facts dt {
|
||||
font-size: var(--text-xs);
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.sponsorship-facts dd {
|
||||
color: var(--ink-soft);
|
||||
font-size: var(--text-base);
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.tier-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: clamp(1.5rem, 3vw, 2.75rem);
|
||||
}
|
||||
|
||||
.tier {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
padding-block: 1.65rem;
|
||||
border-top: 1px solid var(--line-strong);
|
||||
}
|
||||
|
||||
.tier-eyebrow {
|
||||
font-size: var(--text-xs);
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.tier-price {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 0.55rem;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.tier-amount {
|
||||
font-family: var(--font-display);
|
||||
font-size: clamp(3rem, 5.5vw, 4.5rem);
|
||||
font-weight: 600;
|
||||
line-height: 0.9;
|
||||
letter-spacing: -0.025em;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.tier-cadence {
|
||||
color: var(--ink-muted);
|
||||
font-size: var(--text-base);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.tier-summary {
|
||||
font-size: var(--text-lg);
|
||||
color: var(--ink);
|
||||
line-height: 1.5;
|
||||
text-wrap: pretty;
|
||||
}
|
||||
|
||||
.tier-includes {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.6rem;
|
||||
border-top: 1px solid var(--line);
|
||||
padding-top: 1.1rem;
|
||||
}
|
||||
|
||||
.tier-includes li {
|
||||
position: relative;
|
||||
padding-left: 1.4rem;
|
||||
color: var(--ink-soft);
|
||||
font-size: var(--text-base);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.tier-includes li::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0.65rem;
|
||||
width: 0.55rem;
|
||||
height: 1px;
|
||||
background: var(--line-strong);
|
||||
}
|
||||
|
||||
.tier-cta {
|
||||
align-self: start;
|
||||
margin-top: 0.75rem;
|
||||
color: var(--accent-deep);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.01em;
|
||||
text-decoration: underline;
|
||||
text-decoration-color: var(--accent-underline);
|
||||
text-underline-offset: 0.22em;
|
||||
transition: color 180ms ease, text-decoration-color 180ms ease;
|
||||
}
|
||||
|
||||
.tier-cta:hover {
|
||||
color: var(--accent);
|
||||
text-decoration-color: var(--accent);
|
||||
}
|
||||
|
||||
.past-sponsors {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.85rem;
|
||||
}
|
||||
|
||||
.past-sponsors li {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
gap: 0.65rem;
|
||||
padding-block: 0.4rem;
|
||||
}
|
||||
|
||||
.past-sponsors a {
|
||||
font-family: var(--font-display);
|
||||
font-size: clamp(1.6rem, 2.8vw, 2.1rem);
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.02em;
|
||||
color: var(--ink);
|
||||
transition: color 180ms ease;
|
||||
}
|
||||
|
||||
.past-sponsors a:hover {
|
||||
color: var(--accent-deep);
|
||||
}
|
||||
|
||||
.past-sponsor-desc {
|
||||
color: var(--ink-muted);
|
||||
font-size: var(--text-base);
|
||||
}
|
||||
|
||||
.sponsorship-cta-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.85rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.sponsorship-cta-row .hero-action-primary {
|
||||
color: var(--hero-text);
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-deep));
|
||||
}
|
||||
|
||||
.sponsorship-fineprint {
|
||||
font-size: var(--text-base);
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.final-cta {
|
||||
padding-block: clamp(3rem, 7vw, 5.5rem);
|
||||
background: var(--cta-bg);
|
||||
@@ -1227,10 +1519,25 @@ th[data-sort].sort-asc::after {
|
||||
|
||||
.hero-grid,
|
||||
.results-intro,
|
||||
.sponsor-shell {
|
||||
.sponsor-shell,
|
||||
.sponsorship-shell {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.sponsorship-meta {
|
||||
position: static;
|
||||
}
|
||||
|
||||
.tier-list {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.sponsorship-facts > div {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
|
||||
.hero-category-nav {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 0.95rem;
|
||||
|
||||
Reference in New Issue
Block a user