Skip to content

Commit 9b33bd4

Browse files
committed
Improve typography in card components
1 parent 40c9b12 commit 9b33bd4

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

web/src/components/Card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Card = ({ item, isProject, showProject }) => {
1515
<Image
1616
className={`w-full bg-gray-300 ${styles.cardImage}`}
1717
fluid={item.mainImage.asset.fluid}
18-
style={{ height: isProject ? "400px" : "300px" }}
18+
style={{ height: isProject ? "300px" : "350px" }}
1919
/>
2020
</div>
2121
) : (

web/src/components/Card.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
}
44

55
.card-body {
6-
@apply p-8 flex flex-col content-start;
6+
@apply p-6 flex flex-col content-start;
77
}
88

99
.card-title {
10-
@apply font-serif font-bold text-3xl -mb-2 break-words;
10+
@apply font-serif font-bold text-2xl -mb-2 break-words;
1111
}
1212

1313
.card-date {
@@ -18,7 +18,7 @@
1818
}
1919

2020
.card-grid {
21-
@apply flex flex-row flex-wrap justify-start -mx-4;
21+
@apply flex flex-row flex-wrap justify-start;
2222
}
2323

2424
.card-grid-card {

web/src/components/CardGrid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const CardGrid = ({ items, isProject, showProject }) => (
77
<div className={styles.cardGrid}>
88
{items.map(item => (
99
<div
10-
className={`${isProject ? "" : "lg:w-1/3"} md:w-1/2 w-full ${
10+
className={`${isProject ? "lg:w-1/2" : "lg:w-1/3"} md:w-1/2 w-full ${
1111
styles.cardGridCard
1212
}`}
1313
>

web/src/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const IndexPage = ({ data }) => (
4242
</section>
4343
<section className="px-8 py-12 bg-blue-secondary text-light">
4444
<div className="container mx-auto">
45-
<h2 className="uppercase text-4xl mb-8">Skills</h2>
45+
<h2 className="uppercase font-bold text-4xl mb-8">Skills</h2>
4646
<div className="flex flex-wrap">
4747
{["Languages", "Platforms"].map(skillType => (
4848
<div className="w-full md:w-1/2 mb-4">
@@ -72,7 +72,7 @@ const IndexPage = ({ data }) => (
7272
</div>
7373
</section>
7474
<section className="px-8 py-12 container mx-auto">
75-
<h2 className="uppercase text-4xl mb-8">Recent Posts</h2>
75+
<h2 className="uppercase font-bold text-4xl mb-8">Recent Posts</h2>
7676
<CardGrid
7777
isProject={false}
7878
showProject={false}

0 commit comments

Comments
 (0)