From 7646b85569ec0aab7cff33b6c58dcd32f7026fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?siyeon00=28=EC=9D=B4=EC=8B=9C=EC=97=B0=29?= Date: Wed, 10 Jun 2026 17:34:35 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20=EB=A9=94=EC=9D=B8=20=EC=86=94?= =?UTF-8?q?=EB=A3=A8=EC=85=98=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/main/MainSolution.jsx | 35 ++++++---- src/css/main.css | 96 +++++++++++++++------------- 2 files changed, 77 insertions(+), 54 deletions(-) diff --git a/src/components/main/MainSolution.jsx b/src/components/main/MainSolution.jsx index 6091794..a91f365 100644 --- a/src/components/main/MainSolution.jsx +++ b/src/components/main/MainSolution.jsx @@ -181,18 +181,31 @@ function IBEMockup({ animate }) {
-
-
출발지
-
SEL
-
서울 (ICN)
-
-
-
-
도착지
-
NRT
-
도쿄 (NRT)
+
+
+
출발지
+
ICN
+
인천 (ICN)
+
+
+ ⇌ +
+
+
도착지
+
NRT
+
도쿄 (NRT)
+
-
+ +
출발일
2024.06.15 (토)
diff --git a/src/css/main.css b/src/css/main.css index eb9f7fd..cf7bf59 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -282,45 +282,28 @@ body{overflow-x:hidden;} @keyframes UTMShine{0%,48%{transform:translateX(-120%);opacity:0;}58%{opacity:.75;}76%,100%{transform:translateX(120%);opacity:0;}} @keyframes float-UTM{0%{transform:translateY(0px);}48%{transform:translateY(-1px);}100%{transform:translateY(0px);}} -.main-solution-section { position: relative; height: auto; min-height: 100dvh; overflow: visible; padding: 120px 8vw 160px; background: linear-gradient(180deg,#ffffff 0%,#f7f9ff 52%,#ffffff 100%); } +/* ─── SOLUTION ─── */ +.main-solution-section { position: relative; height: auto; min-height: 100dvh; overflow: visible; padding: 120px 8vw 160px; background: linear-gradient(180deg,#ffffff 0%,#f7f9ff 52%,#ffffff 100%); } .main-solution-inner { position: relative; z-index: 2; max-width: 1660px; margin: 0 auto; } - .main-solution-head { max-width: 760px; margin-bottom: 54px; } - .main-solution-eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .24em; color: #8b5cf6; opacity: 0.75; } - .main-solution-title { margin: 0; font-size: clamp(42px,5vw,76px); font-weight: 800; line-height: 1.02; letter-spacing: -.07em; color: #10142b; } - .main-solution-desc { margin: 24px 0 0; max-width: 620px; font-size: 17px; line-height: 1.8; font-weight: 500; color: rgba(16,20,43,.62); word-break: keep-all; } - .main-solution-grid { display: flex; flex-direction: column; gap: 20px; } - .main-solution-card { border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 1fr 1.2fr; min-height: 320px; } - .main-solution-card--dark { background: #eef0ff; } - .main-solution-card--light { background: #f0f4ff; } - .main-solution-card-left { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; } - .main-solution-card-tag { display: inline-block; background: #1a1f5e; color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; } .main-solution-card-title { font-size: 34px; font-weight: 800; color: #10142b; letter-spacing: -.04em; margin: 0 0 12px; line-height: 1.2; } - .main-solution-card-title-sub { font-size: 12px; color: rgba(16,20,43,.35); font-weight: 500; margin: 0 0 10px; } - .main-solution-card-desc { font-size: 13px; color: rgba(16,20,43,.52); line-height: 1.75; margin: 0; } - .main-solution-card-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #10142b; background: #fff; padding: 9px 18px; border-radius: 999px; text-decoration: none; border: 1px solid rgba(26,31,94,0.1); transition: gap .2s; margin-top: 24px; width: fit-content; } - .main-solution-card-link:hover { gap: 12px; } .main-solution-card-right { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding: 24px 24px 0; } - .main-solution-card--dark .main-solution-card-right::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(to bottom, transparent, #eef0ff); pointer-events: none; z-index: 2; } - .main-solution-card--light .main-solution-card-right::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(to bottom, transparent, #f0f4ff); pointer-events: none; z-index: 2; } - -/* 다크 목업 */ .dark-closeup { width: 100%; background: #0d1117; border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 -8px 40px rgba(0,0,0,0.3); } .dark-stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 14px; } .dark-stat-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 12px 14px; } @@ -328,24 +311,21 @@ body{overflow-x:hidden;} .dark-stat-card__label { font-size: 9px; color: rgba(255,255,255,.55); letter-spacing: .06em; margin-bottom: 6px; font-weight: 600; } .dark-stat-card__val { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; margin-bottom: 4px; } .dark-stat-card__sub { font-size: 9px; color: rgba(255,255,255,.4); } -.dark-top-bar__time { font-size: 10px; color: rgba(255,255,255,.2); } .dark-top-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: #161b22; border-bottom: 1px solid rgba(255,255,255,0.06); } .dark-top-bar__title { font-size: 10px; color: rgba(255,255,255,.35); display: flex; align-items: center; gap: 6px; } .dark-top-bar__live { display: inline-block; width: 6px; height: 6px; background: #e91e8c; border-radius: 50%; box-shadow: 0 0 6px rgba(233,30,140,0.8); } +.dark-top-bar__time { font-size: 10px; color: rgba(255,255,255,.2); } .dark-top-bar__stats { display: flex; gap: 14px; } .dark-top-bar__stat { font-size: 10px; color: rgba(255,255,255,.35); } .dark-top-bar__stat span { color: #a78bfa; font-weight: 700; } - .dark-stat-card__icon { display: flex; align-items: center; margin-bottom: 8px; } .dark-stat-card:nth-child(1) { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); } .dark-stat-card:nth-child(2) { border-color: rgba(167,139,250,0.2); background: rgba(167,139,250,0.05); } .dark-stat-card:nth-child(3) { border-color: rgba(96,165,250,0.2); background: rgba(96,165,250,0.05); } .dark-stat-card:nth-child(4) { border-color: rgba(52,211,153,0.2); background: rgba(52,211,153,0.05); } .dark-stat-card:nth-child(5) { border-color: rgba(251,146,60,0.2); background: rgba(251,146,60,0.05); } - - -.dark-table-head { display: grid; grid-template-columns: 0.9fr 0.9fr 0.8fr 0.7fr 0.6fr; padding: 6px 14px; background: rgba(255,255,255,0.03); font-size: 9px; color: rgba(255,255,255,.2); font-weight: 600; letter-spacing: .06em; border-top: 1px solid rgba(255,255,255,0.05); } -.dark-table-row { display: grid; grid-template-columns: 0.9fr 0.9fr 0.8fr 0.7fr 0.6fr; padding: 8px 14px; border-top: 1px solid rgba(255,255,255,0.04); align-items: center; } +.dark-table-head { display: grid; grid-template-columns: 1fr 1fr 0.7fr 0.7fr 0.6fr; padding: 6px 14px; background: rgba(255,255,255,0.03); font-size: 9px; color: rgba(255,255,255,.2); font-weight: 600; letter-spacing: .06em; border-top: 1px solid rgba(255,255,255,0.05); } +.dark-table-row { display: grid; grid-template-columns: 1fr 1fr 0.7fr 0.7fr 0.6fr; padding: 8px 14px; border-top: 1px solid rgba(255,255,255,0.04); align-items: center; } .dark-table-row--active { background: rgba(139,92,246,0.1); border-left: 2px solid #7c3aed; } .dark-table-row--anim { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease; } .dark-cell { font-size: 10px; color: rgba(255,255,255,.65); } @@ -354,20 +334,20 @@ body{overflow-x:hidden;} .dark-badge--green { background: rgba(52,211,153,0.15); color: #34d399; } .dark-badge--yellow { background: rgba(251,191,36,0.15); color: #fbbf24; } .dark-table-row span { display: flex; align-items: center; } -/* 라이트 목업 (IBE) */ .light-closeup { width: 100%; background: #fff; border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 -8px 40px rgba(26,31,94,0.12); } .light-header { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid rgba(26,31,94,0.07); } .light-header__logo { font-size: 12px; font-weight: 800; color: #1a1f5e; } .light-header__nav { display: flex; gap: 12px; } .light-header__nav span { font-size: 10px; color: rgba(16,20,43,.4); } .light-header__nav span.active { color: #1a1f5e; font-weight: 600; border-bottom: 2px solid #1a1f5e; padding-bottom: 1px; } -.light-search-box { margin: 12px 14px; background: #f7f9ff; border: 1px solid rgba(26,31,94,0.1); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 0; position: relative; } -.light-search-city { flex: 1; } +.light-search-box { margin: 12px 14px; background: #f7f9ff; border: 1px solid rgba(26,31,94,0.1); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; } +.light-search-cities { display: flex; align-items: center; justify-content: center; width: 100%; gap: 16px; } +.light-search-city { width: auto; min-width: 0; } .light-search-city__label { font-size: 9px; color: rgba(16,20,43,.35); margin-bottom: 2px; } -.light-search-city__val { font-size: 18px; font-weight: 800; color: #10142b; } +.light-search-city__val { font-size: 18px; font-weight: 800; color: #10142b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .light-search-city__sub { font-size: 9px; color: rgba(16,20,43,.4); } -.light-search-arrow { position: absolute; left: 18%; transform: translateX(-50%); font-size: 14px; color: rgba(16,20,43,.3); background: #fff; border: 1px solid rgba(26,31,94,0.1); border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } -.light-search-date { flex: 1; padding-left: 12px; border-left: 1px solid rgba(26,31,94,0.1); } +.light-search-arrow { width: 26px; height: 26px; background: #fff; border: 1px solid rgba(26,31,94,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: rgba(16,20,43,.3); flex-shrink: 0; margin: 0 32px !; } +.light-search-date { flex: 1; padding-left: 16px; border-left: 1px solid rgba(26,31,94,0.1); margin-left: 16px; } .light-search-date__label { font-size: 9px; color: rgba(16,20,43,.35); margin-bottom: 2px; } .light-search-date__val { font-size: 12px; font-weight: 600; color: #10142b; } .light-search-btn { background: #1a1f5e; color: #fff; font-size: 11px; font-weight: 700; padding: 10px 16px; border-radius: 8px; white-space: nowrap; margin-left: 12px; flex-shrink: 0; } @@ -375,37 +355,67 @@ body{overflow-x:hidden;} .light-result-label span { color: #4f46e5; font-weight: 600; } .light-flight { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid rgba(26,31,94,0.06); } .light-flight--active { background: #eef2ff; } -.light-flight__times { display: flex; align-items: center; gap: 10px; } +.light-flight__times > div:nth-child(1) { min-width: 45px; } +.light-flight__times > div:nth-child(2) { min-width: 50px; text-align: center; } +.light-flight__times > div:nth-child(3) { min-width: 45px; } +.light-flight__times { display: flex; align-items: center; gap: 20px; } .light-flight__time { font-size: 16px; font-weight: 700; color: #10142b; } -.light-flight__arrow { font-size: 11px; color: rgba(16,20,43,.3); } +.light-flight__arrow { font-size: 11px; color: rgba(16,20,43,.3); text-align: center; } .light-flight__stop { font-size: 9px; color: rgba(16,20,43,.35); text-align: center; } .light-flight__info { font-size: 10px; color: rgba(16,20,43,.4); } .light-flight__right { display: flex; align-items: center; gap: 10px; } .light-flight__price { font-size: 13px; font-weight: 700; color: #4f46e5; } .light-flight__btn { font-size: 10px; font-weight: 700; padding: 5px 12px; border-radius: 6px; background: #1a1f5e; color: #fff; } .light-flight--active .light-flight__btn { background: #4f46e5; } - -/* 반응형 */ -@media (max-width: 1024px) { - .main-solution-card { grid-template-columns: 1fr; } - .main-solution-card-right { min-height: 280px; align-items: flex-start; } -} - @media (max-width: 768px) { .main-solution-section { padding: 86px 6vw 120px; } + .main-solution-card { grid-template-columns: 1fr; } .main-solution-card-left { padding: 28px; } .main-solution-card-title { font-size: 22px; } - .light-closeup { width: 100%; } + .main-solution-card-right { min-height: 260px; align-items: flex-start; padding: 12px 12px 0; overflow: hidden; } + .light-header { padding: 8px 10px; } .light-header__nav { display: none; } + .light-search-box { margin: 8px 10px; padding: 10px; flex-direction: column; align-items: stretch; gap: 8px; } +.light-search-cities { display: flex; align-items: center; justify-content: center; width: 100%; gap: 16px; } +.light-search-city { width: auto; min-width: 0; flex: 0 0 auto; } + .light-search-city__val { font-size: 16px; } + .light-search-arrow { flex-shrink: 0; margin: 0 8px; align-self: center; } + .light-search-date { border-left: none; border-top: 1px solid rgba(26,31,94,0.1); padding: 8px 0 0; margin: 0; width: 100%; } + .light-search-btn { width: 100%; margin: 0; text-align: center; } + .light-result-label { padding: 5px 10px; } + .light-flight { padding: 8px 10px; } + .light-flight__times { gap: 8px; } + .light-flight__time { font-size: 12px; } + .light-flight__info { font-size: 9px; } + .light-flight__stop { font-size: 8px; } + .light-flight__price { font-size: 10px; white-space: nowrap; } + .light-flight__btn { font-size: 9px; padding: 4px 7px; flex-shrink: 0; } + .light-flight__right { gap: 6px; } + .dark-stat-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px; } + .dark-stat-card__val { font-size: 13px; } + .dark-stat-card { padding: 8px 6px; min-width: 0; } + .dark-stat-card__label { font-size: 7px; } + .dark-stat-card__sub { font-size: 7px; } + .dark-table-head { display: none; } + .dark-table-row { grid-template-columns: 1fr 1fr 0.8fr; padding: 7px 10px; } + .dark-table-row span:nth-child(4), .dark-table-row span:nth-child(5) { display: none; } } @media (max-width: 480px) { .main-solution-section { padding: 72px 5vw 100px; } - .main-solution-card-left { padding: 22px; } + + .main-solution-card-left { padding: 20px; } + .main-solution-card-title { font-size: 20px; } -} + .dark-stat-grid { grid-template-columns: repeat(3, 1fr); } + + .dark-stat-card__val { font-size: 14px; } + .light-flight__time { font-size: 11px; } + + .light-flight__price { font-size: 9px; } +} /* News */ .main-news-section{position:relative;min-height:100vh;padding:130px 8vw;background:#ffffff;overflow:hidden;} .main-news-section::before{content:"";position:absolute;left:-18vw;bottom:-24vw;width:52vw;height:52vw;border-radius:50%;background:radial-gradient(circle,rgba(26,31,94,.08),transparent 70%);filter:blur(18px);pointer-events:none;}