-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
25 lines (22 loc) · 734 Bytes
/
index.js
File metadata and controls
25 lines (22 loc) · 734 Bytes
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
import EmailForm from '../components/EmailForm';
import Footer from '../components/Footer';
import Header from '../components/Header';
import Layout from '../components/Layout';
import { getGlobalData } from '../utils/global-data';
import SEO from '../components/SEO';
export default function Index({ globalData }) {
return (
<Layout>
<SEO title={globalData.name} description={globalData.blogTitle} />
<Header name={globalData.name} />
<main className="w-full bg-black min-h-screen">
<EmailForm />
</main>
<Footer copyrightText={globalData.footerText} />
</Layout>
);
}
export function getStaticProps() {
const globalData = getGlobalData();
return { props: { globalData } };
}