diff --git a/src/app/page.tsx b/src/app/page.tsx index dc6d1ec..5035c50 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -55,16 +55,16 @@ export default function LandingPage() { imageSrc: "http://img.b2bpic.net/free-photo/view-delicious-food-sold-streets-city_23-2151516932.jpg", imageAlt: "Restoran Saben Ayu dengan pemandangan sawah" }, { - imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-couple-with-pina-colada_23-2150184033.jpg?_wi=1", imageAlt: "Pemandangan sawah dari restoran" + imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-couple-with-pina-colada_23-2150184033.jpg", imageAlt: "Pemandangan sawah dari restoran" }, { - imageSrc: "http://img.b2bpic.net/free-photo/lunch-setup-restaurant-near-window-floor-stand-lamp_140725-1572.jpg?_wi=1", imageAlt: "Interior restoran Saben Ayu" + imageSrc: "http://img.b2bpic.net/free-photo/lunch-setup-restaurant-near-window-floor-stand-lamp_140725-1572.jpg", imageAlt: "Interior restoran Saben Ayu" }, { - imageSrc: "http://img.b2bpic.net/free-photo/table-set-dinning-table_1339-6425.jpg?_wi=1", imageAlt: "Area tempat duduk restoran" + imageSrc: "http://img.b2bpic.net/free-photo/table-set-dinning-table_1339-6425.jpg", imageAlt: "Area tempat duduk restoran" }, { - imageSrc: "http://img.b2bpic.net/free-photo/fried-chicken-thinly-sliced-onions-sauce-red-pepper_140725-2959.jpg?_wi=1", imageAlt: "Makanan tradisional yang lezat" + imageSrc: "http://img.b2bpic.net/free-photo/fried-chicken-thinly-sliced-onions-sauce-red-pepper_140725-2959.jpg", imageAlt: "Makanan tradisional yang lezat" } ]} buttons={[ @@ -132,16 +132,16 @@ export default function LandingPage() { useInvertedBackground={false} features={[ { - id: "01", title: "Pemandangan Sawah", description: "Nikmati pemandangan sawah yang hijau dan menenangkan dari area makan kami.", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-couple-with-pina-colada_23-2150184033.jpg?_wi=2", imageAlt: "Pemandangan Sawah" + id: "01", title: "Pemandangan Sawah", description: "Nikmati pemandangan sawah yang hijau dan menenangkan dari area makan kami.", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-couple-with-pina-colada_23-2150184033.jpg", imageAlt: "Pemandangan Sawah" }, { - id: "02", title: "Interior Restoran", description: "Desain interior yang nyaman dengan sentuhan tradisional dan modern.", imageSrc: "http://img.b2bpic.net/free-photo/lunch-setup-restaurant-near-window-floor-stand-lamp_140725-1572.jpg?_wi=2", imageAlt: "Interior Restoran" + id: "02", title: "Interior Restoran", description: "Desain interior yang nyaman dengan sentuhan tradisional dan modern.", imageSrc: "http://img.b2bpic.net/free-photo/lunch-setup-restaurant-near-window-floor-stand-lamp_140725-1572.jpg", imageAlt: "Interior Restoran" }, { - id: "03", title: "Area Tempat Duduk", description: "Ruang makan yang luas dan nyaman untuk keluarga besar atau rombongan.", imageSrc: "http://img.b2bpic.net/free-photo/table-set-dinning-table_1339-6425.jpg?_wi=2", imageAlt: "Area Tempat Duduk" + id: "03", title: "Area Tempat Duduk", description: "Ruang makan yang luas dan nyaman untuk keluarga besar atau rombongan.", imageSrc: "http://img.b2bpic.net/free-photo/table-set-dinning-table_1339-6425.jpg", imageAlt: "Area Tempat Duduk" }, { - id: "04", title: "Hidangan Spesial", description: "Tampilan menggugah selera dari setiap hidangan yang kami sajikan.", imageSrc: "http://img.b2bpic.net/free-photo/fried-chicken-thinly-sliced-onions-sauce-red-pepper_140725-2959.jpg?_wi=2", imageAlt: "Hidangan Spesial" + id: "04", title: "Hidangan Spesial", description: "Tampilan menggugah selera dari setiap hidangan yang kami sajikan.", imageSrc: "http://img.b2bpic.net/free-photo/fried-chicken-thinly-sliced-onions-sauce-red-pepper_140725-2959.jpg", imageAlt: "Hidangan Spesial" } ]} /> diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..bb76aa4 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,41 @@ -"use client"; - -import { memo } from "react"; -import useSvgTextLogo from "./useSvgTextLogo"; -import { cls } from "@/lib/utils"; +import React from 'react'; interface SvgTextLogoProps { - logoText: string; - adjustHeightFactor?: number; - verticalAlign?: "top" | "center"; + text: string; className?: string; + fontSize?: number; + fontWeight?: number | string; + letterSpacing?: number; + fill?: string; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - +const SvgTextLogo: React.FC = ({ + text, + className = '', + fontSize = 48, + fontWeight = 700, + letterSpacing = 0, + fill = 'currentColor', +}) => { return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;