Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="compact"
|
||||
sizing="mediumLarge"
|
||||
background="grid"
|
||||
background="circleGradient"
|
||||
cardStyle="soft-shadow"
|
||||
primaryButtonStyle="radial-glow"
|
||||
secondaryButtonStyle="solid"
|
||||
@@ -43,17 +43,17 @@ export default function LandingPage() {
|
||||
tag="100% Madu Murni"
|
||||
title="Madu Murni Asli – Grosir & Eceran di Salatiga"
|
||||
description="Kami menyediakan madu alami berkualitas premium untuk konsumsi, kebutuhan herbal, dan mengembangkan usaha Anda. Dipercaya sebagai pemasok madu terpercaya di Salatiga."
|
||||
background={{ variant: "grid" }}
|
||||
background={{ variant: "plain" }}
|
||||
leftCarouselItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/yellow-background-wallpaper-dripping-honey-border_53876-142986.jpg?_wi=1", imageAlt: "Madu murni mengalir alami" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/yellow-honeycomb-texture_95678-345.jpg?_wi=1", imageAlt: "Sarang madu alami emas" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/ecofriendly-beauty-product_23-2150669112.jpg?_wi=1", imageAlt: "Botol madu murni premium" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/honey-bee-collecting-pollen-from-blooming-peach-tree_127675-2853.jpg?_wi=1", imageAlt: "Lebah bekerja menghasilkan madu" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/yellow-background-wallpaper-dripping-honey-border_53876-142986.jpg", imageAlt: "Madu murni mengalir alami" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/yellow-honeycomb-texture_95678-345.jpg", imageAlt: "Sarang madu alami emas" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/ecofriendly-beauty-product_23-2150669112.jpg", imageAlt: "Botol madu murni premium" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/honey-bee-collecting-pollen-from-blooming-peach-tree_127675-2853.jpg", imageAlt: "Lebah bekerja menghasilkan madu" }
|
||||
]}
|
||||
rightCarouselItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/high-angle-view-honey-bee-pollen-seeds-candies-sack-cloth_23-2147938075.jpg?_wi=1", imageAlt: "Madu herbal berkhasiat" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/hot-tea_1339-213.jpg?_wi=1", imageAlt: "Kemasan madu retail siap jual" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/honey-jar-with-yellow-cover_23-2148173082.jpg?_wi=1", imageAlt: "Madu grosir volume besar" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/high-angle-view-honey-bee-pollen-seeds-candies-sack-cloth_23-2147938075.jpg", imageAlt: "Madu herbal berkhasiat" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/hot-tea_1339-213.jpg", imageAlt: "Kemasan madu retail siap jual" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/honey-jar-with-yellow-cover_23-2148173082.jpg", imageAlt: "Madu grosir volume besar" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/honey-wooden-spoon-chopping-board_23-2147918963.jpg", imageAlt: "Madu dalam toples kaca premium" }
|
||||
]}
|
||||
buttons={[
|
||||
@@ -85,10 +85,10 @@ export default function LandingPage() {
|
||||
description="Pilihan lengkap madu murni untuk kebutuhan retail, herbal, dan bisnis. Harga kompetitif dengan kualitas terjamin."
|
||||
tag="Produk Unggulan"
|
||||
products={[
|
||||
{ id: "1", name: "Madu Murni Premium", price: "Hubungi untuk harga", imageSrc: "http://img.b2bpic.net/free-photo/ecofriendly-beauty-product_23-2150669112.jpg?_wi=2", imageAlt: "Madu murni asli premium" },
|
||||
{ id: "2", name: "Madu Herbal Berkhasiat", price: "Hubungi untuk harga", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-view-honey-bee-pollen-seeds-candies-sack-cloth_23-2147938075.jpg?_wi=2", imageAlt: "Madu herbal dengan manfaat kesehatan" },
|
||||
{ id: "3", name: "Madu Kemasan Retail", price: "Hubungi untuk harga", imageSrc: "http://img.b2bpic.net/free-photo/hot-tea_1339-213.jpg?_wi=2", imageAlt: "Kemasan madu siap jual eceran" },
|
||||
{ id: "4", name: "Madu Grosir Bulk", price: "Hubungi untuk harga", imageSrc: "http://img.b2bpic.net/free-photo/honey-jar-with-yellow-cover_23-2148173082.jpg?_wi=2", imageAlt: "Madu dalam jumlah grosir besar" }
|
||||
{ id: "1", name: "Madu Murni Premium", price: "Hubungi untuk harga", imageSrc: "http://img.b2bpic.net/free-photo/ecofriendly-beauty-product_23-2150669112.jpg", imageAlt: "Madu murni asli premium" },
|
||||
{ id: "2", name: "Madu Herbal Berkhasiat", price: "Hubungi untuk harga", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-view-honey-bee-pollen-seeds-candies-sack-cloth_23-2147938075.jpg", imageAlt: "Madu herbal dengan manfaat kesehatan" },
|
||||
{ id: "3", name: "Madu Kemasan Retail", price: "Hubungi untuk harga", imageSrc: "http://img.b2bpic.net/free-photo/hot-tea_1339-213.jpg", imageAlt: "Kemasan madu siap jual eceran" },
|
||||
{ id: "4", name: "Madu Grosir Bulk", price: "Hubungi untuk harga", imageSrc: "http://img.b2bpic.net/free-photo/honey-jar-with-yellow-cover_23-2148173082.jpg", imageAlt: "Madu dalam jumlah grosir besar" }
|
||||
]}
|
||||
gridVariant="two-columns-alternating-heights"
|
||||
animationType="slide-up"
|
||||
@@ -106,10 +106,10 @@ export default function LandingPage() {
|
||||
description="Kami berkomitmen memberikan madu terbaik dengan layanan terpercaya untuk setiap pelanggan."
|
||||
tag="Keunggulan Kami"
|
||||
features={[
|
||||
{ title: "100% Madu Asli", description: "Madu murni tanpa campuran, langsung dari petani madu terpercaya. Jaminan keaslian dan kualitas premium.", imageSrc: "http://img.b2bpic.net/free-photo/yellow-honeycomb-texture_95678-345.jpg?_wi=2", imageAlt: "Madu 100% asli alami" },
|
||||
{ title: "Harga Grosir Terjangkau", description: "Harga kompetitif untuk pembelian grosir maupun eceran. Hemat lebih banyak untuk pembelian dalam jumlah besar.", imageSrc: "http://img.b2bpic.net/free-photo/honey-jar-with-yellow-cover_23-2148173082.jpg?_wi=3", imageAlt: "Harga grosir madu murah" },
|
||||
{ title: "Mudah Pesan via WhatsApp", description: "Hubungi langsung via WhatsApp untuk konsultasi, pemesanan, dan penawaran khusus. Respon cepat dan layanan ramah.", imageSrc: "http://img.b2bpic.net/free-photo/yellow-background-wallpaper-dripping-honey-border_53876-142986.jpg?_wi=2", imageAlt: "Pesan mudah via WhatsApp" },
|
||||
{ title: "Lokal Terpercaya Salatiga", description: "Supplier madu asli di Salatiga yang sudah dikenal pelanggan lokal. Lokasi jelas, mudah dihubungi, dan responsif.", imageSrc: "http://img.b2bpic.net/free-photo/honey-bee-collecting-pollen-from-blooming-peach-tree_127675-2853.jpg?_wi=2", imageAlt: "Madu lokal Salatiga terpercaya" }
|
||||
{ title: "100% Madu Asli", description: "Madu murni tanpa campuran, langsung dari petani madu terpercaya. Jaminan keaslian dan kualitas premium.", imageSrc: "http://img.b2bpic.net/free-photo/yellow-honeycomb-texture_95678-345.jpg", imageAlt: "Madu 100% asli alami" },
|
||||
{ title: "Harga Grosir Terjangkau", description: "Harga kompetitif untuk pembelian grosir maupun eceran. Hemat lebih banyak untuk pembelian dalam jumlah besar.", imageSrc: "http://img.b2bpic.net/free-photo/honey-jar-with-yellow-cover_23-2148173082.jpg", imageAlt: "Harga grosir madu murah" },
|
||||
{ title: "Mudah Pesan via WhatsApp", description: "Hubungi langsung via WhatsApp untuk konsultasi, pemesanan, dan penawaran khusus. Respon cepat dan layanan ramah.", imageSrc: "http://img.b2bpic.net/free-photo/yellow-background-wallpaper-dripping-honey-border_53876-142986.jpg", imageAlt: "Pesan mudah via WhatsApp" },
|
||||
{ title: "Lokal Terpercaya Salatiga", description: "Supplier madu asli di Salatiga yang sudah dikenal pelanggan lokal. Lokasi jelas, mudah dihubungi, dan responsif.", imageSrc: "http://img.b2bpic.net/free-photo/honey-bee-collecting-pollen-from-blooming-peach-tree_127675-2853.jpg", imageAlt: "Madu lokal Salatiga terpercaya" }
|
||||
]}
|
||||
gridVariant="two-columns-alternating-heights"
|
||||
animationType="slide-up"
|
||||
@@ -159,7 +159,7 @@ export default function LandingPage() {
|
||||
tag="Kirim Pertanyaan"
|
||||
title="Ada Pertanyaan? Hubungi Kami Sekarang"
|
||||
description="Kami siap menjawab semua pertanyaan tentang madu murni, harga grosir, dan ketersediaan stok. Respon cepat dijamin!"
|
||||
background={{ variant: "grid" }}
|
||||
background={{ variant: "plain" }}
|
||||
useInvertedBackground={false}
|
||||
inputPlaceholder="nama@email.com atau nomor WhatsApp"
|
||||
buttonText="Kirim"
|
||||
|
||||
@@ -1,51 +1,39 @@
|
||||
"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?: string;
|
||||
fill?: string;
|
||||
}
|
||||
|
||||
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
|
||||
logoText,
|
||||
adjustHeightFactor,
|
||||
verticalAlign = "top",
|
||||
className = "",
|
||||
}) {
|
||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
||||
|
||||
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
||||
text,
|
||||
className = '',
|
||||
fontSize = 24,
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
viewBox={`0 0 ${text.length * fontSize * 0.6} ${fontSize * 1.2}`}
|
||||
className={className}
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
aria-label={text}
|
||||
>
|
||||
<text
|
||||
ref={textRef}
|
||||
x="0"
|
||||
y={verticalAlign === "center" ? "50%" : "0"}
|
||||
className="font-bold fill-current"
|
||||
style={{
|
||||
fontSize: "20px",
|
||||
letterSpacing: "-0.02em",
|
||||
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
|
||||
}}
|
||||
y="0"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user