-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathindex.js
88 lines (80 loc) · 2.73 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import React from 'react'
import classNames from 'classnames'
import Head from '@docusaurus/Head'
import Nav from '../components/Nav/index'
import Hero from '../components/Hero'
import Features from '../components/Features'
import Roadmap from '../components/Roadmap'
import Testimonials from '../components/Testimonials'
import ExampleWaspApps from '../components/ExampleWaspApps'
import HowItWorks from '../components/HowItWorks'
import ShowcaseGallery from '../components/ShowcaseGallery'
import Newsletter from '../components/Newsletter'
import Faq from '../components/Faq'
import Footer from '../components/Footer'
import waspCoverPhoto from '../../static/img/wasp_twitter_cover.png'
import styles from './styles.module.css'
import './index.css'
import './preflight.css'
import '../prism/prismCustomization'
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
const Background = () => {
return (
<div className="pointer-events-none absolute left-0 top-0 h-full w-full overflow-hidden">
<span className={classNames(styles.leftLights, 'opacity-100')} />
</div>
)
}
const LightsTwo = () => (
<div className="pointer-events-none absolute left-0 top-[1800px] h-full w-full overflow-hidden lg:top-[1000px]">
<span className={classNames(styles.lightsTwo, 'opacity-100')} />
</div>
)
const Index = () => {
const { siteConfig } = useDocusaurusContext()
const coverPhotoAbsoluteUrl = `${siteConfig.url}${waspCoverPhoto}`
return (
<div className="twLandingPage">
<Head>
{/* opengraph / facebook */}
<meta property="og:type" content="website" />
<meta property="og:url" content="https://wasp.sh/" />
<meta
property="og:description"
content="Develop full-stack web apps without boilerplate."
/>
<meta property="og:image" content={coverPhotoAbsoluteUrl} />
{/* twitter */}
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://wasp.sh/" />
<meta
property="twitter:title"
content="Develop full-stack web apps without boilerplate."
/>
<meta property="twitter:image" content={coverPhotoAbsoluteUrl} />
</Head>
<Nav />
<div className="min-h-screen">
<main>
<Background />
<div>
{/* container */}
<Hero />
<Features />
<HowItWorks />
<ExampleWaspApps />
<Testimonials />
<LightsTwo />
<ShowcaseGallery />
<Newsletter />
<Roadmap />
<Faq />
</div>
{/* eof container */}
</main>
</div>
<Footer />
</div>
)
}
export default Index