Merge pull request 'fix: blogs payload collections config and replace some img with Image' (#6) from dev into main

Reviewed-on: #6
This commit is contained in:
RizqiSyahrendra 2025-04-21 02:20:27 +00:00
commit 7d3ff7a0c2
5 changed files with 14 additions and 12 deletions

View File

@ -1,6 +1,7 @@
import HeroImage from "@/components/HeroImage";
import { getDefaultMetadata } from "@/utils/metadata";
import { Metadata } from "next";
import Image from "next/image";
const metaDesc =
"Explore the latest insights, news, and resources on the Dynamic Realty blog. Read our articles today.";
@ -68,7 +69,7 @@ export default function BlogDetail() {
<div className="col-sm-6">
<article className="post-simple">
<div className="post-simple-img">
<img src="/images/blog-post-03-736x540.jpg" alt="" width="736" height="540" />
<Image src="/images/blog-post-03-736x540.jpg" alt="" width="736" height="540" />
</div>
<div className="post-simple-body">
<div className="post-simple-title">
@ -88,7 +89,7 @@ export default function BlogDetail() {
<div className="col-sm-6">
<article className="post-simple">
<div className="post-simple-img">
<img src="/images/blog-post-04-736x540.jpg" alt="" width="736" height="540" />
<Image src="/images/blog-post-04-736x540.jpg" alt="" width="736" height="540" />
</div>
<div className="post-simple-body">
<div className="post-simple-title">
@ -140,7 +141,7 @@ export default function BlogDetail() {
</div>
<a className="post-minimal-1" href="#">
<div className="post-minimal-1-left">
<img src="/images/post-agent-01-212x208.jpg" alt="" width="212" height="208" />
<Image src="/images/post-agent-01-212x208.jpg" alt="" width="212" height="208" />
</div>
<div className="post-minimal-1-body">
<div className="post-minimal-1-title">
@ -153,7 +154,7 @@ export default function BlogDetail() {
</a>
<a className="post-minimal-1" href="#">
<div className="post-minimal-1-left">
<img src="/images/post-agent-02-212x208.jpg" alt="" width="212" height="208" />
<Image src="/images/post-agent-02-212x208.jpg" alt="" width="212" height="208" />
</div>
<div className="post-minimal-1-body">
<div className="post-minimal-1-title">
@ -166,7 +167,7 @@ export default function BlogDetail() {
</a>
<a className="post-minimal-1" href="#">
<div className="post-minimal-1-left">
<img src="/images/post-agent-03-212x208.jpg" alt="" width="212" height="208" />
<Image src="/images/post-agent-03-212x208.jpg" alt="" width="212" height="208" />
</div>
<div className="post-minimal-1-body">
<div className="post-minimal-1-title">

View File

@ -5,6 +5,7 @@ import { Metadata } from "next";
import { getDefaultMetadata } from "@/utils/metadata";
import Header from "@/components/layouts/Header";
import Footer from "@/components/layouts/Footer";
import Image from "next/image";
const geistSans = Geist({
variable: "--font-geist-sans",
@ -57,7 +58,7 @@ export default function RootLayout({
>
<div className="ie-panel">
<a href="http://windows.microsoft.com/en-US/internet-explorer/">
<img
<Image
src="/images/ie8-panel/warning_bar_0000_us.jpg"
height="42"
width="820"

View File

@ -100,8 +100,6 @@ export const Blogs: CollectionConfig = {
useAsTitle: "title",
},
access: {
read: ({ req: { user } }) => {
return true;
},
read: () => true,
},
};

View File

@ -1,3 +1,5 @@
import Image from "next/image";
export default function Footer() {
return (
<>
@ -10,7 +12,7 @@ export default function Footer() {
</h3>
<a className="post-minimal" href="single-property.html">
<div className="post-minimal-image">
<img src="/images/featured-properties-17-480x287.jpg" alt="" width="161" height="136" />
<Image src="/images/featured-properties-17-480x287.jpg" alt="" width="161" height="136" />
</div>
<div className="post-minimal-body">
<div className="post-minimal-title">
@ -25,7 +27,7 @@ export default function Footer() {
</a>
<a className="post-minimal" href="single-property.html">
<div className="post-minimal-image">
<img src="/images/featured-properties-17-480x287.jpg" alt="" width="161" height="136" />
<Image src="/images/featured-properties-17-480x287.jpg" alt="" width="161" height="136" />
</div>
<div className="post-minimal-body">
<div className="post-minimal-title">

View File

@ -88,7 +88,7 @@ export default function Header() {
alt=""
width="121"
height="61"
srcSet="/images/logo2.png 2x"
srcSet="images/logo2.png 2x"
/>
</a>
{/* <h3 className="text-colorHeaderText! font-montserrat! font-semibold! hidden lg:inline">