Skip to content

Commit fcecade

Browse files
authored
fix:responsive layout for joinCommunity component in smaller screens (#816)
1 parent 23adc73 commit fcecade

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/Sections/JoinCommunity.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import Join from "@site/static/img/Homepage/Join.png";
55
import { InlineLink } from "./Components";
66

77
export function JoinCommunity() {
8-
return (<div className="flex align-self-center justify-between xl:relative right-2
8+
return (<div className="flex justify-between xl:relative right-2
99
my-[72px] rounded-[20px] bg-primary-200 px-5 py-[36px] font-inter xl:mx-auto xl:w-[72vw] xl:max-w-[1300px]
10-
sm:w-[87vw] sm:my-6 sm:p-4 mobile:my-4 mobile:p-3 mobile:mt-[80px] sm:mt-[180px]">
11-
<div className="w-[600px] pr-3 sm:pr-[0] sm:w-auto">
10+
sm:w-[87vw] sm:my-6 sm:p-4 sm:flex-col mobile:my-4 mobile:p-3 mobile:mt-[80px] sm:mt-[180px]">
11+
<div className="w-[600px] pr-3 sm:pr-[0] sm:w-auto sm:order-2">
1212
<div className="text-heading1 mb-3 text-primary-800 font-semibold
1313
sm:text-heading2">Join the Community</div>
1414
<div className="text-label18 mb-4 text-neutral-500
@@ -18,6 +18,6 @@ export function JoinCommunity() {
1818
<InlineLink link="https://devlake.apache.org/community/subscribe">Subscribe to Mailing List</InlineLink>
1919
</div>
2020
</div>
21-
<img src={Join} alt='' className="w-[216px] h-[200px] sm:mx-auto sm:mb-4" />
21+
<img src={Join} alt='' className="w-[216px] h-[200px] sm:mx-auto sm:mb-4 sm:order-1" />
2222
</div>)
2323
}

0 commit comments

Comments
 (0)