Skip to content

Commit 821dd5a

Browse files
authored
Merge pull request #44 from Logging-Stuff/install-guide
New Install guide
2 parents bbaa57f + 14c6cef commit 821dd5a

File tree

117 files changed

+557
-223
lines changed

Some content is hidden

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

117 files changed

+557
-223
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
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.1.2 ./
28-
docker push devarifhossain/retroui:1.1.2
27+
docker build -t devarifhossain/retroui:1.1.3 ./
28+
docker push devarifhossain/retroui:1.1.3
2929
3030
# - name: Set up SSH
3131
# uses: webfactory/ssh-agent@v0.9.0

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions

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

Lines changed: 3 additions & 3 deletions
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 "@/packages/ui";
6+
import { Text } from "@/components/ui";
77
import { Metadata } from "next";
88
import { MoveRightIcon, MoveUpRightIcon } from "lucide-react";
99

@@ -47,8 +47,8 @@ export default function page({ params }: IProps) {
4747
return (
4848
<div className="space-y-12 py-8">
4949
<div className="border-b border-black pb-6">
50-
<Text as="h2">{doc.title}</Text>
51-
<p className="text-lg text-muted">{doc.description}</p>
50+
<Text as="h1">{doc.title}</Text>
51+
<p className="text-lg text-muted mt-2">{doc.description}</p>
5252
{doc.links && (
5353
<div className="flex space-x-4 text-sm mt-4">
5454
{doc.links?.api_reference && (

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

Lines changed: 1 addition & 1 deletion
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 "@/packages/ui";
6+
import { Avatar, Badge, Button, Text } from "@/components/ui";
77
import { Metadata } from "next";
88
import { MoveRightIcon, MoveUpRightIcon } from "lucide-react";
99
import Image from "next/image";

app/(marketing)/blogs/page.tsx

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

app/(marketing)/page.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
Card,
99
Avatar,
1010
Badge,
11-
} from "@/packages/ui";
11+
} from "@/components/ui";
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";
@@ -73,8 +73,10 @@ export default async function Home() {
7373
</Badge>
7474
</Link>
7575

76-
<Text as="h1">Make your projects</Text>
77-
<Text as="h1" className="text-outlined">
76+
<Text as="h1" className="text-5xl lg:text-6xl">
77+
Make your projects
78+
</Text>
79+
<Text as="h1" className="text-5xl lg:text-6xl text-outlined">
7880
stand out!
7981
</Text>
8082

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import {
1515
TabsPanels,
1616
TabsTrigger,
1717
TabsTriggerList,
18-
} from "@/packages/ui";
19-
import { Card } from "@/packages/ui/Cards/Card";
20-
import { RadioGroup } from "@/packages/ui/Form/Radio";
18+
} from "@/components/ui";
19+
import { Card } from "@/components/ui/Cards/Card";
20+
import { RadioGroup } from "@/components/ui/Form/Radio";
2121
import BadgeStyleVariants from "@/preview/components/badge-style-variants";
2222
import TestimonialCard from "@/preview/components/card-style-testimonial";
2323
import { CheckCircle } from "lucide-react";

components/CodeBlock.tsx

Lines changed: 1 addition & 1 deletion
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 "@/packages/ui";
5+
import { Button } from "@/components/ui";
66

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

components/HamburgerMenu.tsx

Lines changed: 1 addition & 1 deletion
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 "@/packages/ui";
6+
import { Button } from "@/components/ui";
77

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

components/JoinNewsletter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

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

66
const INIT = "INIT";

components/MDX.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import { Text } from "@/packages/ui";
3+
import { Alert, Badge, Card, Text } from "@/components/ui";
44
import { useMDXComponent } from "next-contentlayer/hooks";
55
import React, { AnchorHTMLAttributes, HTMLAttributes } from "react";
66
import { ComponentShowcase } from "./ComponentShowcase";
@@ -9,7 +9,8 @@ import { ComponentSource } from "./ComponentSource";
99
import { CodeBlock } from "./CodeBlock";
1010
import Link from "next/link";
1111
import { ComponentInstall } from "./ComponentInstall";
12-
import { TabGroup } from "@headlessui/react";
12+
import Image from "next/image";
13+
import { Tab, TabGroup, TabList, TabPanel, TabPanels } from "@headlessui/react";
1314

1415
const components = (type: "doc" | "blog") => ({
1516
h1: (props: HTMLAttributes<HTMLHeadingElement>) => (
@@ -89,6 +90,16 @@ const components = (type: "doc" | "blog") => ({
8990
{children}
9091
</code>
9192
),
93+
TabGroup,
94+
TabList,
95+
Tab,
96+
TabPanels,
97+
TabPanel,
98+
Link,
99+
Badge,
100+
Image,
101+
Card,
102+
Alert,
92103
ComponentShowcase,
93104
ComponentSource,
94105
ComponentInstall,

components/SideNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { navConfig } from "@/config/navigation";
2-
import { Badge, Text } from "@/packages/ui";
2+
import { Badge, Text } from "@/components/ui";
33
import Link from "next/link";
44

55
export default function SideNav() {

components/Testimonial.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Text, Card, Avatar } from "@/packages/ui";
1+
import { Text, Card, Avatar } from "@/components/ui";
22

33
interface TestimonialCardProps {
44
quote: string;

components/TopNav.tsx

Lines changed: 1 addition & 1 deletion
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, HeartIcon } from "lucide-react";
55
import HamburgerMenu from "./HamburgerMenu";
6-
import { Button } from "@/packages/ui";
6+
import { Button } from "@/components/ui";
77
import { navConfig } from "@/config/navigation";
88

99
export default function TopNav() {
File renamed without changes.

packages/ui/Alerts/Alert.tsx renamed to components/ui/Alerts/Alert.tsx

Lines changed: 1 addition & 1 deletion
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 "../Text";
5+
import { Text } from "@/components/ui/Text";
66

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

packages/ui/Cards/Card.tsx renamed to components/ui/Cards/Card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { cn } from "@/lib/utils";
22
import { HTMLAttributes } from "react";
3-
import { Text } from "../Text";
3+
import { Text } from "@/components/ui/Text";
44

55
interface ICardProps extends HTMLAttributes<HTMLDivElement> {
66
className?: string;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/ui/Menu/Menu.tsx renamed to components/ui/Menu/Menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { cn } from "@/lib/utils";
44
import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
5-
import React, { ComponentPropsWithoutRef, HTMLAttributes } from "react";
5+
import React, { ComponentPropsWithoutRef } from "react";
66

77
const Menu = DropdownMenu.Root;
88
const Trigger = DropdownMenu.Trigger;
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/ui/Text/Text.tsx renamed to components/ui/Text/Text.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const textVariants = cva("font-head", {
88
p: "font-sans text-base",
99
li: "font-sans text-base",
1010
a: "font-sans text-base hover:underline underline-offset-2 decoration-primary-500",
11-
h1: "text-5xl lg:text-6xl font-bold",
11+
h1: "text-4xl lg:text-5xl font-bold",
1212
h2: "text-3xl lg:text-4xl font-semibold",
1313
h3: "text-2xl font-medium",
1414
h4: "text-xl font-normal",
File renamed without changes.
File renamed without changes.

config/components.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,59 +21,59 @@ export const componentConfig: {
2121
accordion: {
2222
name: "accordion",
2323
dependencies: ["@radix-ui/react-accordion", "lucide-react"],
24-
filePath: "packages/ui/Accordions/Accordion.tsx",
24+
filePath: "components/ui/Accordions/Accordion.tsx",
2525
},
2626
alert: {
2727
name: "alert",
28-
filePath: "packages/ui/Alerts/Alert.tsx",
28+
filePath: "components/ui/Alerts/Alert.tsx",
2929
},
3030
avatar: {
3131
name: "avatar",
32-
filePath: "packages/ui/Avatars/Avatar.tsx",
32+
filePath: "components/ui/Avatars/Avatar.tsx",
3333
},
3434
badge: {
3535
name: "badge",
36-
filePath: "packages/ui/Badges/Badge.tsx",
36+
filePath: "components/ui/Badges/Badge.tsx",
3737
},
3838
button: {
3939
name: "button",
40-
filePath: "packages/ui/Buttons/Button.tsx",
40+
filePath: "components/ui/Buttons/Button.tsx",
4141
},
4242
card: {
4343
name: "card",
44-
filePath: "packages/ui/Cards/Card.tsx",
44+
filePath: "components/ui/Cards/Card.tsx",
4545
},
4646
checkbox: {
4747
name: "checkbox",
48-
filePath: "packages/ui/Form/Checkbox.tsx",
48+
filePath: "components/ui/Form/Checkbox.tsx",
4949
},
5050
dialog: {
5151
name: "dialog",
52-
filePath: "packages/ui/Dialog/Dialog.tsx",
52+
filePath: "components/ui/Dialog/Dialog.tsx",
5353
},
5454
input: {
5555
name: "input",
56-
filePath: "packages/ui/Form/Input.tsx",
56+
filePath: "components/ui/Form/Input.tsx",
5757
},
5858
menu: {
5959
name: "menu",
60-
filePath: "packages/ui/Menu/Menu.tsx",
60+
filePath: "components/ui/Menu/Menu.tsx",
6161
},
6262
radio: {
6363
name: "radio",
64-
filePath: "packages/ui/Form/Radio.tsx",
64+
filePath: "components/ui/Form/Radio.tsx",
6565
},
6666
select: {
6767
name: "select",
68-
filePath: "packages/ui/Form/Select.tsx",
68+
filePath: "components/ui/Form/Select.tsx",
6969
},
7070
switch: {
7171
name: "switch",
72-
filePath: "packages/ui/Form/Switch.tsx",
72+
filePath: "components/ui/Form/Switch.tsx",
7373
},
7474
text: {
7575
name: "text",
76-
filePath: "packages/ui/Text/Text.tsx",
76+
filePath: "components/ui/Text/Text.tsx",
7777
},
7878
},
7979
examples: {

config/navigation.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ export const navConfig: INavigationConfig = {
1212
sideNavItems: [
1313
{
1414
title: "Getting Started",
15-
children: [{ title: "Introduction", href: "/docs", tag: "Updated" }],
15+
children: [
16+
{ title: "Introduction", href: "/docs", tag: "Updated" },
17+
{
18+
title: "Installation",
19+
href: "/docs/install",
20+
tag: "New",
21+
},
22+
],
1623
},
1724
{
1825
title: "Components",

content/docs/components/accordion.mdx

Lines changed: 1 addition & 1 deletion

content/docs/components/button.mdx

Lines changed: 1 addition & 1 deletion

content/docs/components/checkbox.mdx

Lines changed: 1 addition & 1 deletion

content/docs/components/dialog.mdx

Lines changed: 1 addition & 1 deletion

content/docs/components/menu.mdx

Lines changed: 1 addition & 1 deletion

content/docs/components/radio.mdx

Lines changed: 1 addition & 1 deletion

content/docs/components/select.mdx

Lines changed: 1 addition & 1 deletion

content/docs/components/switch.mdx

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)