Skip to content

Commit 0942b2d

Browse files
committed
moved buttons to new docs
1 parent 7c1ec85 commit 0942b2d

File tree

9 files changed

+37
-25
lines changed

9 files changed

+37
-25
lines changed

.github/workflows/deploy.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424

2525
- name: Build and push to DockerHub
2626
run: |
27-
docker build -t devarifhossain/retroui:1.02 ./
28-
docker push devarifhossain/retroui:1.02
27+
docker build -t devarifhossain/retroui:1.03 ./
28+
docker push devarifhossain/retroui:1.03
2929
3030
- name: Set up SSH
3131
uses: webfactory/ssh-agent@v0.9.0
@@ -38,4 +38,4 @@ jobs:
3838
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 -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"

app/layout.tsx

-10
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@ export const metadata: Metadata = {
2525
title: "Retro Styled Tailwind UI Library | Retro UI",
2626
description:
2727
"RetroUI - Retro styled TailwindCSS component library for modern web apps.",
28-
openGraph: {
29-
images: ["/banner.png"],
30-
},
31-
twitter: {
32-
card: "summary_large_image",
33-
title: "Retro Styled Tailwind UI Library | Retro UI",
34-
description:
35-
"RetroUI - Retro styled TailwindCSS component library for modern web apps.",
36-
images: ["/banner.png"],
37-
},
3828
};
3929

4030
export default function RootLayout({

app/open-graph.png

441 KB
Loading

app/twitter-image.png

441 KB
Loading

config/components.ts

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export const componentConfig = {
66
name: "avatar",
77
filePath: "packages/ui/Avatars/Avatar.tsx",
88
},
9+
button: {
10+
name: "button",
11+
filePath: "packages/ui/Buttons/Button.tsx",
12+
},
913
},
1014
examples: {
1115
"accordion-style-default": {

content/docs/components/avatar.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ lastUpdated: 12 Oct, 2024
1010

1111
## Installation
1212

13-
#### 1. Install depenencies:
13+
#### 1. Install dependencies:
1414

1515
```sh
1616
npm install @radix-ui/react-avatar

content/docs/components/button.mdx

+23-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,31 @@
11
---
22
title: Button
33
description: This bold button makes sure your users click on it and perform the actions you want! 🚀
4-
lastUpdated: 30 Sep, 2024
4+
lastUpdated: 12 Oct, 2024
55
---
66

7-
### Default
7+
<ComponentShowcase name="button-style-default" />
8+
<br />
9+
<br />
10+
11+
## Installation
12+
13+
#### 1. Install dependencies:
14+
15+
```sh
16+
npm install class-variance-authority
17+
```
818

9-
<hr />
1019
<br />
20+
21+
#### 2. Copy the code 👇 into your project:
22+
23+
<ComponentSource name="button" />
24+
<br />
25+
<br />
26+
27+
## Examples
28+
29+
### Default
30+
1131
<ComponentShowcase name="button-style-default" />

infra/docker-compose.prod.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
web:
3-
image: devarifhossain/retroui:1.02
3+
image: devarifhossain/retroui:1.03
44
container_name: retroui
55
expose:
66
- "3000"
@@ -16,4 +16,4 @@ services:
1616
volumes:
1717
- ./Caddyfile:/etc/caddy/Caddyfile
1818
depends_on:
19-
- web
19+
- web
+4-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1+
import { Button } from "@/packages/ui";
2+
13
export default function ButtonStyleDefault() {
2-
return (
3-
<button className="bg-primary-400 text-black px-6 py-2 text-base font-head border-2 border-black shadow-md hover:shadow-xs hover:bg-primary-500 transition-all">
4-
Click Me!
5-
</button>
6-
);
7-
}
4+
return <Button>Click Me!</Button>;
5+
}

0 commit comments

Comments
 (0)