Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 7eac0ee

Browse files
removed posts and module CSS created blog template
1 parent 6ae818a commit 7eac0ee

File tree

7 files changed

+50
-118
lines changed

7 files changed

+50
-118
lines changed

README.md

Lines changed: 50 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ Erase main content of index.js.
3737

3838
Edit info on package.json
3939

40-
If you don't want any sort of _blog/post_ page routing, you can delete the "pages/posts". Could delete the MDX Dependencies and Gray-Matter also, if you aren't going to use .mdx files at all.
41-
42-
If you don't want Module CSS import, then you can delete "layouts/layout.module.css" and "styles/utils.module.css". Then, remove the imports from the top of "layouts/layouts.js"
43-
4440
#### Components Folder
4541

4642
- Header: Blank page
@@ -55,7 +51,6 @@ If you don't want Module CSS import, then you can delete "layouts/layout.module.
5551
#### Layouts
5652

5753
- layout.js
58-
- layout.module.css - For CSS Modules
5954

6055
#### Lib
6156

@@ -66,12 +61,7 @@ If you don't want Module CSS import, then you can delete "layouts/layout.module.
6661
- \_app.js
6762
- \_document.js
6863
- index.js
69-
- [posts]
70-
- Blank mdx-sample page with links to next/mdx info.
71-
- Gray Matter installed. For adding graymatter to pages, neen to add a const requirement
72-
- [id].js page - Generates static pages from the Posts directory
73-
- There is some formatting in the Post object that pulls in formatting from styles/utils.module.css
74-
- Date formatting is automatic from date-fns and has a 'data'.js' file in the components directory.
64+
- /api
7565

7666
#### Public
7767

@@ -84,9 +74,7 @@ If you don't want Module CSS import, then you can delete "layouts/layout.module.
8474

8575
#### Styles
8676

87-
- global.css - For Global Styles
88-
- utils.module.css - for CSS Modules
89-
- Currently only using this in 'posts'
77+
- global.css - For Global Styles using TailwindCSS
9078

9179
#### Config Files & JSON
9280

@@ -98,4 +86,51 @@ tailwind.config
9886
eslintrc.json
9987
package.json
10088
tsconfig.json - currently only using typescript in jest.config
101-
note: will change jest config to .js
89+
90+
- note: will change jest config to .js
91+
92+
"dependencies": {
93+
"@heroicons/react": "^1.0.6",
94+
"@mdx-js/loader": "^2.1.2",
95+
"@next/mdx": "^12.2.4",
96+
"@tailwindcss/typography": "^0.5.4",
97+
"classnames": "^2.3.1",
98+
"date-fns": "^2.29.1",
99+
"eslint-plugin-prettier": "^4.2.1",
100+
"gray-matter": "^4.0.3",
101+
"next": "latest",
102+
"next-remote-watch": "1.0.0",
103+
"react": "latest",
104+
"react-dom": "latest",
105+
"react-is": "^17.0.2",
106+
"react-router-dom": "^6.3.0",
107+
"remark": "^14.0.2",
108+
"remark-html": "^15.0.1",
109+
"remark-mdx": "^2.1.2",
110+
"styled-components": "^5.2.3",
111+
"swr": "^1.3.0",
112+
"ts-node": "^10.9.1"
113+
},
114+
"devDependencies": {
115+
"@fullhuman/postcss-purgecss": "^4.1.3",
116+
"@types/jest": "^28.1.6",
117+
"@types/node": "^18.6.5",
118+
"@types/react": "^18.0.17",
119+
"@types/styled-components": "5.1.25",
120+
"autoprefixer": "^10.4.8",
121+
"eslint": "^8.2.0",
122+
"eslint-config-airbnb": "19.0.4",
123+
"eslint-config-next": "12.2.4",
124+
"eslint-config-prettier": "^8.5.0",
125+
"eslint-plugin-import": "^2.25.3",
126+
"eslint-plugin-jsx-a11y": "^6.5.1",
127+
"eslint-plugin-react": "^7.28.0",
128+
"eslint-plugin-react-hooks": "^4.3.0",
129+
"jest": "^28.1.3",
130+
"postcss": "^8.4.16",
131+
"postcss-preset-env": "^7.7.2",
132+
"prettier": "^2.7.1",
133+
"prettier-plugin-tailwindcss": "^0.1.13",
134+
"tailwindcss": "^3.1.8",
135+
"ts-jest": "^28.0.7",
136+
"typescript": "^4.7.4"

layouts/Layout.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import styles from './layout.module.css'
2-
import utilStyles from '../styles/utils.module.css'
3-
41
export default function Layout({ children }) {
52
return <div>{children}</div>
63
}

layouts/Layout.module.css

Whitespace-only changes.

pages/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import * as React from 'react'
22
import Header from '../components/Header';
33
import Footer from '../components/Footer';
4-
import SEO from '../components/SEO';
54
import Layout from '../layouts/layout'
6-
import { MDXProvider } from '@mdx-js/react'
7-
import utilStyles from '../styles/utils.module.css'
85
import Link from 'next/link'
96

107
export default function Index() {

pages/posts/[id[.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

pages/posts/mdx-sample.mdx

Lines changed: 0 additions & 5 deletions
This file was deleted.

styles/utils.module.css

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)