Skip to content

Commit 3adb1f8

Browse files
authored
Merge pull request #74 from rubixvi/development
feat: refactor styles and components for improved UI consistency and …
2 parents 7563346 + 2acabdb commit 3adb1f8

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default async function Pages({ params }: PageProps) {
3030
<PageBreadcrumb paths={slug} />
3131

3232
<Typography>
33-
<h1 className="text-3xl !font-semibold mb-2!">{frontmatter.title}</h1>
33+
<h1 className="text-3xl !font-semibold !mb-2">{frontmatter.title}</h1>
3434
<p className="-mt-4 text-sm">
3535
{frontmatter.description}
3636
</p>

app/layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Footer } from "@/components/navigation/footer"
77
import { Navbar } from "@/components/navigation/navbar"
88
import { Providers } from "@/components/providers"
99

10-
import "./globals.css"
10+
import "@/styles/globals.css"
1111

1212
const inter = Inter({
1313
variable: "--font-inter",

app/page.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ import { buttonVariants } from "@/components/ui/button"
66
export default function Home() {
77
return (
88
<section className="min-h-[86.5vh] flex flex-col justify-center items-center text-center px-2 py-8">
9+
910
<h1 className="text-4xl font-bold mb-4 sm:text-7xl">Documents</h1>
1011
<p className="max-w-[600px] text-foreground mb-8 sm:text-base">
1112
A simple open-source product documentation platform. That&apos;s simple
1213
to use and easy to customize.
1314
</p>
15+
1416
<div className="flex items-center gap-5">
1517
<Link
1618
href={`/docs${PageRoutes[0].href}`}
@@ -19,6 +21,7 @@ export default function Home() {
1921
Get Started
2022
</Link>
2123
</div>
24+
2225
</section>
2326
)
2427
}

components/markdown/card.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ export function Card({
7373
)}
7474
<div
7575
className={clsx(
76-
"transition-all duration-300 group-hover:font-bold",
76+
"transition-all duration-300 font-semibold group-hover:font-bold",
7777
variant === "small"
7878
? "text-sm"
7979
: variant === "image"
80-
? "text-sm !p-4 !py-2"
81-
: "text-lg font-semibold",
80+
? "text-sm p-4"
81+
: "text-lg",
8282
className
8383
)}
8484
>

components/markdown/copy.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ export default function Copy({ content }: { content: string }) {
2020

2121
return (
2222
<Button
23-
variant="ghost"
23+
variant="outline"
2424
size="icon"
2525
onClick={handleCopy}
26-
className="cursor-pointer !size-5"
26+
className="cursor-pointer !size-8"
2727
>
2828
<LuCopy
2929
className={cn(

components/markdown/step.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function Step({ children }: PropsWithChildren<StepProps>) {
1919
clsx({ "pb-5": index < length - 1 })
2020
)}
2121
>
22-
<div className="absolute -left-4 flex items-center justify-center w-8 h-8 rounded-full bg-secondary text-xs font-code font-medium">
22+
<div className="absolute -left-4 flex items-center justify-center size-8 rounded-full border bg-secondary text-xs font-medium">
2323
{index + 1}
2424
</div>
2525
{child}

app/globals.css styles/globals.css

File renamed without changes.

0 commit comments

Comments
 (0)