diff --git a/src/main/resources/static/css/main.css b/src/main/resources/static/css/main.css index 3bcc7f0..87c50ba 100644 --- a/src/main/resources/static/css/main.css +++ b/src/main/resources/static/css/main.css @@ -8860,8 +8860,9 @@ button.djb-comment-submit:disabled { } .api-showcase .api-cards-container { display: flex; + flex-wrap: wrap; gap: 29px; - justify-content: center; + justify-content: flex-start; } @media (max-width: 1024px) { .api-showcase .api-cards-container { @@ -8878,6 +8879,9 @@ button.djb-comment-submit:disabled { } } .api-showcase .api-card { + flex: 0 0 calc((100% - 87px) / 4); + max-width: calc((100% - 87px) / 4); + box-sizing: border-box; height: 288px; background: #FFFFFF; border: 1px solid var(--border-color); @@ -8903,12 +8907,16 @@ button.djb-comment-submit:disabled { } @media (max-width: 1024px) { .api-showcase .api-card { + flex: 0 0 calc(50% - 9px); + max-width: calc(50% - 9px); width: calc(50% - 9px); min-width: 250px; } } @media (max-width: 768px) { .api-showcase .api-card { + flex: 1 1 auto; + max-width: 100%; width: 100%; height: auto; min-width: unset; @@ -28373,5 +28381,3 @@ input[type=checkbox]:checked + .custom-checkbox { white-space: nowrap; border: 0; } - -/*# sourceMappingURL=main.css.map */ diff --git a/src/main/resources/static/sass/pages/_index.scss b/src/main/resources/static/sass/pages/_index.scss index a073060..42e4c7d 100644 --- a/src/main/resources/static/sass/pages/_index.scss +++ b/src/main/resources/static/sass/pages/_index.scss @@ -859,8 +859,9 @@ .api-cards-container { display: flex; + flex-wrap: wrap; gap: 29px; - justify-content: center; + justify-content: flex-start; //@include respond-to('lg') { // gap: 22px; @@ -881,6 +882,10 @@ } .api-card { + // 1행 4열 고정 (gap 29px * 3 = 87px) + flex: 0 0 calc((100% - 87px) / 4); + max-width: calc((100% - 87px) / 4); + box-sizing: border-box; height: 288px; background: #FFFFFF; border: 1px solid var(--border-color); @@ -909,12 +914,16 @@ } @include respond-to('md') { + flex: 0 0 calc(50% - 9px); + max-width: calc(50% - 9px); width: calc(50% - 9px); min-width: 250px; } @include respond-to('sm') { // Figma 모바일: 144px width, auto height, padding 18px 17px + flex: 1 1 auto; + max-width: 100%; width: 100%; height: auto; min-width: unset; diff --git a/src/main/resources/templates/views/apps/main/index.html b/src/main/resources/templates/views/apps/main/index.html index 859ea9c..0963ad8 100644 --- a/src/main/resources/templates/views/apps/main/index.html +++ b/src/main/resources/templates/views/apps/main/index.html @@ -226,8 +226,8 @@
- -
+

API 서비스