Skip to content

Commit 92f1056

Browse files
style: feat mobile improvements to home page (#2551)
1 parent 2758f88 commit 92f1056

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

apps/web/src/app/components/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default async function ComponentsPage() {
8686
<div className="absolute inset-0 bg-[radial-gradient(#27272A_.0313rem,transparent_.0313rem),_radial-gradient(#27272A_.0313rem,transparent_.0313rem)] bg-transparent opacity-80 [background-position:0_0,.625rem_.625rem] [background-size:1.25rem_1.25rem]" />
8787
<Illustration />
8888
</div>
89-
<h3 className="relative z-[2] mt-4 font-semibold text-slate-12 capitalize leading-7 tracking-wide">
89+
<h3 className="relative z-[2] mt-4 font-medium text-slate-12 capitalize leading-7 -tracking-wide">
9090
{category.name}
9191
</h3>
9292
<span className="relative z-[2] text-slate-11 text-xs">

apps/web/src/components/sections/hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const HeroSection = () => {
4949
/>
5050

5151
{/* Left Column - Content */}
52-
<div className="w-full lg:w-[44rem] z-10 px-12 pointer-events-auto">
52+
<div className="w-full lg:w-[44rem] z-10 px-4 lg:px-12 pointer-events-auto">
5353
<div className="mb-8 flex justify-center lg:justify-start">
5454
<Image
5555
alt="React Email Logo"

apps/web/src/components/sections/patterns.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const PatternsSection = () => {
6464
<div className="absolute inset-0 bg-[radial-gradient(#27272A_.0313rem,transparent_.0313rem),_radial-gradient(#27272A_.0313rem,transparent_.0313rem)] bg-transparent opacity-80 [background-position:0_0,.625rem_.625rem] [background-size:1.25rem_1.25rem]" />
6565
<Illustration />
6666
</div>
67-
<h3 className="relative z-[2] mt-4 font-semibold text-slate-12 capitalize leading-7 tracking-wide">
67+
<h3 className="relative z-[2] mt-4 font-medium text-slate-12 capitalize leading-7 -tracking-wide">
6868
{category.name}
6969
</h3>
7070
<span className="relative z-[2] text-slate-11 text-xs">
@@ -92,7 +92,7 @@ const PatternsSection = () => {
9292

9393
const Content = ({ component }: { component: string }) => {
9494
return (
95-
<div className="relative flex flex-col max-md:items-center max-md:justify-center">
95+
<div className="relative flex flex-col max-md:text-center max-md:items-center max-md:justify-center">
9696
<ContentComponent component={component} />
9797
<div
9898
aria-hidden

apps/web/src/illustrations/buttons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const IllustrationButtons: React.FC = () => (
44
<div className="relative flex h-6 w-[24%] items-center justify-center rounded-md border border-[#2EBDC9] bg-[#25AEBA] p-1 shadow-sm transition-transform duration-150 ease-[cubic-bezier(.42,0,.58,1.8)] md:group-hover:rotate-3">
55
<div className="h-2 w-[80%] rounded-sm bg-black/30" />
66
<MousePointer2Icon
7-
className="-bottom-4 group-hover:-rotate-12 absolute left-[80%] transition-transform duration-150 ease-[cubic-bezier(.42,0,.58,1.8)]"
7+
className="-bottom-4 md:group-hover:-rotate-12 absolute left-[80%] transition-transform duration-150 ease-[cubic-bezier(.42,0,.58,1.8)]"
88
fill="currentColor"
99
stroke="currentColor"
1010
/>

apps/web/src/illustrations/ecommerce.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { CircleDollarSign } from 'lucide-react';
22

33
const IllustrationEcommerce: React.FC = () => (
4-
<div className="relative flex aspect-video w-[42%] items-center gap-2 rounded-md bg-[#0F0F10] bg-gradient-to-b from-transparent via-black/20 to-black/20 px-3 py-2 shadow-sm transition-transform duration-150 ease-[cubic-bezier(.42,0,.58,1.8)] md:md:group-hover:skew-x-2">
4+
<div className="relative flex aspect-video w-[42%] items-center gap-2 rounded-md bg-[#0F0F10] bg-gradient-to-b from-transparent via-black/20 to-black/20 px-3 py-2 shadow-sm transition-transform duration-150 ease-[cubic-bezier(.42,0,.58,1.8)] md:group-hover:skew-x-2">
55
<div className="flex aspect-square w-[42%] items-center justify-center rounded-sm bg-slate-4">
6-
<CircleDollarSign className="opacity-10 transition-opacity group-hover:opacity-20" />
6+
<CircleDollarSign className="opacity-10 transition-opacity md:group-hover:opacity-20" />
77
</div>
88
<div className="flex shrink grow basis-0 flex-col gap-1">
99
<div className="h-2 w-[84%] rounded-sm bg-slate-5" />

apps/web/src/illustrations/gallery.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const IllustrationGallery: React.FC = () => (
77
<div className="h-full w-full rounded-sm bg-slate-3" />
88
</div>
99
<div className="aspect-square w-[30%] rounded-sm bg-[#0F0F10] bg-gradient-to-b from-transparent via-black/20 to-black/20 p-2 shadow-sm">
10-
<div className="flex h-full w-full items-center justify-center rounded-sm bg-slate-3 transition-colors group-hover:bg-slate-4">
11-
<ImageIcon className="opacity-5 transition-opacity group-hover:opacity-20" />
10+
<div className="flex h-full w-full items-center justify-center rounded-sm bg-slate-3 transition-colors md:group-hover:bg-slate-4">
11+
<ImageIcon className="opacity-5 transition-opacity md:group-hover:opacity-20" />
1212
</div>
1313
</div>
1414
<div className="aspect-square w-[30%] rounded-sm bg-[#0F0F10] bg-gradient-to-b from-transparent via-black/20 to-black/20 p-2 shadow-sm">

0 commit comments

Comments
 (0)