Skip to content

Commit c8d7479

Browse files
committed
added responsiveness
1 parent 73a7809 commit c8d7479

File tree

6 files changed

+26
-16
lines changed

6 files changed

+26
-16
lines changed

app/(marketing)/page.tsx

+10-10
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import Link from "next/link";
1818
export default function Home() {
1919
return (
2020
<main className="space-y-36">
21-
<section className="container max-w-6xl mx-auto mt-36 text-gray-900 flex justify-center items-center">
22-
<div className="w-2/3">
21+
<section className="container max-w-6xl mx-auto px-4 lg:px-0 mt-36 text-gray-900 flex justify-center items-center">
22+
<div className="text-center lg:text-left w-full lg:w-2/3">
2323
<H1>Make your projects</H1>
2424
<H1 className="text-outlined">stand out!</H1>
2525

@@ -29,7 +29,7 @@ export default function Home() {
2929
{/* <br /> Now available for both HTML and React! */}
3030
</p>
3131

32-
<div className="max-w-96 grid gap-4 grid-cols-2">
32+
<div className="max-w-96 grid gap-4 grid-cols-2 mx-auto lg:mx-0">
3333
<Link href="/docs" passHref>
3434
<Button className="w-full" aria-label="Get Started with RetroUI">
3535
Get Started
@@ -50,7 +50,7 @@ export default function Home() {
5050
</Link>
5151
</div>
5252
</div>
53-
<div className="w-1/3">
53+
<div className="hidden lg:block lg:w-1/3">
5454
<img
5555
alt="orange cool cat"
5656
src="/images/orange_boos.png"
@@ -59,7 +59,7 @@ export default function Home() {
5959
</div>
6060
</section>
6161

62-
<section className="container max-w-6xl mx-auto ">
62+
<section className="container max-w-6xl mx-auto px-4 lg:px-0">
6363
<H2 className="mb-16 text-center">
6464
Our components look both old school and modern! ✨
6565
</H2>
@@ -71,7 +71,7 @@ export default function Home() {
7171
</div>
7272
<div className="space-y-4">
7373
<H4>Badge</H4>
74-
<div className="space-x-2">
74+
<div className="flex flex-wrap space-y-2 lg:space-y-0 space-x-2">
7575
<Badge>Default Badge</Badge>
7676
<Badge variant="error">Error Badge</Badge>
7777
</div>
@@ -101,7 +101,7 @@ export default function Home() {
101101
</div>
102102
</section>
103103

104-
<section className="container max-w-6xl mx-auto">
104+
<section className="container max-w-6xl mx-auto px-4 lg:px-0">
105105
<H2 className="mb-16 text-center">
106106
And NO! We didn&apos;t just copy Gumroad!
107107
<br />
@@ -124,19 +124,19 @@ export default function Home() {
124124
<Image
125125
src="/images/gumroad_product_card.png"
126126
alt="our product card"
127-
className="ml-auto"
127+
className="mr-auto lg:ml-auto"
128128
width={300}
129129
height={600}
130130
/>
131131
<H3 className="lg:hidden mt-2">👆 Gumroad&apos;s Card</H3>
132132
</div>
133133
</section>
134134

135-
<section className="container max-w-6xl mx-auto border-2 bg-primary-400 border-black p-16">
135+
<section className="container max-w-6xl mx-auto border-2 bg-primary-400 border-black py-16 px-4 lg:p-16">
136136
<H2 className="mb-8 text-center">
137137
And did I mention it&apos;s Free and Open Source?
138138
</H2>
139-
<div className="flex justify-center space-x-4">
139+
<div className="flex flex-col lg:flex-row items-center justify-center space-y-4 lg:space-y-0 lg:space-x-4">
140140
<Link
141141
href="https://github.com/ariflogs/retroui"
142142
target="_blank"

app/favicon.ico

2.07 KB
Binary file not shown.

app/layout.tsx

+11-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,18 @@ const shareTechMono = Share_Tech_Mono({
2323

2424
export const metadata: Metadata = {
2525
title: "Retro Styled Tailwind UI Library | Retro UI",
26-
description: "RetroUI - Retro styled TailwindCSS component library for modern web apps.",
26+
description:
27+
"RetroUI - Retro styled TailwindCSS component library for modern web apps.",
2728
openGraph: {
28-
images: ['/banner.png']
29-
}
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+
},
3038
};
3139

3240
export default function RootLayout({

components/TopNav.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { navConfig } from "@/config/navigation";
99
export default function TopNav() {
1010
return (
1111
<nav className="fixed top-0 h-16 left-0 right-0 w-full border-b-2 border-black bg-white">
12-
<div className="container max-w-6xl mx-auto">
12+
<div className="container max-w-6xl px-4 lg:px-0 mx-auto">
1313
<div className="flex justify-between items-center h-16">
1414
{/* Logo Section */}
1515
<div className="flex-shrink-0">

packages/ui/Typography/H1.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
66

77
export function H1({ children, className }: HeadingProps) {
88
return (
9-
<h1 className={`font-head text-5xl lg:text-6xl font-bold ${className}`}>{children}</h1>
9+
<h1 className={`font-head text-5xl lg:text-6xl font-bold ${className}`}>
10+
{children}
11+
</h1>
1012
);
1113
}

packages/ui/Typography/H2.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
66

77
export function H2({ children, className }: HeadingProps) {
88
return (
9-
<h2 className={`font-head text-4xl font-semibold ${className}`}>
9+
<h2 className={`font-head text-3xl lg:text-4xl font-semibold ${className}`}>
1010
{children}
1111
</h2>
1212
);

0 commit comments

Comments
 (0)