Skip to content

Commit 3658f65

Browse files
authored
Merge pull request #102 from autonomous-testing/feat/make-vibe-hero-section-responsive
feat: make vibe hero section responsive
2 parents 76bd71b + dc17af6 commit 3658f65

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

src/components/home-page/HomeHeroVibe.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ const HomeHeroVibe = () => {
8080
setAppUrl(e.target.value);
8181
};
8282
return (
83-
<div className="min-h-[50vh] flex flex-col justify-center items-center gap-10 mx-5">
83+
<div className="min-h-[50vh] flex flex-col justify-center items-center gap-5 md:gap-10 mx-5">
8484
<section>
85-
<h1 className="font-bold text-center text-5xl sm:text-5xl md:text-6xl text-pretty">
85+
<h1 className="font-bold text-center text-4xl sm:text-5xl md:text-6xl text-pretty">
8686
Which web app do you want to test?
8787
</h1>
8888
<h6 className="text-secondary-wopee dark:text-primary-wopee text-center text-md sm:text-lg md:text-xl text-pretty">
@@ -92,15 +92,15 @@ const HomeHeroVibe = () => {
9292
</section>
9393

9494
<div className="border-2 border-solid border-secondary-wopee dark:border-primary-wopee rounded-md p-3 w-full max-w-6xl flex flex-col gap-3">
95-
<div className="opacity-65 flex items-center text-xs">
95+
<div className="opacity-65 flex flex-col md:flex-row items-center text-xs">
9696
Test environment URL:{" "}
9797
<div className="relative">
9898
<input
9999
ref={urlInputRef}
100100
type="url"
101101
value={appUrl}
102102
size={parseSize}
103-
className="border-none ml-1 pl-2 pr-5 py-1 bg-gray-300 dark:bg-gray-700 rounded-md"
103+
className="border-none ml-1 pl-2 pr-5 py-1 bg-gray-300 dark:bg-gray-700 rounded-md max-w-[300px] sm:max-w-none"
104104
onChange={handleUrlChange}
105105
/>
106106
{appType === AppType.YOUR_APPLICATION && <LockTooltip />}

src/components/home-page/vibe/ApplicationTypeSwitch.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import React from "react";
33
import { cn } from "@/lib/utils";
44
import { AppType } from "./enums";
55
import LockTooltip from "./LockTooltip";
6+
import { AppWindow, Globe, Landmark, ShoppingCart } from "lucide-react";
67

78
const APP_TYPE_BUTTONS = [
89
{
@@ -36,16 +37,19 @@ const ApplicationTypeSwitch = ({
3637
<div
3738
key={app.label}
3839
className={cn(
39-
"px-3 py-2 bg-gray-300 rounded-md w-[130px] hover:cursor-pointer flex justify-center items-center gap-1 relative",
40+
"p-2 bg-gray-300 rounded-md md:w-[150px] hover:cursor-pointer flex justify-center items-center gap-1 relative",
4041
app.value === appType
4142
? "bg-secondary-wopee dark:bg-primary-wopee text-white dark:text-black"
4243
: "dark:bg-gray-700 "
4344
)}
4445
onClick={() => handleAppTypeChange(app.value)}
4546
>
4647
{app.value === AppType.YOUR_APPLICATION && <LockTooltip size={4} />}
47-
48-
{app.label}
48+
{app.value === AppType.WEBSITE && <Globe size={16} />}
49+
{app.value === AppType.E_COMMERCE && <ShoppingCart size={16} />}
50+
{app.value === AppType.BANKING && <Landmark size={16} />}
51+
{app.value === AppType.YOUR_APPLICATION && <AppWindow size={16} />}
52+
<span className="hidden md:block">{app.label}</span>
4953
</div>
5054
))}
5155
</section>

0 commit comments

Comments
 (0)