Feature/build step (#2)
* BundleAnalyzerPlugin * lazy load highlight.js * seperate bundles for each page * prerender apps to html on build * preload important font files * dont prerender code copy button * fix woff2 variant of font * added missing doctype * remove metatags component
This commit is contained in:
26
packages/dev-tools-pages/ts/components/Base.tsx
Normal file
26
packages/dev-tools-pages/ts/components/Base.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import * as React from 'react';
|
||||
|
||||
import ThemeContext from 'ts/context';
|
||||
import GlobalStyles from 'ts/globalStyles';
|
||||
import Header from 'ts/components/Header';
|
||||
import Hero from 'ts/components/Hero';
|
||||
import Footer from 'ts/components/Footer';
|
||||
|
||||
interface BaseProps {
|
||||
context: any;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
function Base(props: BaseProps) {
|
||||
return (
|
||||
<ThemeContext.Provider value={props.context}>
|
||||
<GlobalStyles />
|
||||
<Header />
|
||||
<Hero />
|
||||
{props.children}
|
||||
<Footer />
|
||||
</ThemeContext.Provider>
|
||||
);
|
||||
}
|
||||
|
||||
export default Base;
|
Reference in New Issue
Block a user