Skip to content

Commit 0e0af97

Browse files
authored
Merge pull request #270 from 1chooo/chore/update-footer-posts-banner
Chore/update footer posts banner
2 parents 88cf09c + 7feb0a8 commit 0e0af97

19 files changed

+59
-500
lines changed

apps/docs/pages/code-walkthrough.mdx

+15-13
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,30 @@ import { FileTree } from 'nextra/components'
4141

4242
## Code Counter with Complexity Calculations by [`scc`](https://github.com/boyter/scc)
4343

44-
Last updated: August, 28, 2024 in [`a2614ed`](https://github.com/1chooo/1chooo.com/commit/a2614ed29c7608fffa651f98b02e7eff82704377)
44+
Last updated: September, 14, 2024 in [`88cf09c`](https://github.com/1chooo/1chooo.com/commit/88cf09c3f291bef202d08a16712a6eae3922cfc7)
4545

4646
```py
4747
───────────────────────────────────────────────────────────────────────────────
4848
Language Files Lines Blanks Comments Code Complexity
4949
───────────────────────────────────────────────────────────────────────────────
50-
TypeScript 62 2516 281 31 2204 159
51-
CSS 11 2434 458 241 1735 0
52-
Markdown 5 471 145 0 326 0
53-
JSON 4 120 0 0 120 0
54-
JavaScript 3 42 4 3 35 0
50+
TypeScript 78 3482 416 192 2874 223
51+
JSON 16 370 0 0 370 0
52+
CSS 13 2637 491 270 1876 0
53+
JavaScript 9 196 16 31 149 0
54+
Markdown 9 805 237 0 568 0
55+
MDX 8 618 155 0 463 0
56+
TypeScript Typings 5 61 6 6 49 3
57+
Handlebars 1 8 0 0 8 0
5558
License 1 21 4 0 17 0
56-
TypeScript Typings 1 5 1 4 0 0
57-
YAML 1 14 1 4 9 0
59+
YAML 1 36 3 4 29 0
5860
───────────────────────────────────────────────────────────────────────────────
59-
Total 88 5623 894 283 4446 159
61+
Total 141 8234 1328 503 6403 226
6062
───────────────────────────────────────────────────────────────────────────────
61-
Estimated Cost to Develop (organic) $129,408
62-
Estimated Schedule Effort (organic) 6.32 months
63-
Estimated People Required (organic) 1.82
63+
Estimated Cost to Develop (organic) $189,800
64+
Estimated Schedule Effort (organic) 7.31 months
65+
Estimated People Required (organic) 2.31
6466
───────────────────────────────────────────────────────────────────────────────
65-
Processed 144774 bytes, 0.145 megabytes (SI)
67+
Processed 219960 bytes, 0.220 megabytes (SI)
6668
───────────────────────────────────────────────────────────────────────────────
6769
```
6870

apps/web/package.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,11 @@
6565
"@testing-library/jest-dom": "^6.5.0",
6666
"@testing-library/react": "^16.0.1",
6767
"@types/react-syntax-highlighter": "^15.5.13",
68-
"autoprefixer": "^10.4.20",
6968
"eslint": "9.10.0",
7069
"eslint-config-next": "14.2.7",
7170
"jest": "^29.7.0",
7271
"jest-environment-jsdom": "^29.7.0",
73-
"postcss": "^8.4.45",
7472
"sass": "^1.77.8",
75-
"sass-loader": "^16.0.1",
76-
"tailwindcss": "^3.4.11"
73+
"sass-loader": "^16.0.1"
7774
}
78-
}
75+
}

apps/web/postcss.config.mjs

-8
This file was deleted.
Loading
Loading
Loading
Loading
Loading
Loading

apps/web/src/app/globals.css

