Skip to content

Commit

Permalink
fix before deploy v 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaczk committed Dec 10, 2023
1 parent edc8a14 commit 74cbdd2
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 160 deletions.
Binary file removed public/video/Drone.mp4
Binary file not shown.
Binary file added public/video/video.MP4
Binary file not shown.
2 changes: 1 addition & 1 deletion resources/views/mahasiswa/capstone/detail.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@section('title', 'Detail Capstone')

@section('content')
<div class="p-2 row ms-4">
<div class="col-xl-8 row mx-auto">
<div id="theses-title">
<div class="mt-4 title fs-3">
Detail Capstone
Expand Down
2 changes: 1 addition & 1 deletion resources/views/mahasiswa/capstone/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@section('title', 'Capstone')

@section('content')
<div class="col-xl-7 row mx-auto">
<div class="col-xl-8 row mx-auto">
<div id="theses-title">
<div class="mt-4 title fs-3">
Katalog Capstone
Expand Down
154 changes: 1 addition & 153 deletions resources/views/mahasiswa/dashboard/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="carousel-item active">
<div style="position: relative; overflow: hidden;">
<video class="img-fluid" autoplay loop muted style="width:100%; object-fit: contain;">
<source src="{{ asset('video/jalan.mp4') }}" type="video/mp4" />
<source src="{{ asset('video/video.mp4') }}" type="video/mp4" />
</video>
</div>
<div class="carousel-caption d-none d-md-block"
Expand All @@ -30,160 +30,8 @@
</div>
<!-- Inner -->
</div>


<!-- Carousel wrapper -->
<div class="bg-image" style="height: 400px; position: relative;">
<style>
.bg-image::before {
content: "";
background-image: url('{{ asset('assets/images/BGlibrary.jpg') }}');
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.3;
/* Adjust the opacity as needed (0.3 = 30% opacity) */
background-size: cover;
}
</style>

<div class="p-4 row" style="height: 400px; width: 100%;">
<div class="text-center col-sm-4 d-flex align-items-center justify-content-center">
<p class="text-black fs-1 fw-bold">
Browse to <span style="color: #2A07FF">Experience</span> <br>
Find Your <span style="color:#FF0000">Best</span> Book
</p>
</div>
<div class="col-sm-8 d-flex align-items-center">
<div class="card-container">
@foreach ($specializations as $specBook)
<a href="{{ route('user.book.spec', $specBook->id) }}" class="mx-2 card" style="width: 18rem;">
<img src="https://source.unsplash.com/1200x800?computer" class="card-img-top"
alt="...">
<div class="card-body">
<p class="text-center card-text">{{ $specBook->desc }}</p>
</div>
</a>
@endforeach
</div>
</div>
</div>
</div>
<div class="reccomended" style="overflow: hidden;">
<div class="p-4">
<a href="{{ route('user.donate') }}" style="color: inherit;">
<h2 class="my-3 text-black m fw-semibold">Coming Soon...</h2>
</a>
<div class="mx-2 mt-4 container-fluid row d-flex flex-nowrap" style="overflow-x: auto;">
@foreach ($books as $book)
<a href="javascript:void(0)" class="" id="show-detail"
data-url="{{ route('user.donate.show', $book->id) }}" style="width: 18rem; color: inherit;">
<div class="mx-3" style="width: 250px; height: 420px;">
<img src="{{ asset('storage/images/' . $book->image) }}" class="card-img rounded-4"
style="height: 300px; width: 100%;" alt="bookImage">
<div class="bg-transparent">
<p class="fw-semibold">
{{ $book->book_name }} <br>
<span class="mt-1 fw-light">
{{ $book->author }}
</span>
</p>
</div>
</div>
</a>
@endforeach
</div>
</div>
</div>

<!-- Modal -->
<div class="modal fade" id="userShowModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Detail Buku</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="text-center">
<img alt="book" class="mb-3 card-img rounded-4" style="width: 250px; height: 300px;"
id="book-image">
</div>
<div class="">
<table class="table table-bordered">
<tbody>
<tr>
<th>Buku</th>
<td><span id="book-name"></span></td>
</tr>
<tr>
<th>Penerbit</th>
<td><span id="book-publisher"></span></td>
</tr>
<tr>
<th>Penulis</th>
<td><span id="book-author"></span></td>
</tr>
<tr>
<th>Deskripsi</th>
<td><span id="book-desc"></span></td>
</tr>
</tbody>
</table>

</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>

</div>

@endsection


@section('js')
<script>
//Modal dialog
$('body').on('click', '#show-detail', function() {
var userURL = $(this).data('url');
$.get(userURL, function(data) {
// var img = text("/storage/app/public/images/") + text(data.image);
$('#userShowModal').modal('show');
$('#book-name').text(data.book_name);
$('#book-publisher').text(data.publisher);
$('#book-author').text(data.author);
$('#book-desc').text(data.desc);
// Set the image source
var imagePath = "{{ asset('storage/images/') }}/" + data.image;
$('#book-image').attr("src", imagePath);
})
});
</script>
{{-- <script>
// JavaScript to control the visibility of the search-div based on screen width
function toggleSearchVisibility() {
var searchDiv = document.querySelector('.search-div');
var inputGroup = document.querySelector('.input-group');
if (window.innerWidth > 1500) {
searchDiv.style.display = 'block';
inputGroup.classList.remove('flex-column');
} else {
searchDiv.style.display = 'none';
inputGroup.classList.add('flex-column');
}
}
// Initial check on page load
toggleSearchVisibility();
// Listen for the window's resize event
window.addEventListener('resize', toggleSearchVisibility);
</script> --}}

@endsection
6 changes: 3 additions & 3 deletions resources/views/mahasiswa/librarian/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@

<div class="row">
<div class="col-md-6 mx-auto text-center">
<div class="mt-4 title fs-2 mb-4">
<div class="mt-4 title fs-2 mb-4 fw-semibold">
Daftar Pustakawan
</div>
</div>
</div>

<div class="form-row">
<div class="col-md-6 mx-auto">
<div class="col-md-8 mx-auto">
<div class="row row-cols-1 row-cols-md-2 g-3">
@foreach ($librarians as $librarian )
<div class="col">
<div class="card">
<div class="card-body">
<div class="d-flex text-black">
<div class="flex-shrink-0">
<img src="https://mdbcdn.b-cdn.net/img/Photos/new-templates/bootstrap-profiles/avatar-1.webp"
<img src="{{ asset('assets/images/profile.png') }}"
alt="Generic placeholder image" class="img-fluid"
style="width: 100px; border-radius: 10px;">
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/mahasiswa/theses/detail.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@section('title', 'Tugas Akhir')

@section('content')
<div class="p-2 row col-xl-7 mx-auto">
<div class="p-2 row col-xl-8 mx-auto">
<div id="theses-title">
<div class="mt-4 title fs-3">
Detail Tugas Akhir
Expand Down
2 changes: 1 addition & 1 deletion resources/views/mahasiswa/theses/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@section('content')

<div class="col-xl-7 row mx-auto">
<div class="col-xl-8 row mx-auto">
<div id="theses-title">
<div class="mt-4 title fs-3">
Katalog Tugas Akhir
Expand Down

0 comments on commit 74cbdd2

Please sign in to comment.