Skip to content

Commit c29f75c

Browse files
committed
Improve mobile and tablet responsiveness on frontpage and contribute page
1 parent a49450a commit c29f75c

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

src/components/pages/contribute/FeedbackSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const FeedbackSection = () => {
7878
/>
7979
</div>
8080
<Error className="w-full px-2 text-start" state={formState} name="text" />
81-
<Button type="submit" color="secondary" loading={loading} className="px-5 py-3 text-lg md:text-xl w-fit">
81+
<Button type="submit" color="secondary" loading={loading} className="px-5 py-3 text-lg w-full md:text-xl sm:w-fit">
8282
Submit Feedback
8383
</Button>
8484
</Form>

src/components/pages/front/Mission.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface MissionProps extends IMission {
77

88
const Mission = ({ title, image, imageAlt, text }: MissionProps) => {
99
return (
10-
<li className="flex flex-col items-center flex-1 gap-4 p-8 border-2 rounded-lg border-secondary">
10+
<li className="flex flex-col items-center flex-1 gap-4 p-0 -mx-4 rounded-lg border-secondary motion-safe:transition-[margin_padding_border] sm:mx-0 lg:p-4 lg:border-2 xl:p-8">
1111
<Heading.H3 className="text-primary lg:h-[5ex] motion-safe:transition-all">
1212
{title}
1313
</Heading.H3>

src/components/pages/front/SignupSection.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,12 @@ const SignupSection = () => {
9090
/>
9191
<Error className="w-full px-2 text-start" state={formState} name="email" />
9292
</div>
93-
<Button type="submit" loading={loading} color="secondary" className="relative px-5 py-3 text-lg md:text-xl w-fit">
93+
<Button
94+
className="relative px-5 py-3 text-lg w-full sm:w-fit md:text-xl"
95+
type="submit"
96+
color="secondary"
97+
loading={loading}
98+
>
9499
Keep me up-to-date!
95100
</Button>
96101
<p role="note">

src/pages/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const FrontPage: Page = ({ }) => {
5252
Experience Git in a modern and fast way with Commit Rocket, the open-source, lightweight and cross-platform Git client.
5353
</p>
5454
<LinkButton
55-
className="px-5 py-3 text-xl"
55+
className="px-5 py-3 text-xl w-full sm:w-fit"
5656
onClick={sendCTAEvent("Learn More")}
5757
href="#introduction"
5858
color="secondary"
@@ -73,14 +73,14 @@ const FrontPage: Page = ({ }) => {
7373
/>
7474
</div>
7575
</section>
76-
<section aria-label="introduction" className="flex flex-col gap-12 p-8 text-lg text-center border-2 rounded-lg xl:flex-row text-primary-contrast image-dots from-primary-light border-primary-light bg-primary">
76+
<section aria-label="introduction" className="flex flex-col gap-12 p-8 text-lg -mx-8 md:mx-0 motion-safe:transition-[margin] text-center border-2 rounded-lg xl:flex-row text-primary-contrast image-dots from-primary-light border-primary-light bg-primary">
7777
<Heading.H2 id="introduction" className="flex p-4 flex-col items-center justify-center w-full rounded-lg text-fill-contrast bg-white/20 backdrop-blur-[1.25px] xl:p-0 xl:w-1/2">
7878
<span className="text-2xl">
7979
Introducing...
8080
</span>
81-
<span className="flex flex-col items-center gap-4 p-4 text-4xl font-bold break-normal text-primary-contrast md:text-6xl md:flex-row md:w-max">
81+
<span className="flex flex-col items-center gap-4 p-4 text-3xl sm:text-4xl font-bold break-normal text-primary-contrast md:text-6xl md:flex-row md:w-max">
8282
<img
83-
className="h-[1.5em] w-[1.5em]"
83+
className="w-16 h-16 md:w-[1.5em] md:h-[1.5em]"
8484
alt="A Small Rocket"
8585
src={LogoSmall.src}
8686
width={LogoSmall.width}
@@ -123,7 +123,7 @@ const FrontPage: Page = ({ }) => {
123123
Our main goal with Commit Rocket is to drive innovation and provide a modern and fast alternative to existing Git clients.
124124
We want to improve the user experience for developers by creating an open-source and cross-platform tool that is both feature-rich and beginner-friendly.
125125
</p>
126-
<ul className="flex flex-col flex-wrap justify-between w-full gap-12 lg:flex-row">
126+
<ul className="flex flex-col flex-wrap justify-between w-full gap-16 lg:gap-4 lg:flex-row">
127127
{missions.map((mission, i) => (
128128
<Mission key={i} {...mission} />
129129
))}

0 commit comments

Comments
 (0)