Skip to content

Commit

Permalink
Update background image format to WebP for improved performance
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Dec 28, 2024
1 parent 7a10b1d commit e523863
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="preload" href="/cover.png" as="image" type="image/png" />
<!-- <link rel="preload" href="/cover.png" as="image" type="image/png" /> -->
<link rel="preload" href="/cover.webp" as="image" type="image/webp" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="BookCars Rental Service" />
<title>Movin' In Rental Service</title>
Expand Down
Binary file added frontend/public/cover.webp
Binary file not shown.
3 changes: 2 additions & 1 deletion frontend/src/assets/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ div.home div.home-content div.video-background {
width: 100%;
top: 0;
left: 0;
background-image: url('/cover.png');
/* background-image: url('/cover.png'); */
background-image: url('/cover.webp');
background-repeat: no-repeat;
background-size: cover;
background-position: 50%;
Expand Down

0 comments on commit e523863

Please sign in to comment.