sigd/resources/views/layouts/front.blade.php

306 lines
12 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>
<style>
.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;
}
</style>
@yield('css')
</head>
<body>
<section class="absolute">
<img src="{{ asset('assets/images/bg-front.png') }}" alt="">
</section>
<section class="navbar px-5 py-8 relative container mx-auto hidden md:block">
<div class="flex justify-between items-center">
<div class="flex gap-[50px] items-center">
<div><a href=""><img src="{{ asset('assets/images/logo.png') }}" width="120" alt=""></a></div>
<div class="flex gap-4">
<a href="">Edukasi & Regulasi</a>
<a href="">Dokumentasi</a>
<a href="">Inventarisasi</a>
</div>
</div>
<div><a href="{{ url('login') }}" class="rounded-full px-6 py-3 border">Login</a></div>
</div>
</section>
<section class="navbar px-5 pt-8 relative container mx-auto md:hidden">
<div><a href="#" class="px-4 py-3 text-[20px]"><i class="bx bx-menu"></i></a></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() {
// 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>