Skip to content

Commit d09a1bb

Browse files
authored
Merge pull request #9 from CodezillaLK/main
responsive design fixes
2 parents cb25e5b + 28cfda1 commit d09a1bb

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/OTP_related/Subscribe.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ function Subscribe() {
279279
return (
280280
<>
281281
{currentComponent === "SUBSCRIBE" && (
282-
<div className="box flex w-full flex-col gap-10 pb-[40dvh] sm:w-[400px]">
282+
<div className="box flex w-full flex-col gap-10 pb-[40dvh] xl:pb-[300px] sm:w-[400px]">
283283
<div className="box-overlay"></div>
284284
<div className="mx-auto">
285285
<img

src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
} */
4040

4141
.box {
42-
@apply absolute w-[calc(100%-16px)] overflow-hidden bg-[#391173] p-8 shadow-md transition-all duration-300 lg:w-[800px] xl:left-1/2 xl:top-1/2 xl:-translate-x-1/2 xl:-translate-y-1/2 xl:rounded-2xl;
42+
@apply absolute w-[calc(100%-16px)] overflow-hidden overflow-y-auto bg-[#391173] p-8 shadow-md transition-all duration-300 lg:w-[800px] sm:left-1/2 sm:top-1/2 sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl;
4343
}
4444

4545
.q-options {

src/pages/home/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function Home() {
1111
// const navigate = useNavigate();
1212

1313
return (
14-
<div className="xl:flex xl:flex-col xl:items-center">
14+
<>
1515
<Subscribe />
1616
{/* {status === "active" && (
1717
<div className="box">
@@ -24,7 +24,7 @@ function Home() {
2424
</div>
2525
)}
2626
{status === "finished" && <Subscribe />} */}
27-
</div>
27+
</>
2828
);
2929
}
3030
export default Home;

0 commit comments

Comments
 (0)