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:
commit
7d3ff7a0c2
@ -1,6 +1,7 @@
|
|||||||
import HeroImage from "@/components/HeroImage";
|
import HeroImage from "@/components/HeroImage";
|
||||||
import { getDefaultMetadata } from "@/utils/metadata";
|
import { getDefaultMetadata } from "@/utils/metadata";
|
||||||
import { Metadata } from "next";
|
import { Metadata } from "next";
|
||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
const metaDesc =
|
const metaDesc =
|
||||||
"Explore the latest insights, news, and resources on the Dynamic Realty blog. Read our articles today.";
|
"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">
|
<div className="col-sm-6">
|
||||||
<article className="post-simple">
|
<article className="post-simple">
|
||||||
<div className="post-simple-img">
|
<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>
|
||||||
<div className="post-simple-body">
|
<div className="post-simple-body">
|
||||||
<div className="post-simple-title">
|
<div className="post-simple-title">
|
||||||
@ -88,7 +89,7 @@ export default function BlogDetail() {
|
|||||||
<div className="col-sm-6">
|
<div className="col-sm-6">
|
||||||
<article className="post-simple">
|
<article className="post-simple">
|
||||||
<div className="post-simple-img">
|
<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>
|
||||||
<div className="post-simple-body">
|
<div className="post-simple-body">
|
||||||
<div className="post-simple-title">
|
<div className="post-simple-title">
|
||||||
@ -140,7 +141,7 @@ export default function BlogDetail() {
|
|||||||
</div>
|
</div>
|
||||||
<a className="post-minimal-1" href="#">
|
<a className="post-minimal-1" href="#">
|
||||||
<div className="post-minimal-1-left">
|
<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>
|
||||||
<div className="post-minimal-1-body">
|
<div className="post-minimal-1-body">
|
||||||
<div className="post-minimal-1-title">
|
<div className="post-minimal-1-title">
|
||||||
@ -153,7 +154,7 @@ export default function BlogDetail() {
|
|||||||
</a>
|
</a>
|
||||||
<a className="post-minimal-1" href="#">
|
<a className="post-minimal-1" href="#">
|
||||||
<div className="post-minimal-1-left">
|
<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>
|
||||||
<div className="post-minimal-1-body">
|
<div className="post-minimal-1-body">
|
||||||
<div className="post-minimal-1-title">
|
<div className="post-minimal-1-title">
|
||||||
@ -166,7 +167,7 @@ export default function BlogDetail() {
|
|||||||
</a>
|
</a>
|
||||||
<a className="post-minimal-1" href="#">
|
<a className="post-minimal-1" href="#">
|
||||||
<div className="post-minimal-1-left">
|
<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>
|
||||||
<div className="post-minimal-1-body">
|
<div className="post-minimal-1-body">
|
||||||
<div className="post-minimal-1-title">
|
<div className="post-minimal-1-title">
|
||||||
|
@ -5,6 +5,7 @@ import { Metadata } from "next";
|
|||||||
import { getDefaultMetadata } from "@/utils/metadata";
|
import { getDefaultMetadata } from "@/utils/metadata";
|
||||||
import Header from "@/components/layouts/Header";
|
import Header from "@/components/layouts/Header";
|
||||||
import Footer from "@/components/layouts/Footer";
|
import Footer from "@/components/layouts/Footer";
|
||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
const geistSans = Geist({
|
const geistSans = Geist({
|
||||||
variable: "--font-geist-sans",
|
variable: "--font-geist-sans",
|
||||||
@ -57,7 +58,7 @@ export default function RootLayout({
|
|||||||
>
|
>
|
||||||
<div className="ie-panel">
|
<div className="ie-panel">
|
||||||
<a href="http://windows.microsoft.com/en-US/internet-explorer/">
|
<a href="http://windows.microsoft.com/en-US/internet-explorer/">
|
||||||
<img
|
<Image
|
||||||
src="/images/ie8-panel/warning_bar_0000_us.jpg"
|
src="/images/ie8-panel/warning_bar_0000_us.jpg"
|
||||||
height="42"
|
height="42"
|
||||||
width="820"
|
width="820"
|
||||||
|
@ -100,8 +100,6 @@ export const Blogs: CollectionConfig = {
|
|||||||
useAsTitle: "title",
|
useAsTitle: "title",
|
||||||
},
|
},
|
||||||
access: {
|
access: {
|
||||||
read: ({ req: { user } }) => {
|
read: () => true,
|
||||||
return true;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
export default function Footer() {
|
export default function Footer() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@ -10,7 +12,7 @@ export default function Footer() {
|
|||||||
</h3>
|
</h3>
|
||||||
<a className="post-minimal" href="single-property.html">
|
<a className="post-minimal" href="single-property.html">
|
||||||
<div className="post-minimal-image">
|
<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>
|
||||||
<div className="post-minimal-body">
|
<div className="post-minimal-body">
|
||||||
<div className="post-minimal-title">
|
<div className="post-minimal-title">
|
||||||
@ -25,7 +27,7 @@ export default function Footer() {
|
|||||||
</a>
|
</a>
|
||||||
<a className="post-minimal" href="single-property.html">
|
<a className="post-minimal" href="single-property.html">
|
||||||
<div className="post-minimal-image">
|
<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>
|
||||||
<div className="post-minimal-body">
|
<div className="post-minimal-body">
|
||||||
<div className="post-minimal-title">
|
<div className="post-minimal-title">
|
||||||
|
@ -88,7 +88,7 @@ export default function Header() {
|
|||||||
alt=""
|
alt=""
|
||||||
width="121"
|
width="121"
|
||||||
height="61"
|
height="61"
|
||||||
srcSet="/images/logo2.png 2x"
|
srcSet="images/logo2.png 2x"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
{/* <h3 className="text-colorHeaderText! font-montserrat! font-semibold! hidden lg:inline">
|
{/* <h3 className="text-colorHeaderText! font-montserrat! font-semibold! hidden lg:inline">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user