Skip to content

Commit aaf751d

Browse files
committed
🔨 fixed all build errors
1 parent 1e9da61 commit aaf751d

File tree

7 files changed

+43
-29
lines changed

7 files changed

+43
-29
lines changed

app/(marketing)/page.tsx

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"use client";
2-
31
import { JoinNewsletter } from "@/components";
42
import {
53
Accordion,
@@ -12,9 +10,9 @@ import {
1210
H3,
1311
H4,
1412
Input,
15-
ProductCard,
1613
Textarea,
1714
} from "@/packages/ui";
15+
import Image from "next/image";
1816
import Link from "next/link";
1917

2018
export default function Home() {
@@ -31,12 +29,16 @@ export default function Home() {
3129
</p>
3230

3331
<div className="max-w-96 grid gap-4 mx-auto grid-cols-2">
34-
<Link href="/components" passHref>
32+
<Link href="/docs" passHref>
3533
<Button className="w-full" aria-label="Get Started with RetroUI">
3634
Get Started
3735
</Button>
3836
</Link>
39-
<Link href="/components" passHref>
37+
<Link
38+
href="https://github.com/ariflogs/retroui"
39+
target="_blank"
40+
passHref
41+
>
4042
<Button
4143
className="w-full"
4244
variant="outline"
@@ -109,49 +111,49 @@ export default function Home() {
109111

110112
<section className="container max-w-6xl mx-auto">
111113
<H2 className="mb-16">
112-
And NO! We didn't just copy Gumroad!
114+
And NO! We didn&apos;t just copy Gumroad!
113115
<br />
114116
Inspired, if you will... 💅
115117
</H2>
116118

117119
<div className="grid grid-cols-1 lg:grid-cols-3 items-center">
118-
<img
120+
<Image
119121
src="/images/our_product_card.png"
120122
alt="our product card"
121-
className="w-80"
123+
width={300}
124+
height={500}
122125
/>
123126
<H3 className="lg:hidden mt-2 mb-12">👆 RetroUI Card</H3>
124127

125128
<div className="hidden lg:block space-y-4">
126129
<H2 className="text-left">👈 RetroUI Card</H2>
127-
<H2 className="text-right">Gumroad's Card 👉</H2>
130+
<H2 className="text-right">Gumroad&apos;s Card 👉</H2>
128131
</div>
129-
<img
132+
<Image
130133
src="/images/gumroad_product_card.png"
131134
alt="our product card"
132-
className="w-72 ml-auto"
135+
className="ml-auto"
136+
width={300}
137+
height={600}
133138
/>
134-
<H3 className="lg:hidden mt-2">👆 Gumroad's Card</H3>
139+
<H3 className="lg:hidden mt-2">👆 Gumroad&apos;s Card</H3>
135140
</div>
136141
</section>
137142

138143
<JoinNewsletter />
139144
<footer className="bg-black py-8">
140145
<div className="container max-w-6xl mx-auto flex flex-col lg:flex-row space-y-4 lg:space-y-0 justify-between items-center">
141146
<div className="flex justify-center space-x-4">
142-
<a
143-
href="https://twitter.com/ariflogs"
144-
className="text-primary-500 mx-2"
145-
>
147+
<a href="https://twitter.com/ariflogs" className="text-primary-500">
146148
Twitter
147149
</a>
148150
<a
149151
href="https://github.com/ariflogs/retroui"
150-
className="text-primary-500 mx-2"
152+
className="text-primary-500"
151153
>
152154
GitHub
153155
</a>
154-
<a href="/docs" className="text-primary-500 mx-2">
156+
<a href="/docs" className="text-primary-500">
155157
Documentation
156158
</a>
157159
</div>

components/JoinNewsletter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client"
2+
13
import { Button, H2, Input } from "@/packages/ui";
24
import { useState } from "react";
35

@@ -115,8 +117,6 @@ export function JoinNewsletter() {
115117
});
116118
};
117119

118-
const isInline = formStyles.formStyle === "inline";
119-
120120
switch (formState) {
121121
case SUCCESS:
122122
return (

components/TopNav.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from "react";
22
import Link from "next/link";
3-
import { GitBranchIcon, GithubIcon } from "lucide-react";
3+
import Image from "next/image";
4+
import { GithubIcon } from "lucide-react";
45
import HamburgerMenu from "./HamburgerMenu";
56
import { Button } from "@/packages/ui";
67
import { navConfig } from "@/config/navigation";
@@ -16,10 +17,12 @@ export default function TopNav() {
1617
href="/"
1718
className="text-black font-head text-2xl flex items-end"
1819
>
19-
<img
20+
<Image
2021
src="/images/logo_full.png"
2122
alt="retro ui logo"
22-
className="w-16 mr-2"
23+
className="mr-2"
24+
height={30}
25+
width={60}
2326
/>
2427
RetroUI
2528
</a>

config/components.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ export const componentConfig = {
7979
type="text"
8080
placeholder="type something..."
8181
className="px-4 py-2 w-full border-2 border-black shadow-md transition focus:outline-none focus:shadow-xs"
82+
/>`,
83+
},
84+
"textarea-style-default": {
85+
name: "textarea-style-default",
86+
preview: lazy(() => import("@/preview/components/textarea-style-default")),
87+
codeHtml: `<textarea
88+
rows="4"
89+
placeholder="type something..."
90+
className="px-4 py-2 w-full border-2 border-black shadow-md transition focus:outline-none focus:shadow-xs"
8291
/>`,
8392
},
8493
"typography-headings": {

content/docs/components/card.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Default Button
3-
description: This bold button makes sure your users click on it and perform the actions you want! 🚀
2+
title: Default Card
3+
description: A customizable card component to visualize your content. 📝
44
lastUpdated: 30 Sep, 2024
55
---
66

content/docs/components/input.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Default Button
3-
description: This bold button makes sure your users click on it and perform the actions you want! 🚀
2+
title: Default Input
3+
description: This pretty input makes your users want to type stuff! ⌨️
44
lastUpdated: 30 Sep, 2024
55
---
66

content/docs/components/textarea.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Default Button
3-
description: This bold button makes sure your users click on it and perform the actions you want! 🚀
2+
title: Default Textarea
3+
description: This pretty input makes your users want to type lots of stuff! ⌨️ ⌨️
44
lastUpdated: 30 Sep, 2024
55
---
66

0 commit comments

Comments
 (0)