Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

6 changes: 6 additions & 0 deletions blogs/2022-review.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: My 2022 year in review
author: Anuradha Kumari
---

2022 was an amazing year.
6 changes: 6 additions & 0 deletions blogs/deployment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: How to deploy NextJS app
author: Anuradha Kumari
---

Let's use vercel to deploy.
7 changes: 7 additions & 0 deletions blogs/next-js.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Getting started with Next.js
author: Anuradha Kumari
---


[Next.js](https://nextjs.org/) is so amazing.
15 changes: 15 additions & 0 deletions components/Layout.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import markdownStyles from './markdown-styles.module.css';

const Layout = ({ post }) => {
return (
<div className="max-w-2xl mx-auto">
<h1>{post.title}</h1>
<div
className={markdownStyles['markdown']}
dangerouslySetInnerHTML={{ __html: post.content }}
/>
</div>
);
};

export default Layout;
18 changes: 18 additions & 0 deletions components/markdown-styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.markdown {
@apply text-lg leading-relaxed;
}

.markdown p,
.markdown ul,
.markdown ol,
.markdown blockquote {
@apply my-6;
}

.markdown h1 {
@apply text-3xl mt-12 mb-4 leading-snug;
}

.markdown h2 {
@apply text-2xl mt-8 mb-4 leading-snug;
}
Loading