Skip to content

Commit

Permalink
added preloader
Browse files Browse the repository at this point in the history
  • Loading branch information
itsemon245 committed Apr 24, 2024
1 parent e6a36f8 commit ad0489f
Show file tree
Hide file tree
Showing 10 changed files with 340 additions and 12 deletions.
26 changes: 26 additions & 0 deletions app/View/Components/Preloader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace App\View\Components;

use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;

class Preloader extends Component
{
/**
* Create a new component instance.
*/
public function __construct()
{
//
}

/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.preloader');
}
}
243 changes: 243 additions & 0 deletions public/assets/css/preloader.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/assets/css/preloader.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions resources/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ header {
height: max-content;
}

.sticky{
position:sticky !important;
top:0;
.sticky {
position: sticky !important;
top: 0;
}
.fixed{
.fixed {
position: fixed;
}
.sidebar {
Expand Down Expand Up @@ -222,12 +222,12 @@ footer .social-handles {
display: none !important;
}
}
@media (min-width: 1230px){
.user-menu-btn{
@media (min-width: 1230px) {
.user-menu-btn {
display: block;
}
}
.user-menu-btn{
.user-menu-btn {
display: none;
}
/* up to midium devices like tablet */
Expand Down
3 changes: 2 additions & 1 deletion resources/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
@import 'bootstrap/scss/bootstrap';
body{
font-family: 'Poppins', sans-serif;
}
}

4 changes: 3 additions & 1 deletion resources/views/backend/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
<!-- body start -->

<body data-layout-mode="default" data-theme="light" data-topbar-color="dark" data-menu-position="fixed"
data-leftbar-color="light" data-leftbar-size='default' data-sidebar-user='false'>
data-leftbar-color="light" data-leftbar-size='default' data-sidebar-user='false' style="overflow: hidden!important;height: 100vh;">
<x-preloader />

<style>
@media print {
.container-fluid {
Expand Down
4 changes: 3 additions & 1 deletion resources/views/backend/layouts/head.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
<style>
.tail-select {
width: 100% !important;
padding: 0.75rem!important;
padding: 0.75rem !important;
}
</style>
{{-- @vite(['resources/css/tailwind.css']) --}}
<!-- App favicon -->
<link rel="shortcut icon" href="{{ asset('backend/assets/images/favicon.ico') }}">
<link rel="stylesheet" href="{{ asset('assets/css/preloader.css') }}">


<!-- Bootstrap css -->
<link href="{{ asset('backend/assets/css/bootstrap.min.css') }}" rel="stylesheet" type="text/css" />
Expand Down
3 changes: 2 additions & 1 deletion resources/views/components/frontend/layouts/head.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

<link rel="stylesheet" href="{{ asset('libs/tail.select.js-1.0.2/css/tail.select.css') }}">
@vite(['resources/css/tailwind.css'])
<link rel="stylesheet" href="{{ asset('assets/css/preloader.css') }}">


<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
Expand All @@ -26,7 +28,6 @@
<link href="{{ asset('frontend/assets/css/bootstrap.min.css') }}" rel="stylesheet" type="text/css" id="app-style">
{{-- icons css --}}
<link href="{{ asset('frontend/assets/css/icons.min.css') }}" rel="stylesheet" type="text/css" id="app-style">
@stack('customCss')
{{-- Head JS --}}
<script src="{{ asset('frontend/assets/js/head.js') }}"></script>
{{-- Color extractor for matching image color --}}
Expand Down
Loading

0 comments on commit ad0489f

Please sign in to comment.