Skip to content

Commit

Permalink
refactor: Remove music page and update navigation menu
Browse files Browse the repository at this point in the history
  • Loading branch information
pranshu05 committed Oct 8, 2024
1 parent 0583b6a commit cd0bd35
Show file tree
Hide file tree
Showing 8 changed files with 135 additions and 791 deletions.
78 changes: 56 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
"axios": "^1.6.7",
"firebase": "^10.8.0",
"gray-matter": "^4.0.3",
"katex": "^0.16.11",
"next": "14.1.0",
"next-mdx-remote": "^4.4.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.0.1",
"react-katex": "^3.0.1",
"rehype-highlight": "^7.0.0",
"rss": "^1.2.2"
},
Expand Down
7 changes: 6 additions & 1 deletion src/components/(posts)/(slug)/BlogContent.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { MDXRemote } from 'next-mdx-remote';
import { InlineMath, BlockMath } from 'react-katex';
import 'katex/dist/katex.min.css';

interface BlogContentProps {
mdxSource: {
Expand All @@ -9,7 +11,10 @@ interface BlogContentProps {
};
}

const components = {};
const components = {
InlineMath,
BlockMath,
};

const BlogContent: React.FC<BlogContentProps> = ({ mdxSource }) => (
<div className="post break-words w-full p-0 m-0">
Expand Down
2 changes: 2 additions & 0 deletions src/posts/gameoflife.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ readTime: '5 min'

Conway’s Game of Life is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves.

![GoL](https://github.com/user-attachments/assets/4ce1e84a-59ae-46ba-a721-93ad94163de9)

## Rules

The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, alive or dead. Every cell interacts with its eight neighbours, which are the cells that are horizontally, vertically, or diagonally adjacent. At each step in time, the following transitions occur:
Expand Down
Loading

0 comments on commit cd0bd35

Please sign in to comment.