fix: onboarding page layout on small screens

This commit is contained in:
Ahmed Bouhuolia
2024-08-01 19:51:25 +02:00
parent 4cd0405078
commit 219e6fb466
4 changed files with 27 additions and 41 deletions

View File

@@ -2,6 +2,7 @@
.root{ .root{
margin: 0 auto; margin: 0 auto;
padding: 0 40px; padding: 0 40px;
padding-right: 20px;
} }
.periodSwitch { .periodSwitch {

View File

@@ -6,7 +6,7 @@ export function SubscriptionPlans() {
const subscriptionPlans = useSubscriptionPlans(); const subscriptionPlans = useSubscriptionPlans();
return ( return (
<Group spacing={14} noWrap align="stretch"> <Group spacing={10} noWrap align="stretch">
{subscriptionPlans.map((plan, index) => ( {subscriptionPlans.map((plan, index) => (
<SubscriptionPlan <SubscriptionPlan
key={index} key={index}

View File

@@ -39,7 +39,7 @@
@import "section"; @import "section";
.App { .App {
min-width: 960px; min-width: 1100px;
} }
// ======= // =======

View File

@@ -1,36 +1,25 @@
@import "../../_base.scss"; @import "../../_base.scss";
.setup-page { .setup-page {
display: grid;
grid-template-columns: 40% 60%;
max-width: 1600px; max-width: 1600px;
min-height: 100vh;
&__right-section {
display: flex;
flex-direction: row;
width: 100%;
&:before {
content: '';
display: block;
width: 100%;
height: 1px;
max-width: 600px;
min-width: 600px;
@media only screen and (max-width: 1500px) { @media only screen and (max-width: 1500px) {
min-width: 500px; grid-template-columns: 35% 65%;
max-width: 500px; }
@media only screen and (max-width: 1200px) {
grid-template-columns: 26% 74%;
} }
@media only screen and (max-width: 1024px) { &__right-section {
min-width: 400px; width: 100%;
max-width: 400px; overflow: auto;
}
}
h1 { h1 {
font-size: 22px; font-size: 22px;
} }
h1, h1,
h3 { h3 {
font-weight: 500; font-weight: 500;
@@ -44,22 +33,9 @@
} }
&__left-section { &__left-section {
position: fixed;
background-color: #2f3d6f; background-color: #2f3d6f;
overflow: auto;
z-index: 1; z-index: 1;
height: 100%;
width: 100%; width: 100%;
left: 0;
top: 0;
width: 600px;
@media only screen and (max-width: 1500px) {
width: 500px;
}
@media only screen and (max-width: 1024px) {
width: 400px;
}
.content { .content {
display: flex; display: flex;
@@ -76,6 +52,11 @@
padding-left: 10px; padding-left: 10px;
} }
&__header{
position: sticky;
top: 0;
}
&__title { &__title {
font-size: 50px; font-size: 50px;
font-weight: 100; font-weight: 100;
@@ -84,8 +65,8 @@
margin-top: 14px; margin-top: 14px;
color: rgba(255, 255, 255, 0.75); color: rgba(255, 255, 255, 0.75);
@media only screen and (max-width: 1024px) { @media only screen and (max-width: 1200px) {
font-size: 45px; font-size: 36px;
} }
} }
@@ -111,16 +92,20 @@
&__footer { &__footer {
margin-top: auto; margin-top: auto;
position: sticky;
bottom: 20px;
} }
&__links { &__links {
text-align: left; text-align: left;
opacity: 0.65; opacity: 0.65;
display: flex;
flex-direction: row;
gap: 10px;
flex-wrap: wrap;
>div { >div {
font-size: 13px; font-size: 13px;
margin-right: 15px;
display: inline;
a { a {
color: #fff; color: #fff;