Skip to content

Commit 9138d11

Browse files
streamcode9claude
andauthored
Group categories into 5 super categories on index page (#44)
Reorganize the index page with a new hierarchical structure: - Arts, Culture & Entertainment - Health, Wellness & Personal Development - Knowledge & Academia - Society & Environment - Future & Miscellaneous This reduces the top-level categories from 10 to 5, improving navigation and reducing cognitive load while maintaining all existing content and the collapsible functionality. Added CSS styling to visually distinguish super categories from subcategories with larger fonts, indentation, and borders. Includes responsive adjustments for mobile devices. Co-authored-by: Claude <noreply@anthropic.com>
1 parent d2b898f commit 9138d11

2 files changed

Lines changed: 259 additions & 153 deletions

File tree

assets/site.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,42 @@ section {
111111
transition: max-height 0.3s ease, opacity 0.1s ease 0.1s;
112112
}
113113

114+
.super-category {
115+
margin-bottom: 2rem;
116+
border-bottom: 2px solid var(--border-color);
117+
padding-bottom: 1rem;
118+
}
119+
120+
.super-category > h2 {
121+
font-size: 1.75rem;
122+
font-weight: 600;
123+
color: var(--primary-color);
124+
display: inline;
125+
}
126+
127+
.super-toggle {
128+
font-size: 1.2rem;
129+
font-weight: bold;
130+
}
131+
132+
.sub-category {
133+
margin-left: 1.5rem;
134+
margin-top: 1rem;
135+
}
136+
137+
.sub-category > h3 {
138+
font-size: 1.3rem;
139+
font-weight: 500;
140+
display: inline;
141+
}
142+
143+
.sub-category h4 {
144+
margin-top: 1rem;
145+
margin-bottom: 0.5rem;
146+
font-size: 1.1rem;
147+
font-weight: 500;
148+
}
149+
114150
#posts-status {
115151
font-style: italic;
116152
}
@@ -188,6 +224,18 @@ section {
188224
.site-footer {
189225
padding: 1.5rem 1rem;
190226
}
227+
228+
.sub-category {
229+
margin-left: 1rem;
230+
}
231+
232+
.super-category > h2 {
233+
font-size: 1.5rem;
234+
}
235+
236+
.sub-category > h3 {
237+
font-size: 1.2rem;
238+
}
191239
}
192240

193241
@media (max-width: 480px) {

0 commit comments

Comments
 (0)