Skip to content

Commit 71c5ec2

Browse files
committed
Further polishing the library
1 parent d1f5eb5 commit 71c5ec2

4 files changed

Lines changed: 11 additions & 14 deletions

File tree

cms/content/library.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,6 @@
6363
"status": "read",
6464
"language": "en"
6565
},
66-
{
67-
"title": "On Writing: A Memoir of the Craft",
68-
"author": "Stephen King",
69-
"category": "craft",
70-
"readAt": "2020-05-08",
71-
"image": "/static/library/on-writing.jpg",
72-
"status": "read",
73-
"language": "en"
74-
},
7566
{
7667
"title": "Accelerate: The Science of Lean Software and DevOps: Building and Scaling High Performing Technology Organizations",
7768
"author": "Nicole Forsgren, Jez Humble, Gene Kim",
@@ -83,7 +74,7 @@
8374
{
8475
"title": "Creativity, Inc.: Overcoming the Unseen Forces That Stand in the Way of True Inspiration",
8576
"author": "Ed Catmull, Amy Wallace",
86-
"category": "craft",
77+
"category": "mental-models",
8778
"readAt": "2020-07-12",
8879
"image": "/static/library/creativity-inc.jpg",
8980
"status": "read",
@@ -135,7 +126,7 @@
135126
"language": "en"
136127
},
137128
{
138-
"title": "The First 90 Days. Updated And Expanded: Proven Strategies for Getting up to Speed faster and smarter",
129+
"title": "The First 90 Days: Proven Strategies for Getting up to Speed faster and smarter",
139130
"author": "Michael D. Watkins",
140131
"category": "mental-models",
141132
"image": "/static/library/the-first-90-days.jpg",

pages/library.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function LibrarySectionHeading(props: Readonly<React.PropsWithChildren>)
2121
}
2222

2323
export function LibrarySectionDescription(props: Readonly<React.PropsWithChildren>) {
24-
return <Text>{props.children}</Text>;
24+
return <Text className="LibrarySection__Description">{props.children}</Text>;
2525
}
2626

2727
export function LibrarySectionBooks(props: Readonly<{ books: Book[] }>) {
-104 KB
Binary file not shown.

styles/pages/library.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
.LibrarySection:not(:first-of-type) {
2-
margin-top: 2rem;
2+
margin-top: 3rem;
3+
}
4+
5+
.LibrarySection__Description {
6+
margin-bottom: 2rem !important; /* Default margin-bottom from Text component
7+
has more specificity */
38
}
49

510
.LibrarySection__Books {
11+
column-gap: 1.5rem;
612
display: grid;
713
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
8-
gap: 1.5rem;
14+
row-gap: 2rem;
915

1016
list-style-type: none;
1117
}

0 commit comments

Comments
 (0)