Skip to content

Commit

Permalink
Update social card
Browse files Browse the repository at this point in the history
adeira-source-id: 9df557197fc8092575733df59a24bc9b5e48fc3a
  • Loading branch information
itsdouges authored and triplex-bot committed Jan 18, 2024
1 parent fdbb50a commit f0359d0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
Binary file added apps/docs/pages/api/Karla-Bold.ttf
Binary file not shown.
25 changes: 13 additions & 12 deletions apps/docs/pages/api/og.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ async function getAssets() {
const imageData = fetch(new URL("./bg.png", import.meta.url)).then(
(res) => res.arrayBuffer() as unknown as string
);
const extraBold = fetch(
new URL("./Karla-ExtraBold.ttf", import.meta.url)
).then((res) => res.arrayBuffer());
const bold = fetch(new URL("./Karla-Bold.ttf", import.meta.url)).then((res) =>
res.arrayBuffer()
);
const medium = fetch(new URL("./Karla-Medium.ttf", import.meta.url)).then(
(res) => res.arrayBuffer()
);

return Promise.all([imageData, extraBold, medium]);
return Promise.all([imageData, bold, medium]);
}

export default async function(request: Request) {
const [imageData, extraBold, medium] = await getAssets();
export default async function (request: Request) {
const [imageData, bold, medium] = await getAssets();

const { searchParams } = new URL(request.url);
const title = searchParams.has("title")
Expand Down Expand Up @@ -53,7 +53,7 @@ export default async function(request: Request) {
gap: 20,
height: "100%",
justifyContent: "center",
maxWidth: 1150,
maxWidth: 1000,
paddingLeft: 80,
paddingRight: 80,
width: "100%",
Expand All @@ -66,6 +66,7 @@ export default async function(request: Request) {
fontFamily: "Karla-Medium",
fontSize: 28,
letterSpacing: "-.025em",
marginBottom: -14,
opacity: 0.7,
}}
>
Expand All @@ -75,8 +76,8 @@ export default async function(request: Request) {
<span
style={{
color: "white",
fontFamily: "Karla-ExtraBold",
fontSize: 110,
fontFamily: "Karla-Bold",
fontSize: 74,
letterSpacing: "-.05em",
lineHeight: 1,
opacity: 0.9,
Expand All @@ -88,7 +89,7 @@ export default async function(request: Request) {
style={{
color: "white",
fontFamily: "Karla-Medium",
fontSize: 36,
fontSize: 30,
letterSpacing: "-.025em",
opacity: 0.8,
}}
Expand All @@ -101,8 +102,8 @@ export default async function(request: Request) {
{
fonts: [
{
data: extraBold,
name: "Karla-ExtraBold",
data: bold,
name: "Karla-Bold",
style: "normal",
},
{
Expand Down
10 changes: 5 additions & 5 deletions apps/docs/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
title: Triplex — The React Three Fiber Editor
ogTitle: Visually Edit React Three Fiber Components
description:
Code is source of truth, build scenes, reusable components, and more. Made for
coders, artists, everyone.
Your component types populate the editor, build scenes, reusable components,
and more.
---

import { BigDownloadLink, Hero } from "../components/hero";
import { IntroVideo } from "../components/intro-video";
import { LazyCanvas } from "../components/three";
import { Hero, BigDownloadLink, DownloadLink } from "../components/hero";
import { ValueProp } from "../components/value-prop";
import { Tweets } from "../components/tweets";
import { IntroVideo } from "../components/intro-video";
import { ValueProp } from "../components/value-prop";

<Hero />

Expand Down

0 comments on commit f0359d0

Please sign in to comment.