11import React from 'react' ;
22import Link from '@docusaurus/Link' ;
3- import RotatingWord from '@site/src/components /RotatingWord' ;
3+ import RotatingWord from '. /RotatingWord' ;
44import styles from './home.module.css' ;
55
6- export default function Home ( ) {
6+ export function Hero ( { children } ) {
7+ return < section className = { styles . hero } > { children } </ section > ;
8+ }
9+
10+ export function HeroHeadline ( ) {
711 return (
8- < >
9- < section className = { styles . hero } >
10- < div className = { styles . headline } >
11- < div className = { styles . headlineTop } >
12- < span className = { styles . headlineStatic } > Overture</ span >
13- < span className = { styles . headlineIs } > is</ span >
14- </ div >
15- < RotatingWord />
16- </ div >
12+ < div className = { styles . headline } >
13+ < div className = { styles . headlineTop } >
14+ < span className = { styles . headlineStatic } > Overture</ span >
15+ < span className = { styles . headlineIs } > is</ span >
16+ </ div >
17+ < RotatingWord />
18+ </ div >
19+ ) ;
20+ }
21+
22+ export function HeroSubtext ( { children } ) {
23+ return < p className = { styles . subtext } > { children } </ p > ;
24+ }
25+
26+ export function HeroCTAs ( { children } ) {
27+ return < div className = { styles . ctaRow } > { children } </ div > ;
28+ }
1729
18- < p className = { styles . subtext } >
19- A platform for bringing together tech companies, mapping organizations,
20- government agencies, open data communities, and researchers to build
21- open, reliable, and interoperable map data infrastructure.
22- </ p >
30+ export function PrimaryButton ( { to, children } ) {
31+ return (
32+ < Link to = { to } className = { styles . btnPrimary } >
33+ { children }
34+ </ Link >
35+ ) ;
36+ }
2337
24- < div className = { styles . ctaRow } >
25- < Link to = "/getting-data/" className = { styles . btnPrimary } >
26- Quick start
27- </ Link >
28- < a href = "https://explore.overturemaps.org" className = { styles . btnSecondary } target = "_blank" rel = "noopener noreferrer" >
29- Explore the data and schema { '\u2192' }
30- </ a >
31- </ div >
32- </ section >
38+ export function SecondaryButton ( { href, children } ) {
39+ return (
40+ < a
41+ href = { href }
42+ className = { styles . btnSecondary }
43+ target = "_blank"
44+ rel = "noopener noreferrer"
45+ >
46+ { children }
47+ </ a >
48+ ) ;
49+ }
3350
34- < div className = { styles . explorerSection } >
35- < div className = { styles . explorerFrame } >
36- < iframe
37- src = "https://explore.overturemaps.org"
38- title = "Overture Maps Explorer"
39- loading = "lazy"
40- allow = "fullscreen"
41- />
42- < a
43- className = { styles . explorerOpen }
44- href = "https://explore.overturemaps.org"
45- target = "_blank"
46- rel = "noopener noreferrer"
47- >
48- Open full screen { '\u2197' }
49- </ a >
50- </ div >
51+ export function ExplorerEmbed ( { src = 'https://explore.overturemaps.org' } ) {
52+ return (
53+ < div className = { styles . explorerSection } >
54+ < div className = { styles . explorerFrame } >
55+ < iframe
56+ src = { src }
57+ title = "Overture Maps Explorer"
58+ loading = "lazy"
59+ allow = "fullscreen"
60+ />
61+ < a
62+ className = { styles . explorerOpen }
63+ href = "https://explore.overturemaps.org"
64+ target = "_blank"
65+ rel = "noopener noreferrer"
66+ >
67+ Open full screen { '\u2197' }
68+ </ a >
5169 </ div >
52- </ >
70+ </ div >
5371 ) ;
54- }
72+ }
0 commit comments