We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b6b3af commit dda840eCopy full SHA for dda840e
public/posts/my-first-dnd-post.txt
@@ -0,0 +1,15 @@
1
+# My First D&D Post
2
+
3
+This is a placeholder for my first D&D related blog post.
4
5
+## Introduction
6
7
+Welcome to the world of Dungeons & Dragons!
8
9
+## Adventures
10
11
+Here are some of my recent adventures:
12
13
+* Lost in the Dungeon of the Mad Mage
14
+* Exploring the wilds of Chult
15
+* Saving the world from a lich
public/posts/shownPosts.json
@@ -1,4 +1,12 @@
[
+ {
+ "slug": "my-first-dnd-post",
+ "title": "My First D&D Post",
+ "date": "2025-10-21",
+ "description": "An introduction to my D&D adventures.",
+ "tags": ["dnd", "rpg", "adventure"],
+ "category": "d&d"
+ },
{
"slug": "gemini-explains-how-hooks-work-with-toast-component",
"title": "Gemini Explains How Hooks Work with Toast Component",
src/components/PostItem.js
@@ -24,19 +24,25 @@ const PostItem = ({ slug, title, date, updatedDate, category, series, seriesInde
24
? 'var(--color-dev-badge)'
25
: category === 'series'
26
? 'var(--color-series-badge)'
27
+ : category === 'd&d'
28
+ ? 'var(--color-dnd-badge)'
29
: 'var(--color-takes-badge)',
30
};
31
const postBackgroundColorClass =
32
category === 'dev'
33
? 'bg-dev-card-bg'
34
35
? 'bg-series-card-bg'
36
37
+ ? 'bg-dnd-card-bg'
38
: 'bg-takes-card-bg';
39
const postHoverBackgroundColorClass =
40
41
? 'hover:bg-dev-card-bg-hover'
42
43
? 'hover:bg-series-card-bg-hover'
44
45
+ ? 'hover:bg-dnd-card-bg-hover'
46
: 'hover:bg-takes-card-bg-hover';
47
48
return (
src/components/PostMetadata.js
@@ -24,12 +24,16 @@ const PostMetadata = ({
backgroundColor:
metadata.category === 'dev'
+ : metadata.category === 'd&d'
const postMetadataBackgroundColorStyle = {
? 'var(--color-dev-card-bg)'
+ ? 'var(--color-dnd-card-bg)'
: 'var(--color-takes-card-bg)',
src/config/colors.js
@@ -22,8 +22,12 @@ module.exports = {
22
'takes-card-bg-hover': 'rgba(16, 185, 129, 0.275)', // emerald-500/20
23
'series-card-bg': 'rgba(225, 29, 72, 0.1)', // rose-600/10
'series-card-bg-hover': 'rgba(225, 29, 72, 0.2)', // rose-600/20
-
- // Category RGBA variations for ColorLegends and LogCard
+ 'dnd-card-bg': 'rgba(139, 92, 246, 0.1)', // violet-500/10
+ 'dnd-card-bg-hover': 'rgba(139, 92, 246, 0.2)', // violet-500/20
+ 'color-dev-badge': '#10b981', // emerald-500
+ 'color-takes-badge': '#f97316', // orange-500
+ 'color-series-badge': '#ec4899', // pink-500
+ 'color-dnd-badge': '#a78bfa', // violet-400
'book-alpha-10': 'rgba(59, 130, 246, 0.1)',
'book-alpha-50': 'rgba(59, 130, 246, 0.5)',
'movie-alpha-10': 'rgba(239, 68, 68, 0.1)',
src/index.css
@@ -57,4 +57,5 @@ code {
57
--color-dev-badge: #44403c; /* stone-700 */
58
--color-takes-badge: #065f46; /* emerald-800 */
59
--color-series-badge: #e11d48; /* rose-600 */
60
+ --color-dnd-badge: #583fa3; /* violet-400 */
61
}
src/pages/BlogPage.js
@@ -146,6 +146,12 @@ const BlogPage = () => {
146
>
147
Series
148
</button>
149
+ <button
150
+ onClick={() => setActiveFilter('d&d')}
151
+ className={`px-4 py-2 rounded-full text-sm font-medium ${activeFilter === 'd&d' ? 'bg-primary-500 text-white' : 'bg-gray-700 text-gray-300 hover:bg-gray-600'}`}
152
+ >
153
+ D&D
154
+ </button>
155
</div>
156
157
<div className="mt-16">
0 commit comments