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

Banner Images Optimisation #120

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions components/Home/Chapters.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import Card from "./Card";
import Image from "next/image";
import BGVersesBanner from "../../public/bg-verses-fixed.png"

const Chapters = ({ chapters }) => {
return (
Expand Down
5 changes: 3 additions & 2 deletions components/Shared/AboutBanner.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React from "react";
import Image from "next/image";

import AboutGitaBanner from "../../public/quotes-bg.png"
export default function AboutBanner() {
return (
<>
<div className="max-w-full mx-auto xl:mx-24 z-10 relative">
<Image
src="/about-gita.png"
src={AboutGitaBanner}
placeholder="blur"
alt="BG About Banner Image"
layout="fill"
objectFit="cover"
Expand Down
5 changes: 3 additions & 2 deletions components/Shared/QuotesBanner.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React from "react";
import Image from "next/image";

import QuotesBannerBG from "../../public/quotes-bg.png"
export default function QuotesBanner() {
return (
<div className="max-w-full mx-auto xl:mx-24 z-10 relative">
<Image
src="/quotes-bg.png"
src={QuotesBannerBG}
alt="BG Quotes Banner Image"
placeholder="blur"
layout="fill"
objectFit="cover"
objectPosition="center"
Expand Down