@backgold/template-kit 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +12 -2
- package/dist/chunk-RJAVFRC6.js +67 -0
- package/dist/constants-BAIo_Q5U.d-lQbj1e1-.d.ts +48 -0
- package/dist/content-api-Cox1-wz5.d.ts +1096 -0
- package/dist/contract/content-api-examples.d.ts +72 -0
- package/dist/contract/content-api-examples.js +926 -0
- package/dist/contract/content-api.d.ts +2 -0
- package/dist/contract/content-api.js +1 -0
- package/dist/contract/site-templates.d.ts +253 -0
- package/dist/contract/site-templates.js +185 -0
- package/package.json +70 -3
- package/src/components/EntryCard.astro +35 -0
- package/src/components/EventMap.astro +118 -0
- package/src/components/EventPage.astro +194 -0
- package/src/components/FieldValue.astro +41 -0
- package/src/components/LeadingHero.astro +21 -0
- package/src/components/NotFound.astro +20 -0
- package/src/components/PageSections.astro +47 -0
- package/src/components/Prose.astro +18 -0
- package/src/components/chrome/Brand.astro +61 -0
- package/src/components/chrome/ClosingCall.astro +94 -0
- package/src/components/chrome/DonateStrip.astro +61 -0
- package/src/components/chrome/FooterColumns.astro +32 -0
- package/src/components/chrome/FooterContact.astro +28 -0
- package/src/components/chrome/MenuList.astro +45 -0
- package/src/components/chrome/ModeToggle.astro +125 -0
- package/src/components/chrome/SignedInNotice.astro +53 -0
- package/src/components/chrome/SignupBand.astro +12 -0
- package/src/components/chrome/TakeoverBanner.astro +56 -0
- package/src/components/chrome/VisitorAccount.astro +82 -0
- package/src/components/entries/AuthorBox.astro +47 -0
- package/src/components/entries/EntryFields.astro +29 -0
- package/src/components/entries/EntryHeader.astro +77 -0
- package/src/components/entries/ListFrame.astro +126 -0
- package/src/components/entries/ListSearch.astro +24 -0
- package/src/components/entries/Share.astro +24 -0
- package/src/components/entries/course/classroom.astro +26 -0
- package/src/components/entries/course/lesson.astro +18 -0
- package/src/components/entries/course/section.ts +20 -0
- package/src/components/entries/course/syllabus.astro +15 -0
- package/src/components/entries/index.ts +77 -0
- package/src/components/entries/newsletter/issue.astro +41 -0
- package/src/components/entries/newsletter/list.astro +26 -0
- package/src/components/entries/podcast/episode.astro +42 -0
- package/src/components/entries/podcast/list.astro +36 -0
- package/src/components/entries/post/article.astro +31 -0
- package/src/components/entries/post/list.astro +85 -0
- package/src/components/entries/props.ts +61 -0
- package/src/components/entries/video/cards.astro +39 -0
- package/src/components/entries/video/grid.astro +15 -0
- package/src/components/entries/video/watch.astro +41 -0
- package/src/components/live/LivePage.astro +215 -0
- package/src/components/live/LocalTime.astro +29 -0
- package/src/components/sections/About/books.astro +188 -0
- package/src/components/sections/About/credentials.ts +80 -0
- package/src/components/sections/About/index.astro +60 -0
- package/src/components/sections/About/left.astro +57 -0
- package/src/components/sections/About/letter.astro +111 -0
- package/src/components/sections/About/portrait.astro +308 -0
- package/src/components/sections/Advocacy/compact.astro +14 -0
- package/src/components/sections/Advocacy/index.astro +14 -0
- package/src/components/sections/Band.astro +39 -0
- package/src/components/sections/Blog/feature.astro +176 -0
- package/src/components/sections/Blog/index.astro +37 -0
- package/src/components/sections/Blog/latest.ts +80 -0
- package/src/components/sections/Blog/list.astro +186 -0
- package/src/components/sections/Booking/index.astro +139 -0
- package/src/components/sections/Booking/list.astro +144 -0
- package/src/components/sections/Booking/types.ts +60 -0
- package/src/components/sections/Calendar/agenda.astro +14 -0
- package/src/components/sections/Calendar/index.astro +14 -0
- package/src/components/sections/CandidateRoster/ballot.astro +394 -0
- package/src/components/sections/CandidateRoster/candidates.ts +69 -0
- package/src/components/sections/CandidateRoster/compact.astro +115 -0
- package/src/components/sections/CandidateRoster/index.astro +57 -0
- package/src/components/sections/CaseStudies/beforeafter.astro +222 -0
- package/src/components/sections/CaseStudies/cases.ts +111 -0
- package/src/components/sections/CaseStudies/grid.astro +261 -0
- package/src/components/sections/CaseStudies/index.astro +333 -0
- package/src/components/sections/Classroom/CourseCard.astro +181 -0
- package/src/components/sections/Classroom/Courses.astro +88 -0
- package/src/components/sections/Classroom/classroom.ts +141 -0
- package/src/components/sections/Classroom/index.astro +20 -0
- package/src/components/sections/Classroom/list.astro +15 -0
- package/src/components/sections/Collection/compact.astro +7 -0
- package/src/components/sections/Collection/entries.ts +62 -0
- package/src/components/sections/Collection/feature.astro +180 -0
- package/src/components/sections/Collection/index.astro +46 -0
- package/src/components/sections/Collection/library.astro +271 -0
- package/src/components/sections/Collection/list.astro +7 -0
- package/src/components/sections/Collection/outline.astro +134 -0
- package/src/components/sections/Collection/shelves.astro +191 -0
- package/src/components/sections/Comparison/Unlisted.astro +6 -0
- package/src/components/sections/Comparison/cards.astro +171 -0
- package/src/components/sections/Comparison/index.astro +191 -0
- package/src/components/sections/Comparison/sides.ts +98 -0
- package/src/components/sections/Comparison/spectrum.astro +261 -0
- package/src/components/sections/ContentPost/banner.astro +152 -0
- package/src/components/sections/ContentPost/index.astro +35 -0
- package/src/components/sections/ContentPost/lesson.ts +126 -0
- package/src/components/sections/ContentPost/player.astro +254 -0
- package/src/components/sections/ContentPost/prose.astro +80 -0
- package/src/components/sections/ContentPost/theater.astro +329 -0
- package/src/components/sections/Countdown/index.astro +53 -0
- package/src/components/sections/Course/Bar.astro +46 -0
- package/src/components/sections/Course/CourseHead.astro +123 -0
- package/src/components/sections/Course/Crumbs.astro +44 -0
- package/src/components/sections/Course/Icon.astro +29 -0
- package/src/components/sections/Course/Ring.astro +62 -0
- package/src/components/sections/Course/Syllabus.astro +146 -0
- package/src/components/sections/Course/course.ts +146 -0
- package/src/components/sections/Course/index.astro +143 -0
- package/src/components/sections/Course/outline.astro +39 -0
- package/src/components/sections/Cta/banner.astro +64 -0
- package/src/components/sections/Cta/card.astro +88 -0
- package/src/components/sections/Cta/index.astro +31 -0
- package/src/components/sections/Cta/photo.astro +114 -0
- package/src/components/sections/Cta/strip.astro +91 -0
- package/src/components/sections/Donate/index.astro +136 -0
- package/src/components/sections/Donate/story.astro +7 -0
- package/src/components/sections/Event/card.astro +14 -0
- package/src/components/sections/Event/index.astro +14 -0
- package/src/components/sections/EventsList/AgendaMonths.astro +105 -0
- package/src/components/sections/EventsList/CalendarLine.astro +23 -0
- package/src/components/sections/EventsList/EventRows.astro +196 -0
- package/src/components/sections/EventsList/LiveCounts.astro +75 -0
- package/src/components/sections/EventsList/TypeTabs.astro +53 -0
- package/src/components/sections/EventsList/agenda.astro +55 -0
- package/src/components/sections/EventsList/calendar.astro +392 -0
- package/src/components/sections/EventsList/cards.astro +186 -0
- package/src/components/sections/EventsList/cohorts.astro +205 -0
- package/src/components/sections/EventsList/compact.astro +163 -0
- package/src/components/sections/EventsList/events.ts +168 -0
- package/src/components/sections/EventsList/index.astro +46 -0
- package/src/components/sections/EventsList/map.astro +436 -0
- package/src/components/sections/EventsList/shifts.astro +355 -0
- package/src/components/sections/EventsList/week.astro +361 -0
- package/src/components/sections/Faq/Contact.astro +63 -0
- package/src/components/sections/Faq/Questions.astro +98 -0
- package/src/components/sections/Faq/cards.astro +74 -0
- package/src/components/sections/Faq/faq.ts +101 -0
- package/src/components/sections/Faq/index.astro +49 -0
- package/src/components/sections/Faq/topics.astro +178 -0
- package/src/components/sections/Financials/Foot.astro +38 -0
- package/src/components/sections/Financials/Head.astro +47 -0
- package/src/components/sections/Financials/donut.astro +197 -0
- package/src/components/sections/Financials/financials.ts +52 -0
- package/src/components/sections/Financials/index.astro +148 -0
- package/src/components/sections/Financials/table.astro +157 -0
- package/src/components/sections/FormBlock/index.astro +33 -0
- package/src/components/sections/FormBlock/wide.astro +7 -0
- package/src/components/sections/Hero/cover.astro +176 -0
- package/src/components/sections/Hero/donate.astro +209 -0
- package/src/components/sections/Hero/field.astro +390 -0
- package/src/components/sections/Hero/index.astro +52 -0
- package/src/components/sections/Hero/overlap.astro +151 -0
- package/src/components/sections/Hero/rotating.astro +30 -0
- package/src/components/sections/Hero/split.astro +99 -0
- package/src/components/sections/Hero/statement.astro +55 -0
- package/src/components/sections/Hero/video.astro +399 -0
- package/src/components/sections/Issues/checklist.astro +204 -0
- package/src/components/sections/Issues/drawer.astro +237 -0
- package/src/components/sections/Issues/index.astro +115 -0
- package/src/components/sections/Issues/issues.ts +37 -0
- package/src/components/sections/Issues/numbered.astro +79 -0
- package/src/components/sections/Issues/rows.astro +137 -0
- package/src/components/sections/Issues/steps.astro +81 -0
- package/src/components/sections/Issues/tabs.astro +322 -0
- package/src/components/sections/Leaderboard/index.astro +29 -0
- package/src/components/sections/Lesson/Door.astro +121 -0
- package/src/components/sections/Lesson/LessonBody.astro +416 -0
- package/src/components/sections/Lesson/Rail.astro +182 -0
- package/src/components/sections/Lesson/Tracker.astro +137 -0
- package/src/components/sections/Lesson/index.astro +27 -0
- package/src/components/sections/Lesson/lesson.ts +233 -0
- package/src/components/sections/Lesson/reading.astro +21 -0
- package/src/components/sections/Map/CoverageLine.astro +19 -0
- package/src/components/sections/Map/RegionMap.astro +109 -0
- package/src/components/sections/Map/bar.astro +160 -0
- package/src/components/sections/Map/index.astro +192 -0
- package/src/components/sections/Map/map.astro +275 -0
- package/src/components/sections/MediaKit/BioCard.astro +108 -0
- package/src/components/sections/MediaKit/Downloads.astro +88 -0
- package/src/components/sections/MediaKit/index.astro +183 -0
- package/src/components/sections/MediaKit/kit.ts +140 -0
- package/src/components/sections/MediaKit/press.astro +189 -0
- package/src/components/sections/MediaKit/speaker.astro +205 -0
- package/src/components/sections/Membership/Benefits.astro +42 -0
- package/src/components/sections/Membership/Check.astro +12 -0
- package/src/components/sections/Membership/Price.astro +61 -0
- package/src/components/sections/Membership/compare.astro +312 -0
- package/src/components/sections/Membership/index.astro +281 -0
- package/src/components/sections/Membership/offers.ts +169 -0
- package/src/components/sections/Membership/tiers.astro +217 -0
- package/src/components/sections/MovementMap/index.astro +50 -0
- package/src/components/sections/MovementTicker/index.astro +43 -0
- package/src/components/sections/Pathways/Doors.astro +147 -0
- package/src/components/sections/Pathways/Head.astro +37 -0
- package/src/components/sections/Pathways/index.astro +27 -0
- package/src/components/sections/Pathways/pathways.ts +100 -0
- package/src/components/sections/Pathways/quiz.astro +286 -0
- package/src/components/sections/Pathways/tabs.astro +271 -0
- package/src/components/sections/PdfEmbed/card.astro +99 -0
- package/src/components/sections/PdfEmbed/index.astro +26 -0
- package/src/components/sections/PdfEmbed/medium.astro +7 -0
- package/src/components/sections/PdfEmbed/tall.astro +7 -0
- package/src/components/sections/Petition/coverage.astro +14 -0
- package/src/components/sections/Petition/image.astro +14 -0
- package/src/components/sections/Petition/index.astro +14 -0
- package/src/components/sections/Petition/map.astro +14 -0
- package/src/components/sections/PlatformPlanks/anchors.ts +66 -0
- package/src/components/sections/PlatformPlanks/columns.astro +171 -0
- package/src/components/sections/PlatformPlanks/index.astro +56 -0
- package/src/components/sections/PlatformPlanks/longread.astro +250 -0
- package/src/components/sections/PollBlock/index.astro +30 -0
- package/src/components/sections/Portfolio/featured.astro +343 -0
- package/src/components/sections/Portfolio/index.astro +571 -0
- package/src/components/sections/Portfolio/strip.astro +173 -0
- package/src/components/sections/Portfolio/work.ts +100 -0
- package/src/components/sections/Progress/MatchClock.astro +166 -0
- package/src/components/sections/Progress/compact.astro +150 -0
- package/src/components/sections/Progress/index.astro +32 -0
- package/src/components/sections/Progress/match.astro +126 -0
- package/src/components/sections/Progress/ring.astro +179 -0
- package/src/components/sections/QuickDonate/DonateCard.astro +149 -0
- package/src/components/sections/QuickDonate/Picker.astro +95 -0
- package/src/components/sections/QuickDonate/band.astro +164 -0
- package/src/components/sections/QuickDonate/bar.astro +208 -0
- package/src/components/sections/QuickDonate/donate.ts +126 -0
- package/src/components/sections/QuickDonate/hero.astro +143 -0
- package/src/components/sections/QuickDonate/index.astro +73 -0
- package/src/components/sections/QuickDonate/jar.astro +225 -0
- package/src/components/sections/QuickDonate/ladder.astro +248 -0
- package/src/components/sections/QuoteStrip/carousel.astro +340 -0
- package/src/components/sections/QuoteStrip/index.astro +58 -0
- package/src/components/sections/QuoteStrip/logos.astro +226 -0
- package/src/components/sections/QuoteStrip/quotes.ts +61 -0
- package/src/components/sections/QuoteStrip/single.astro +92 -0
- package/src/components/sections/QuoteStrip/ticker.astro +319 -0
- package/src/components/sections/QuoteStrip/wall.astro +113 -0
- package/src/components/sections/Resources/band.astro +93 -0
- package/src/components/sections/Resources/featured.astro +239 -0
- package/src/components/sections/Resources/index.astro +225 -0
- package/src/components/sections/Resources/resources.ts +92 -0
- package/src/components/sections/SampleBallot/Position.astro +39 -0
- package/src/components/sections/SampleBallot/ballot.ts +92 -0
- package/src/components/sections/SampleBallot/cards.astro +299 -0
- package/src/components/sections/SampleBallot/index.astro +326 -0
- package/src/components/sections/SampleBallot/measures.astro +172 -0
- package/src/components/sections/Scorecard/grades.astro +141 -0
- package/src/components/sections/Scorecard/index.astro +294 -0
- package/src/components/sections/Scorecard/promise.astro +167 -0
- package/src/components/sections/Scorecard/votes.ts +83 -0
- package/src/components/sections/SectionHead.astro +31 -0
- package/src/components/sections/Services/Button.astro +24 -0
- package/src/components/sections/Services/Check.astro +12 -0
- package/src/components/sections/Services/Includes.astro +42 -0
- package/src/components/sections/Services/compare.astro +328 -0
- package/src/components/sections/Services/index.astro +187 -0
- package/src/components/sections/Services/list.astro +181 -0
- package/src/components/sections/Services/services.ts +80 -0
- package/src/components/sections/ShareKit/Actions.astro +71 -0
- package/src/components/sections/ShareKit/Buttons.astro +62 -0
- package/src/components/sections/ShareKit/compact.astro +123 -0
- package/src/components/sections/ShareKit/index.astro +160 -0
- package/src/components/sections/ShareKit/share.ts +60 -0
- package/src/components/sections/ShareKit/strip.astro +173 -0
- package/src/components/sections/SignupCapture/band.astro +7 -0
- package/src/components/sections/SignupCapture/index.astro +103 -0
- package/src/components/sections/SignupCapture/inline.astro +7 -0
- package/src/components/sections/SocialFeed/index.astro +34 -0
- package/src/components/sections/StatCards/feature.astro +143 -0
- package/src/components/sections/StatCards/index.astro +51 -0
- package/src/components/sections/StatCards/ribbon.astro +113 -0
- package/src/components/sections/StatCards/wall.astro +177 -0
- package/src/components/sections/Store/featured.astro +14 -0
- package/src/components/sections/Store/index.astro +14 -0
- package/src/components/sections/Stories/Status.astro +42 -0
- package/src/components/sections/Stories/StoryCards.astro +171 -0
- package/src/components/sections/Stories/cards.astro +42 -0
- package/src/components/sections/Stories/index.astro +238 -0
- package/src/components/sections/Stories/stories.ts +97 -0
- package/src/components/sections/Stories/timeline.astro +135 -0
- package/src/components/sections/TeamGrid/board.astro +280 -0
- package/src/components/sections/TeamGrid/index.astro +71 -0
- package/src/components/sections/TeamGrid/list.astro +306 -0
- package/src/components/sections/TeamGrid/people.ts +178 -0
- package/src/components/sections/VideoEmbed/index.astro +52 -0
- package/src/components/sections/VideoEmbed/landscape.astro +7 -0
- package/src/components/sections/VideoEmbed/portrait.astro +7 -0
- package/src/components/sections/VideoEmbed/square.astro +7 -0
- package/src/components/sections/VoterTools/DaysLeft.astro +33 -0
- package/src/components/sections/VoterTools/Lookup.astro +43 -0
- package/src/components/sections/VoterTools/dates.astro +153 -0
- package/src/components/sections/VoterTools/index.astro +231 -0
- package/src/components/sections/VoterTools/polling.astro +144 -0
- package/src/components/sections/VoterTools/voter-tools.ts +71 -0
- package/src/components/sections/index.ts +373 -0
- package/src/components/sections/modules/Headed.astro +39 -0
- package/src/components/sections/modules/ModuleFrame.astro +181 -0
- package/src/components/store/CollectionPage.astro +40 -0
- package/src/components/store/ProductCard.astro +32 -0
- package/src/components/store/ProductGrid.astro +16 -0
- package/src/components/store/ProductPage.astro +146 -0
- package/src/components/store/StorePage.astro +137 -0
- package/src/components/store/StoreScript.astro +572 -0
- package/src/components/volunteer/ShiftLive.astro +90 -0
- package/src/components/volunteer/detail.astro +247 -0
- package/src/components/volunteer/list.astro +298 -0
- package/src/components/volunteer/props.ts +21 -0
- package/src/env.d.ts +22 -0
- package/src/index.d.ts +10 -0
- package/src/index.js +63 -0
- package/src/layouts/Site.astro +387 -0
- package/src/lib/academy.ts +146 -0
- package/src/lib/brand.ts +534 -0
- package/src/lib/chrome.ts +121 -0
- package/src/lib/donate-frame.ts +104 -0
- package/src/lib/entries.ts +190 -0
- package/src/lib/env.ts +34 -0
- package/src/lib/event-map-draw.ts +91 -0
- package/src/lib/events.ts +476 -0
- package/src/lib/fonts.ts +116 -0
- package/src/lib/footer.ts +24 -0
- package/src/lib/format.ts +160 -0
- package/src/lib/geo.ts +131 -0
- package/src/lib/live.ts +55 -0
- package/src/lib/menu.ts +48 -0
- package/src/lib/petition-text.ts +29 -0
- package/src/lib/reading.ts +17 -0
- package/src/lib/regions.ts +215 -0
- package/src/lib/section.ts +105 -0
- package/src/lib/shifts.ts +187 -0
- package/src/lib/store.ts +521 -0
- package/src/lib/stream-time.ts +20 -0
- package/src/lib/stream.ts +141 -0
- package/src/lib/visitor.ts +54 -0
- package/src/routes/catch-all.astro +435 -0
- package/src/routes/form.astro +30 -0
- package/src/routes/live.astro +49 -0
- package/src/routes/not-found.astro +18 -0
- package/src/routes/preview.astro +60 -0
- package/src/routes/setup.astro +62 -0
- package/src/routes/volunteer-shift.astro +61 -0
- package/src/styles/entries.css +784 -0
- package/src/styles/site.css +1910 -0
- package/src/styles/store.css +634 -0
- package/src/template.ts +182 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
---
|
|
2
|
+
// MediaKit · Press page (board 15, C): the kicker and the name (`heading`),
|
|
3
|
+
// then the press mentions (the rows of kind `mention`) at the left, each a
|
|
4
|
+
// row on the band's surface: the outlet in muted small capitals at the
|
|
5
|
+
// left, the title (a link to the piece when the row has an address) with
|
|
6
|
+
// "detail · March 14, 2026" under it at the right; on a phone the outlet
|
|
7
|
+
// sits over the title. At the right (under the mentions on a phone) the
|
|
8
|
+
// contact card in the contrast band's colours (on a section already on the
|
|
9
|
+
// contrast band, a tint of its ink): the contact heading ("Media
|
|
10
|
+
// inquiries"), the contact line, where an email address is a mailto: link
|
|
11
|
+
// and a web address a link, and the press kit link (`kitLabel` → `kitHref`)
|
|
12
|
+
// as the section's one button. A card with none of its words is left out
|
|
13
|
+
// and the mentions take the full width. Downloads, talks and appearances
|
|
14
|
+
// are the other layouts'. With no name and no mention it draws nothing.
|
|
15
|
+
import type { ComponentProps } from 'astro/types'
|
|
16
|
+
import type Default from './index.astro'
|
|
17
|
+
import Band from '../Band.astro'
|
|
18
|
+
import SectionHead from '../SectionHead.astro'
|
|
19
|
+
import { contactParts, mediaKitOf } from './kit'
|
|
20
|
+
|
|
21
|
+
type Props = ComponentProps<typeof Default>
|
|
22
|
+
|
|
23
|
+
const { section } = Astro.props
|
|
24
|
+
const found = mediaKitOf(section)
|
|
25
|
+
const { mentions, kit } = found
|
|
26
|
+
const card = found.contactHeading || found.contactLine || kit
|
|
27
|
+
const parts = found.contactLine ? contactParts(found.contactLine) : []
|
|
28
|
+
const level = found.heading ? 'h3' : 'h2'
|
|
29
|
+
const Title = level
|
|
30
|
+
---
|
|
31
|
+
{(found.heading || mentions.length > 0) && (
|
|
32
|
+
<Band section={section} class="mediakit mediakit-press">
|
|
33
|
+
<SectionHead kicker={found.kicker} heading={found.heading} more={[]} />
|
|
34
|
+
{(mentions.length > 0 || card) && (
|
|
35
|
+
<div class:list={['press', mentions.length > 0 && card && 'press-split']}>
|
|
36
|
+
{mentions.length > 0 && (
|
|
37
|
+
<ul class="press-list" role="list">
|
|
38
|
+
{mentions.map((mention) => (
|
|
39
|
+
<li class="press-item">
|
|
40
|
+
{mention.outlet && <p class="press-outlet">{mention.outlet}</p>}
|
|
41
|
+
<div class="press-words">
|
|
42
|
+
<Title class="press-title">{mention.link ? <a href={mention.link.href} rel={mention.link.rel}>{mention.title}</a> : mention.title}</Title>
|
|
43
|
+
{(mention.detail || mention.dayLabel) && (
|
|
44
|
+
<p class="press-meta">
|
|
45
|
+
{mention.detail}
|
|
46
|
+
{mention.detail && mention.dayLabel && ' · '}
|
|
47
|
+
{mention.dayLabel && <time datetime={mention.day}>{mention.dayLabel}</time>}
|
|
48
|
+
</p>
|
|
49
|
+
)}
|
|
50
|
+
</div>
|
|
51
|
+
</li>
|
|
52
|
+
))}
|
|
53
|
+
</ul>
|
|
54
|
+
)}
|
|
55
|
+
{card && (
|
|
56
|
+
<div class="press-contact bg-band-contrast">
|
|
57
|
+
{found.contactHeading && <Title class="press-contact-heading">{found.contactHeading}</Title>}
|
|
58
|
+
{parts.length > 0 && (
|
|
59
|
+
<p class="press-contact-line">
|
|
60
|
+
{parts.map((part) => (part.href ? <a href={part.href}>{part.text}</a> : part.text))}
|
|
61
|
+
</p>
|
|
62
|
+
)}
|
|
63
|
+
{kit && (
|
|
64
|
+
<p class="press-contact-action">
|
|
65
|
+
<a class="button" href={kit.href} rel={kit.rel}>
|
|
66
|
+
<svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" focusable="false">
|
|
67
|
+
<path d="M12 4v11m0 0-4.5-4.5M12 15l4.5-4.5M5 19.5h14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
68
|
+
</svg>
|
|
69
|
+
{kit.label}
|
|
70
|
+
</a>
|
|
71
|
+
</p>
|
|
72
|
+
)}
|
|
73
|
+
</div>
|
|
74
|
+
)}
|
|
75
|
+
</div>
|
|
76
|
+
)}
|
|
77
|
+
</Band>
|
|
78
|
+
)}
|
|
79
|
+
|
|
80
|
+
<style>
|
|
81
|
+
.press {
|
|
82
|
+
display: grid;
|
|
83
|
+
gap: 1.25rem;
|
|
84
|
+
}
|
|
85
|
+
.press-list {
|
|
86
|
+
display: grid;
|
|
87
|
+
gap: 0.625rem;
|
|
88
|
+
align-content: start;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
margin: 0;
|
|
91
|
+
padding: 0;
|
|
92
|
+
list-style: none;
|
|
93
|
+
}
|
|
94
|
+
.press-item {
|
|
95
|
+
display: grid;
|
|
96
|
+
gap: 0.25rem;
|
|
97
|
+
padding: 1rem 1.125rem;
|
|
98
|
+
border: 1px solid var(--line);
|
|
99
|
+
border-radius: var(--radius);
|
|
100
|
+
background: var(--surface);
|
|
101
|
+
}
|
|
102
|
+
.press-item > * {
|
|
103
|
+
margin: 0;
|
|
104
|
+
}
|
|
105
|
+
.press-outlet {
|
|
106
|
+
color: var(--muted);
|
|
107
|
+
font-size: var(--text-xs);
|
|
108
|
+
font-weight: 800;
|
|
109
|
+
letter-spacing: 0.1em;
|
|
110
|
+
line-height: 1.45;
|
|
111
|
+
text-transform: uppercase;
|
|
112
|
+
overflow-wrap: anywhere;
|
|
113
|
+
}
|
|
114
|
+
.press-words {
|
|
115
|
+
min-width: 0;
|
|
116
|
+
}
|
|
117
|
+
.press-words > * {
|
|
118
|
+
margin: 0;
|
|
119
|
+
}
|
|
120
|
+
.press-words .press-title {
|
|
121
|
+
font-family: var(--font);
|
|
122
|
+
font-size: var(--text);
|
|
123
|
+
font-weight: 700;
|
|
124
|
+
letter-spacing: 0;
|
|
125
|
+
line-height: 1.35;
|
|
126
|
+
text-wrap: pretty;
|
|
127
|
+
}
|
|
128
|
+
.press-title a {
|
|
129
|
+
color: var(--ink);
|
|
130
|
+
}
|
|
131
|
+
.press-words .press-meta {
|
|
132
|
+
margin-top: 0.25rem;
|
|
133
|
+
color: var(--muted);
|
|
134
|
+
font-size: var(--text-sm);
|
|
135
|
+
}
|
|
136
|
+
.press-contact {
|
|
137
|
+
align-self: start;
|
|
138
|
+
min-width: 0;
|
|
139
|
+
padding: clamp(1.375rem, 1rem + 1.5vw, 2rem);
|
|
140
|
+
border-radius: var(--radius-card);
|
|
141
|
+
background: var(--bg-band-background);
|
|
142
|
+
color: var(--bg-band-color);
|
|
143
|
+
}
|
|
144
|
+
:global(.bg-band-contrast) .press-contact {
|
|
145
|
+
border: 1px solid var(--line);
|
|
146
|
+
background: color-mix(in srgb, var(--ink) 7%, transparent);
|
|
147
|
+
}
|
|
148
|
+
.press-contact > * {
|
|
149
|
+
margin: 0;
|
|
150
|
+
}
|
|
151
|
+
.press-contact .press-contact-heading {
|
|
152
|
+
font-size: var(--h3);
|
|
153
|
+
}
|
|
154
|
+
.press-contact .press-contact-line {
|
|
155
|
+
margin-top: 0.5rem;
|
|
156
|
+
overflow-wrap: anywhere;
|
|
157
|
+
}
|
|
158
|
+
.press-contact .press-contact-action {
|
|
159
|
+
margin-top: 1.25rem;
|
|
160
|
+
}
|
|
161
|
+
.press-contact > :first-child {
|
|
162
|
+
margin-top: 0;
|
|
163
|
+
}
|
|
164
|
+
.press-contact-action .button {
|
|
165
|
+
max-width: 100%;
|
|
166
|
+
}
|
|
167
|
+
/* With no mention, the card alone keeps a card's width. */
|
|
168
|
+
.press-contact:only-child {
|
|
169
|
+
max-width: 36rem;
|
|
170
|
+
}
|
|
171
|
+
@media (min-width: 40rem) {
|
|
172
|
+
.press-item {
|
|
173
|
+
grid-template-columns: 9.5rem minmax(0, 1fr);
|
|
174
|
+
gap: 1rem;
|
|
175
|
+
align-items: baseline;
|
|
176
|
+
padding: 1.125rem 1.25rem;
|
|
177
|
+
}
|
|
178
|
+
.press-words {
|
|
179
|
+
grid-column: 2;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
@media (min-width: 56rem) {
|
|
183
|
+
.press-split {
|
|
184
|
+
grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
|
|
185
|
+
gap: clamp(1.5rem, 3vw, 2.25rem);
|
|
186
|
+
align-items: start;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
</style>
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
---
|
|
2
|
+
// MediaKit · Speaker one-sheet (board 15, B): a filled panel in the contrast
|
|
3
|
+
// band's colours (on a section already on the contrast band, a tint of its
|
|
4
|
+
// ink). At the left the kicker ("Book Jordan to speak"), the name
|
|
5
|
+
// (`heading`) in the display face, the line under it (`role`), the facts
|
|
6
|
+
// line small, and the booking link (`bookLabel` → `bookHref`) as the
|
|
7
|
+
// section's one button. At the right (under the words on a phone) the talks
|
|
8
|
+
// heading over the talks (the rows of kind `talk`), each its title with the
|
|
9
|
+
// detail ("45 min keynote") muted beside or under it, between thin rules.
|
|
10
|
+
// Under the panel the past appearances (the rows of kind `appearance`) as a
|
|
11
|
+
// row of outlined tiles, each the outlet's name (the title when there is no
|
|
12
|
+
// outlet) in small capitals, a link when the row has an address. Downloads
|
|
13
|
+
// and mentions are the other layouts'. With no name, no talk and no
|
|
14
|
+
// appearance it draws nothing.
|
|
15
|
+
import type { ComponentProps } from 'astro/types'
|
|
16
|
+
import type Default from './index.astro'
|
|
17
|
+
import Band from '../Band.astro'
|
|
18
|
+
import { mediaKitOf } from './kit'
|
|
19
|
+
|
|
20
|
+
type Props = ComponentProps<typeof Default>
|
|
21
|
+
|
|
22
|
+
const { section } = Astro.props
|
|
23
|
+
const found = mediaKitOf(section)
|
|
24
|
+
const { talks, appearances, book } = found
|
|
25
|
+
const words = found.kicker || found.heading || found.role || found.facts || book
|
|
26
|
+
const level = found.heading ? 'h3' : 'h2'
|
|
27
|
+
const Talks = level
|
|
28
|
+
---
|
|
29
|
+
{(found.heading || talks.length > 0 || appearances.length > 0) && (
|
|
30
|
+
<Band section={section} class="mediakit mediakit-speaker">
|
|
31
|
+
{(words || talks.length > 0) && (
|
|
32
|
+
<div class:list={['speaker-panel', 'bg-band-contrast', words && talks.length > 0 && 'speaker-split']}>
|
|
33
|
+
{words && (
|
|
34
|
+
<div class="speaker-words">
|
|
35
|
+
{found.kicker && <p class="kicker">{found.kicker}</p>}
|
|
36
|
+
{found.heading && <h2 class="speaker-name">{found.heading}</h2>}
|
|
37
|
+
{found.role && <p class="speaker-role">{found.role}</p>}
|
|
38
|
+
{found.facts && <p class="speaker-facts">{found.facts}</p>}
|
|
39
|
+
{book && (
|
|
40
|
+
<p class="speaker-action">
|
|
41
|
+
<a class="button" href={book.href} rel={book.rel}>{book.label}</a>
|
|
42
|
+
</p>
|
|
43
|
+
)}
|
|
44
|
+
</div>
|
|
45
|
+
)}
|
|
46
|
+
{talks.length > 0 && (
|
|
47
|
+
<div class="speaker-talks">
|
|
48
|
+
{found.talksHeading && <Talks class="speaker-talks-heading">{found.talksHeading}</Talks>}
|
|
49
|
+
<ul class="speaker-talk-list" role="list">
|
|
50
|
+
{talks.map((talk) => (
|
|
51
|
+
<li class="speaker-talk">
|
|
52
|
+
<span class="speaker-talk-title">{talk.link ? <a href={talk.link.href} rel={talk.link.rel}>{talk.title}</a> : talk.title}</span>
|
|
53
|
+
{talk.detail && <span class="speaker-talk-detail">{talk.detail}</span>}
|
|
54
|
+
</li>
|
|
55
|
+
))}
|
|
56
|
+
</ul>
|
|
57
|
+
</div>
|
|
58
|
+
)}
|
|
59
|
+
</div>
|
|
60
|
+
)}
|
|
61
|
+
{appearances.length > 0 && (
|
|
62
|
+
<ul class="speaker-appearances" role="list" aria-label="Past appearances">
|
|
63
|
+
{appearances.map((appearance) => {
|
|
64
|
+
const name = appearance.outlet ?? appearance.title
|
|
65
|
+
return (
|
|
66
|
+
<li>
|
|
67
|
+
{appearance.link ? (
|
|
68
|
+
<a class="speaker-tile speaker-tile-linked" href={appearance.link.href} rel={appearance.link.rel}>{name}</a>
|
|
69
|
+
) : (
|
|
70
|
+
<span class="speaker-tile">{name}</span>
|
|
71
|
+
)}
|
|
72
|
+
</li>
|
|
73
|
+
)
|
|
74
|
+
})}
|
|
75
|
+
</ul>
|
|
76
|
+
)}
|
|
77
|
+
</Band>
|
|
78
|
+
)}
|
|
79
|
+
|
|
80
|
+
<style>
|
|
81
|
+
.speaker-panel {
|
|
82
|
+
display: grid;
|
|
83
|
+
gap: 1.75rem;
|
|
84
|
+
padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
|
|
85
|
+
border-radius: var(--radius-card);
|
|
86
|
+
background: var(--bg-band-background);
|
|
87
|
+
color: var(--bg-band-color);
|
|
88
|
+
}
|
|
89
|
+
:global(.bg-band-contrast) .speaker-panel {
|
|
90
|
+
border: 1px solid var(--line);
|
|
91
|
+
background: color-mix(in srgb, var(--ink) 7%, transparent);
|
|
92
|
+
}
|
|
93
|
+
.speaker-words {
|
|
94
|
+
min-width: 0;
|
|
95
|
+
}
|
|
96
|
+
.speaker-words > * {
|
|
97
|
+
margin: 0;
|
|
98
|
+
}
|
|
99
|
+
.speaker-words .speaker-name {
|
|
100
|
+
font-size: clamp(2rem, 1.4rem + 2vw, 2.875rem);
|
|
101
|
+
font-weight: 800;
|
|
102
|
+
line-height: 1.05;
|
|
103
|
+
}
|
|
104
|
+
.speaker-words .speaker-role {
|
|
105
|
+
margin-top: 0.625rem;
|
|
106
|
+
font-size: var(--text-lg);
|
|
107
|
+
font-weight: 600;
|
|
108
|
+
line-height: 1.35;
|
|
109
|
+
}
|
|
110
|
+
.speaker-words .speaker-facts {
|
|
111
|
+
margin-top: 0.625rem;
|
|
112
|
+
color: var(--muted);
|
|
113
|
+
font-size: var(--text-sm);
|
|
114
|
+
}
|
|
115
|
+
.speaker-words .speaker-action {
|
|
116
|
+
margin-top: 1.5rem;
|
|
117
|
+
}
|
|
118
|
+
.speaker-talks {
|
|
119
|
+
min-width: 0;
|
|
120
|
+
}
|
|
121
|
+
.speaker-talks .speaker-talks-heading {
|
|
122
|
+
margin: 0 0 0.25rem;
|
|
123
|
+
font-family: var(--font);
|
|
124
|
+
font-size: var(--text);
|
|
125
|
+
font-weight: 700;
|
|
126
|
+
letter-spacing: 0;
|
|
127
|
+
line-height: 1.4;
|
|
128
|
+
}
|
|
129
|
+
.speaker-talk-list {
|
|
130
|
+
margin: 0;
|
|
131
|
+
padding: 0;
|
|
132
|
+
list-style: none;
|
|
133
|
+
}
|
|
134
|
+
.speaker-talk {
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-wrap: wrap;
|
|
137
|
+
align-items: baseline;
|
|
138
|
+
justify-content: space-between;
|
|
139
|
+
gap: 0.125rem 1rem;
|
|
140
|
+
padding: 0.875rem 0;
|
|
141
|
+
border-bottom: 1px solid var(--line);
|
|
142
|
+
}
|
|
143
|
+
.speaker-talk-title {
|
|
144
|
+
font-family: var(--font-display);
|
|
145
|
+
font-size: var(--text-lg);
|
|
146
|
+
font-weight: 600;
|
|
147
|
+
line-height: 1.3;
|
|
148
|
+
}
|
|
149
|
+
.speaker-talk-title a {
|
|
150
|
+
color: var(--ink);
|
|
151
|
+
}
|
|
152
|
+
.speaker-talk-detail {
|
|
153
|
+
color: var(--muted);
|
|
154
|
+
font-size: var(--text-sm);
|
|
155
|
+
}
|
|
156
|
+
.speaker-appearances {
|
|
157
|
+
display: grid;
|
|
158
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
|
|
159
|
+
gap: 0.625rem;
|
|
160
|
+
margin: 1rem 0 0;
|
|
161
|
+
padding: 0;
|
|
162
|
+
list-style: none;
|
|
163
|
+
}
|
|
164
|
+
.speaker-appearances:first-child {
|
|
165
|
+
margin-top: 0;
|
|
166
|
+
}
|
|
167
|
+
.speaker-tile {
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
justify-content: center;
|
|
171
|
+
height: 100%;
|
|
172
|
+
min-height: 3.5rem;
|
|
173
|
+
padding: 0.75rem;
|
|
174
|
+
border: 1px solid var(--line-strong);
|
|
175
|
+
border-radius: var(--radius);
|
|
176
|
+
color: var(--muted);
|
|
177
|
+
font-size: var(--text-xs);
|
|
178
|
+
font-weight: 800;
|
|
179
|
+
letter-spacing: 0.08em;
|
|
180
|
+
line-height: 1.35;
|
|
181
|
+
text-align: center;
|
|
182
|
+
text-transform: uppercase;
|
|
183
|
+
overflow-wrap: anywhere;
|
|
184
|
+
}
|
|
185
|
+
.speaker-tile-linked {
|
|
186
|
+
text-decoration: none;
|
|
187
|
+
}
|
|
188
|
+
.speaker-tile-linked:hover {
|
|
189
|
+
border-color: var(--ink);
|
|
190
|
+
color: var(--ink);
|
|
191
|
+
text-decoration: underline;
|
|
192
|
+
}
|
|
193
|
+
@media (min-width: 48rem) {
|
|
194
|
+
.speaker-split {
|
|
195
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
196
|
+
gap: clamp(2rem, 4vw, 3.5rem);
|
|
197
|
+
align-items: start;
|
|
198
|
+
}
|
|
199
|
+
.speaker-appearances {
|
|
200
|
+
grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
|
|
201
|
+
gap: 0.875rem;
|
|
202
|
+
margin-top: 1.25rem;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
</style>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
// The program's benefits as a checked list: a check mark in the accent (or
|
|
3
|
+
// `--ms-check`, set by a layout on a filled ground) beside each benefit, in
|
|
4
|
+
// the program's order. Draws nothing without one.
|
|
5
|
+
import Check from './Check.astro'
|
|
6
|
+
|
|
7
|
+
interface Props {
|
|
8
|
+
items: string[]
|
|
9
|
+
class?: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const { items, class: className } = Astro.props
|
|
13
|
+
---
|
|
14
|
+
{items.length > 0 && (
|
|
15
|
+
<ul class:list={['ms-benefits', className]} role="list">
|
|
16
|
+
{items.map((benefit) => (
|
|
17
|
+
<li>
|
|
18
|
+
<Check />
|
|
19
|
+
<span>{benefit}</span>
|
|
20
|
+
</li>
|
|
21
|
+
))}
|
|
22
|
+
</ul>
|
|
23
|
+
)}
|
|
24
|
+
|
|
25
|
+
<style>
|
|
26
|
+
.ms-benefits {
|
|
27
|
+
display: grid;
|
|
28
|
+
gap: 0.5rem;
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding: 0;
|
|
31
|
+
list-style: none;
|
|
32
|
+
}
|
|
33
|
+
.ms-benefits li {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: flex-start;
|
|
36
|
+
gap: 0.625rem;
|
|
37
|
+
line-height: 1.45;
|
|
38
|
+
}
|
|
39
|
+
.ms-benefits li :global(.ms-check) {
|
|
40
|
+
margin-top: 0.2em;
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
// The check mark beside a benefit and in the Compare table's cells: drawn,
|
|
3
|
+
// never read (what it means is said in words beside it).
|
|
4
|
+
---
|
|
5
|
+
<svg class="ms-check" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" focusable="false"><path d="M3 8.5l3.2 3.2L13 4.8" fill="none" stroke="currentColor" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round" /></svg>
|
|
6
|
+
|
|
7
|
+
<style>
|
|
8
|
+
.ms-check {
|
|
9
|
+
flex: 0 0 auto;
|
|
10
|
+
color: var(--ms-check, var(--accent));
|
|
11
|
+
}
|
|
12
|
+
</style>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
// A Membership price as every layout says it: the amount in the display face
|
|
3
|
+
// and the cadence after it ("$25/yr", "$500 once, for life"), with "from"
|
|
4
|
+
// before a floor (a donation program's minimum, or the least of several
|
|
5
|
+
// offers). A slash suffix is read aloud as words ("$25 a year"). With no
|
|
6
|
+
// amount and no cadence it is a free program's "Free". The amount's size is
|
|
7
|
+
// the caller's: set `--ms-price-size` on any ancestor.
|
|
8
|
+
import { price, type Cadence } from './offers'
|
|
9
|
+
|
|
10
|
+
interface Props {
|
|
11
|
+
cents: number | null
|
|
12
|
+
cadence: Cadence | null
|
|
13
|
+
from?: boolean
|
|
14
|
+
class?: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const { cents, cadence, from = false, class: className } = Astro.props
|
|
18
|
+
const p = cents !== null && cadence !== null ? price(cents, cadence) : null
|
|
19
|
+
---
|
|
20
|
+
<span class:list={['ms-price', className]}>
|
|
21
|
+
{p ? (
|
|
22
|
+
<>
|
|
23
|
+
{from && <span class="ms-price-from">from </span>}
|
|
24
|
+
<span class="ms-price-amount">{p.amount}</span>
|
|
25
|
+
{p.spaced ? (
|
|
26
|
+
<span class="ms-price-suffix ms-price-words"> {p.suffix}</span>
|
|
27
|
+
) : (
|
|
28
|
+
<>
|
|
29
|
+
<span class="ms-price-suffix" aria-hidden="true">{p.suffix}</span>
|
|
30
|
+
<span class="visually-hidden"> {p.spoken}</span>
|
|
31
|
+
</>
|
|
32
|
+
)}
|
|
33
|
+
</>
|
|
34
|
+
) : (
|
|
35
|
+
<span class="ms-price-amount">Free</span>
|
|
36
|
+
)}
|
|
37
|
+
</span>
|
|
38
|
+
|
|
39
|
+
<style>
|
|
40
|
+
.ms-price {
|
|
41
|
+
display: inline;
|
|
42
|
+
font-variant-numeric: lining-nums tabular-nums;
|
|
43
|
+
}
|
|
44
|
+
.ms-price-amount {
|
|
45
|
+
font-family: var(--font-display);
|
|
46
|
+
font-size: var(--ms-price-size, 1em);
|
|
47
|
+
font-weight: 800;
|
|
48
|
+
letter-spacing: -0.02em;
|
|
49
|
+
line-height: 1;
|
|
50
|
+
}
|
|
51
|
+
.ms-price-from,
|
|
52
|
+
.ms-price-suffix {
|
|
53
|
+
font-size: max(0.875rem, calc(var(--ms-price-size, 1em) * 0.36));
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
letter-spacing: 0;
|
|
56
|
+
}
|
|
57
|
+
.ms-price-from,
|
|
58
|
+
.ms-price-words {
|
|
59
|
+
opacity: 0.82;
|
|
60
|
+
}
|
|
61
|
+
</style>
|