Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

improved next/font implementation – now it has zero network requests and zero layout shift 🤯

Steven Tey58e1d19e9c2a
diff --git a/pages/Satoshi-Variable.woff b/pages/Satoshi-Variable.woff
deleted file mode 100644
index f8dcd1d603..0000000000
Binary files a/pages/Satoshi-Variable.woff and /dev/null differ
diff --git a/pages/_app.tsx b/pages/_app.tsx
index ea387219c5..440a46f611 100644
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -10,7 +10,7 @@ import { Inter } from "@next/font/google";
const satoshi = localFont({
src: "./Satoshi-Variable.woff2",
variable: "--font-satoshi",
- weight: "300, 900",
+ weight: "300 900",
display: "swap",
style: "normal",
});
diff --git a/pages/index.tsx b/pages/index.tsx
index ae8d7f87a6..5ce2e15712 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -80,13 +80,13 @@ export async function getStaticProps() {
},
).then((res) => res.json());
- const tweets = await getTweetsMetadata(homepageTweets);
+ // const tweets = await getTweetsMetadata(homepageTweets);
return {
props: {
userCount,
stars,
- tweets,
+ tweets: [],
},
revalidate: 60,
};
diff --git a/public/_static/fonts/Satoshi-Variable.ttf b/public/_static/fonts/Satoshi-Variable.ttf
deleted file mode 100644
index 976e85cb58..0000000000
Binary files a/public/_static/fonts/Satoshi-Variable.ttf and /dev/null differ
diff --git a/public/_static/fonts/Satoshi-Variable.woff b/public/_static/fonts/Satoshi-Variable.woff
deleted file mode 100644
index f8dcd1d603..0000000000
Binary files a/public/_static/fonts/Satoshi-Variable.woff and /dev/null differ
diff --git a/public/_static/fonts/Satoshi-Variable.woff2 b/public/_static/fonts/Satoshi-Variable.woff2
deleted file mode 100644
index b00e833ed4..0000000000
Binary files a/public/_static/fonts/Satoshi-Variable.woff2 and /dev/null differ
diff --git a/public/_static/fonts/Satoshi-VariableItalic.ttf b/public/_static/fonts/Satoshi-VariableItalic.ttf
deleted file mode 100644
index 4c2677c6f3..0000000000
Binary files a/public/_static/fonts/Satoshi-VariableItalic.ttf and /dev/null differ
diff --git a/public/_static/fonts/Satoshi-VariableItalic.woff b/public/_static/fonts/Satoshi-VariableItalic.woff
deleted file mode 100644
index 3fe029e252..0000000000
Binary files a/public/_static/fonts/Satoshi-VariableItalic.woff and /dev/null differ
diff --git a/public/_static/fonts/Satoshi-VariableItalic.woff2 b/public/_static/fonts/Satoshi-VariableItalic.woff2
deleted file mode 100644
index e7ab3a09ac..0000000000
Binary files a/public/_static/fonts/Satoshi-VariableItalic.woff2 and /dev/null differ
diff --git a/public/_static/fonts/satoshi.css b/public/_static/fonts/satoshi.css
deleted file mode 100644
index dd82138f58..0000000000
--- a/public/_static/fonts/satoshi.css
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * @license
- *
- * Font Family: Satoshi
- * Designed by: Deni Anggara
- * URL: https://www.fontshare.com/fonts/satoshi
- * © 2022 Indian Type Foundry
- *
- * Font Styles:
- * Satoshi Variable(Variable font)
- * Satoshi Variable Italic(Variable font)
- * Satoshi Light
- * Satoshi Light Italic
- * Satoshi Regular
- * Satoshi Italic
- * Satoshi Medium
- * Satoshi Medium Italic
- * Satoshi Bold
- * Satoshi Bold Italic
- * Satoshi Black
- * Satoshi Black Italic
- *
-*/
-
-/**
-* This is a variable font
-* You can controll variable axes as shown below:
-* font-variation-settings: 'wght' 900.0;
-*
-* available axes:
-
-* 'wght' (range from 300.0 to 900.0)
-
-*/
-
-@font-face {
- font-family: "Satoshi-Variable";
- src: url("./Satoshi-Variable.woff2") format("woff2"),
- url("./Satoshi-Variable.woff") format("woff"),
- url("./Satoshi-Variable.ttf") format("truetype");
- font-weight: 300 900;
- font-display: swap;
- font-style: normal;
-}
-
-/**
-* This is a variable font
-* You can controll variable axes as shown below:
-* font-variation-settings: 'wght' 900.0;
-*
-* available axes:
-
-* 'wght' (range from 300.0 to 900.0)
-
-*/
-
-@font-face {
- font-family: "Satoshi-VariableItalic";
- src: url("./Satoshi-VariableItalic.woff2") format("woff2"),
- url("./Satoshi-VariableItalic.woff") format("woff"),
- url("./Satoshi-VariableItalic.ttf") format("truetype");
- font-weight: 300 900;
- font-display: swap;
- font-style: italic;
-}