Skip to content

Commit 9840f33

Browse files
committed
fix: blogpost tags
1 parent aee77a2 commit 9840f33

8 files changed

Lines changed: 27 additions & 7 deletions

File tree

src/components/BrutalistPostItem.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ const BrutalistPostItem = ({ post, isActive, onHover = () => {} }) => {
2525
? 'var(--color-feat-badge)'
2626
: category === 'ai'
2727
? 'var(--color-ai-badge)'
28-
: 'var(--color-rant-badge)';
28+
: category === 'essay'
29+
? 'var(--color-essay-badge)'
30+
: 'var(--color-rant-badge)';
2931

3032
const categoryBg =
3133
category === 'dev'
@@ -40,7 +42,9 @@ const BrutalistPostItem = ({ post, isActive, onHover = () => {} }) => {
4042
? 'rgba(168, 85, 247, 0.3)'
4143
: category === 'ai'
4244
? 'rgba(132, 204, 22, 0.2)'
43-
: 'rgba(16, 185, 129, 0.2)';
45+
: category === 'essay'
46+
? 'rgba(67, 56, 202, 0.25)'
47+
: 'rgba(16, 185, 129, 0.2)';
4448

4549
return (
4650
<motion.div

src/components/PostTile.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ const PostTile = ({ post }) => {
2727
? 'var(--color-feat-badge)'
2828
: post.category === 'ai'
2929
? 'var(--color-ai-badge)'
30-
: 'var(--color-rant-badge)';
30+
: post.category === 'essay'
31+
? 'var(--color-essay-badge)'
32+
: 'var(--color-rant-badge)';
3133

3234
const categoryBg =
3335
post.category === 'dev'
@@ -42,7 +44,9 @@ const PostTile = ({ post }) => {
4244
? 'rgba(168, 85, 247, 0.3)'
4345
: post.category === 'ai'
4446
? 'rgba(132, 204, 22, 0.2)'
45-
: 'rgba(16, 185, 129, 0.2)';
47+
: post.category === 'essay'
48+
? 'rgba(67, 56, 202, 0.25)'
49+
: 'rgba(16, 185, 129, 0.2)';
4650

4751
return (
4852
<motion.div

src/components/TerracottaPostItem.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ const TerracottaPostItem = ({ post, isActive, onHover = () => {} }) => {
2525
? '#8A6A32'
2626
: category === 'ai'
2727
? '#6B8E23'
28-
: '#C96442';
28+
: category === 'essay'
29+
? '#7A5C3A'
30+
: '#C96442';
2931

3032
const categoryBg =
3133
category === 'dev'
@@ -40,7 +42,9 @@ const TerracottaPostItem = ({ post, isActive, onHover = () => {} }) => {
4042
? 'rgba(138, 106, 50, 0.2)'
4143
: category === 'ai'
4244
? 'rgba(107, 142, 35, 0.15)'
43-
: 'rgba(201, 100, 66, 0.18)';
45+
: category === 'essay'
46+
? 'rgba(122, 92, 58, 0.2)'
47+
: 'rgba(201, 100, 66, 0.18)';
4448

4549
return (
4650
<motion.div

src/index.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ code {
130130
--bg-ai-card-hover: rgba(132, 204, 22, 0.275);
131131
--title-hover-ai: #a3e635; /* lime-400 */
132132

133+
/*essay card*/
134+
--color-essay-badge: #4338ca; /* indigo-700 */
135+
--bg-essay-card: rgba(67, 56, 202, 0.175);
136+
--bg-essay-card-hover: rgba(99, 102, 241, 0.275);
137+
--title-hover-essay: #818cf8; /* indigo-400 */
138+
133139
/*fezccode colors*/
134140
--fzcdx-background: #ffffff;
135141
--fzcdx-text-primary: #2d2d2d;

src/pages/apps/github-thumbnail/themes/squarified.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,4 +316,3 @@ function pickFontSize(ctx, text, maxWidth, ladder, fontTemplate) {
316316
}
317317
return ladder[ladder.length - 1];
318318
}
319-

src/pages/blog-views/BrutalistBlogPage.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const FILTERS = [
2121
{ id: 'ai', label: 'AI' },
2222
{ id: 'feat', label: 'Feat' },
2323
{ id: 'rant', label: 'Rant' },
24+
{ id: 'essay', label: 'Essay' },
2425
{ id: 'series', label: 'Series' },
2526
{ id: 'gist', label: 'Gist' },
2627
{ id: 'd&d', label: 'D&D' },

src/pages/blog-views/TerracottaBlogPage.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const FILTERS = [
3434
{ id: 'ai', label: 'AI' },
3535
{ id: 'feat', label: 'Feat' },
3636
{ id: 'rant', label: 'Rant' },
37+
{ id: 'essay', label: 'Essay' },
3738
{ id: 'series', label: 'Series' },
3839
{ id: 'gist', label: 'Gist' },
3940
{ id: 'd&d', label: 'D&D' },

src/pages/luxe-views/LuxeBlogPage.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const FILTERS = [
1717
{ id: 'ai', label: 'AI' },
1818
{ id: 'feat', label: 'Feat' },
1919
{ id: 'rant', label: 'Rant' },
20+
{ id: 'essay', label: 'Essay' },
2021
{ id: 'series', label: 'Series' },
2122
{ id: 'gist', label: 'Gist' },
2223
{ id: 'd&d', label: 'D&D' },

0 commit comments

Comments
 (0)