feat(directory): update home.jsx mobile layout

This commit is contained in:
Haoyu Xu
2023-10-22 22:22:44 -04:00
parent 4f23b15fa1
commit 39b32dd3d9
13 changed files with 424 additions and 331 deletions

View File

@@ -9,6 +9,12 @@
letter-spacing: 0.1rem;
flex: auto;
user-select: none;
@media only screen and (max-width: 430px) {
& {
margin: 0rem;
}
}
}
.container {
@@ -43,10 +49,25 @@
flex-wrap: wrap;
user-select: none;
.operator-group {
display: flex;
flex-direction: row;
flex-wrap: wrap;
@media only screen and (max-width: 430px) {
& {
width: 100%;
padding-bottom: 1rem;
overflow-y: hidden;
flex-wrap: nowrap;
}
}
}
.item {
position: relative;
cursor: pointer;
width: 180px;
width: 12rem;
margin: 1.25rem;
background-image: repeating-linear-gradient(
90deg,
@@ -98,9 +119,13 @@
}
.img {
height: 360px;
width: 100%;
transition: background-color cubic-bezier(0.65, 0.05, 0.36, 1) 0.3s;
& img {
height: auto;
width: 100%;
display: block;
}
}
.info {
@@ -149,6 +174,27 @@
visibility: visible;
}
}
@media only screen and (max-width: 430px) {
& {
width: 8.08rem;
margin: 1.08rem;
.outline,
.info .background {
opacity: 1;
visibility: visible;
}
}
}
}
@media only screen and (max-width: 430px) {
& {
align-items: flex-start;
flex-direction: column-reverse;
padding-right: 0;
padding-bottom: 0;
}
}
}