메인 페이지 화면설계서 적용

This commit is contained in:
현성필
2025-09-24 17:34:51 +09:00
parent 8d07897e42
commit 91eec29e98
41 changed files with 11966 additions and 505 deletions
@@ -0,0 +1,271 @@
// -----------------------------------------------------------------------------
// Button styles - Modern vibrant design
// -----------------------------------------------------------------------------
// Base button
.btn {
@include button-base;
position: relative;
overflow: hidden;
// Button sizes
&-sm {
padding: $spacing-sm $spacing-md;
font-size: $font-size-sm;
}
&-md {
padding: $spacing-md $spacing-lg;
font-size: $font-size-base;
}
&-lg {
padding: $spacing-md $spacing-xl;
font-size: $font-size-md;
}
&-xl {
padding: $spacing-lg $spacing-2xl;
font-size: $font-size-lg;
}
// Button variants
&-primary {
background: $gradient-primary;
color: $white;
box-shadow: $shadow-md;
&:hover {
transform: translateY(-3px);
box-shadow: $shadow-xl;
}
&:active {
transform: translateY(-1px);
}
}
&-secondary {
background: $white;
color: $primary-blue;
border: 2px solid $primary-blue;
&:hover {
background: $light-bg;
transform: translateY(-3px);
}
}
&-accent {
background: $gradient-accent;
color: $white;
box-shadow: $shadow-md;
&:hover {
transform: translateY(-3px);
box-shadow: $shadow-xl;
}
}
&-warm {
background: $gradient-warm;
color: $white;
box-shadow: $shadow-md;
&:hover {
transform: translateY(-3px);
box-shadow: $shadow-xl;
}
}
&-success {
background: $accent-green;
color: $white;
&:hover {
background: darken($accent-green, 10%);
transform: translateY(-3px);
}
}
&-danger {
background: $accent-orange;
color: $white;
&:hover {
background: darken($accent-orange, 10%);
transform: translateY(-3px);
}
}
&-ghost {
background: transparent;
color: $primary-blue;
border: 2px solid transparent;
&:hover {
background: rgba($primary-blue, 0.1);
border-color: $primary-blue;
}
}
&-outline {
background: transparent;
color: $text-dark;
border: 2px solid $border-gray;
&:hover {
border-color: $primary-blue;
color: $primary-blue;
transform: translateY(-3px);
}
}
// Button states
&:disabled,
&.disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
&.loading {
color: transparent;
pointer-events: none;
&::after {
content: '';
position: absolute;
width: 16px;
height: 16px;
@include absolute-center;
border: 2px solid $white;
border-radius: 50%;
border-top-color: transparent;
animation: spin 0.6s linear infinite;
}
}
// Button with icon
&-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
padding: 0;
border-radius: $border-radius-circle;
&.btn-sm {
width: 32px;
height: 32px;
}
&.btn-lg {
width: 56px;
height: 56px;
}
}
// Full width button
&-block {
width: 100%;
justify-content: center;
}
// Button group
&-group {
display: inline-flex;
gap: -1px;
.btn {
border-radius: 0;
&:first-child {
border-top-left-radius: $border-radius-lg;
border-bottom-left-radius: $border-radius-lg;
}
&:last-child {
border-top-right-radius: $border-radius-lg;
border-bottom-right-radius: $border-radius-lg;
}
}
}
}
// Floating action button
.fab {
position: fixed;
bottom: $spacing-xl;
right: $spacing-xl;
width: 60px;
height: 60px;
background: $gradient-primary;
border: none;
border-radius: $border-radius-circle;
color: $white;
font-size: $font-size-xl;
cursor: pointer;
box-shadow: $shadow-lg;
transition: $transition-base;
z-index: $z-index-fixed;
@include flex-center;
&:hover {
transform: scale(1.1);
box-shadow: $shadow-xl;
.fab-label {
opacity: 1;
transform: translateX(-10px);
}
}
.fab-label {
position: absolute;
right: 70px;
top: 50%;
transform: translateY(-50%);
background: $text-dark;
color: $white;
padding: $spacing-sm $spacing-md;
border-radius: $border-radius-md;
font-size: $font-size-sm;
white-space: nowrap;
opacity: 0;
transition: $transition-base;
pointer-events: none;
}
}
// CTA buttons
.btn-cta {
&-primary {
@include button-base;
background: $white;
color: $primary-blue;
padding: $spacing-md $spacing-2xl;
font-size: $font-size-md;
box-shadow: $shadow-lg;
&:hover {
transform: translateY(-3px);
box-shadow: $shadow-xl;
}
}
&-secondary {
@include button-base;
background: transparent;
color: $white;
border: 2px solid $white;
padding: $spacing-md $spacing-2xl;
font-size: $font-size-md;
&:hover {
background: rgba($white, 0.1);
transform: translateY(-3px);
}
}
}
@@ -0,0 +1,386 @@
// -----------------------------------------------------------------------------
// Card styles - Modern vibrant design
// -----------------------------------------------------------------------------
// Base card
.card {
@include card;
position: relative;
overflow: hidden;
// Card hover effect
&::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(
45deg,
transparent 30%,
rgba($primary-blue, 0.03) 50%,
transparent 70%
);
transform: rotate(45deg);
transition: $transition-slow;
opacity: 0;
}
&:hover::before {
animation: shimmer 0.6s ease;
opacity: 1;
}
}
// API showcase cards
.api-card {
@include card;
text-align: center;
border: 2px solid $border-gray;
&:hover {
border-color: $primary-blue;
transform: translateY(-8px);
}
// Popular variant
&-popular {
border-color: $accent-yellow;
background: linear-gradient(180deg, rgba($accent-yellow, 0.05) 0%, $white 100%);
}
// New variant
&-new {
border-color: $accent-green;
background: linear-gradient(180deg, rgba($accent-green, 0.05) 0%, $white 100%);
}
// API badge
.api-badge {
position: absolute;
top: -12px;
right: 20px;
padding: $spacing-xs $spacing-md;
background: $accent-yellow;
color: $text-dark;
border-radius: $border-radius-2xl;
font-size: $font-size-xs;
font-weight: $font-weight-bold;
text-transform: uppercase;
&.new {
background: $accent-green;
color: $white;
}
&.beta {
background: $accent-purple;
color: $white;
}
}
// API icon
.api-icon {
width: 60px;
height: 60px;
margin: 0 auto $spacing-lg;
@include flex-center;
font-size: 28px;
background: $light-bg;
color: $primary-blue;
border-radius: $border-radius-xl;
transition: $transition-base;
}
&:hover .api-icon {
transform: scale(1.1);
background: $gradient-primary;
color: $white;
}
// API content
.api-name {
font-size: $font-size-lg;
font-weight: $font-weight-bold;
margin-bottom: $spacing-md;
color: $text-dark;
}
.api-description {
color: $text-gray;
line-height: $line-height-normal;
margin-bottom: $spacing-lg;
font-size: $font-size-sm;
}
// API features
.api-features {
display: flex;
justify-content: center;
gap: $spacing-sm;
margin-bottom: $spacing-lg;
flex-wrap: wrap;
.feature-tag {
padding: $spacing-xs $spacing-sm;
background: $gray-bg;
color: $text-gray;
border-radius: $border-radius-2xl;
font-size: $font-size-xs;
font-weight: $font-weight-medium;
}
}
// API link
.api-link {
display: inline-flex;
align-items: center;
gap: $spacing-xs;
color: $primary-blue;
font-weight: $font-weight-semibold;
font-size: $font-size-sm;
transition: $transition-base;
&:hover {
gap: $spacing-sm;
color: $secondary-blue;
}
}
}
// Experience cards
.experience-card {
@include card;
text-align: center;
.card-icon {
width: 56px;
height: 56px;
margin: 0 auto $spacing-lg;
@include flex-center;
font-size: $font-size-xl;
background: $gradient-primary;
color: $white;
border-radius: $border-radius-xl;
}
h3 {
font-size: $font-size-lg;
font-weight: $font-weight-bold;
margin-bottom: $spacing-md;
color: $text-dark;
}
p {
color: $text-gray;
line-height: $line-height-normal;
margin-bottom: $spacing-lg;
font-size: $font-size-sm;
}
// Card metric
.card-metric {
display: flex;
flex-direction: column;
align-items: center;
padding-top: $spacing-lg;
border-top: 1px solid $border-gray;
.metric-value {
font-size: $font-size-xl;
font-weight: $font-weight-extrabold;
color: $primary-blue;
}
.metric-label {
font-size: $font-size-xs;
color: $text-gray;
font-weight: $font-weight-medium;
}
}
}
// Feature cards
.feature-card {
@include card;
display: flex;
align-items: flex-start;
gap: $spacing-lg;
.feature-icon {
flex-shrink: 0;
width: 48px;
height: 48px;
@include flex-center;
background: $gradient-primary;
color: $white;
border-radius: $border-radius-lg;
font-size: $font-size-xl;
}
.feature-content {
flex: 1;
h4 {
font-size: $font-size-md;
font-weight: $font-weight-semibold;
margin-bottom: $spacing-sm;
color: $text-dark;
}
p {
color: $text-gray;
line-height: $line-height-normal;
font-size: $font-size-sm;
}
}
}
// Testimonial cards
.testimonial-card {
@include card;
position: relative;
&::before {
content: '"';
position: absolute;
top: $spacing-md;
left: $spacing-md;
font-size: 60px;
color: $primary-blue;
opacity: 0.1;
font-weight: $font-weight-bold;
}
.testimonial-content {
position: relative;
z-index: 1;
font-size: $font-size-base;
line-height: $line-height-loose;
color: $text-dark;
margin-bottom: $spacing-lg;
font-style: italic;
}
.testimonial-author {
display: flex;
align-items: center;
gap: $spacing-md;
.author-avatar {
width: 48px;
height: 48px;
border-radius: $border-radius-circle;
object-fit: cover;
}
.author-info {
.author-name {
font-weight: $font-weight-semibold;
color: $text-dark;
margin-bottom: 2px;
}
.author-title {
font-size: $font-size-sm;
color: $text-gray;
}
}
}
}
// Pricing cards
.pricing-card {
@include card;
text-align: center;
position: relative;
&.featured {
border: 2px solid $primary-blue;
transform: scale(1.05);
.pricing-badge {
position: absolute;
top: -14px;
left: 50%;
transform: translateX(-50%);
padding: $spacing-xs $spacing-md;
background: $gradient-primary;
color: $white;
border-radius: $border-radius-full;
font-size: $font-size-xs;
font-weight: $font-weight-bold;
text-transform: uppercase;
}
}
.pricing-header {
padding-bottom: $spacing-lg;
border-bottom: 1px solid $border-gray;
margin-bottom: $spacing-lg;
h3 {
font-size: $font-size-xl;
font-weight: $font-weight-bold;
margin-bottom: $spacing-sm;
color: $text-dark;
}
.price {
display: flex;
align-items: baseline;
justify-content: center;
gap: $spacing-xs;
.currency {
font-size: $font-size-lg;
color: $text-gray;
}
.amount {
font-size: $font-size-4xl;
font-weight: $font-weight-extrabold;
@include gradient-text($gradient-primary);
}
.period {
font-size: $font-size-base;
color: $text-gray;
}
}
}
.pricing-features {
list-style: none;
margin-bottom: $spacing-lg;
li {
padding: $spacing-sm 0;
color: $text-gray;
font-size: $font-size-sm;
display: flex;
align-items: center;
gap: $spacing-sm;
&::before {
content: '';
color: $accent-green;
font-weight: $font-weight-bold;
}
&.disabled {
opacity: 0.5;
&::before {
content: '×';
color: $text-light;
}
}
}
}
.pricing-cta {
margin-top: auto;
}
}
@@ -0,0 +1,10 @@
// -----------------------------------------------------------------------------
// CTA (Call to Action) section styles
// -----------------------------------------------------------------------------
.final-cta {
position: relative;
padding: $spacing-6xl * 1.5 0;
background: $gradient-primary;
overflow: hidden;
}
@@ -0,0 +1,240 @@
// -----------------------------------------------------------------------------
// Form styles
// -----------------------------------------------------------------------------
// Form group
.form-group {
margin-bottom: $spacing-lg;
label {
display: block;
font-size: $font-size-sm;
font-weight: $font-weight-medium;
color: $text-dark;
margin-bottom: $spacing-sm;
.required {
color: $accent-orange;
margin-left: 2px;
}
}
.form-hint {
font-size: $font-size-xs;
color: $text-gray;
margin-top: $spacing-xs;
}
.form-error {
font-size: $font-size-xs;
color: $accent-orange;
margin-top: $spacing-xs;
display: flex;
align-items: center;
gap: $spacing-xs;
}
}
// Form control base
.form-control {
width: 100%;
padding: $input-padding-y $input-padding-x;
font-size: $font-size-base;
font-family: $font-family-primary;
color: $text-dark;
background: $white;
border: 2px solid $border-gray;
border-radius: $border-radius-md;
transition: $transition-base;
&::placeholder {
color: $text-light;
}
&:focus {
outline: none;
border-color: $primary-blue;
box-shadow: 0 0 0 3px rgba($primary-blue, 0.1);
}
&:disabled {
background: $gray-bg;
color: $text-gray;
cursor: not-allowed;
}
// Size variations
&-sm {
padding: $spacing-sm $spacing-md;
font-size: $font-size-sm;
}
&-lg {
padding: $spacing-md $spacing-lg;
font-size: $font-size-md;
}
// State variations
&.is-valid {
border-color: $accent-green;
&:focus {
box-shadow: 0 0 0 3px rgba($accent-green, 0.1);
}
}
&.is-invalid {
border-color: $accent-orange;
&:focus {
box-shadow: 0 0 0 3px rgba($accent-orange, 0.1);
}
}
}
// Textarea
textarea.form-control {
min-height: 120px;
resize: vertical;
}
// Select
select.form-control {
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%2364748B'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right $spacing-md center;
background-size: 12px;
padding-right: $spacing-2xl;
}
// Checkbox and Radio
.form-check {
display: flex;
align-items: center;
margin-bottom: $spacing-md;
input[type="checkbox"],
input[type="radio"] {
width: 20px;
height: 20px;
margin-right: $spacing-sm;
cursor: pointer;
}
label {
margin-bottom: 0;
cursor: pointer;
user-select: none;
}
&.disabled {
opacity: 0.5;
cursor: not-allowed;
input,
label {
cursor: not-allowed;
}
}
}
// Switch toggle
.form-switch {
display: flex;
align-items: center;
gap: $spacing-md;
.switch {
position: relative;
width: 48px;
height: 24px;
background: $border-gray;
border-radius: $border-radius-full;
cursor: pointer;
transition: $transition-base;
&::after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 20px;
height: 20px;
background: $white;
border-radius: $border-radius-circle;
transition: $transition-base;
}
&.active {
background: $primary-blue;
&::after {
transform: translateX(24px);
}
}
}
}
// Input group
.input-group {
display: flex;
width: 100%;
.input-group-text {
padding: $input-padding-y $input-padding-x;
font-size: $font-size-base;
color: $text-gray;
background: $gray-bg;
border: 2px solid $border-gray;
border-radius: $border-radius-md 0 0 $border-radius-md;
border-right: none;
}
.form-control {
border-radius: 0 $border-radius-md $border-radius-md 0;
}
&.input-group-append {
.input-group-text {
border-radius: 0 $border-radius-md $border-radius-md 0;
border-right: 2px solid $border-gray;
border-left: none;
}
.form-control {
border-radius: $border-radius-md 0 0 $border-radius-md;
}
}
}
// Form inline
.form-inline {
display: flex;
align-items: flex-end;
gap: $spacing-md;
.form-group {
margin-bottom: 0;
}
@include respond-to('sm') {
flex-direction: column;
align-items: stretch;
.form-group {
margin-bottom: $spacing-md;
}
}
}
// Form row
.form-row {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: $spacing-lg;
@include respond-to('sm') {
grid-template-columns: 1fr;
}
}
@@ -0,0 +1,196 @@
// -----------------------------------------------------------------------------
// Modal styles
// -----------------------------------------------------------------------------
// Modal backdrop
.modal-backdrop {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: $z-index-modal-backdrop;
opacity: 0;
visibility: hidden;
transition: $transition-base;
&.show {
opacity: 1;
visibility: visible;
}
}
// Modal wrapper
.modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: $z-index-modal;
display: flex;
align-items: center;
justify-content: center;
padding: $spacing-lg;
opacity: 0;
visibility: hidden;
transition: $transition-base;
&.show {
opacity: 1;
visibility: visible;
.modal-dialog {
transform: scale(1);
}
}
}
// Modal dialog
.modal-dialog {
position: relative;
background: $white;
border-radius: $border-radius-xl;
box-shadow: $shadow-xl;
max-width: 500px;
width: 100%;
max-height: 90vh;
display: flex;
flex-direction: column;
transform: scale(0.95);
transition: $transition-base;
// Size variations
&.modal-sm {
max-width: 400px;
}
&.modal-lg {
max-width: 800px;
}
&.modal-xl {
max-width: 1200px;
}
&.modal-fullscreen {
max-width: 100%;
max-height: 100%;
height: 100%;
margin: 0;
border-radius: 0;
}
}
// Modal header
.modal-header {
padding: $spacing-lg;
border-bottom: 1px solid $border-gray;
display: flex;
align-items: center;
justify-content: space-between;
.modal-title {
font-size: $font-size-xl;
font-weight: $font-weight-semibold;
color: $text-dark;
margin: 0;
}
.modal-close {
width: 32px;
height: 32px;
@include flex-center;
background: transparent;
border: none;
border-radius: $border-radius-md;
color: $text-gray;
font-size: $font-size-xl;
cursor: pointer;
transition: $transition-base;
&:hover {
background: $gray-bg;
color: $text-dark;
}
}
}
// Modal body
.modal-body {
padding: $spacing-lg;
flex: 1;
overflow-y: auto;
color: $text-dark;
line-height: $line-height-normal;
}
// Modal footer
.modal-footer {
padding: $spacing-lg;
border-top: 1px solid $border-gray;
display: flex;
gap: $spacing-md;
justify-content: flex-end;
&.modal-footer-center {
justify-content: center;
}
&.modal-footer-between {
justify-content: space-between;
}
}
// Alert modal
.modal-alert {
.modal-dialog {
max-width: 400px;
}
.modal-body {
text-align: center;
padding: $spacing-xl;
.alert-icon {
width: 64px;
height: 64px;
margin: 0 auto $spacing-lg;
@include flex-center;
font-size: $font-size-2xl;
border-radius: $border-radius-circle;
&.alert-success {
background: rgba($accent-green, 0.1);
color: $accent-green;
}
&.alert-warning {
background: rgba($accent-yellow, 0.1);
color: $accent-yellow;
}
&.alert-danger {
background: rgba($accent-orange, 0.1);
color: $accent-orange;
}
&.alert-info {
background: rgba($primary-blue, 0.1);
color: $primary-blue;
}
}
.alert-title {
font-size: $font-size-xl;
font-weight: $font-weight-semibold;
margin-bottom: $spacing-sm;
color: $text-dark;
}
.alert-message {
color: $text-gray;
}
}
}
@@ -0,0 +1,239 @@
// -----------------------------------------------------------------------------
// Navigation component styles
// -----------------------------------------------------------------------------
// Breadcrumb navigation
.breadcrumb {
display: flex;
align-items: center;
gap: $spacing-sm;
padding: $spacing-md 0;
font-size: $font-size-sm;
.breadcrumb-item {
display: flex;
align-items: center;
gap: $spacing-sm;
color: $text-gray;
a {
color: $text-gray;
transition: $transition-base;
&:hover {
color: $primary-blue;
}
}
&.active {
color: $text-dark;
font-weight: $font-weight-medium;
}
&:not(:last-child)::after {
content: '/';
color: $text-light;
margin-left: $spacing-sm;
}
}
}
// Tab navigation
.nav-tabs {
display: flex;
gap: $spacing-xs;
border-bottom: 2px solid $border-gray;
margin-bottom: $spacing-xl;
.nav-item {
position: relative;
}
.nav-link {
display: flex;
align-items: center;
gap: $spacing-sm;
padding: $spacing-md $spacing-lg;
color: $text-gray;
font-weight: $font-weight-medium;
border-bottom: 2px solid transparent;
margin-bottom: -2px;
transition: $transition-base;
&:hover {
color: $text-dark;
}
&.active {
color: $primary-blue;
border-bottom-color: $primary-blue;
}
.badge {
padding: 2px 6px;
background: $gray-bg;
color: $text-gray;
border-radius: $border-radius-full;
font-size: 11px;
font-weight: $font-weight-semibold;
}
}
}
// Pills navigation
.nav-pills {
display: flex;
gap: $spacing-sm;
padding: $spacing-xs;
background: $gray-bg;
border-radius: $border-radius-lg;
.nav-link {
padding: $spacing-sm $spacing-lg;
color: $text-gray;
font-weight: $font-weight-medium;
border-radius: $border-radius-md;
transition: $transition-base;
&:hover {
color: $text-dark;
background: rgba($white, 0.5);
}
&.active {
background: $white;
color: $primary-blue;
box-shadow: $shadow-sm;
}
}
}
// Sidebar navigation
.sidebar-nav {
.nav-section {
margin-bottom: $spacing-xl;
.nav-title {
font-size: $font-size-xs;
font-weight: $font-weight-semibold;
text-transform: uppercase;
color: $text-gray;
padding: $spacing-sm $spacing-md;
letter-spacing: 0.05em;
}
}
.nav-menu {
list-style: none;
.nav-item {
margin-bottom: $spacing-xs;
}
.nav-link {
display: flex;
align-items: center;
gap: $spacing-md;
padding: $spacing-sm $spacing-md;
color: $text-dark;
border-radius: $border-radius-md;
transition: $transition-base;
.nav-icon {
width: 20px;
height: 20px;
@include flex-center;
font-size: $font-size-md;
color: $text-gray;
}
&:hover {
background: $gray-bg;
color: $primary-blue;
.nav-icon {
color: $primary-blue;
}
}
&.active {
background: $light-bg;
color: $primary-blue;
font-weight: $font-weight-medium;
.nav-icon {
color: $primary-blue;
}
}
}
// Nested menu
.nav-submenu {
margin-left: $spacing-2xl;
margin-top: $spacing-xs;
list-style: none;
.nav-link {
font-size: $font-size-sm;
padding: $spacing-xs $spacing-md;
}
}
}
}
// Pagination
.pagination {
display: flex;
align-items: center;
gap: $spacing-xs;
.page-item {
&.disabled {
.page-link {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
}
&.active {
.page-link {
background: $primary-blue;
color: $white;
border-color: $primary-blue;
}
}
}
.page-link {
display: flex;
align-items: center;
justify-content: center;
min-width: 36px;
height: 36px;
padding: 0 $spacing-sm;
background: $white;
border: 1px solid $border-gray;
border-radius: $border-radius-md;
color: $text-dark;
font-size: $font-size-sm;
font-weight: $font-weight-medium;
transition: $transition-base;
&:hover {
background: $gray-bg;
border-color: $primary-blue;
color: $primary-blue;
}
&.page-prev,
&.page-next {
font-size: $font-size-md;
}
}
.page-dots {
padding: 0 $spacing-sm;
color: $text-gray;
}
}
@@ -0,0 +1,8 @@
// -----------------------------------------------------------------------------
// Partners section styles
// -----------------------------------------------------------------------------
.partners {
padding: $spacing-5xl 0;
background: $white;
}