Skip to content

Commit

Permalink
Using space mono as a font
Browse files Browse the repository at this point in the history
  • Loading branch information
Xithrius committed Jul 1, 2023
1 parent dfba36e commit 4c6cd95
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions site/lib/components/post-body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const PostBody = ({ content }: Props) => {
prose-code:before:content-none
prose-code:after:content-none
dark:prose-invert
font-['Space_Mono']
"
dangerouslySetInnerHTML={{ __html: content }}
/>
Expand Down
2 changes: 1 addition & 1 deletion site/lib/components/post-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const PostHeader = ({ title, date }: Props) => {
return (
<>
<PostTitle>{title}</PostTitle>
<div className="mx-auto max-w-2xl">
<div className="mx-auto max-w-2xl font-['Space_Mono']">
<div className="flex-column mb-12 flex text-lg">
<DateFormatter dateString={date} />
<TopLeftNavigation href="/blog">back</TopLeftNavigation>
Expand Down
4 changes: 2 additions & 2 deletions site/lib/components/post-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ type Props = {
const PostPreview = ({ title, date, slug }: Props) => {
return (
<Link as={`blog/posts/${slug}`} href="blog/posts/[slug]">
<div className="card p-5 transition hover:shadow-xl">
<h3 className="mb-1 text-3xl leading-snug">{title}</h3>
<div className="card p-3 font-['Space_Mono'] transition hover:shadow-xl">
<h3 className="mb-1 leading-snug">{title}</h3>
<div className="opacity-50">
<div className="text-lg">
<DateFormatter dateString={date} />
Expand Down
4 changes: 3 additions & 1 deletion site/lib/components/post-title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ type Props = {

const PostTitle = ({ children }: Props) => {
return (
<h1 className="mx-auto mt-8 mb-3 max-w-2xl text-4xl font-bold leading-tight">{children}</h1>
<h1 className="mx-auto mb-3 mt-8 max-w-2xl font-['Space_Mono'] text-4xl font-bold leading-tight">
{children}
</h1>
);
};

Expand Down
3 changes: 2 additions & 1 deletion site/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Turret+Road:wght@200&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Space+Mono&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
html {
font-family: "Montserrat", "Turret Road";
font-family: "Montserrat", "Turret Road", "Space Mono";
}

body {
Expand Down

1 comment on commit 4c6cd95

@vercel
Copy link

@vercel vercel bot commented on 4c6cd95 Jul 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

xithrius-cloud – ./

xithrius-cloud-git-main-xithrius.vercel.app
xithrius-cloud-xithrius.vercel.app
xithrius.cloud

Please sign in to comment.