Skip to content

Commit

Permalink
fix: test performance for fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
thedaviddias committed Aug 3, 2023
1 parent 8eb43b9 commit a0715bd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
2 changes: 2 additions & 0 deletions apps/blog/src/components/MdxComponents/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
OlHTMLAttributes,
ReactNode,
} from 'react'
import { LinkedInEmbed } from 'react-social-media-embed/dist/components/embeds/LinkedInEmbed'

import { H1, H2, H3, H4 } from '@/components/Headings'
import { Paragraph } from '@/components/Paragraph'
Expand All @@ -20,6 +21,7 @@ import { Tweet } from './tweet'
import { Sidenote } from '../Sidenote'

export const MDXComponents: any = {
LinkedInEmbed,
hr: (
props: JSX.IntrinsicAttributes & ClassAttributes<HTMLHRElement> & HTMLAttributes<HTMLHRElement>
) => <hr {...props} />,
Expand Down
16 changes: 8 additions & 8 deletions apps/blog/src/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
@font-face {
font-family: 'Oswald';
font-family: 'Oswald', sans-serif;
font-style: normal;
font-weight: 300 700;
src: url('/fonts/oswald.woff2') format('woff2');
font-display: swap;
font-display: optional;
}

@font-face {
font-family: 'Source Sans Pro';
font-family: 'Source Sans Pro', sans-serif;
font-style: normal;
font-weight: 700;
src: url('/fonts/SourceSansPro-Bold.woff2') format('woff2');
font-display: swap;
font-display: optional;
}

@font-face {
font-family: 'Source Sans Pro';
font-family: 'Source Sans Pro', sans-serif;
font-style: normal;
font-weight: 300;
src: url('/fonts/SourceSansPro-Light.woff2') format('woff2');
font-display: swap;
font-display: optional;
}

@font-face {
font-family: 'Source Sans Pro';
font-family: 'Source Sans Pro', sans-serif;
font-style: normal;
font-weight: 400;
src: url('/fonts/SourceSansPro-Regular.woff2') format('woff2');
font-display: swap;
font-display: optional;
}

/* purgecss start ignore */
Expand Down
8 changes: 8 additions & 0 deletions content/articles/ideal-desk-setup-personal-journey.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,11 @@ A few years ago, when I was living in Paris, I would spend a fortune at [Aroma Z
## And you, what is your ideal desk setup?

Everyone is different, and our needs and aspirations are different. I am curious to know - what is your ideal desk setup? What do you like to have on your desk? What do you enjoy doing? What is your dream setup?

<div style={{ display: 'flex', justifyContent: 'center' }}>
<LinkedInEmbed
url="https://www.linkedin.com/embed/feed/update/urn:li:share:7091183319584833536"
postUrl="https://www.linkedin.com/posts/thedaviddias_desksetup-homeoffice-desk-activity-7091183321329647616-TrhV?utm_source=share&utm_medium=member_desktop"
width={525}
/>
</div>

2 comments on commit a0715bd

@vercel
Copy link

@vercel vercel bot commented on a0715bd Aug 3, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on a0715bd Aug 3, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.