Skip to content

Commit

Permalink
feat: updated content
Browse files Browse the repository at this point in the history
  • Loading branch information
shakhzodkudratov committed Aug 23, 2024
1 parent b709e27 commit cda696f
Show file tree
Hide file tree
Showing 20 changed files with 3,130 additions and 2,796 deletions.
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/jsLinters/eslint.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/shakhzod.me.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
}
17 changes: 17 additions & 0 deletions components/header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Image from 'next/image';
import Link from 'next/link';

export default function HeaderComponent() {
return (
<div className="flex flex-col">
<Link href="/">
<Image
src="/long-website-logo.svg"
height={111}
width={624}
alt="shakhzod's lab"
/>
</Link>
</div>
);
}
11 changes: 11 additions & 0 deletions components/stream-schedule.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import path from 'path';

const rootDir = path.join(process.cwd(), 'content');

// const raw = fs.readFileSync(rootDir + "stream-schedule.yaml")

// console.log(raw)

export default function StreamScheduleComponent() {
return <div>still doing...</div>;
}
4 changes: 0 additions & 4 deletions content/blog.mdx

This file was deleted.

8 changes: 5 additions & 3 deletions content/gear.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ i want to start by mentioning that windows os is only for gaming.
i can not work comfortably on it.

os:
- linux, specifically manjaro distribution for the most time
- linux, specifically nixos distribution for the most time (previously arch linux based manjaro)
- macos, because i have macbook air m1 and love it for its ui
- windows, only for gaming

my nixos <a href="https://github.com/shakhzodkudratov/blazingly-fast" target="_blank">configs</a>

hardware:
- macbook air m1 2020, 8gb ram, 256gb storage
- pc, i5-11600, gtx 1660 super, 16gb ram, 1tb + 500gb storage
Expand All @@ -18,8 +20,8 @@ i intentionally buy weaker hardware to use it in full potential

---
keyboards:
- ergodox ez, black, blank keycaps, no rgb, cherry mx brown
- hyperx alloy origins core tkl, rgb, cherry mx red
- ergodox ez, black, blank keycaps, no rgb, gateron clear (previously cherry mx brown) switches
- ~hyperx alloy origins core tkl, rgb, cherry mx red~

keyboard layout:
- programmer dvorak
Expand Down
7 changes: 4 additions & 3 deletions content/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@ check out some sections out there:
- <Link href="/music">music i listen to</Link>
- <Link href="/gear">gear i use</Link>
- projects i wrote (page is not ready yet)
- <a href="https://t.me/catdevblog" target="_blank">me and kimmy writing tech related stuff</a>
- blog (coming soon)
- <a href="https://t.me/shakhzodme" target="_blank">shakhzod's lab on telegram</a>
- <Link href="/stream-schedule">stream schedule</Link> last updated

ofc links too:

{/* TODO: Deal with links properly */}
- <a href="https://youtube.com/@shakhzodme" target="_blank">youtube</a>
- <a href="https://github.com/shakhzodkudratov" target="_blank">github</a>
- <a href="https://linkedin.com/in/shakhzodkudratov" target="_blank">linkedin</a>
- <a href="https://open.spotify.com/user/shahzodkk" target="_blank">spotify</a>
- <a href="https://www.last.fm/user/shakhzodk" target="_blank">last.fm</a>
- <a href="https://monkeytype.com/profile/shakhzodkudratov" target="_blank">monkeytype</a>

btw, don't forget to by me a beer <a href="https://buymeacoffee.com/shakhzod.me" target="_blank">here</a>.
btw, don't forget to buy me a <a href="https://tirikchilik.uz/shakhzodme" target="_blank">qibray</a> or <a href="https://buymeacoffee.com/shakhzod.me" target="_blank">heineken</a>.
7 changes: 7 additions & 0 deletions content/stream-schedule.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: stream schedule | shakhzod's website
---

<StreamSchedule />

<Comments />
6 changes: 6 additions & 0 deletions content/stream-schedule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
YAML:
- A human-readable data serialization language
- https://en.wikipedia.org/wiki/YAML
yaml:
- A complete JavaScript implementation
- https://www.npmjs.com/package/yaml
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"react-dom": "18.2.0",
"rehype-attr": "^2.1.4",
"typescript": "4.9.5",
"use-last-fm": "^0.6.1"
"use-last-fm": "^0.6.1",
"yaml": "^2.5.0"
},
"devDependencies": {
"@commitlint/cli": "^17.4.2",
Expand Down
16 changes: 10 additions & 6 deletions pages/[[...page]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ import Head from 'next/head';
import Link from 'next/link';
import CommentsComponent from '@/components/comments';
import CurrentlyListeningComponent from '@/components/currently-listening';
import StreamScheduleComponent from '@/components/stream-schedule';
import HeaderComponent from '@/components/header';

const components = {
Link,
Comments: CommentsComponent,
CurrentlyListening: CurrentlyListeningComponent,
StreamSchedule: StreamScheduleComponent,
};

const rootDir = path.join(process.cwd(), 'content');
const allPagesWithPath = async () =>
Expand All @@ -23,12 +32,6 @@ const allPagesWithPath = async () =>
});
});

const components = {
Link,
Comments: CommentsComponent,
CurrentlyListening: CurrentlyListeningComponent,
};

export default function Page({
mdxSource,
}: {
Expand All @@ -48,6 +51,7 @@ export default function Page({
</Head>
<React.StrictMode>
<article className="prose p-5">
<HeaderComponent />
<MDXRemote {...mdxSource} components={components} />
</article>
</React.StrictMode>
Expand Down
Loading

0 comments on commit cda696f

Please sign in to comment.