Skip to content

Commit 32ad8b6

Browse files
initial commit
0 parents  commit 32ad8b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+843
-0
lines changed

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
yarn.lock
27+
28+
# local env files
29+
.env.local
30+
.env.development.local
31+
.env.test.local
32+
.env.production.local
33+
34+
# vercel
35+
.vercel

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"tabWidth": 4,
3+
"useTabs": false,
4+
"proseWrap": "always"
5+
}

README.md

Whitespace-only changes.

_posts/1-getting-started.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
tag: "Web Development"
3+
title: "Getting Started"
4+
excerpt:
5+
"We recommend creating a new Next.js app using create-next-app, which sets
6+
up everything automatically for you. To create a project"
7+
coverImage: "/assets/post/post.png"
8+
date: "Fri 14th Aug, 2020"
9+
author:
10+
name: Ahmed Mudassir
11+
twitter: "https://twitter.com/ahm3dx_"
12+
picture: ""
13+
ogImage:
14+
url: "/assets/meta/blogSimple.jpg"
15+
---
16+
17+
We recommend creating a new Next.js app using `create-next-app`, which sets up
18+
everything automatically for you to understand how nextjs works. To create a
19+
project, run:
20+
21+
```shell
22+
yarn create next-app
23+
```
24+
25+
After the installation is complete, follow the instructions to start the
26+
development server. Try editing pages/index.js and see the result on your
27+
browser.
28+
29+
To build a Basic Blog follow manual steps mentioned below.
30+
31+
## Manual Setup
32+
33+
to create Nextjs, Tailwindcss, Markdown project Manually, first run:
34+
35+
Now add other additional modules to the project, run:
36+
37+
```shell
38+
yarn add gray-matter react-markdown react-highlight
39+
```
40+
41+
Now add styling modules, we will be using tailwindcss, run:
42+
43+
```shell
44+
yarn add tailwindcss postcss-preset-env
45+
```

_posts/2-writing-posts.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
tag: "Web Development"
3+
title: "Writing posts"
4+
excerpt:
5+
"We recommend creating a new Next.js app using create-next-app, which sets
6+
up everything automatically for you. To create a project"
7+
coverImage: "/assets/post/post.png"
8+
date: "Fri 14th Aug, 2020"
9+
author:
10+
name: Ahmed Mudassir
11+
twitter: "https://twitter.com/ahm3dx_"
12+
picture: ""
13+
ogImage:
14+
url: "/assets/meta/blogSimple.jpg"
15+
---
16+
17+
We recommend creating a new Next.js app using `create-next-app`, which sets up
18+
everything automatically for you to understand how nextjs works. To create a
19+
project, run:
20+
21+
```shell
22+
yarn create next-app
23+
```
24+
25+
After the installation is complete, follow the instructions to start the
26+
development server. Try editing pages/index.js and see the result on your
27+
browser.
28+
29+
To build a Basic Blog follow manual steps mentioned below.
30+
31+
## Manual Setup
32+
33+
to create Nextjs, Tailwindcss, Markdown project Manually, first run:
34+
35+
Now add other additional modules to the project, run:
36+
37+
```shell
38+
yarn add gray-matter react-markdown react-highlight
39+
```
40+
41+
Now add styling modules, we will be using tailwindcss, run:
42+
43+
```shell
44+
yarn add tailwindcss postcss-preset-env
45+
```

_posts/3-publishing-options.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
tag: "Web Development"
3+
title: "Publishing options"
4+
excerpt:
5+
"We recommend creating a new Next.js app using create-next-app, which sets
6+
up everything automatically for you. To create a project"
7+
coverImage: "/assets/post/post.png"
8+
date: "Fri 14th Aug, 2020"
9+
author:
10+
name: Ahmed Mudassir
11+
twitter: "https://twitter.com/ahm3dx_"
12+
picture: ""
13+
ogImage:
14+
url: "/assets/meta/blogSimple.jpg"
15+
---
16+
17+
We recommend creating a new Next.js app using `create-next-app`, which sets up
18+
everything automatically for you to understand how nextjs works. To create a
19+
project, run:
20+
21+
```shell
22+
yarn create next-app
23+
```
24+
25+
After the installation is complete, follow the instructions to start the
26+
development server. Try editing pages/index.js and see the result on your
27+
browser.
28+
29+
To build a Basic Blog follow manual steps mentioned below.
30+
31+
## Manual Setup
32+
33+
to create Nextjs, Tailwindcss, Markdown project Manually, first run:
34+
35+
Now add other additional modules to the project, run:
36+
37+
```shell
38+
yarn add gray-matter react-markdown react-highlight
39+
```
40+
41+
Now add styling modules, we will be using tailwindcss, run:
42+
43+
```shell
44+
yarn add tailwindcss postcss-preset-env
45+
```

_posts/4-organising-your-content.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
tag: "Web Development"
3+
title: "Organising your content"
4+
excerpt:
5+
"We recommend creating a new Next.js app using create-next-app, which sets
6+
up everything automatically for you. To create a project"
7+
coverImage: "/assets/post/post.png"
8+
date: "Fri 14th Aug, 2020"
9+
author:
10+
name: Ahmed Mudassir
11+
twitter: "https://twitter.com/ahm3dx_"
12+
picture: ""
13+
ogImage:
14+
url: "/assets/meta/blogSimple.jpg"
15+
---
16+
17+
We recommend creating a new Next.js app using `create-next-app`, which sets up
18+
everything automatically for you to understand how nextjs works. To create a
19+
project, run:
20+
21+
```shell
22+
yarn create next-app
23+
```
24+
25+
After the installation is complete, follow the instructions to start the
26+
development server. Try editing pages/index.js and see the result on your
27+
browser.
28+
29+
To build a Basic Blog follow manual steps mentioned below.
30+
31+
## Manual Setup
32+
33+
to create Nextjs, Tailwindcss, Markdown project Manually, first run:
34+
35+
Now add other additional modules to the project, run:
36+
37+
```shell
38+
yarn add gray-matter react-markdown react-highlight
39+
```
40+
41+
Now add styling modules, we will be using tailwindcss, run:
42+
43+
```shell
44+
yarn add tailwindcss postcss-preset-env
45+
```

components/HeroExcerpt/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default function PostExcerpt({ excerpt }) {
2+
return (
3+
<div className="w-full text-lg font-medium leading-normal sm:text-2xl">
4+
{excerpt}
5+
</div>
6+
);
7+
}

components/HeroTitle/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default function HeroTitle({ title }) {
2+
return <div className="text-2xl font-bold sm:text-4xl">{title}</div>;
3+
}

components/HomeFooter/index.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
export default function HomeFooter() {
2+
return (
3+
<div className="mt-4 bg-code-block">
4+
<div className="flex flex-col justify-between w-full max-w-6xl p-4 mx-auto space-y-2 sm:flex-row sm:space-y-0">
5+
<a
6+
className="flex flex-row items-baseline space-x-1 hover:underline"
7+
href="https://github.com/mudassirgithub/basic-blog"
8+
target="_blank"
9+
>
10+
<span className="text-sm">View Source Code On</span>
11+
<div className="text-base font-bold">Github</div>
12+
</a>
13+
<a
14+
className="flex flex-row items-baseline space-x-1 hover:underline"
15+
href="https://twitter.com/ahm3dx_"
16+
target="_blank"
17+
>
18+
<span className="text-sm">Made by</span>
19+
<div className="text-base font-bold">Ahmed Mudassir</div>
20+
</a>
21+
</div>
22+
</div>
23+
);
24+
}

0 commit comments

Comments
 (0)