+2-34
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,3 @@
1-
/* @tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
4-
5-
:root {
6-
--foreground-rgb: 0, 0, 0;
7-
--background-start-rgb: 214, 219, 220;
8-
--background-end-rgb: 255, 255, 255;
9-
}
10-
11-
@media (prefers-color-scheme: dark) {
12-
:root {
13-
--foreground-rgb: 255, 255, 255;
14-
--background-start-rgb: 0, 0, 0;
15-
--background-end-rgb: 0, 0, 0;
16-
}
17-
}
18-
19-
body {
20-
color: rgb(var(--foreground-rgb));
21-
background: linear-gradient(
22-
to bottom,
23-
transparent,
24-
rgb(var(--background-end-rgb))
25-
)
26-
rgb(var(--background-start-rgb));
27-
}
28-
29-
@layer utilities {
30-
.text-balance {
31-
text-wrap: balance;
32-
}
33-
} */
34-
351
/*-----------------------------------*\
362
#copyright 2024 @1chooo
373
\*-----------------------------------*/
@@ -1077,6 +1043,7 @@ main {
10771043
.select-item button:hover {
10781044
--eerie-black-2: hsl(240, 2%, 20%);
10791045
}
1046+
10801047
.select-item button a:hover {
10811048
--eerie-black-2: hsl(240, 2%, 20%);
10821049
}
@@ -1877,6 +1844,7 @@ textarea.form-input::-webkit-resizer {
18771844
.filter-item button.active {
18781845
color: var(--orange-yellow-crayola);
18791846
}
1847+
18801848
.filter-item a:hover {
18811849
color: var(--light-gray-70);
18821850
}

apps/web/src/components/side-bar/footer.tsx

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11
import React from "react";
2+
import Link from "next/link";
3+
24
import "@/styles/side-bar/footer.css";
35

6+
// All rights reserved and subject to the Privacy Policy and Terms and Conditions.
47
const Footer: React.FC = () => {
58
return (
69
<footer className="footer">
710
<div className="footer-copyright">© 2024 1chooo</div>
811
<div className="footer-links">
9-
<a href="https://docs.1chooo.com">Docs</a>
10-
<a href="https://github.com/1chooo/1chooo.com">Vcard Theme</a>
12+
<Link
13+
href="https://docs.1chooo.com"
14+
target="_blank"
15+
rel="noopener noreferrer"
16+
>
17+
Docs
18+
</Link>
19+
<Link
20+
href="https://github.com/1chooo/1chooo.com"
21+
target="_blank"
22+
rel="noopener noreferrer"
23+
>
24+
Vcard Theme
25+
</Link>
1126
</div>
1227
</footer>
1328
);

apps/web/src/contents/1382-balance-a-binary-search-tree.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ tags:
1212
- Binary Search Tree
1313
- Binary Tree
1414
summary: 'Given the `root` of a binary search tree, return a balanced binary search tree with the same node values. If there is more than one answer, return any of them.'
15-
banner: https://blog.1chooo.com/images/cover/leetcode/1382-balance-a-binary-search-tree.png
15+
banner: /images/banner/1382-balance-a-binary-search-tree.png
1616
alt: "LeetCode 1382. Balance a Binary Search Tree - Easy Solution | Go"
1717
mathjax: true
1818
---
1919

2020
Link 👉🏻 [1382. Balance a Binary Search Tree](https://leetcode.com/problems/balance-a-binary-search-tree/)
2121

22+
![LeetCode 1382. Balance a Binary Search Tree - Easy Solution | Go by Hugo](/images/banner/1382-balance-a-binary-search-tree.png)
23+
24+
2225
### Description
2326

2427
Given the `root` of a binary search tree, return a balanced binary search tree with the same node values. If there is more than one answer, return any of them.

apps/web/src/contents/1480-running-sum-of-1d-array.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ tags:
77
- Array
88
- Prefix Sum
99
summary: 'Given an array `nums`. We define a running sum of an array as `runningSum[i] = sum(nums[0]...nums[i])`. Return the running sum of `nums`.'
10-
banner: https://blog.1chooo.com/images/cover/leetcode/1480-running-sum-of-1d-array.png
10+
banner: /images/banner/1480-running-sum-of-1d-array.png
1111
alt: "💯✅ LeetCode 1480. Running Sum of 1d Array | Go"
1212
mathjax: true
1313
---
1414

1515
Link 👉🏻 [1480. Running Sum of 1d Array](https://leetcode.com/problems/running-sum-of-1d-array)
1616

1717

18+
![💯✅ LeetCode 1480. Running Sum of 1d Array | Go by Hugo](/images/banner/1480-running-sum-of-1d-array.png)
19+
1820
### Description
1921

2022
Given an array `nums`. We define a running sum of an array as `runningSum[i] = sum(nums[0]...nums[i])`.

apps/web/src/contents/1550-three-consecutive-odds.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ tags:
66
- Array
77
- Go
88
summary: 'Given an integer array arr, return true if there are three consecutive odd numbers in the array. Otherwise, return false.'
9-
banner: https://blog.1chooo.com/images/cover/leetcode/1550-three-consecutive-odds.png
9+
banner: /images/banner/1550-three-consecutive-odds.png
1010
alt: "💯✅ LeetCode 1550. Three Consecutive Odds | Go"
1111
mathjax: true
1212
---
1313

1414

1515
Link 👉🏻 [1550. Three Consecutive Odds](https://leetcode.com/problems/three-consecutive-odds)
1616

17+
![💯✅ LeetCode 1550. Three Consecutive Odds | Go by Hugo](/images/banner/1550-three-consecutive-odds.png)
18+
1719

1820
### Description
1921

apps/web/src/contents/1791-find-center-of-star-graph.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ tags:
66
- Graph
77
- Go
88
summary: 'In a star graph, the center node will appear in each of the edges which means every node will contain the center node. So, we just need to find the common node in the first two edges.'
9-
banner: https://blog.1chooo.com/images/cover/leetcode/1791-find-center-of-star-graph.png
9+
banner: /images/banner/1791-find-center-of-star-graph.png
1010
alt: "[O(1) Time and Space] LeetCode 1791. Find Center of Star Graph - Easy Solution | Go"
1111
mathjax: true
1212
---
1313

1414
Link 👉🏻 [1791. Find Center of Star Graph](https://leetcode.com/problems/find-center-of-star-graph/)
1515

16+
![\[O(1) Time and Space\] LeetCode 1791. Find Center of Star Graph - Easy Solution | Go by Hugo](/images/banner/1791-find-center-of-star-graph.png)
17+
1618
### Description
1719

1820
There is an undirected star graph consisting of `n` nodes labeled from `1` to `n`. A star graph is a graph where there is one center node and exactly `n - 1` edges that connect the center node with every other node.

apps/web/src/contents/2181-merge-nodes-in-between-zeros.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ tags:
77
- Simulation
88
- Go
99
summary: "You are given the head of a linked list, which contains a series of integers separated by 0's. The beginning and end of the linked list will have Node.val == 0."
10-
banner: https://blog.1chooo.com/images/cover/leetcode/2181-merge-nodes-in-between-zeros.png
10+
banner: /images/banner/2181-merge-nodes-in-between-zeros.png
1111
alt: "💯✅ LeetCode 2181. Merge Nodes in Between Zeros | Go"
1212
mathjax: true
1313
---
1414

1515
Link 👉🏻 [2181. Merge Nodes in Between Zeros](https://leetcode.com/problems/merge-nodes-in-between-zeros)
1616

17+
![💯✅ LeetCode 2181. Merge Nodes in Between Zeros | Go by Hugo](/images/banner/2181-merge-nodes-in-between-zeros.png)
18+
1719
## Description
1820

1921
You are given the `head` of a linked list, which contains a series of integers separated by `0`'s. The beginning and end of the linked list will have `Node.val == 0`.

apps/web/src/contents/amazon-linux-2-install-docker.mdx apps/web/src/contents/amazon-linux-2-install-docker.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ tags:
88
- AWS
99
- EC2
1010
- Amazon Linux 2
11-
banner: https://blog.1chooo.com/images/cover/dev-ops/amazon-linux-2-install-docker.png
11+
banner: /images/banner/amazon-linux-2-install-docker.png
1212
alt: "AWS: 如何在 AWS EC2 Amazon Linux 2 上安裝 Docker"
1313
---
1414

1515
在我們需要做 DevOps 時,我們常常會需要用到 Containerization 技術,而 Docker 是目前最為廣泛使用的 Containerization 技術之一。同時我們也可能會用到雲端的算力來幫助我們完成這些工作,因此我們今天將會介紹如何在 Amazon Linux 2 上安裝 Docker。
1616

17+
![AWS: 如何在 AWS EC2 Amazon Linux 2 上安裝 Docker](/images/banner/amazon-linux-2-install-docker.png)
18+
1719
### 連線到 EC2
1820

1921
我們會需要透過 SSH 連線到 EC2,當然我們也可以直接透過 Console 連線到 Shell 來操作,我們將會以 SSH 的方式連線到 EC2 來操作,畢竟可以本地連上去操作會更加順手。
@@ -202,4 +204,4 @@ $ sudo systemctl status docker.service
202204
### Reference
203205
204206
- [How to install Docker on Amazon Linux 2](https://www.cyberciti.biz/faq/how-to-install-docker-on-amazon-linux-2/)
205-
- [How to install Docker on Amazon Linux 2](https://swapnasagarpradhan.medium.com/how-to-install-docker-on-amazon-linux-2-8e5161ac5464)
207+
- [How to install Docker on Amazon Linux 2](https://swapnasagarpradhan.medium.com/how-to-install-docker-on-amazon-linux-2-8e5161ac5464)

apps/web/tailwind.config.ts

-14
This file was deleted.

0 commit comments

Comments
 (0)