Skip to content

Commit 6aab025

Browse files
committed
✅ Headers, landing page responsive
1 parent dfec448 commit 6aab025

File tree

6 files changed

+33
-17
lines changed

6 files changed

+33
-17
lines changed

app/(marketing)/page.tsx

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function Home() {
4747

4848
{/* Features Section */}
4949
<section className="container max-w-6xl mx-auto ">
50-
<div className="grid grid-cols-2 items-center">
50+
<div className="grid gird-cols-1 lg:grid-cols-2 items-center">
5151
<div>
5252
<H3>Why Use RetroUI?</H3>
5353
<H1 className="mt-4">Coz We C00l!!</H1>
@@ -67,7 +67,7 @@ export default function Home() {
6767
Our components look both old school and modern! ✨
6868
</H2>
6969

70-
<div className="grid gap-4 grid-cols-4 mb-8">
70+
<div className="grid gap-4 grid-cols-2 lg:grid-cols-4 mb-8">
7171
<div className="space-y-4">
7272
<H4>Button</H4>
7373
<Button>Click Me</Button>
@@ -88,7 +88,7 @@ export default function Home() {
8888
<Input />
8989
</div>
9090
</div>
91-
<div className="grid gap-8 grid-cols-3">
91+
<div className="grid gap-8 grid-cols-1 lg:grid-cols-3">
9292
<div className="space-y-4">
9393
<H4>Textarea</H4>
9494
<Textarea />
@@ -111,13 +111,15 @@ export default function Home() {
111111
Inspired, if you will... 💅
112112
</H2>
113113

114-
<div className="grid grid-cols-3 items-center">
114+
<div className="grid grid-cols-1 lg:grid-cols-3 items-center">
115115
<img
116116
src="/images/our_product_card.png"
117117
alt="our product card"
118118
className="w-80"
119119
/>
120-
<div className="space-y-4">
120+
<H3 className="lg:hidden mt-2 mb-12">👆 RetroUI Card</H3>
121+
122+
<div className="hidden lg:block space-y-4">
121123
<H3>👈 RetroUI Card</H3>
122124
<H3>Gumroad's Card 👉</H3>
123125
</div>
@@ -126,15 +128,13 @@ export default function Home() {
126128
alt="our product card"
127129
className="w-80"
128130
/>
131+
<H3 className="lg:hidden mt-2">👆 Gumroad's Card</H3>
129132
</div>
130133
</section>
131134

132135
<footer className="bg-black py-8">
133-
<div className="container max-w-6xl mx-auto flex justify-between items-center">
134-
<p className="text-gray-300 text-sm">
135-
Built by <a href="https://twitter.com/ariflogs" className="text-primary-500">Arif Hossain</a>.
136-
</p>
137-
<div className="flex justify-center space-x-4 mb-6">
136+
<div className="container max-w-6xl mx-auto flex flex-col lg:flex-row space-y-4 lg:space-y-0 justify-between items-center">
137+
<div className="flex justify-center space-x-4">
138138
<a
139139
href="https://twitter.com/ariflogs"
140140
className="text-primary-500 mx-2"
@@ -151,6 +151,14 @@ export default function Home() {
151151
Documentation
152152
</a>
153153
</div>
154+
155+
<p className="text-gray-300 text-sm">
156+
Built by{" "}
157+
<a href="https://twitter.com/ariflogs" className="text-primary-500">
158+
Arif Hossain
159+
</a>
160+
.
161+
</p>
154162
</div>
155163
</footer>
156164
</main>

packages/ui/Typography/H1.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
66

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

packages/ui/Typography/H2.tsx

Lines changed: 1 addition & 1 deletion
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-5xl font-semibold ${className}`}>
9+
<h2 className={`font-head text-4xl lg:text-5xl font-semibold ${className}`}>
1010
{children}
1111
</h2>
1212
);

packages/ui/Typography/H3.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
import React, { ReactNode } from "react";
1+
import React, { HTMLAttributes, ReactNode } from "react";
22

3-
export function H3({ children }: { children: ReactNode }) {
4-
return <h3 className="font-head text-3xl font-medium">{children}</h3>;
3+
interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
4+
className?: string;
5+
}
6+
7+
export function H3({ children, className }: HeadingProps) {
8+
return (
9+
<h3 className={`font-head text-2xl lg:text-3xl font-medium ${className}`}>
10+
{children}
11+
</h3>
12+
);
513
}

packages/ui/Typography/H4.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { ReactNode } from "react";
22

33
export function H4({ children }: { children: ReactNode }) {
4-
return <h4 className="font-head text-2xl font-medium">{children}</h4>;
4+
return <h4 className="font-head text-xl lg:text-2xl font-medium">{children}</h4>;
55
}

packages/ui/Typography/H5.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { ReactNode } from "react";
22

33
export function H5({ children }: { children: ReactNode }) {
4-
return <h5 className="font-head text-xl font-medium">{children}</h5>;
4+
return <h5 className="font-head text-lg lg:text-xl font-medium">{children}</h5>;
55
}

0 commit comments

Comments
 (0)