Skip to content

Commit c89646a

Browse files
authored
adjust buttons layout (#1017)
1 parent 401cd7c commit c89646a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

apps/web/components/ReadyToGetStarted.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function ReadyToGetStarted() {
2626
variant="gray"
2727
href="/pricing"
2828
size="lg"
29-
className="w-full font-medium sm:w-fit"
29+
className="font-medium w-fit"
3030
>
3131
{homepageCopy.readyToGetStarted.buttons.secondary}
3232
</Button>

apps/web/components/pages/HomePage/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {
118118
</div>
119119

120120
<motion.div
121-
className="flex flex-col items-center mb-5 space-y-2 sm:flex-row sm:space-y-0 sm:space-x-4"
121+
className="flex flex-wrap gap-4 items-center mb-5"
122122
initial="hidden"
123123
animate="visible"
124124
custom={3}
@@ -132,7 +132,7 @@ const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {
132132
: getDownloadUrl(platform, isIntel)
133133
}
134134
size="lg"
135-
className="flex justify-center items-center w-full font-medium sm:w-auto"
135+
className="flex justify-center items-center font-medium max-w-fit"
136136
>
137137
{!loading && getPlatformIcon(platform)}
138138
{getDownloadButtonText(platform, loading, isIntel)}

apps/web/components/pages/HomePage/RecordingModes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const RecordingModes = () => {
148148
</p>
149149
</div>
150150
<div className="p-6">
151-
<div className="flex flex-col items-center space-y-2 sm:flex-row sm:space-y-0 sm:space-x-4 sm:justify-center">
151+
<div className="flex flex-col items-center space-y-4 sm:flex-row sm:space-y-0 sm:space-x-4 sm:justify-center">
152152
<Button
153153
variant="gray"
154154
href={
@@ -157,7 +157,7 @@ const RecordingModes = () => {
157157
: getDownloadUrl(platform, isIntel)
158158
}
159159
size="lg"
160-
className="flex justify-center items-center w-full font-medium sm:w-auto"
160+
className="flex justify-center items-center w-fit font-medium"
161161
>
162162
{!loading && getPlatformIcon(platform)}
163163
{getDownloadButtonText(platform, loading, isIntel)}

apps/web/components/pages/_components/UpgradeToPro.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const UpgradeToPro = ({ text = "Upgrade To Cap Pro" }: { text?: string }) => {
1717
rive.play("items-coming-out");
1818
}
1919
}}
20-
className="flex overflow-visible w-full sm:max-w-[220px] relative gap-3 justify-evenly items-center mx-auto cursor-pointer"
20+
className="flex overflow-visible w-full max-w-[220px] relative gap-3 justify-evenly items-center cursor-pointer"
2121
onMouseLeave={() => {
2222
if (rive) {
2323
rive.stop();
@@ -27,7 +27,7 @@ const UpgradeToPro = ({ text = "Upgrade To Cap Pro" }: { text?: string }) => {
2727
size="lg"
2828
variant="blue"
2929
>
30-
<ProRive className="w-[80px] scale-[0.9] h-[62px] bottom-[24%] left-[5%] xs:left-[12%] sm:-left-2 absolute inset-y-0 my-auto" />
30+
<ProRive className="w-[80px] scale-[0.9] h-[62px] bottom-[22.5%] -left-2 absolute inset-y-0 my-auto" />
3131
<p className="relative left-5 font-medium text-white">{text}</p>
3232
</Button>
3333
);

0 commit comments

Comments
 (0)