mirror of
https://github.com/jambonz/next-static-site.git
synced 2026-11-02 01:24:39 +00:00
Remove Nextra -- Custom docs theme
This commit is contained in:
1 parent
10960dd69f
commit
51b270cb80
45 files changed
+785
-1520
No files matched your search
@@ -1,7 +1,9 @@
|
||||
import { nanoid } from 'nanoid';
|
||||
|
||||
import Link from 'next/link';
|
||||
|
||||
import { Button } from './jambonz-ui';
|
||||
import { homeObj } from '../lib/vars';
|
||||
import { nanoid } from 'nanoid';
|
||||
|
||||
function FooterItem({ obj }) {
|
||||
return (
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
import Link from 'next/link';
|
||||
import classNames from 'classnames';
|
||||
import * as Icons from 'react-feather';
|
||||
import { nanoid } from 'nanoid';
|
||||
import { mobileMedia } from '../lib/vars';
|
||||
import { useState, useEffect } from 'react';
|
||||
|
||||
import Link from 'next/link';
|
||||
|
||||
import { mobileMedia } from '../lib/vars';
|
||||
|
||||
|
||||
// Normalize how we work with the subtext as an array[]
|
||||
export function normalizeSubtext(subtext) {
|
||||
if (!Array.isArray(subtext)) {
|
||||
@@ -93,7 +96,7 @@ export function Hero({ data, subStyle }) {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={classNames(classes)}>
|
||||
<section className={classNames(classes)}>
|
||||
<div className="wrap hero__wrap">
|
||||
<div className="hero__headline">
|
||||
<H1>{data.headline}</H1>
|
||||
@@ -109,7 +112,7 @@ export function Hero({ data, subStyle }) {
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import Head from 'next/head';
|
||||
|
||||
import Navi from './navi';
|
||||
import Footer from './footer';
|
||||
|
||||
|
||||
+6
-4
@@ -1,16 +1,18 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useState } from 'react';
|
||||
import { nanoid } from 'nanoid';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import Link from 'next/link';
|
||||
import { useRouter } from 'next/router';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import { Button, Icon, useMobileMedia } from './jambonz-ui';
|
||||
import { homeObj } from '../lib/vars';
|
||||
import { nanoid } from 'nanoid';
|
||||
|
||||
function NaviItem({obj}) {
|
||||
const router = useRouter();
|
||||
const classes = {
|
||||
navi__link: true,
|
||||
active: (router.route === obj.link),
|
||||
active: (router.route.replace('/[[...slug]]', '') === obj.link),
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user