This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, {FunctionComponent, Fragment} from 'react'; | |
| import Link from 'next/link'; | |
| import { getHref, getNavigationLink } from '../../helpers/helper'; | |
| import 'styles.css'; | |
| type Props = { | |
| info: { id: string, title: string; description: string; heroImage: string; publishedAt: Date; slug: string } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, {FunctionComponent, Fragment, ReactNode} from 'react'; | |
| type Props = { | |
| children: ReactNode; | |
| } | |
| const Layout: FunctionComponent<Props> = ({children}) => { | |
| return ( | |
| <Fragment> | |
| <div className="layout"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Fragment, FunctionComponent } from 'react'; | |
| import Head from 'next/head'; | |
| import { MetaTags } from '../../../interfaces/meta-tags'; | |
| type Props = { | |
| tags: MetaTags; | |
| } | |
| const Meta: FunctionComponent<Props> = ({tags}) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export enum PageType { | |
| website = 'website', | |
| article = 'article' | |
| } | |
| export enum RobotsContent { | |
| follow = 'follow', | |
| index = 'index', | |
| no_follow = 'nofollow', | |
| no_index = 'noindex' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createClient } from 'contentful'; | |
| export const CONTENT_TYPE_BLOGPOST = 'blogPost'; | |
| export const CONTENT_TYPE_PERSON = 'author'; | |
| export const CONTENT_TYPE_TAGS = 'tag'; | |
| const Space = process.env.CONTENTFUL_SPACE; | |
| const Token = process.env.CONTENTFUL_TOKEN; | |
| export class ContentfulService { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const authorFields = [ | |
| { | |
| id: 'name', | |
| name: 'Name', | |
| type: 'Symbol', | |
| required: true | |
| }, | |
| { | |
| id: 'title', | |
| name: 'Job Title', |
NewerOlder