fix(responsive): fixing responsiveness on mobile devices

This commit is contained in:
Syariffullah
2026-06-04 22:43:02 +07:00
parent 066f47dd48
commit b6c9bbbefe
3 changed files with 2784 additions and 1987 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

File diff suppressed because it is too large Load Diff
+144 -64
View File
@@ -119,7 +119,7 @@ body {
display: block; display: block;
} }
.article-body>*+* { .article-body > * + * {
margin-top: 1.1em; margin-top: 1.1em;
} }
@@ -252,7 +252,8 @@ body {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 8px; gap: 8px;
padding: 8px; padding-block: 4px;
padding-inline: 8px;
background-color: #ffffff; background-color: #ffffff;
color: #1f2937; color: #1f2937;
border-radius: 8px; border-radius: 8px;
@@ -268,8 +269,8 @@ body {
} }
.map-icon { .map-icon {
width: 16px; width: 12px;
height: 16px; height: 12px;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -299,10 +300,12 @@ body {
position: absolute; position: absolute;
inset: 0; inset: 0;
z-index: 1; z-index: 1;
background: linear-gradient(270deg, background: linear-gradient(
rgba(0, 0, 0, 0) 21.76%, 270deg,
rgba(0, 0, 0, 0.4) 63.31%, rgba(0, 0, 0, 0) 21.76%,
rgba(0, 49, 80, 0.72) 78.24%); rgba(0, 0, 0, 0.4) 63.31%,
rgba(0, 49, 80, 0.72) 78.24%
);
} }
/* Judul Hero */ /* Judul Hero */
@@ -375,11 +378,11 @@ body {
.about-section { .about-section {
display: flex; display: flex;
flex-direction: column; align-items: center;
gap: 24px; gap: 24px;
padding: 20px 12px; padding: 20px 12px;
--box-size: 300px; --box-size: 150px;
.about-image-wrapper { .about-image-wrapper {
position: relative; position: relative;
@@ -414,17 +417,17 @@ body {
.about-title { .about-title {
color: var(--brand-navy); color: var(--brand-navy);
font-size: 1.25rem; font-size: 12px;
font-weight: 900; font-weight: 900;
letter-spacing: -0.05em; letter-spacing: -0.05em;
} }
.about-description { .about-description {
color: var(--text-soft); color: var(--text-soft);
font-size: 0.75rem; font-size: 8px;
font-weight: 500; font-weight: 500;
p+p { p + p {
margin-top: 8px; margin-top: 8px;
} }
} }
@@ -438,7 +441,7 @@ body {
color: var(--brand-navy); color: var(--brand-navy);
font-weight: 700; font-weight: 700;
text-decoration: none; text-decoration: none;
font-size: 0.75rem; font-size: 7px;
.link-icon { .link-icon {
margin-bottom: 2px; margin-bottom: 2px;
@@ -456,9 +459,18 @@ body {
--box-size: 240px; --box-size: 240px;
.about-content { .about-content {
.about-title {
font-size: 1.5rem;
}
.about-description { .about-description {
font-size: 0.75rem;
line-height: 16px; line-height: 16px;
} }
.about-link {
font-size: 0.75rem;
}
} }
} }
@@ -545,7 +557,7 @@ body {
/* Layouting Grid Kartu */ /* Layouting Grid Kartu */
.facilities-grid { .facilities-grid {
display: grid; display: grid;
grid-template-columns: repeat(1, minmax(0, 1fr)); grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px; gap: 16px;
width: 100%; width: 100%;
} }
@@ -598,16 +610,15 @@ body {
} }
.card-title { .card-title {
font-size: 0.875rem; font-size: 10px;
font-weight: 900; font-weight: 900;
color: var(--brand-navy); color: var(--brand-navy);
margin-top: 8px; margin-top: 8px;
} }
.card-desc { .card-desc {
font-size: 0.75rem; font-size: 7px;
color: var(--text-soft); color: var(--text-soft);
line-height: 1.25rem;
} }
} }
@@ -630,6 +641,14 @@ body {
height: 20px; height: 20px;
} }
} }
.card-title {
font-size: 1rem;
}
.card-desc {
font-size: 0.75rem;
}
} }
} }
@@ -710,7 +729,6 @@ body {
/* Layout Wrapper */ /* Layout Wrapper */
.campus-layout { .campus-layout {
display: flex; display: flex;
flex-direction: column;
gap: 16px; gap: 16px;
width: 100%; width: 100%;
} }
@@ -718,9 +736,8 @@ body {
/* Styling Tombol Kategori (Kiri) */ /* Styling Tombol Kategori (Kiri) */
.category-list-container { .category-list-container {
display: flex; display: flex;
flex-direction: row; flex-direction: column;
gap: 12px; gap: 12px;
justify-content: center;
.category-btn { .category-btn {
display: flex; display: flex;
@@ -781,8 +798,8 @@ body {
} }
.img-wrapper { .img-wrapper {
width: 128px; width: 75px;
height: 128px; height: 75px;
flex-shrink: 0; flex-shrink: 0;
display: flex; display: flex;
align-items: center; align-items: center;
@@ -806,15 +823,14 @@ body {
h4 { h4 {
font-weight: 900; font-weight: 900;
letter-spacing: -0.05em; letter-spacing: -0.05em;
font-size: 1rem; font-size: 10px;
color: var(--brand-navy); color: var(--brand-navy);
margin-bottom: 4px; margin-bottom: 4px;
} }
p { p {
font-size: 0.75rem; font-size: 7px;
color: var(--text-soft); color: var(--text-soft);
line-height: 1.25rem;
} }
} }
} }
@@ -837,11 +853,26 @@ body {
.category-list-container { .category-list-container {
flex-direction: column; flex-direction: column;
justify-content: flex-start; justify-content: flex-start;
min-width: 25%;
} }
.category-list-container .category-btn { .category-list-container .category-btn {
font-size: 0.875rem; font-size: 0.875rem;
} }
.directory-list-container {
.directory-card {
.card-info {
h4 {
font-size: 1rem;
}
p {
font-size: 0.75rem;
}
}
}
}
} }
@media (min-width: 768px) { @media (min-width: 768px) {
@@ -953,10 +984,12 @@ body {
.pontianak-overlay { .pontianak-overlay {
position: absolute; position: absolute;
inset: 0; inset: 0;
background: linear-gradient(0deg, background: linear-gradient(
rgba(0, 0, 0, 0.9) -14.48%, 0deg,
rgba(0, 0, 0, 0.4) 42.76%, rgba(0, 0, 0, 0.9) -14.48%,
rgba(0, 0, 0, 0) 100%); rgba(0, 0, 0, 0.4) 42.76%,
rgba(0, 0, 0, 0) 100%
);
z-index: 1; z-index: 1;
} }
@@ -1076,8 +1109,8 @@ body {
/* Layout Grid Destinasi */ /* Layout Grid Destinasi */
.destination-grid { .destination-grid {
display: grid; display: grid;
grid-template-columns: repeat(1, minmax(0, 1fr)); grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24px; gap: 12px;
width: 100%; width: 100%;
} }
@@ -1087,17 +1120,24 @@ body {
background-size: cover; background-size: cover;
background-position: center; background-position: center;
border-radius: 8px; border-radius: 8px;
height: 450px; height: 300px;
overflow: hidden; overflow: hidden;
transition: all 0.3s ease;
&:hover {
transform: scale(1.02);
}
/* Gradasi Hitam di Atas Background */ /* Gradasi Hitam di Atas Background */
.card-overlay { .card-overlay {
position: absolute; position: absolute;
inset: 0; inset: 0;
background: linear-gradient(0deg, background: linear-gradient(
rgba(0, 0, 0, 0.8) 0%, 0deg,
rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.8) 0%,
rgba(0, 0, 0, 0) 100%); rgba(0, 0, 0, 0.2) 50%,
rgba(0, 0, 0, 0) 100%
);
z-index: 1; z-index: 1;
} }
@@ -1110,20 +1150,19 @@ body {
height: 100%; height: 100%;
gap: 8px; gap: 8px;
padding: 16px; padding: 16px;
padding-bottom: 32px; padding-bottom: 24px;
max-width: 288px; max-width: 288px;
.card-name { .card-name {
color: #ffffff; color: #ffffff;
font-weight: 900; font-weight: 900;
letter-spacing: -0.025em; letter-spacing: -0.025em;
font-size: 1rem; font-size: 12px;
} }
.card-desc { .card-desc {
color: #d1d5db; color: #d1d5db;
font-size: 0.75rem; font-size: 8px;
line-height: 1.25rem;
} }
} }
} }
@@ -1133,11 +1172,20 @@ body {
.destination-grid { .destination-grid {
grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24px;
}
.destination-card .card-content .card-name {
font-size: 1rem;
} }
.destination-card .card-content .card-desc { .destination-card .card-content .card-desc {
font-size: 0.875rem; font-size: 0.875rem;
} }
.destination-card {
height: 400px;
}
} }
@media (min-width: 768px) { @media (min-width: 768px) {
@@ -1163,6 +1211,10 @@ body {
.destination-title { .destination-title {
font-size: 2.25rem; font-size: 2.25rem;
} }
.destination-card {
height: 450px;
}
} }
@media (min-width: 1280px) { @media (min-width: 1280px) {
@@ -1234,7 +1286,7 @@ body {
/* Grid Layout Kartu */ /* Grid Layout Kartu */
.culinary-grid { .culinary-grid {
display: grid; display: grid;
grid-template-columns: repeat(1, minmax(0, 1fr)); grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24px; gap: 24px;
width: 100%; width: 100%;
} }
@@ -1249,6 +1301,11 @@ body {
border-radius: 12px; border-radius: 12px;
background-color: #ffffff; background-color: #ffffff;
overflow: hidden; overflow: hidden;
transition: all 0.3s ease;
&:hover {
transform: scale(1.02);
}
.card-thumb { .card-thumb {
width: 100%; width: 100%;
@@ -1270,11 +1327,10 @@ body {
} }
p { p {
font-size: 0.75rem; font-size: 9px;
font-weight: 500; font-weight: 500;
color: var(--text-soft); color: var(--text-soft);
line-height: 1.25rem; min-height: 26px;
min-height: 60px;
} }
/* Modifikasi Khusus MapButton di dalam Kartu Kuliner */ /* Modifikasi Khusus MapButton di dalam Kartu Kuliner */
@@ -1332,7 +1388,6 @@ body {
.living-cost-section { .living-cost-section {
display: flex; display: flex;
flex-direction: column;
width: 100%; width: 100%;
/* Wrapper Gambar Kiri */ /* Wrapper Gambar Kiri */
@@ -1351,10 +1406,12 @@ body {
.cost-banner-overlay { .cost-banner-overlay {
position: absolute; position: absolute;
inset: 0; inset: 0;
background: linear-gradient(0deg, background: linear-gradient(
#012338 0%, 0deg,
rgba(1, 35, 56, 0.4) 55%, #012338 0%,
rgba(1, 35, 56, 0) 100%); rgba(1, 35, 56, 0.4) 55%,
rgba(1, 35, 56, 0) 100%
);
} }
} }
@@ -1371,14 +1428,13 @@ body {
color: #ffffff; color: #ffffff;
font-weight: 900; font-weight: 900;
letter-spacing: -0.05em; letter-spacing: -0.05em;
font-size: 1.25rem; font-size: 12px;
} }
.cost-desc { .cost-desc {
color: #ffffff; color: #ffffff;
font-size: 0.75rem; font-size: 8px;
font-weight: 500; font-weight: 500;
line-height: 1.25rem;
} }
.cost-note { .cost-note {
@@ -1407,6 +1463,12 @@ body {
color: #ffffff; color: #ffffff;
flex: 1; flex: 1;
text-align: center; text-align: center;
width: 75px;
transition: all 0.3s ease;
&:hover {
transform: scale(1.02);
}
/* Target styling tag svg di dalam kartu */ /* Target styling tag svg di dalam kartu */
svg { svg {
@@ -1418,19 +1480,19 @@ body {
.cost-type { .cost-type {
text-transform: uppercase; text-transform: uppercase;
color: #9ca3af; color: #9ca3af;
font-size: 0.75rem; font-size: 8px;
margin: 4px 0 0 0; margin: 4px 0 0 0;
} }
.cost-price { .cost-price {
font-weight: 900; font-weight: 900;
font-size: 0.875rem; font-size: 8px;
margin: 0; margin: 0;
} }
.cost-period { .cost-period {
color: #9ca3af; color: #9ca3af;
font-size: 0.875rem; font-size: 8px;
margin: 0; margin: 0;
} }
} }
@@ -1440,17 +1502,21 @@ body {
.cost-info-panel { .cost-info-panel {
padding: 32px; padding: 32px;
.cost-desc {
font-size: 10px;
}
.cost-item-card { .cost-item-card {
.cost-type { .cost-type {
font-size: 0.875rem; font-size: 8px;
} }
.cost-price { .cost-price {
font-size: 1rem; font-size: 12px;
} }
.cost-period { .cost-period {
font-size: 1rem; font-size: 10px;
} }
} }
} }
@@ -1468,10 +1534,12 @@ body {
/* Perubahan Arah Gradasi: Mengabur ke arah kiri panel Navy */ /* Perubahan Arah Gradasi: Mengabur ke arah kiri panel Navy */
.cost-banner-overlay { .cost-banner-overlay {
background: linear-gradient(270deg, background: linear-gradient(
#012338 0%, 270deg,
rgba(0, 0, 0, 0.4) 65%, #012338 0%,
rgba(0, 0, 0, 0) 78%); rgba(0, 0, 0, 0.4) 65%,
rgba(0, 0, 0, 0) 78%
);
} }
} }
@@ -1491,6 +1559,18 @@ body {
flex: none; flex: none;
width: 130px; width: 130px;
padding: 16px; padding: 16px;
.cost-type {
font-size: 12px;
}
.cost-price {
font-size: 1rem;
}
.cost-period {
font-size: 12px;
}
} }
} }
} }
@@ -1523,4 +1603,4 @@ body {
} }
} }
} }
} }