Skip to content

Commit

Permalink
mobile friendly cookie house
Browse files Browse the repository at this point in the history
  • Loading branch information
gilluminate committed Nov 25, 2024
1 parent e3541d9 commit ca2be22
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions clients/sample-app/src/components/Home/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

.main {
flex-grow: 1;
padding-inline: 24px;
}

.products {
Expand All @@ -20,6 +21,12 @@
max-width: 744px;
margin: 0 auto;
margin-top: 77px;

@media screen and (max-width: 768px) {
& {
justify-content: center;
}
}
}

.product {
Expand All @@ -37,6 +44,12 @@
img {
margin-bottom: 8px;
}

@media screen and (max-width: 768px) {
& {
width: 100%;
}
}
}

.name {
Expand All @@ -57,6 +70,12 @@

.purchase {
margin-top: 10px;

@media screen and (max-width: 768px) {
& {
width: 100%;
}
}
}

.footer {
Expand All @@ -78,6 +97,12 @@
a:hover {
color: #5b301d;
}

@media screen and (max-width: 768px) {
& {
flex-direction: column;
}
}
}

.modalLink {
Expand All @@ -98,4 +123,10 @@
right: 0;
margin: 1em;
color: #171923;

@media screen and (max-width: 768px) {
& {
position: relative;
}
}
}

0 comments on commit ca2be22

Please sign in to comment.