mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-19 00:31:39 -07:00
* Addresses issue #16 - Add styles via sass and module imports Adds typed scss imports via gatsby-plugin-sass. Makes use of .d.scss file generated by gatsby-plugin-scss-typescript, but avoids importing that directly while they work out issue in gatsby v3. * adding vscode config for easier local debugging
19 lines
No EOL
459 B
TypeScript
19 lines
No EOL
459 B
TypeScript
import React, { ReactNode } from "react";
|
|
import * as styles from './layout.module.scss';
|
|
import J40Header from './J40Header';
|
|
import J40Footer from "./J40Footer";
|
|
interface ILayoutProps {
|
|
children: ReactNode
|
|
}
|
|
|
|
const Layout = ({ children }: ILayoutProps) => {
|
|
return (
|
|
<div className={styles.site}>
|
|
<J40Header />
|
|
<div className={styles.siteContent}>{children}</div>
|
|
<J40Footer />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Layout; |