Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lazy load #362

Merged
merged 1 commit into from
May 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion resources/views/includes/structure/footer.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!-- Footer logos -->
<!--suppress HtmlUnknownAnchorTarget -->
<div class="container-fluid bg-white p-2 container-fluid bg-white border-cambridge">
<div class="col-md-12 mx-auto">
<div class="row justify-content-center mb-4">
Expand Down Expand Up @@ -207,7 +208,9 @@
alt="The University of Cambridge logo"
width="200"
height="41.59"
class="img-fluid mx-auto mb-3"/>
class="img-fluid mx-auto mb-3"
loading="lazy"
/>
</a>
<br/>
&copy; {{ now()->year }} The University of Cambridge</p>
Expand Down
10 changes: 7 additions & 3 deletions resources/views/includes/structure/nav.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<!-- Nav bars -->
<nav class="navbar navbar-expand-lg navbar-dark bg-black fixed-top">
<div class="container-fluid">

<a class="navbar-brand" href="{{ route('home') }}">
<img src="/images/logos/Fitz_logo_white.png" alt="The Fitzwilliam Museum Logo" height="60" width="66.66"
class="ml-1 mr-1">
<img src="{{asset("/images/logos/Fitz_logo_white.png")}}"
alt="The Fitzwilliam Museum Logo"
height="60"
width="66.66"
class="ml-1 mr-1"
loading="lazy"
/>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
Expand Down
6 changes: 0 additions & 6 deletions resources/views/layouts/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@
</div>
</div>

<div class="container-fluid ">
<div class="negative-padding">
@include('includes.structure.carousel')
</div>
</div>

<div class="container-fluid parallax second-parallax-home mt-3"></div>

<div class="container mt-3">
Expand Down