Skip to content

Commit 887c541

Browse files
committed
gradient
1 parent 3d31001 commit 887c541

10 files changed

Lines changed: 383 additions & 238 deletions

File tree

apps/web/app/globals.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,8 @@
7878
transform: scale(2);
7979
width: fit-content;
8080
height: fit-content;
81-
}
81+
}
82+
83+
.roboto-flex {
84+
font-family: var(--font-roboto-flex), sans-serif;
85+
}

apps/web/app/layout.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import type { Metadata } from "next";
22
import localFont from "next/font/local";
3+
import { Roboto_Flex } from "next/font/google";
4+
35
import "./globals.css";
46

57
const geistSans = localFont({
@@ -10,7 +12,10 @@ const geistMono = localFont({
1012
src: "./fonts/GeistMonoVF.woff",
1113
variable: "--font-geist-mono",
1214
});
13-
15+
const robotoFlex = Roboto_Flex({
16+
subsets: ["latin"],
17+
variable: "--font-roboto-flex",
18+
});
1419
const keyworsSeo = [
1520
"postermaker",
1621
"interactive",
@@ -65,7 +70,7 @@ export default function RootLayout({
6570
content="Create stunning posters with Postermaker.dev, the interactive poster maker app. Design your own posters easily with our web-based tool."
6671
/>
6772
</head>
68-
<body className={`${geistSans.variable} ${geistMono.variable}`}>
73+
<body className={`${geistSans.variable} ${geistMono.variable} ${robotoFlex.variable}`}>
6974
{children}
7075
</body>
7176
</html>

apps/web/app/page.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ const tabs = [
1515
{
1616
key: "chatgpt",
1717
label: "ChatGPT Card",
18+
},
19+
{
20+
key: "gradient",
21+
label: "Gradient Card",
1822
}
19-
// ,
20-
// {
21-
// key: "gradient",
22-
// label: "Gradient Card",
23-
// },
2423
];
2524

2625
export default function Home() {
@@ -31,7 +30,7 @@ export default function Home() {
3130
<CardSizeProvider>
3231
{tab === "markdown" ? <QuizMarkdownEditor /> : null}
3332
{tab === "chatgpt" ? <ChatgptEditor /> : null}
34-
{/* {tab === "gradient" ? <GradientEditor /> : null} */}
33+
{tab === "gradient" ? <GradientEditor /> : null}
3534
</CardSizeProvider>
3635
</MainHomeLayout>
3736
);

apps/web/components/chatgpt-editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export default function ChatgptEditor() {
176176
value={text}
177177
name="text"
178178
onChange={(e) => setStateValue(e.target.name, e.target.value)}
179-
placeholder="Paste your markdown here..."
179+
placeholder="Paste your prompt here..."
180180
/>
181181

182182
<div className="flex flex-col mt-4 border p-2 rounded-md">

0 commit comments

Comments
 (0)