Skip to content

Commit

Permalink
fix: onboarding page layout on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
abouolia committed Aug 1, 2024
1 parent 4cd0405 commit 219e6fb
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.root{
margin: 0 auto;
padding: 0 40px;
padding-right: 20px;
}

.periodSwitch {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function SubscriptionPlans() {
const subscriptionPlans = useSubscriptionPlans();

return (
<Group spacing={14} noWrap align="stretch">
<Group spacing={10} noWrap align="stretch">
{subscriptionPlans.map((plan, index) => (
<SubscriptionPlan
key={index}
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/src/style/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@import "section";

.App {
min-width: 960px;
min-width: 1100px;
}

// =======
Expand Down
63 changes: 24 additions & 39 deletions packages/webapp/src/style/pages/Setup/SetupPage.scss
Original file line number Diff line number Diff line change
@@ -1,36 +1,25 @@
@import "../../_base.scss";

.setup-page {
display: grid;
grid-template-columns: 40% 60%;
max-width: 1600px;
min-height: 100vh;

@media only screen and (max-width: 1500px) {
grid-template-columns: 35% 65%;
}
@media only screen and (max-width: 1200px) {
grid-template-columns: 26% 74%;
}

&__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) {
min-width: 500px;
max-width: 500px;
}

@media only screen and (max-width: 1024px) {
min-width: 400px;
max-width: 400px;
}
}
overflow: auto;

h1 {
font-size: 22px;
}

h1,
h3 {
font-weight: 500;
Expand All @@ -44,22 +33,9 @@
}

&__left-section {
position: fixed;
background-color: #2f3d6f;
overflow: auto;
z-index: 1;
height: 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 {
display: flex;
Expand All @@ -76,6 +52,11 @@
padding-left: 10px;
}

&__header{
position: sticky;
top: 0;
}

&__title {
font-size: 50px;
font-weight: 100;
Expand All @@ -84,8 +65,8 @@
margin-top: 14px;
color: rgba(255, 255, 255, 0.75);

@media only screen and (max-width: 1024px) {
font-size: 45px;
@media only screen and (max-width: 1200px) {
font-size: 36px;
}
}

Expand All @@ -111,16 +92,20 @@

&__footer {
margin-top: auto;
position: sticky;
bottom: 20px;
}

&__links {
text-align: left;
opacity: 0.65;
display: flex;
flex-direction: row;
gap: 10px;
flex-wrap: wrap;

>div {
font-size: 13px;
margin-right: 15px;
display: inline;

a {
color: #fff;
Expand Down

0 comments on commit 219e6fb

Please sign in to comment.