mirror of
https://github.com/jambonz/next-static-site.git
synced 2025-12-19 04:47:44 +00:00
* Initial refactor of jambonz-ui package library * Delete public/fonts directory * Jambonz UI test-app and some refinements * next lint * working on jambonz ui docs * Update package.json * Update package.json * Update package.json * Create package.json * typescript * Update components.tsx * Update components.tsx * Update utils.ts * Update icons.ts * Update components.tsx * Update components.tsx * Update icons.ts * Update components.tsx * Update _icons.scss * Update components.tsx * Update components.tsx * fix some thangs and compile all * wrap up the docs * Update tsconfig.json * icons refactor * refine docs * update readmes * update readme * fix props interfaces and test in TS app * Update components.tsx * button up some things * change package name... * include readme in pkg dist * use published package
29 lines
737 B
JavaScript
29 lines
737 B
JavaScript
import Layout, { Hero, TextLayout } from '../src/components/layout';
|
|
import { getData, getParsedMarkdown } from '../src/lib/data';
|
|
import path from 'path';
|
|
|
|
export default function Terms({ data, parsed }) {
|
|
return (
|
|
<Layout siteData={data.site}>
|
|
<Hero data={data.terms.hero} subStyle="terms" />
|
|
<section className="wrap pad-b">
|
|
<TextLayout data={parsed} name="terms" />
|
|
</section>
|
|
</Layout>
|
|
);
|
|
}
|
|
|
|
export async function getStaticProps() {
|
|
const data = getData('terms');
|
|
|
|
// Use the new public method in a more ad hoc manner like this...
|
|
const parsed = await getParsedMarkdown(path.join(process.cwd(), 'markdown', 'terms.md'));
|
|
|
|
return {
|
|
props: {
|
|
data,
|
|
parsed,
|
|
},
|
|
};
|
|
}
|