Skip to content

Commit

Permalink
Init commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
caseymilne committed Feb 14, 2024
1 parent 8ac61ee commit f6cd768
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 8 deletions.
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "template-blog-webapp-nextjs",
"name": "cful1",
"version": "0.1.0",
"private": true,
"private": false,
"engines": {
"node": ">=18",
"npm": "Please use Yarn"
Expand Down Expand Up @@ -29,8 +29,8 @@
"dependencies": {
"@contentful/f36-icons": "^4.23.2",
"@contentful/f36-tokens": "^4.0.1",
"@contentful/rich-text-react-renderer": "^15.16.2",
"@contentful/live-preview": "^2.11.1",
"@contentful/rich-text-react-renderer": "^15.16.2",
"@next/bundle-analyzer": "^13.0.4",
"dotenv": "^16.0.3",
"graphql": "^16.6.0",
Expand Down Expand Up @@ -78,5 +78,9 @@
"tailwindcss": "^3.2.4",
"typescript": "4.9.3",
"typescript-graphql-request": "^4.4.6"
}
},
"description": "First contentful blog.",
"main": "index.js",
"repository": "https://github.com/caseymilne/cful1.git",
"author": "SaberWP"
}
13 changes: 12 additions & 1 deletion public/assets/svg/blog-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/templates/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const Header = () => {
<nav>
<Container className="flex items-center justify-between">
<Link href="/" title={t('common.homepage')}>
<BlogLogo />
<BlogLogo className="" />
</Link>
<LanguageSelector />
</Container>
Expand Down
25 changes: 25 additions & 0 deletions src/pages/docs.page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { useContentfulLiveUpdates } from '@contentful/live-preview/react';
import { GetStaticProps, InferGetStaticPropsType } from 'next';
import { useTranslation } from 'next-i18next';
import Link from 'next/link';

import { getServerSideTranslations } from './utils/get-serverside-translations';

import { ArticleHero, ArticleTileGrid } from '@src/components/features/article';
import { SeoFields } from '@src/components/features/seo';
import { Container } from '@src/components/shared/container';
import { PageBlogPostOrder } from '@src/lib/__generated/sdk';
import { client, previewClient } from '@src/lib/client';
import { revalidateDuration } from '@src/pages/utils/constants';

const Page = (props: InferGetStaticPropsType<typeof getStaticProps>) => {

return (
<>
DOCS 123
</>
);

}

export default Page;
1 change: 1 addition & 0 deletions src/pages/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { client, previewClient } from '@src/lib/client';
import { revalidateDuration } from '@src/pages/utils/constants';

const Page = (props: InferGetStaticPropsType<typeof getStaticProps>) => {

const { t } = useTranslation();

const page = useContentfulLiveUpdates(props.page);
Expand Down
3 changes: 1 addition & 2 deletions src/pages/utils/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@layer base {
body {
@apply text-sm text-gray800 md:text-sm bg-gray100;
@apply text-sm text-gray800 md:text-sm;
}

.h1,
Expand All @@ -31,4 +31,3 @@
@apply text-gray600 tracking-snug font-normal leading-snug md:leading-normal;
}
}

0 comments on commit f6cd768

Please sign in to comment.