Skip to content

Commit cad7464

Browse files
committed
Blog fixes
1 parent 058c0ba commit cad7464

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/styles/global.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap");
1+
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;700&display=swap");
22
@tailwind base;
33
@tailwind components;
44
@tailwind utilities;
@@ -47,8 +47,8 @@
4747
@apply text-gray-900 text-base font-semibold
4848
}
4949

50-
.text-paragraph {
51-
50+
.text-big-body {
51+
@apply text-xl
5252
}
5353
}
5454

src/templates/post.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@ const Post = ({ data, location }) => {
3232
<div className="">
3333
<div className="bg-bg-black text-white">
3434
<div className="px-4 py-4 mx-auto md:max-w-full lg:max-w-screen-md 2xl:max-w-screen-lg lg:pt-16">
35-
<div className="md:mx-auto text-left">
35+
<div className="md:mx-auto text-left">
3636
{post.primary_tag &&
37-
<div>
37+
<div className="pb-4">
3838
<Link
3939
to={`/tag/${post.primary_tag?.slug}`}
4040
aria-label="Author"
41-
className="text-sm p-2 font-mono bg-zinc-800 rounded-lg tracking-tight text-zinc-400 mr-2 mb-2 capitalize hover:underline hover:underline hover:underline-offset-4">
41+
className="p-2 px-4 text-sm bg-bg-light-grey rounded-full tracking-tight text-gray-300 mr-2 capitalize hover:text-iff-orange">
4242
{post.primary_tag.name}
4343
</Link>
4444
</div>
4545
}
4646

47-
<div className="max-w-2xl">
48-
<h1 className="my-4 font-sans block tracking-tight md:tracking-normal break-normal text-2xl md:text-4xl text-left font-extrabold text-white">
47+
<div>
48+
<h1 className="mb-1 font-sans block tracking-tight md:tracking-normal break-normal text-xl md:text-2xl text-left font-extrabold text-white">
4949
{post.title}
5050
</h1>
51-
<p className="text-left text text-zinc-500">{post.excerpt}</p>
51+
<p className="text-left text text-body-grey text-big-body">{post.excerpt}</p>
5252
</div>
5353

5454
<div className="mb-4 mt-8 flex relative -translate-x-1">
@@ -71,7 +71,7 @@ const Post = ({ data, location }) => {
7171
<Link
7272
to={`/author/${author.slug}`}
7373
aria-label="Author"
74-
className="font-medium text-sm text-iff-orange hover:underline ml-2 mr-8"
74+
className="font-medium text-iff-orange ml-2 mr-8"
7575
>
7676
{author.name}
7777
</Link>
@@ -80,7 +80,7 @@ const Post = ({ data, location }) => {
8080
))}
8181
</div>
8282
<div className="ml-auto">
83-
<p className="ml-auto font-light mt-2 text-sm text-iff-orange border-l-2 pl-2 border-iff-orange">
83+
<p className="ml-auto mt-2 text-sm text-iff-orange border-l-2 pl-2 border-iff-orange">
8484
{post.published_at_pretty} <br /> {readingTime}
8585
</p>
8686
</div>
@@ -89,7 +89,7 @@ const Post = ({ data, location }) => {
8989
</div>
9090
</div>
9191
<article
92-
className="mt-16 mx-auto prose md:prose-lg prose-img:rounded-xl prose-img:shadow-xl hover:prose-headings:underline underline-offset-4 hover:prose-a:text-iff-orange px-4 select-none"
92+
className="mt-16 mx-auto prose md:prose-xl prose-img:rounded-xl prose-img:shadow-xl hover:prose-headings:underline underline-offset-4 hover:prose-a:text-iff-orange px-4 select-none"
9393
dangerouslySetInnerHTML={{ __html: post.html }}
9494
></article>
9595
</div>

0 commit comments

Comments
 (0)