1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 17:06:37 -04:00

refactor component/page function returns

This commit is contained in:
2022-05-25 09:30:11 -04:00
parent ff96ccae44
commit 1e1ecd89ea
31 changed files with 2347 additions and 2281 deletions

View File

@ -41,32 +41,34 @@ const GitHubLogo = styled(OctocatOcticon, {
fill: "$text",
});
const Projects = ({ repos }) => (
<>
<NextSeo
title="Projects"
openGraph={{
title: "Projects",
}}
/>
const Projects = ({ repos }) => {
return (
<>
<NextSeo
title="Projects"
openGraph={{
title: "Projects",
}}
/>
<PageTitle>💾 Projects</PageTitle>
<PageTitle>💾 Projects</PageTitle>
<Content>
<Wrapper>
{repos.map((repo: Repository) => (
<Card key={repo.name} {...repo} />
))}
</Wrapper>
<Content>
<Wrapper>
{repos.map((repo: Repository) => (
<Card key={repo.name} {...repo} />
))}
</Wrapper>
<ViewMore>
<Link href={`https://github.com/${authorSocial.github}`}>
View more on <GitHubLogo /> GitHub...
</Link>
</ViewMore>
</Content>
</>
);
<ViewMore>
<Link href={`https://github.com/${authorSocial.github}`}>
View more on <GitHubLogo /> GitHub...
</Link>
</ViewMore>
</Content>
</>
);
};
export const getStaticProps: GetStaticProps = async () => {
// https://docs.github.com/en/graphql/reference/objects#repository