feat. GR_VISUAL_03 컴포넌트 제작
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
@import './base/_theme.css';
|
||||
@import './base/_reset.css';
|
||||
@import './components/_swiper-pagination.css';
|
||||
@import './components/_button.css';
|
||||
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
|
||||
44
layers/assets/css/components/_button.css
Normal file
44
layers/assets/css/components/_button.css
Normal file
@@ -0,0 +1,44 @@
|
||||
/* Button Size Classes */
|
||||
@layer components {
|
||||
.btn-base {
|
||||
@apply relative inline-flex items-center justify-center font-medium border border-gray-600/30 overflow-hidden;
|
||||
/* 기본 크기: size-medium */
|
||||
--btn-padding: theme('spacing.10');
|
||||
--btn-height: theme('spacing.14');
|
||||
--btn-text: theme('fontSize.base');
|
||||
--btn-radius: theme('borderRadius.lg');
|
||||
@apply px-10 h-14 text-base rounded-lg;
|
||||
}
|
||||
|
||||
.size-extra-small {
|
||||
--btn-padding: theme('spacing.6');
|
||||
--btn-height: theme('spacing.10');
|
||||
--btn-text: theme('fontSize.sm');
|
||||
--btn-radius: theme('borderRadius.DEFAULT');
|
||||
@apply px-6 h-10 text-sm rounded;
|
||||
}
|
||||
|
||||
.size-small {
|
||||
--btn-padding: theme('spacing.10');
|
||||
--btn-height: theme('spacing.12');
|
||||
--btn-text: theme('fontSize.sm');
|
||||
--btn-radius: theme('borderRadius.lg');
|
||||
@apply px-10 h-12 text-sm rounded-lg;
|
||||
}
|
||||
|
||||
.size-medium {
|
||||
--btn-padding: theme('spacing.10');
|
||||
--btn-height: theme('spacing.14');
|
||||
--btn-text: theme('fontSize.base');
|
||||
--btn-radius: theme('borderRadius.lg');
|
||||
@apply px-10 h-14 text-base rounded-lg;
|
||||
}
|
||||
|
||||
.size-large {
|
||||
--btn-padding: theme('spacing.10');
|
||||
--btn-height: theme('spacing.16');
|
||||
--btn-text: theme('fontSize.lg');
|
||||
--btn-radius: theme('borderRadius.lg');
|
||||
@apply px-10 h-16 text-lg rounded-lg;
|
||||
}
|
||||
}
|
||||
73
layers/assets/css/components/_swiper-pagination.css
Normal file
73
layers/assets/css/components/_swiper-pagination.css
Normal file
@@ -0,0 +1,73 @@
|
||||
/* 페이지네이션 버튼 */
|
||||
main .slide-pagination.swiper-pagination-bullets {
|
||||
position: absolute;
|
||||
bottom: 48px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.slide-pagination .swiper-pagination-bullet {
|
||||
position: relative;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background: var(--primary);
|
||||
border-radius: 50%;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.slide-pagination .swiper-pagination-bullet:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.slide-pagination .swiper-pagination-bullet-active:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* 네비게이션 버튼 */
|
||||
.slide-prev,
|
||||
.slide-next {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
cursor: pointer;
|
||||
z-index: 5;
|
||||
|
||||
background-color: var(--primary);
|
||||
}
|
||||
|
||||
.slide-prev {
|
||||
left: 40px;
|
||||
}
|
||||
|
||||
.slide-next {
|
||||
right: 40px;
|
||||
}
|
||||
|
||||
@media (max-width: 1023px) {
|
||||
main .slide-pagination.swiper-pagination-bullets {
|
||||
bottom: 32px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.slide-pagination .swiper-pagination-bullet {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user