Skip to content

Commit

Permalink
update repo
Browse files Browse the repository at this point in the history
  • Loading branch information
miltonbolonha committed Jan 8, 2024
1 parent c397a75 commit 4649625
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 144 deletions.
7 changes: 6 additions & 1 deletion next-boilerplate/src/containers/MainWrapperContainer.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React, { useState, useEffect } from "react";
import SeoContainer from "./SeoContainer";
import MainWrapper from "../components/MainWrapper";
import mainConfigs from "../configs/main-infos.json";
import { useTheme } from "next-themes";

const MainWrapperContainer = ({ children, rowWidth }) => {
const MainWrapperContainer = ({ children, rowWidth, data, killSEO }) => {
const [mounted, setMounted] = useState(false);
const { theme } = useTheme();
const isGithubPages = process.env.IS_GITHUB_PAGE || false;
Expand Down Expand Up @@ -33,6 +34,10 @@ const MainWrapperContainer = ({ children, rowWidth }) => {
rowWidth={rowWidth}
killSeo={true}
>
<SeoContainer
killSeo={data && killSEO || false}
data={data}
/>
{children}
</MainWrapper>
);
Expand Down
54 changes: 25 additions & 29 deletions next-boilerplate/src/pages/404.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,34 @@ import Link from "next/link";
import MainWrapperContainer from "../containers/MainWrapperContainer";
import Row from "../containers/RowContainer";
import Image from "next/image";
import SeoContainer from "../containers/SeoContainer";
import { slugPrefix } from "../lib/utils";
import mainConfigs from "../configs/main-infos.json";

const infos = {
slug: mainConfigs.pages.about.slug,
title: `${mainConfigs.pages.about.title} - ${mainConfigs.business.brandName}`,
description: mainConfigs.pages.about.description,
author: mainConfigs.website.author,
siteUrl: mainConfigs.website.siteUrl,
brandName: mainConfigs.business.brandName,
brandEmail: mainConfigs.business.brandEmail,
brandLogo: mainConfigs.business.brandLogo,
brandPhone: mainConfigs.business.brandPhone,
brandDescription: mainConfigs.business.brandDescription,
brandCardImage: mainConfigs.business.brandCardImage,
featuredImage: `${mainConfigs.website.siteUrl}${slugPrefix}/favicon-32x32.png`,
datePublished: mainConfigs.website.datePublished,
i18n: mainConfigs.website.i18n,
keywords: mainConfigs.website.keywords,
questions: mainConfigs.website.questions,
topology: "pages",
articleUrl: `${mainConfigs.website.siteUrl}/${mainConfigs.pages.about.slug}`,
themeColor: "#d3d3d3",
sameAs: mainConfigs.business.sameAs,
twitter: mainConfigs.business.twitterCard,
}
const NotFoundPage = () => (
<MainWrapperContainer rowWidth={960}>
<SeoContainer
killSeo={false}
data={{
slug: mainConfigs.pages.about.slug,
title: `${mainConfigs.pages.about.title} - ${mainConfigs.business.brandName}`,
description: mainConfigs.pages.about.description,
author: mainConfigs.website.author,
siteUrl: mainConfigs.website.siteUrl,
brandName: mainConfigs.business.brandName,
brandEmail: mainConfigs.business.brandEmail,
brandLogo: mainConfigs.business.brandLogo,
brandPhone: mainConfigs.business.brandPhone,
brandDescription: mainConfigs.business.brandDescription,
brandCardImage: mainConfigs.business.brandCardImage,
featuredImage: `${mainConfigs.website.siteUrl}${slugPrefix}/favicon-32x32.png`,
datePublished: mainConfigs.website.datePublished,
i18n: mainConfigs.website.i18n,
keywords: mainConfigs.website.keywords,
questions: mainConfigs.website.questions,
topology: "pages",
articleUrl: `${mainConfigs.website.siteUrl}/${mainConfigs.pages.about.slug}`,
themeColor: "#d3d3d3",
sameAs: mainConfigs.business.sameAs,
twitter: mainConfigs.business.twitterCard,
}}
/>
<MainWrapperContainer rowWidth={960} killSeo={false}
data={infos}>
<h2>Erro: 404</h2>
<div className='wrapper-box'>
<Row opt={{ isBoxed: true }}>
Expand Down
54 changes: 25 additions & 29 deletions next-boilerplate/src/pages/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,34 @@ import React from "react";
import Row from "../containers/RowContainer";
import Image from "next/image";
import MainWrapperContainer from "../containers/MainWrapperContainer";
import SeoContainer from "../containers/SeoContainer";
import { slugPrefix } from "../lib/utils";
import mainConfigs from "../configs/main-infos.json";

const infos = {
slug: mainConfigs.pages.about.slug,
title: `${mainConfigs.pages.about.title} - ${mainConfigs.business.brandName}`,
description: mainConfigs.pages.about.description,
author: mainConfigs.website.author,
siteUrl: mainConfigs.website.siteUrl,
brandName: mainConfigs.business.brandName,
brandEmail: mainConfigs.business.brandEmail,
brandLogo: mainConfigs.business.brandLogo,
brandPhone: mainConfigs.business.brandPhone,
brandDescription: mainConfigs.business.brandDescription,
brandCardImage: mainConfigs.business.brandCardImage,
featuredImage: `${mainConfigs.website.siteUrl}${slugPrefix}/favicon-32x32.png`,
datePublished: mainConfigs.website.datePublished,
i18n: mainConfigs.website.i18n,
keywords: mainConfigs.website.keywords,
questions: mainConfigs.website.questions,
topology: "pages",
articleUrl: `${mainConfigs.website.siteUrl}/${mainConfigs.pages.about.slug}`,
themeColor: "#d3d3d3",
sameAs: mainConfigs.business.sameAs,
twitter: mainConfigs.business.twitterCard,
}
const AboutPage = () => (
<MainWrapperContainer rowWidth={960}>
<SeoContainer
killSeo={false}
data={{
slug: mainConfigs.pages.about.slug,
title: `${mainConfigs.pages.about.title} - ${mainConfigs.business.brandName}`,
description: mainConfigs.pages.about.description,
author: mainConfigs.website.author,
siteUrl: mainConfigs.website.siteUrl,
brandName: mainConfigs.business.brandName,
brandEmail: mainConfigs.business.brandEmail,
brandLogo: mainConfigs.business.brandLogo,
brandPhone: mainConfigs.business.brandPhone,
brandDescription: mainConfigs.business.brandDescription,
brandCardImage: mainConfigs.business.brandCardImage,
featuredImage: `${mainConfigs.website.siteUrl}${slugPrefix}/favicon-32x32.png`,
datePublished: mainConfigs.website.datePublished,
i18n: mainConfigs.website.i18n,
keywords: mainConfigs.website.keywords,
questions: mainConfigs.website.questions,
topology: "pages",
articleUrl: `${mainConfigs.website.siteUrl}/${mainConfigs.pages.about.slug}`,
themeColor: "#d3d3d3",
sameAs: mainConfigs.business.sameAs,
twitter: mainConfigs.business.twitterCard,
}}
/>
<MainWrapperContainer rowWidth={960} killSeo={false}
data={infos}>
<h2>Página: Milton Bolonha</h2>
<div className='wrapper-box'>
<Row opt={{ isBoxed: true }}>
Expand Down
54 changes: 25 additions & 29 deletions next-boilerplate/src/pages/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,34 @@ import React from "react";

import Row from "../containers/RowContainer";
import MainWrapperContainer from "../containers/MainWrapperContainer";
import SeoContainer from "../containers/SeoContainer";
import { slugPrefix } from "../lib/utils";
import mainConfigs from "../configs/main-infos.json";

const infos = {
slug: mainConfigs.pages.contact.slug,
title: `${mainConfigs.pages.contact.title} - ${mainConfigs.business.brandName}`,
description: mainConfigs.pages.contact.description,
author: mainConfigs.website.author,
siteUrl: mainConfigs.website.siteUrl,
brandName: mainConfigs.business.brandName,
brandEmail: mainConfigs.business.brandEmail,
brandLogo: mainConfigs.business.brandLogo,
brandPhone: mainConfigs.business.brandPhone,
brandDescription: mainConfigs.business.brandDescription,
brandCardImage: mainConfigs.business.brandCardImage,
featuredImage: `${mainConfigs.website.siteUrl}${slugPrefix}/favicon-32x32.png`,
datePublished: mainConfigs.website.datePublished,
i18n: mainConfigs.website.i18n,
keywords: mainConfigs.website.keywords,
questions: mainConfigs.website.questions,
topology: "pages",
articleUrl: `${mainConfigs.website.siteUrl}/${mainConfigs.pages.contact.slug}`,
themeColor: "#d3d3d3",
sameAs: mainConfigs.business.sameAs,
twitter: mainConfigs.business.twitterCard,
}
const Contato = () => (
<MainWrapperContainer rowWidth={960}>
<SeoContainer
killSeo={false}
data={{
slug: mainConfigs.pages.contact.slug,
title: `${mainConfigs.pages.contact.title} - ${mainConfigs.business.brandName}`,
description: mainConfigs.pages.contact.description,
author: mainConfigs.website.author,
siteUrl: mainConfigs.website.siteUrl,
brandName: mainConfigs.business.brandName,
brandEmail: mainConfigs.business.brandEmail,
brandLogo: mainConfigs.business.brandLogo,
brandPhone: mainConfigs.business.brandPhone,
brandDescription: mainConfigs.business.brandDescription,
brandCardImage: mainConfigs.business.brandCardImage,
featuredImage: `${mainConfigs.website.siteUrl}${slugPrefix}/favicon-32x32.png`,
datePublished: mainConfigs.website.datePublished,
i18n: mainConfigs.website.i18n,
keywords: mainConfigs.website.keywords,
questions: mainConfigs.website.questions,
topology: "pages",
articleUrl: `${mainConfigs.website.siteUrl}/${mainConfigs.pages.contact.slug}`,
themeColor: "#d3d3d3",
sameAs: mainConfigs.business.sameAs,
twitter: mainConfigs.business.twitterCard,
}}
/>
<MainWrapperContainer rowWidth={960} killSeo={false}
data={infos}>
<h2>Página: Contato</h2>
<div className='wrapper-box'>
<Row opt={{ isBoxed: true }}>
Expand Down
52 changes: 24 additions & 28 deletions next-boilerplate/src/pages/edu.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,34 @@ import React from "react";

import Row from "../containers/RowContainer";
import MainWrapperContainer from "../containers/MainWrapperContainer";
import SeoContainer from "../containers/SeoContainer";
import { slugPrefix } from "../lib/utils";
import mainConfigs from "../configs/main-infos.json";
const infos = {
slug: mainConfigs.pages.contact.slug,
title: `${mainConfigs.pages.contact.title} - ${mainConfigs.business.brandName}`,
description: mainConfigs.pages.contact.description,
author: mainConfigs.website.author,
siteUrl: mainConfigs.website.siteUrl,
brandName: mainConfigs.business.brandName,
brandEmail: mainConfigs.business.brandEmail,
brandLogo: mainConfigs.business.brandLogo,
brandPhone: mainConfigs.business.brandPhone,
brandDescription: mainConfigs.business.brandDescription,
brandCardImage: mainConfigs.business.brandCardImage,
featuredImage: `${mainConfigs.website.siteUrl}${slugPrefix}/favicon-32x32.png`,
datePublished: mainConfigs.website.datePublished,
i18n: mainConfigs.website.i18n,
keywords: mainConfigs.website.keywords,
questions: mainConfigs.website.questions,
topology: "pages",
articleUrl: `${mainConfigs.website.siteUrl}/${mainConfigs.pages.contact.slug}`,
themeColor: "#d3d3d3",
sameAs: mainConfigs.business.sameAs,
twitter: mainConfigs.business.twitterCard,
};

const Edu = () => (
<MainWrapperContainer rowWidth={960}>
<SeoContainer
killSeo={false}
data={{
slug: mainConfigs.pages.contact.slug,
title: `${mainConfigs.pages.contact.title} - ${mainConfigs.business.brandName}`,
description: mainConfigs.pages.contact.description,
author: mainConfigs.website.author,
siteUrl: mainConfigs.website.siteUrl,
brandName: mainConfigs.business.brandName,
brandEmail: mainConfigs.business.brandEmail,
brandLogo: mainConfigs.business.brandLogo,
brandPhone: mainConfigs.business.brandPhone,
brandDescription: mainConfigs.business.brandDescription,
brandCardImage: mainConfigs.business.brandCardImage,
featuredImage: `${mainConfigs.website.siteUrl}${slugPrefix}/favicon-32x32.png`,
datePublished: mainConfigs.website.datePublished,
i18n: mainConfigs.website.i18n,
keywords: mainConfigs.website.keywords,
questions: mainConfigs.website.questions,
topology: "pages",
articleUrl: `${mainConfigs.website.siteUrl}/${mainConfigs.pages.contact.slug}`,
themeColor: "#d3d3d3",
sameAs: mainConfigs.business.sameAs,
twitter: mainConfigs.business.twitterCard,
}}
/>
<MainWrapperContainer rowWidth={960} killSEO={false} data={infos}>
<h2>Página: Edu</h2>
<div className='wrapper-box'>
<Row opt={{ isBoxed: true }}>
Expand Down
53 changes: 25 additions & 28 deletions next-boilerplate/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,32 @@ import MainWrapperContainer from "../containers/MainWrapperContainer";
import SeoContainer from "../containers/SeoContainer";
import { slugPrefix } from "../lib/utils";
import mainConfigs from "../configs/main-infos.json";

const infos = {
slug: mainConfigs?.pages?.index.slug,
title: `${mainConfigs?.pages?.index.title} - ${mainConfigs?.business?.brandName}`,
description: mainConfigs?.pages?.index.description,
author: mainConfigs?.website?.author,
siteUrl: mainConfigs?.website?.siteUrl,
brandName: mainConfigs?.business?.brandName,
brandEmail: mainConfigs?.business?.brandEmail,
brandLogo: mainConfigs?.business?.brandLogo,
brandPhone: mainConfigs?.business?.brandPhone,
brandDescription: mainConfigs?.business?.brandDescription,
brandCardImage: mainConfigs?.business?.brandCardImage,
featuredImage: `${mainConfigs?.website?.siteUrl}${slugPrefix}/favicon-32x32.png`,
datePublished: mainConfigs?.website?.datePublished,
i18n: mainConfigs?.website?.i18n,
keywords: mainConfigs?.website?.keywords,
questions: mainConfigs?.website?.questions,
topology: "pages",
articleUrl: `${mainConfigs?.website?.siteUrl}/${mainConfigs?.pages?.index.slug}`,
themeColor: "#d3d3d3",
sameAs: mainConfigs?.business?.sameAs,
twitter: mainConfigs?.business?.twitterCard,
}
const Home = ({ posts }) => (
<MainWrapperContainer rowWidth={960}>
<SeoContainer
killSeo={false}
data={{
slug: mainConfigs?.pages?.index.slug,
title: `${mainConfigs?.pages?.index.title} - ${mainConfigs?.business?.brandName}`,
description: mainConfigs?.pages?.index.description,
author: mainConfigs?.website?.author,
siteUrl: mainConfigs?.website?.siteUrl,
brandName: mainConfigs?.business?.brandName,
brandEmail: mainConfigs?.business?.brandEmail,
brandLogo: mainConfigs?.business?.brandLogo,
brandPhone: mainConfigs?.business?.brandPhone,
brandDescription: mainConfigs?.business?.brandDescription,
brandCardImage: mainConfigs?.business?.brandCardImage,
featuredImage: `${mainConfigs?.website?.siteUrl}${slugPrefix}/favicon-32x32.png`,
datePublished: mainConfigs?.website?.datePublished,
i18n: mainConfigs?.website?.i18n,
keywords: mainConfigs?.website?.keywords,
questions: mainConfigs?.website?.questions,
topology: "pages",
articleUrl: `${mainConfigs?.website?.siteUrl}/${mainConfigs?.pages?.index.slug}`,
themeColor: "#d3d3d3",
sameAs: mainConfigs?.business?.sameAs,
twitter: mainConfigs?.business?.twitterCard,
}}
/>
<MainWrapperContainer rowWidth={960} killSeo={false}
data={infos}>
<h2>Início: Sumário</h2>
<div className='wrapper-box'>
<Row opt={{ isBoxed: true }}>
Expand Down

0 comments on commit 4649625

Please sign in to comment.