모바일 화면 - drawer 디자인 반영
This commit is contained in:
@@ -312,7 +312,7 @@
|
||||
}
|
||||
|
||||
// ===========================
|
||||
// Mobile Drawer/Modal
|
||||
// Mobile Drawer/Modal (Figma Design)
|
||||
// ===========================
|
||||
.mobile-drawer {
|
||||
position: fixed;
|
||||
@@ -335,7 +335,7 @@
|
||||
}
|
||||
|
||||
.drawer-overlay {
|
||||
display: none; // Not needed for full-screen drawer
|
||||
display: none;
|
||||
}
|
||||
|
||||
.drawer-content {
|
||||
@@ -346,162 +346,219 @@
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: var(--white);
|
||||
background: #ffffff;
|
||||
transform: translateY(100%);
|
||||
transition: transform 0.3s ease;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
// Figma: 헤더 바 44px
|
||||
.drawer-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20px;
|
||||
border-bottom: 2px solid var(--border-gray);
|
||||
background: var(--white);
|
||||
box-shadow: var(--shadow-sm);
|
||||
min-height: 60px;
|
||||
height: 44px;
|
||||
min-height: 44px;
|
||||
padding: 0 12px 0 20px;
|
||||
background: #ffffff;
|
||||
|
||||
.drawer-logo {
|
||||
.drawer-header-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
gap: 8px;
|
||||
|
||||
.logo {
|
||||
height: 32px;
|
||||
width: auto;
|
||||
.drawer-user-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: var(--primary-blue);
|
||||
.drawer-login-text {
|
||||
font-family: 'Noto Sans KR', sans-serif;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
color: #212529;
|
||||
line-height: 26px;
|
||||
}
|
||||
}
|
||||
|
||||
.drawer-close {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 8px;
|
||||
font-size: 18px;
|
||||
color: var(--text-gray);
|
||||
transition: all 0.3s ease;
|
||||
padding: 0;
|
||||
|
||||
svg {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: var(--white);
|
||||
color: var(--text-dark);
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Figma: 환영 영역 214px, 배경 #ebfbff
|
||||
.drawer-welcome {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 214px;
|
||||
padding: 40px 20px;
|
||||
background: #ebfbff;
|
||||
border-bottom: 1px solid #dadada;
|
||||
|
||||
.welcome-text {
|
||||
font-family: 'Noto Sans KR', sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #212529;
|
||||
line-height: 26px;
|
||||
margin: 0 0 24px 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.welcome-buttons {
|
||||
display: flex;
|
||||
gap: 21px;
|
||||
width: 100%;
|
||||
max-width: 309px;
|
||||
}
|
||||
|
||||
// Figma: 회원가입 버튼 - #e5e7eb 배경, #5f666c 텍스트
|
||||
.btn-drawer-signup {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 40px;
|
||||
background: #e5e7eb;
|
||||
color: #5f666c;
|
||||
font-family: 'Noto Sans KR', sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
border-radius: 8px;
|
||||
text-decoration: none;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
background: #d1d5db;
|
||||
}
|
||||
}
|
||||
|
||||
// Figma: 로그인 버튼 - #0049b4 배경, 흰색 텍스트
|
||||
.btn-drawer-login {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 40px;
|
||||
background: #0049b4;
|
||||
color: #ffffff;
|
||||
font-family: 'Noto Sans KR', sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
border-radius: 8px;
|
||||
text-decoration: none;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
background: darken(#0049b4, 10%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Figma: 메뉴 리스트 (아코디언)
|
||||
.drawer-nav {
|
||||
flex: 1;
|
||||
padding: 0;
|
||||
overflow-y: auto;
|
||||
background: var(--white);
|
||||
padding: 0 20px;
|
||||
background: #ffffff;
|
||||
|
||||
.drawer-menu {
|
||||
.drawer-menu-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 20px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 8px;
|
||||
.drawer-menu-item {
|
||||
border-bottom: 1px solid #dadada;
|
||||
|
||||
.drawer-link {
|
||||
display: block;
|
||||
padding: 16px 24px;
|
||||
margin: 0 20px;
|
||||
color: var(--text-dark);
|
||||
text-decoration: none;
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
border-radius: 12px;
|
||||
transition: all 0.3s ease;
|
||||
// Figma: 메뉴 버튼 56px 높이
|
||||
.drawer-menu-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
height: 56px;
|
||||
padding: 0 8px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-family: 'Noto Sans KR', sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #212529;
|
||||
text-align: left;
|
||||
|
||||
&:hover, &:active {
|
||||
background: var(--light-bg);
|
||||
color: var(--primary-blue);
|
||||
transform: translateX(4px);
|
||||
box-shadow: var(--shadow-sm);
|
||||
.accordion-icon {
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
}
|
||||
|
||||
// Figma: 서브메뉴 - 배경 #fafafa
|
||||
.drawer-submenu {
|
||||
display: none;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 12px 0;
|
||||
background: #fafafa;
|
||||
|
||||
li {
|
||||
a {
|
||||
display: block;
|
||||
padding: 8px 16px 8px 57px;
|
||||
font-family: 'Noto Sans KR', sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #212529;
|
||||
text-decoration: none;
|
||||
line-height: 28px;
|
||||
transition: color 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
color: #0049b4;
|
||||
}
|
||||
}
|
||||
|
||||
// 두 번째 항목부터 Regular
|
||||
&:not(:first-child) a {
|
||||
font-weight: 400;
|
||||
color: #515151;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.drawer-actions {
|
||||
padding: 24px;
|
||||
border-top: 2px solid var(--border-gray);
|
||||
background: var(--white);
|
||||
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
|
||||
// 열린 상태
|
||||
&.open {
|
||||
.drawer-menu-btn {
|
||||
font-weight: 700;
|
||||
|
||||
.drawer-login-btn {
|
||||
display: block;
|
||||
text-align: center;
|
||||
padding: 14px 20px;
|
||||
color: var(--text-dark);
|
||||
text-decoration: none;
|
||||
border: 2px solid var(--primary-blue);
|
||||
border-radius: 12px;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
margin-bottom: 12px;
|
||||
transition: all 0.3s ease;
|
||||
.accordion-icon {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: var(--light-bg);
|
||||
color: var(--primary-blue);
|
||||
}
|
||||
}
|
||||
|
||||
.drawer-signup-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
padding: 14px 20px;
|
||||
color: var(--white);
|
||||
text-decoration: none;
|
||||
border-radius: 12px;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
margin-bottom: 12px;
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: var(--shadow-md);
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
}
|
||||
|
||||
.drawer-search-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
padding: 14px 20px;
|
||||
background: var(--gray-bg);
|
||||
color: var(--text-dark);
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
background: var(--light-bg);
|
||||
color: var(--primary-blue);
|
||||
.drawer-submenu {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user