Skip to content

Commit 9ca4553

Browse files
authored
Merge pull request #52 from Logging-Stuff/v0-inc
V0 integration
2 parents ecf1e27 + 75cc6d3 commit 9ca4553

File tree

160 files changed

+7050
-4296
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+7050
-4296
lines changed

.github/workflows/deploy.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ on:
44
release:
55
types:
66
- published
7-
7+
88
jobs:
99
build-and-deploy:
1010
runs-on: ubuntu-latest
1111

1212
steps:
1313
- name: Check out the repository
1414
uses: actions/checkout@v4
15-
15+
1616
- name: Setup Docker Buildx
1717
uses: docker/setup-buildx-action@v3
18-
18+
1919
- name: DockerHub login
2020
uses: docker/login-action@v3
2121
with:
@@ -26,7 +26,7 @@ jobs:
2626
run: |
2727
docker build -t devarifhossain/retroui:1.1.9 ./
2828
docker push devarifhossain/retroui:1.1.9
29-
29+
3030
# - name: Set up SSH
3131
# uses: webfactory/ssh-agent@v0.9.0
3232
# with:
@@ -35,7 +35,7 @@ jobs:
3535
# - name: Add VPS to known_hosts
3636
# run: |
3737
# ssh-keyscan -H ${{ secrets.VPS_HOST }} >> ~/.ssh/known_hosts
38-
38+
3939
# - name: Deploy to VPS
4040
# run: |
41-
# ssh ${{ secrets.VPS_USERNAME }}@${{ secrets.VPS_HOST }} "cd /root/retroui && git pull && docker compose -f ./infra/docker-compose.prod.yml up web --build -d"
41+
# ssh ${{ secrets.VPS_USERNAME }}@${{ secrets.VPS_HOST }} "cd /root/retroui && git pull && docker compose -f ./infra/docker-compose.prod.yml up web --build -d"

.prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"tabWidth": 2,
3+
"semi": true,
4+
"printWidth": 80
5+
}

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ Thank you for your interest in contributing to RetroUI 🙏. I hope this guide t
3737

3838
## Adding a New Component
3939

40-
1. Create the main component in `/components/ui/NewComponent/NewComponent.tsx`
40+
1. Create the main component in `/components/retroui/NewComponent/NewComponent.tsx`
4141

4242
```ts
4343
export function NewComponent() {
4444
return <div>This is your component.</div>;
4545
}
4646
```
4747

48-
2. Export your component in `/components/ui/NewComponent/index.ts` and `/components/ui/index.ts`
48+
2. Export your component in `/components/retroui/NewComponent/index.ts` and `/components/retroui/index.ts`
4949

