454 lines
18 KiB
PHP
454 lines
18 KiB
PHP
<!doctype html>
|
|
<html lang="en" data-layout="vertical" data-topbar="light" data-sidebar="dark" data-sidebar-size="lg" data-sidebar-image="none" data-preloader="disable">
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>@yield('title',@$title) | SIGD</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta content="SIDG" name="description" />
|
|
<meta content="ilhamwara" name="author" />
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('assets/logo-dinas.ico') }}">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('assets/logo-dinas.ico') }}">
|
|
<link rel="mask-icon" href="{{ asset('assets/logo-dinas.ico') }}" color="#5bbad5">
|
|
<!-- App favicon -->
|
|
<link rel="shortcut icon" href="{{asset('assets/images/favicon.ico')}}">
|
|
<!-- Bootstrap Css -->
|
|
{{-- <link href="{{asset('assets/css/bootstrap.min.css')}}" id="bootstrap-style" rel="stylesheet" type="text/css" /> --}}
|
|
<!-- Icons Css -->
|
|
<link href="{{asset('assets/css/icons.min.css')}}" rel="stylesheet" type="text/css" />
|
|
<!-- App Css-->
|
|
<link href="{{asset('assets/css/app.min.css')}}" id="app-style" rel="stylesheet" type="text/css" />
|
|
<link rel="stylesheet" type="text/css" href="{{asset('assets/css/bootstrap-table.min.css')}}">
|
|
<link href="{{ asset('assets/libs/sweetalert2/sweetalert2.min.css') }}" rel="stylesheet" type="text/css" />
|
|
<!-- alertifyjs Css -->
|
|
<link href="{{ asset('assets/libs/alertifyjs/build/css/alertify.min.css') }}" rel="stylesheet" type="text/css" />
|
|
<link href="{{ asset('assets/libs/choices.js/public/assets/styles/choices.min.css') }}" rel="stylesheet" type="text/css" />
|
|
|
|
<!-- alertifyjs default themes Css -->
|
|
<link href="{{ asset('assets/libs/alertifyjs/build/css/themes/default.min.css') }}" rel="stylesheet" type="text/css" />
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap" rel="stylesheet">
|
|
<style>
|
|
* {
|
|
font-family: 'Plus Jakarta Sans', sans-serif;
|
|
}
|
|
|
|
.fade-in {
|
|
opacity: 0;
|
|
transform: translateY(50px);
|
|
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
|
|
}
|
|
|
|
.fade-in.visible {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Modern Minimalist Button Hover Animations */
|
|
.btn-minimal {
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
position: relative;
|
|
}
|
|
|
|
.btn-minimal:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn-minimal:active {
|
|
transform: translateY(-1px);
|
|
transition-duration: 0.1s;
|
|
}
|
|
|
|
/* Primary button (blue background) */
|
|
.btn-minimal.btn-primary {
|
|
background-color: #2084FF;
|
|
}
|
|
|
|
.btn-minimal.btn-primary:hover {
|
|
background-color: #1a6fd9;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
/* Secondary button (border only) */
|
|
.btn-minimal.btn-secondary {
|
|
border: 1px solid currentColor;
|
|
background-color: transparent;
|
|
}
|
|
|
|
.btn-minimal.btn-secondary:hover {
|
|
background-color: #2084FF;
|
|
color: white;
|
|
border-color: #2084FF;
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
/* Outline button */
|
|
.btn-minimal.btn-outline:hover {
|
|
background-color: rgba(32, 132, 255, 0.1);
|
|
border-color: #2084FF;
|
|
color: #2084FF;
|
|
transform: translateX(4px);
|
|
}
|
|
|
|
/* Icon button */
|
|
.btn-minimal.btn-icon:hover {
|
|
transform: rotate(5deg) scale(1.1);
|
|
}
|
|
|
|
/* Tab button */
|
|
.btn-minimal.btn-tab {
|
|
display: block;
|
|
width: 100%;
|
|
color: white;
|
|
text-decoration: none;
|
|
background-color: transparent;
|
|
border-color: white;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.btn-minimal.btn-tab:hover {
|
|
background-color: white !important;
|
|
color: #2084FF !important;
|
|
border-color: white;
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
/* Link button */
|
|
.btn-minimal.btn-link:hover {
|
|
transform: translateX(8px);
|
|
}
|
|
|
|
.btn-minimal.btn-link::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 0;
|
|
height: 1px;
|
|
background-color: currentColor;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.btn-minimal.btn-link:hover::after {
|
|
width: 100%;
|
|
}
|
|
|
|
/* FAQ Static Styles */
|
|
.faq-content {
|
|
/* Always visible */
|
|
display: block;
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Information Card Hover Animations */
|
|
.info-card {
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.info-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.7) 100%);
|
|
z-index: 1;
|
|
transition: background 0.3s ease;
|
|
}
|
|
|
|
.info-card:hover {
|
|
transform: translateY(-8px);
|
|
}
|
|
|
|
.info-card:hover::before {
|
|
background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.8) 100%);
|
|
}
|
|
|
|
.info-card .content {
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* Navbar Scroll Animation */
|
|
#navbar {
|
|
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
|
|
}
|
|
|
|
/* Mobile menu animation */
|
|
#mobile-menu {
|
|
transition: all 0.3s ease-in-out;
|
|
}
|
|
|
|
/* Active navigation state */
|
|
.nav-active {
|
|
color: #2084FF !important;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -8px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 6px;
|
|
height: 6px;
|
|
background-color: #2084FF;
|
|
border-radius: 50%;
|
|
}
|
|
</style>
|
|
@yield('css')
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<a href="{{ route('index') }}" class="absolute"></a>
|
|
|
|
<!-- Navigation -->
|
|
<section class="navbar px-5 py-8 relative container mx-auto font-['Plus_Jakarta_Sans'] sticky top-0 z-50 bg-white" id="navbar">
|
|
<!-- Desktop Navigation -->
|
|
<div class="hidden md:flex justify-between items-center">
|
|
<div class="flex gap-[50px] items-center">
|
|
<div><a href="{{ route('index') }}"><img src="{{ asset('assets/images/logo.png') }}" width="120" alt=""></a></div>
|
|
<div class="flex gap-4">
|
|
<a href="{{ route('edukasi') }}" class="text-black font-['Plus_Jakarta_Sans'] hover:text-gray-600 transition-colors">Edukasi & Regulasi</a>
|
|
<a href="#" class="text-black font-['Plus_Jakarta_Sans'] hover:text-gray-600 transition-colors">Dokumentasi</a>
|
|
<a href="{{ url('login') }}" class="text-black font-['Plus_Jakarta_Sans'] hover:text-gray-600 transition-colors">Inventarisasi</a>
|
|
</div>
|
|
</div>
|
|
<div><a href="{{ url('login') }}" class="rounded-full px-6 py-3 border border-black font-['Plus_Jakarta_Sans'] hover:bg-gray-50 transition-colors">Login</a></div>
|
|
</div>
|
|
|
|
<!-- Mobile Navigation -->
|
|
<div class="md:hidden flex justify-between items-center">
|
|
<div><a href="{{ route('index') }}"><img src="{{ asset('assets/images/logo.png') }}" width="100" alt=""></a></div>
|
|
<button type="button"
|
|
class="p-2 text-black hover:text-gray-600 transition-colors"
|
|
id="mobile-menu-button"
|
|
aria-controls="mobile-menu"
|
|
aria-expanded="false">
|
|
<span class="sr-only">Open main menu</span>
|
|
<!-- Hamburger icon -->
|
|
<svg class="block h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" id="menu-icon">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
|
|
</svg>
|
|
<!-- Close icon -->
|
|
<svg class="hidden h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" id="close-icon">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
|
|
<!-- Mobile Menu -->
|
|
<div class="md:hidden hidden mt-4" id="mobile-menu">
|
|
<div class="space-y-2 bg-white border-t border-gray-200 pt-4">
|
|
<a href="{{ route('edukasi') }}"
|
|
class="block px-3 py-2 text-base font-['Plus_Jakarta_Sans'] text-black hover:text-gray-600 transition-colors">
|
|
Edukasi & Regulasi
|
|
</a>
|
|
<a href="#"
|
|
class="block px-3 py-2 text-base font-['Plus_Jakarta_Sans'] text-black hover:text-gray-600 transition-colors">
|
|
Dokumentasi
|
|
</a>
|
|
<a href="{{ url('login') }}"
|
|
class="block px-3 py-2 text-base font-['Plus_Jakarta_Sans'] text-black hover:text-gray-600 transition-colors">
|
|
Inventarisasi
|
|
</a>
|
|
<div class="pt-4">
|
|
<a href="{{ url('login') }}"
|
|
class="block text-center rounded-full px-6 py-3 border border-black font-['Plus_Jakarta_Sans'] hover:bg-gray-50 transition-colors">
|
|
Login
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
@yield('content')
|
|
{{-- <script src="{{asset('assets/libs/bootstrap/js/bootstrap.bundle.min.js')}}"></script> --}}
|
|
<script src="{{asset('assets/libs/metismenujs/metismenujs.min.js')}}"></script>
|
|
<script src="{{asset('assets/libs/simplebar/simplebar.min.js')}}"></script>
|
|
<script src="{{asset('assets/libs/eva-icons/eva.min.js')}}"></script>
|
|
|
|
<script src="{{ asset('assets/js/app.js') }}"></script>
|
|
<script src="{{asset('assets/js/bootstrap-table.min.js')}}"></script>
|
|
<script src="{{ asset('assets/libs/sweetalert2/sweetalert2.min.js') }}"></script>
|
|
<script src="{{ asset('assets/libs/alertifyjs/build/alertify.min.js') }}"></script>
|
|
<script src="{{ asset('assets/libs/choices.js/public/assets/scripts/choices.min.js') }}"></script>
|
|
|
|
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
// Mobile menu functionality
|
|
const mobileMenuButton = document.getElementById('mobile-menu-button');
|
|
const mobileMenu = document.getElementById('mobile-menu');
|
|
const menuIcon = document.getElementById('menu-icon');
|
|
const closeIcon = document.getElementById('close-icon');
|
|
|
|
if (mobileMenuButton && mobileMenu) {
|
|
mobileMenuButton.addEventListener('click', function() {
|
|
const isOpen = mobileMenuButton.getAttribute('aria-expanded') === 'true';
|
|
|
|
mobileMenuButton.setAttribute('aria-expanded', !isOpen);
|
|
|
|
if (isOpen) {
|
|
mobileMenu.classList.add('hidden');
|
|
menuIcon.classList.remove('hidden');
|
|
menuIcon.classList.add('block');
|
|
closeIcon.classList.remove('block');
|
|
closeIcon.classList.add('hidden');
|
|
} else {
|
|
mobileMenu.classList.remove('hidden');
|
|
menuIcon.classList.remove('block');
|
|
menuIcon.classList.add('hidden');
|
|
closeIcon.classList.remove('hidden');
|
|
closeIcon.classList.add('block');
|
|
}
|
|
});
|
|
|
|
// Close mobile menu when clicking on links
|
|
const mobileMenuLinks = mobileMenu.querySelectorAll('a');
|
|
mobileMenuLinks.forEach(link => {
|
|
link.addEventListener('click', function() {
|
|
mobileMenu.classList.add('hidden');
|
|
mobileMenuButton.setAttribute('aria-expanded', 'false');
|
|
menuIcon.classList.remove('hidden');
|
|
menuIcon.classList.add('block');
|
|
closeIcon.classList.remove('block');
|
|
closeIcon.classList.add('hidden');
|
|
});
|
|
});
|
|
}
|
|
|
|
// Navbar scroll behavior
|
|
const navbar = document.getElementById('navbar');
|
|
let lastScrollTop = 0;
|
|
|
|
window.addEventListener('scroll', function() {
|
|
const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
|
|
|
if (scrollTop > lastScrollTop && scrollTop > 100) {
|
|
// Scrolling down & past threshold - hide navbar
|
|
navbar.style.transform = 'translateY(-100%)';
|
|
} else {
|
|
// Scrolling up - show navbar
|
|
navbar.style.transform = 'translateY(0)';
|
|
}
|
|
|
|
// Add shadow when scrolling
|
|
if (scrollTop > 10) {
|
|
navbar.classList.remove('shadow-sm');
|
|
navbar.classList.add('shadow-md');
|
|
} else {
|
|
navbar.classList.remove('shadow-md');
|
|
navbar.classList.add('shadow-sm');
|
|
}
|
|
|
|
lastScrollTop = scrollTop;
|
|
});
|
|
|
|
// Simple fade-in animation
|
|
const fadeElements = document.querySelectorAll('.fade-in');
|
|
|
|
if (fadeElements.length === 0) {
|
|
console.log('No fade-in elements found');
|
|
return;
|
|
}
|
|
|
|
console.log('Found ' + fadeElements.length + ' fade-in elements');
|
|
|
|
// Show first element immediately
|
|
if (fadeElements[0]) {
|
|
setTimeout(() => {
|
|
fadeElements[0].classList.add('visible');
|
|
console.log('First element animated');
|
|
}, 500);
|
|
}
|
|
|
|
// Setup intersection observer for other elements
|
|
if ('IntersectionObserver' in window) {
|
|
const observer = new IntersectionObserver((entries) => {
|
|
entries.forEach(entry => {
|
|
if (entry.isIntersecting) {
|
|
entry.target.classList.add('visible');
|
|
console.log('Element animated on scroll');
|
|
observer.unobserve(entry.target);
|
|
}
|
|
});
|
|
}, {
|
|
threshold: 0.1,
|
|
rootMargin: '0px 0px -50px 0px'
|
|
});
|
|
|
|
// Observe all elements except the first one
|
|
for (let i = 1; i < fadeElements.length; i++) {
|
|
observer.observe(fadeElements[i]);
|
|
}
|
|
} else {
|
|
// Fallback for older browsers
|
|
fadeElements.forEach(el => {
|
|
el.style.opacity = '1';
|
|
el.style.transform = 'translateY(0)';
|
|
});
|
|
}
|
|
|
|
// Flowbite Accordion Functionality
|
|
const accordionButtons = document.querySelectorAll('[data-accordion-target]');
|
|
|
|
accordionButtons.forEach(button => {
|
|
button.addEventListener('click', function() {
|
|
const targetId = this.getAttribute('data-accordion-target');
|
|
const targetElement = document.querySelector(targetId);
|
|
const isExpanded = this.getAttribute('aria-expanded') === 'true';
|
|
const icon = this.querySelector('[data-accordion-icon]');
|
|
|
|
// Close all other accordion items
|
|
accordionButtons.forEach(otherButton => {
|
|
if (otherButton !== button) {
|
|
const otherId = otherButton.getAttribute('data-accordion-target');
|
|
const otherElement = document.querySelector(otherId);
|
|
const otherIcon = otherButton.querySelector('[data-accordion-icon]');
|
|
|
|
otherButton.setAttribute('aria-expanded', 'false');
|
|
if (otherElement) {
|
|
otherElement.classList.add('hidden');
|
|
}
|
|
if (otherIcon) {
|
|
otherIcon.classList.remove('rotate-180');
|
|
}
|
|
}
|
|
});
|
|
|
|
// Toggle current accordion item
|
|
if (isExpanded) {
|
|
this.setAttribute('aria-expanded', 'false');
|
|
if (targetElement) {
|
|
targetElement.classList.add('hidden');
|
|
}
|
|
if (icon) {
|
|
icon.classList.remove('rotate-180');
|
|
}
|
|
} else {
|
|
this.setAttribute('aria-expanded', 'true');
|
|
if (targetElement) {
|
|
targetElement.classList.remove('hidden');
|
|
}
|
|
if (icon) {
|
|
icon.classList.add('rotate-180');
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
|
|
@yield('js')
|
|
|
|
</body>
|
|
|
|
</html> |