diff --git a/public/images/blog-04-736x540.jpg b/public/images/blog-04-736x540.jpg index 62fd77c..5437676 100644 Binary files a/public/images/blog-04-736x540.jpg and b/public/images/blog-04-736x540.jpg differ diff --git a/public/images/breadcrumbs-bg-05-1922x441.jpg b/public/images/breadcrumbs-bg-05-1922x441.jpg index eae1c16..a13bc88 100644 Binary files a/public/images/breadcrumbs-bg-05-1922x441.jpg and b/public/images/breadcrumbs-bg-05-1922x441.jpg differ diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx index 752cb7f..8aa32e4 100644 --- a/src/app/blog/page.tsx +++ b/src/app/blog/page.tsx @@ -1,3 +1,71 @@ +import CardBlog from "@/components/CardBlog"; +import HeroImage from "@/components/HeroImage"; +import { CardBlogData } from "@/schema/blog"; + export default function Blog() { - return <>; + const data: CardBlogData[] = [ + { + slug: "introducing-a-ray-kappe", + title: "Introducing A Ray Kappe-Designed Masterpiece", + description: + "The famed Cipriani family has unveiled Mr. C Residences, its first-ever hotel branded residences, situated adjacent to the flagship", + img: "/images/blog-04-736x540.jpg", + posted_at: "March 15, 2021", + }, + { + slug: "24234", + title: "Introducing A Ray Kappe-Designed Masterpiece", + description: + "The famed Cipriani family has unveiled Mr. C Residences, its first-ever hotel branded residences, situated adjacent to the flagship", + img: "/images/blog-04-736x540.jpg", + posted_at: "March 15, 2021", + }, + { + slug: "wkejrh2k3jr", + title: "Introducing A Ray Kappe-Designed Masterpiece", + description: + "The famed Cipriani family has unveiled Mr. C Residences, its first-ever hotel branded residences, situated adjacent to the flagship", + img: "/images/blog-04-736x540.jpg", + posted_at: "March 15, 2021", + }, + { + slug: "1l2kj4lw34", + title: "Introducing A Ray Kappe-Designed Masterpiece", + description: + "The famed Cipriani family has unveiled Mr. C Residences, its first-ever hotel branded residences, situated adjacent to the flagship", + img: "/images/blog-04-736x540.jpg", + posted_at: "March 15, 2021", + }, + { + slug: "asflj2lj53545", + title: "Introducing A Ray Kappe-Designed Masterpiece", + description: + "The famed Cipriani family has unveiled Mr. C Residences, its first-ever hotel branded residences, situated adjacent to the flagship", + img: "/images/blog-04-736x540.jpg", + posted_at: "March 15, 2021", + }, + { + slug: "adflkj2oj545", + title: "Introducing A Ray Kappe-Designed Masterpiece", + description: + "The famed Cipriani family has unveiled Mr. C Residences, its first-ever hotel branded residences, situated adjacent to the flagship", + img: "/images/blog-04-736x540.jpg", + posted_at: "", + }, + ]; + + return ( + <> + +
+
+
+ {data.map((blog) => ( + + ))} +
+
+
+ + ); } diff --git a/src/app/globals.css b/src/app/globals.css index 0fd081d..2706534 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -20,6 +20,7 @@ --color-colorHeader: var(--color-colorExt1); --color-colorHeaderText: var(--color-colorExt2); --color-colorHeaderTextHover: var(--color-colorext4); + --color-colorHeroOverlay: var(--color-colorExt5); --color-colorFooter: var(--color-colorExt1); --color-colorFooter2: var(--color-colorExt5); --color-colorFooterText: var(--color-colorExt2); diff --git a/src/components/CardBlog.tsx b/src/components/CardBlog.tsx new file mode 100644 index 0000000..9c0d163 --- /dev/null +++ b/src/components/CardBlog.tsx @@ -0,0 +1,33 @@ +import { CardBlogData } from "@/schema/blog"; +import Image from "next/image"; + +type CardBlogProps = { + data: CardBlogData; +}; + +export default function CardBlog({ data }: CardBlogProps) { + return ( +
+ +
+ ); +} diff --git a/src/components/HeroImage.tsx b/src/components/HeroImage.tsx new file mode 100644 index 0000000..c0627e8 --- /dev/null +++ b/src/components/HeroImage.tsx @@ -0,0 +1,26 @@ +import Image from "next/image"; + +type HeroImageProps = { + imgSrc?: string; +}; + +export default function HeroImage({ imgSrc = "/images/breadcrumbs-bg-05-1922x441.jpg" }: HeroImageProps) { + return ( +
+ Blog +
+
+

Blog

+
+
+ ); +} diff --git a/src/components/HeroSlider.tsx b/src/components/HeroSlider.tsx index a87b369..50575e2 100644 --- a/src/components/HeroSlider.tsx +++ b/src/components/HeroSlider.tsx @@ -52,7 +52,7 @@ export default function HeroSlider({ onClickBook }: HeroSliderProps) { objectFit: "cover", }} /> -
+
diff --git a/src/components/layouts/Header.tsx b/src/components/layouts/Header.tsx index 7c2314f..7234460 100644 --- a/src/components/layouts/Header.tsx +++ b/src/components/layouts/Header.tsx @@ -123,7 +123,7 @@ export default function Header() {
  • - + BLOGS
  • diff --git a/src/schema/blog.ts b/src/schema/blog.ts new file mode 100644 index 0000000..30f066d --- /dev/null +++ b/src/schema/blog.ts @@ -0,0 +1,7 @@ +export type CardBlogData = { + slug: string; + title: string; + description: string; + img: string; + posted_at: string; +};