5050
```ts
5151
export * from "./NewComponent";

app/(docs)/docs/[[...slug]]/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { allDocs } from "contentlayer/generated";
33
import { notFound } from "next/navigation";
44
import { format } from "date-fns";
55
import MDX from "@/components/MDX";
6-
import { Text } from "@/components/ui";
6+
import { Text } from "@/components/retroui/Text";
77
import { Metadata } from "next";
88
import { MoveRightIcon, MoveUpRightIcon } from "lucide-react";
99

app/(marketing)/blogs/[slug]/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { allBlogs } from "contentlayer/generated";
33
import { notFound } from "next/navigation";
44
import { format } from "date-fns";
55
import MDX from "@/components/MDX";
6-
import { Avatar, Badge, Button, Text } from "@/components/ui";
6+
import { Avatar, Badge, Button, Text } from "@/components/retroui";
77
import { Metadata } from "next";
88
import { MoveRightIcon, MoveUpRightIcon } from "lucide-react";
99
import Image from "next/image";

app/(marketing)/blogs/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { allBlogs } from "@/.contentlayer/generated";
2-
import { Card, Text } from "@/components/ui";
2+
import { Card, Text } from "@/components/retroui";
33
import Image from "next/image";
44
import Link from "next/link";
55
import React from "react";

app/(marketing)/page.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
Card,
99
Avatar,
1010
Badge,
11-
} from "@/components/ui";
11+
} from "@/components/retroui";
1212
import AccordionStyleDefault from "@/preview/components/accordion-style-default";
1313
import AlertStyleDefaultIcon from "@/preview/components/alert-style-with-icon";
1414
import AvatarStyleCircle from "@/preview/components/avatar-style-circle-sizes";
@@ -32,7 +32,7 @@ async function getContributors(): Promise<
3232
headers: {
3333
"Content-Type": "application/json",
3434
},
35-
}
35+
},
3636
);
3737

3838
const contributorsList = await request.json();
@@ -47,7 +47,7 @@ async function getContributors(): Promise<
4747
avatar: c.avatar_url,
4848
username: c.login,
4949
url: c.html_url,
50-
})
50+
}),
5151
),
5252
];
5353
}

app/(sink)/demo/components/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import {
1515
TabsPanels,
1616
TabsTrigger,
1717
TabsTriggerList,
18-
} from "@/components/ui";
19-
import { Card } from "@/components/ui/Card";
18+
} from "@/components/retroui";
19+
import { Card } from "@/components/retroui/Card";
2020
import BadgeStyleVariants from "@/preview/components/badge-style-variants";
2121
import TestimonialCard from "@/preview/components/card-style-testimonial";
2222
import { CheckCircle } from "lucide-react";

app/global.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,11 @@
7474

7575
.text-outlined {
7676
letter-spacing: 2px;
77-
text-shadow: 0px 0px 0 var(--color-primary), 0px 0px 0 var(--color-primary),
78-
4px 4px 0 var(--color-primary), 4px 4px 0 var(--color-primary);
77+
text-shadow:
78+
0px 0px 0 var(--color-primary),
79+
0px 0px 0 var(--color-primary),
80+
4px 4px 0 var(--color-primary),
81+
4px 4px 0 var(--color-primary);
7982
}
8083

8184
/* Syntax Highlighting stuff */

app/robots.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import type { MetadataRoute } from 'next'
2-
1+
import type { MetadataRoute } from "next";
2+
33
export default function robots(): MetadataRoute.Robots {
44
return {
55
rules: {
6-
userAgent: '*',
7-
allow: '/',
6+
userAgent: "*",
7+
allow: "/",
88
},
9-
sitemap: 'https://retroui.dev/sitemap.xml',
10-
}
11-
}
9+
sitemap: "https://retroui.dev/sitemap.xml",
10+
};
11+
}

components/CodeBlock.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import * as React from "react";
44
import { cn } from "@/lib/utils";
5-
import { Button } from "@/components/ui";
5+
import { Button } from "@/components/retroui";
66

77
interface ICodeBlock extends React.HTMLAttributes<HTMLPreElement> {}
88

@@ -33,7 +33,7 @@ export function CodeBlock({ className, children, ...props }: ICodeBlock) {
3333
<pre
3434
className={cn(
3535
"overflow-x-auto rounded-sm bg-[#282A36] mt-3 mb-6 p-4",
36-
className
36+
className,
3737
)}
3838
{...props}
3939
>

components/ComponentShowcase.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { componentConfig } from "@/config";
22
import { TabGroup, TabList, TabPanels, TabPanel, Tab } from "@headlessui/react";
33
import React, { HTMLAttributes } from "react";
4-
import { Button } from "./ui";
4+
import { Button } from "./retroui";
55

66
interface IComponentShowcase extends HTMLAttributes<HTMLDivElement> {
77
name: keyof typeof componentConfig.examples;

components/HamburgerMenu.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { useState } from "react";
44
import SideNav from "./SideNav";
55
import { AlignJustify, X } from "lucide-react";
6-
import { Button } from "@/components/ui";
6+
import { Button } from "@/components/retroui";
77

88
export default function HamburgerMenu() {
99
const [isOpen, setIsOpen] = useState(false);

components/JoinNewsletter.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import { Button, Text, Input } from "@/components/ui";
3+
import { Button, Text, Input } from "@/components/retroui";
44
import { useState } from "react";
55

66
const INIT = "INIT";
@@ -79,7 +79,7 @@ export function JoinNewsletter() {
7979

8080
// build body
8181
const formBody = `userGroup=${encodeURIComponent(
82-
formStyles.userGroup
82+
formStyles.userGroup,
8383
)}&email=${encodeURIComponent(email)}&mailingLists=`;
8484

8585
// API request to add user to newsletter
@@ -108,7 +108,7 @@ export function JoinNewsletter() {
108108
// check for cloudflare error
109109
if (error.message === "Failed to fetch") {
110110
setErrorMessage(
111-
"Too many signups, please try again in a little while"
111+
"Too many signups, please try again in a little while",
112112
);
113113
} else if (error.message) {
114114
setErrorMessage(error.message);

components/MDX.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import { Alert, Badge, Card, Text } from "@/components/ui";
3+
import { Alert, Badge, Card, Text } from "@/components/retroui";
44
import { useMDXComponent } from "next-contentlayer/hooks";
55
import React, { AnchorHTMLAttributes, HTMLAttributes } from "react";
66
import { ComponentShowcase } from "./ComponentShowcase";
@@ -83,7 +83,7 @@ const components = (type: "doc" | "blog") => ({
8383
<code
8484
className={cn(
8585
"relative rounded-sm bg-[#282A36] p-1 text-primary text-sm",
86-
className
86+
className,
8787
)}
8888
{...props}
8989
>

components/SideNav.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

33
import { navConfig } from "@/config/navigation";
4-
import { Badge, Text } from "@/components/ui";
4+
import { Badge, Text } from "@/components/retroui";
55
import Link from "next/link";
66
import { usePathname } from "next/navigation";
77

components/Testimonial.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Text, Card, Avatar } from "@/components/ui";
1+
import { Text, Card, Avatar } from "@/components/retroui";
22

33
interface TestimonialCardProps {
44
quote: string;

components/TopNav.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Link from "next/link";
33
import Image from "next/image";
44
import { GithubIcon } from "lucide-react";
55
import HamburgerMenu from "./HamburgerMenu";
6-
import { Button, Text } from "@/components/ui";
6+
import { Button, Text } from "@/components/retroui";
77
import { navConfig } from "@/config/navigation";
88

99
export default function TopNav() {

components/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from "./ComponentShowcase";
2-
export * from "./JoinNewsletter";
2+
export * from "./JoinNewsletter";

components/ui/Accordion.tsx renamed to components/retroui/Accordion.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const AccordionItem = React.forwardRef<
1616
ref={ref}
1717
className={cn(
1818
"border-2 border-black shadow-md hover:shadow-sm data-[state=open]:shadow-sm transition-all overflow-hidden",
19-
className
19+
className,
2020
)}
2121
{...props}
2222
/>
@@ -32,7 +32,7 @@ const AccordionHeader = React.forwardRef<
3232
ref={ref}
3333
className={cn(
3434
"flex flex-1 items-start justify-between px-4 py-2 font-head text-black cursor-pointer focus:outline-hidden [&[data-state=open]>svg]:rotate-180",
35-
className
35+
className,
3636
)}
3737
{...props}
3838
>

components/ui/Alert.tsx renamed to components/retroui/Alert.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { HtmlHTMLAttributes } from "react";
22
import { cva, type VariantProps } from "class-variance-authority";
33

44
import { cn } from "@/lib/utils";
5-
import { Text } from "@/components/ui/Text";
5+
import { Text } from "@/components/retroui/Text";
66

77
const alertVariants = cva("relative w-full border-2 border-black p-4", {
88
variants: {

components/ui/Avatar.tsx renamed to components/retroui/Avatar.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Avatar = React.forwardRef<
1111
ref={ref}
1212
className={cn(
1313
"relative flex h-14 w-14 border-2 border-black rounded-full overflow-hidden",
14-
className
14+
className,
1515
)}
1616
{...props}
1717
/>
@@ -38,7 +38,7 @@ const AvatarFallback = React.forwardRef<
3838
ref={ref}
3939
className={cn(
4040
"flex h-full w-full items-center justify-center rounded-full bg-muted bg-primary",
41-
className
41+
className,
4242
)}
4343
{...props}
4444
/>
File renamed without changes.
File renamed without changes.

components/ui/Button.tsx renamed to components/retroui/Button.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const buttonVariants = cva(
2525
size: "md",
2626
variant: "default",
2727
},
28-
}
28+
},
2929
);
3030

3131
export interface IButtonProps
@@ -41,7 +41,7 @@ export const Button = React.forwardRef<HTMLButtonElement, IButtonProps>(
4141
variant = "default",
4242
...props
4343
}: IButtonProps,
44-
forwardedRef
44+
forwardedRef,
4545
) => (
4646
<button
4747
ref={forwardedRef}
@@ -50,7 +50,7 @@ export const Button = React.forwardRef<HTMLButtonElement, IButtonProps>(
5050
>
5151
{children}
5252
</button>
53-
)
53+
),
5454
);
5555

5656
Button.displayName = "Button";

components/ui/Card.tsx renamed to components/retroui/Card.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Card = ({ className, ...props }: ICardProps) => {
1111
<div
1212
className={cn(
1313
"inline-block border-2 border-black shadow-md transition-all hover:shadow-xs",
14-
className
14+
className,
1515
)}
1616
{...props}
1717
/>

components/ui/Checkbox.tsx renamed to components/retroui/Checkbox.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const Checkbox = ({
3838
size,
3939
variant,
4040
}),
41-
className
41+
className,
4242
)}
4343
{...props}
4444
>

0 commit comments

Comments
 (0)