214 lines
4.9 KiB
CSS
214 lines
4.9 KiB
CSS
@import url(https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans&display=swap);
|
|
@import "tailwindcss";
|
|
@plugin "daisyui";
|
|
@plugin "@tailwindcss/typography";
|
|
|
|
/* Custom styles untuk Bank Sampah App */
|
|
@layer components {
|
|
.hero-gradient {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
}
|
|
|
|
.card-hover {
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.card-hover:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
/* New Landing Page Styles */
|
|
.fade-in-up {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
transition: opacity 0.6s ease, transform 0.6s ease;
|
|
}
|
|
|
|
.fade-in-up.visible {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.animate-fade-in {
|
|
animation: fadeIn 0.8s ease-in-out;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
0% {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Custom badge styles */
|
|
.badge-icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
background: currentColor;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
/* Hover effects for CTA button */
|
|
.btn-cta {
|
|
@apply btn btn-outline btn-lg border-white text-white bg-transparent shadow-none;
|
|
@apply rounded-lg px-6 flex items-center justify-center transition-all duration-300 ease-out;
|
|
}
|
|
|
|
.btn-cta:hover {
|
|
@apply px-6 bg-white/10 border-none scale-110 backdrop-blur-md;
|
|
}
|
|
|
|
.btn-cta__icon {
|
|
@apply text-xl inline-flex w-0 overflow-hidden opacity-0 -translate-x-3 transition-all duration-300;
|
|
@apply group-hover:w-5 group-hover:ml-2 group-hover:opacity-100 group-hover:translate-x-1;
|
|
}
|
|
|
|
/* Map marker animation */
|
|
.map-marker {
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
transform: scale(1);
|
|
}
|
|
50% {
|
|
transform: scale(1.1);
|
|
}
|
|
100% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
/* Responsive text sizing */
|
|
@media (max-width: 640px) {
|
|
.hero-title {
|
|
font-size: 2.5rem;
|
|
line-height: 1.2;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.hero-title {
|
|
font-size: 4.5rem;
|
|
line-height: 1.1;
|
|
}
|
|
}
|
|
|
|
.article-nav-controls {
|
|
@apply flex items-center gap-2;
|
|
}
|
|
|
|
.article-nav-btn {
|
|
@apply btn btn-neutral btn-outline btn-circle shadow-none transition-transform duration-200;
|
|
}
|
|
|
|
.article-nav-btn:hover {
|
|
@apply -translate-y-0.5 shadow;
|
|
}
|
|
|
|
.article-nav-btn:focus-visible {
|
|
@apply outline-none ring-2 ring-bank-sampah-primary-500;
|
|
}
|
|
|
|
.article-carousel-wrapper {
|
|
@apply relative w-full overflow-hidden;
|
|
}
|
|
|
|
.article-carousel {
|
|
@apply carousel carousel-start w-full gap-6 scroll-smooth;
|
|
scroll-snap-type: x proximity;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.article-carousel::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.article-carousel .carousel-item {
|
|
scroll-snap-align: start;
|
|
}
|
|
|
|
.article-card {
|
|
@apply card bg-base-100 shadow-sm w-[320px] md:w-[360px];
|
|
}
|
|
}
|
|
|
|
@utility icon {
|
|
font-family: 'Material Symbols Outlined';
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
font-size: 1.5rem; /* 24px default */
|
|
line-height: 1;
|
|
letter-spacing: normal;
|
|
text-transform: none;
|
|
display: inline-block;
|
|
-webkit-font-feature-settings: 'liga';
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
@utility icon-outline {
|
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
}
|
|
|
|
@utility icon-fill {
|
|
font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
}
|
|
|
|
@theme {
|
|
--font-jakarta-plus: "Plus Jakarta Sans", sans-serif;
|
|
--color-bank-sampah-primary-700: #184D21;
|
|
--color-bank-sampah-primary-600: #1E602A;
|
|
--color-bank-sampah-primary-500: #247332;
|
|
--color-bank-sampah-primary-200: #91B998;
|
|
--color-bank-sampah-primary-100: #B6D0BB;
|
|
--color-bank-sampah-primary-25: #EFFFF2;
|
|
--color-bank-sampah-secondary-700: #782D12;
|
|
--color-bank-sampah-secondary-600: #C94B1F;
|
|
--color-bank-sampah-secondary-500: #F15A25;
|
|
--color-bank-sampah-secondary-200: #F8AC92;
|
|
--color-bank-sampah-secondary-100: #FAC8B6;
|
|
--color-bank-sampah-secondary-25: #FCDED3;
|
|
}
|
|
|
|
.menu-sidebar a,
|
|
.menu-sidebar summary {
|
|
@apply rounded-full transition-colors duration-200;
|
|
}
|
|
|
|
/* Untuk semua item sidebar (normal + collapsible summary) */
|
|
.menu-sidebar a:hover,
|
|
.menu-sidebar a:active,
|
|
.menu-sidebar a.menu-active,
|
|
.menu-sidebar details > summary:hover,
|
|
.menu-sidebar details > summary:active,
|
|
.menu-sidebar details[open] > summary {
|
|
@apply bg-bank-sampah-primary-500 text-white shadow-none;
|
|
}
|
|
|
|
/* Untuk link di dalam isi collapsible */
|
|
.menu-sidebar details[open] > ul a:hover,
|
|
.menu-sidebar details[open] > ul a:active,
|
|
.menu-sidebar details[open] > ul a.menu-active {
|
|
@apply text-bank-sampah-primary-500 bg-transparent font-bold shadow-none;
|
|
}
|
|
|
|
.badge {
|
|
@apply text-nowrap;
|
|
}
|
|
|
|
:root {
|
|
--color-success: #12B76A;
|
|
--color-warning: #F79009;
|
|
--color-error: #F04438;
|
|
--color-secondary: #F15A25;
|
|
}
|
|
|
|
div.dt-scroll-body thead {
|
|
visibility: collapse !important;
|
|
} |