Merge version_1 into main #2
@@ -7,7 +7,7 @@ import TextAbout from "@/components/sections/about/TextAbout";
|
||||
import FeatureCardTwentyFive from "@/components/sections/feature/FeatureCardTwentyFive";
|
||||
import ContactText from "@/components/sections/contact/ContactText";
|
||||
import FooterCard from "@/components/sections/footer/FooterCard";
|
||||
import { Sparkles, CheckCircle, QrCode, Shield, AlertCircle, Smartphone, Database, Settings, AlertTriangle, Lightbulb, Book, Instagram, Twitter, Linkedin } from "lucide-react";
|
||||
import { Sparkles, CheckCircle, QrCode, Shield, AlertCircle, Smartphone, Database, Settings, AlertTriangle, Lightbulb, Book, Instagram, Twitter, Linkedin, Zap } from "lucide-react";
|
||||
|
||||
export default function LandingPage() {
|
||||
return (
|
||||
@@ -85,21 +85,21 @@ export default function LandingPage() {
|
||||
title: "Scan a Barcode", description: "Point your phone at any food product and scan the barcode instantly. Baby Bites reads the product information in seconds.", icon: QrCode,
|
||||
mediaItems: [
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/colorful-geometric-interior-design-id-card_1421494-519.jpg", imageAlt: "Barcode scanning illustration" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-psd/ewallet-instagram-stories-design-template_23-2149069318.jpg?_wi=1", imageAlt: "App interface showing barcode scanner" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-psd/ewallet-instagram-stories-design-template_23-2149069318.jpg", imageAlt: "App interface showing barcode scanner" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Ingredient Safety Check", description: "Our pregnancy-safe ingredient database automatically checks every component against the latest medical guidelines and safety recommendations.", icon: Shield,
|
||||
mediaItems: [
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/science-beaker-check-mark_78370-8945.jpg?_wi=1", imageAlt: "Ingredient check illustration" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-different-fresh-fruits-inside-plates-white-background-tropical-ripe-color-diet-exotic-healthy-life-mellow_140725-98380.jpg?_wi=1", imageAlt: "Ingredient database interface" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/science-beaker-check-mark_78370-8945.jpg", imageAlt: "Ingredient check illustration" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-different-fresh-fruits-inside-plates-white-background-tropical-ripe-color-diet-exotic-healthy-life-mellow_140725-98380.jpg", imageAlt: "Ingredient database interface" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Get a Clear Answer", description: "Instantly see if a food is safe (green), questionable (yellow), or should be avoided (red). Plus, learn why with detailed explanations.", icon: AlertCircle,
|
||||
mediaItems: [
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/realistic-construction-sign-background_23-2148170002.jpg?_wi=1", imageAlt: "Instant answer indicator" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/gradient-food-businesses-app-template_52683-151207.jpg?_wi=1", imageAlt: "Results screen showing ingredient analysis" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/realistic-construction-sign-background_23-2148170002.jpg", imageAlt: "Instant answer indicator" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/gradient-food-businesses-app-template_52683-151207.jpg", imageAlt: "Results screen showing ingredient analysis" }
|
||||
]
|
||||
}
|
||||
]}
|
||||
@@ -120,15 +120,15 @@ export default function LandingPage() {
|
||||
{
|
||||
title: "Barcode Scanner", description: "Instant product scanning using your phone's camera. No typing required.", icon: Smartphone,
|
||||
mediaItems: [
|
||||
{ imageSrc: "http://img.b2bpic.net/free-psd/ewallet-instagram-stories-design-template_23-2149069318.jpg?_wi=2", imageAlt: "Barcode scanner feature" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-psd/ewallet-instagram-stories-design-template_23-2149069318.jpg", imageAlt: "Barcode scanner feature" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/meditation-app-interface-concept_52683-45835.jpg", imageAlt: "Scanner interface" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Pregnancy-Safe Database", description: "10,000+ foods checked against the latest pregnancy nutrition guidelines and medical research.", icon: Database,
|
||||
mediaItems: [
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-different-fresh-fruits-inside-plates-white-background-tropical-ripe-color-diet-exotic-healthy-life-mellow_140725-98380.jpg?_wi=2", imageAlt: "Database illustration" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/science-beaker-check-mark_78370-8945.jpg?_wi=2", imageAlt: "Ingredient verification" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-different-fresh-fruits-inside-plates-white-background-tropical-ripe-color-diet-exotic-healthy-life-mellow_140725-98380.jpg", imageAlt: "Database illustration" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/science-beaker-check-mark_78370-8945.jpg", imageAlt: "Ingredient verification" }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -142,21 +142,21 @@ export default function LandingPage() {
|
||||
title: "Allergen Filters", description: "Get alerted to common allergens and cross-contamination risks specific to pregnancy.", icon: AlertTriangle,
|
||||
mediaItems: [
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-flat-design-ecology-badges_23-2149209136.jpg", imageAlt: "Allergen filter icon" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-texture-driving-school-labels_23-2149253495.jpg?_wi=1", imageAlt: "Safety indicators" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-texture-driving-school-labels_23-2149253495.jpg", imageAlt: "Safety indicators" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Green/Yellow/Red System", description: "Simple color-coded safety ratings: Green (safe), Yellow (caution), Red (avoid). Clear and easy to understand.", icon: Lightbulb,
|
||||
mediaItems: [
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-texture-driving-school-labels_23-2149253495.jpg?_wi=2", imageAlt: "Safety system illustration" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/realistic-construction-sign-background_23-2148170002.jpg?_wi=2", imageAlt: "Instant answer indicator" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-texture-driving-school-labels_23-2149253495.jpg", imageAlt: "Safety system illustration" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/realistic-construction-sign-background_23-2148170002.jpg", imageAlt: "Instant answer indicator" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Educational Explanations", description: "Understand why foods are safe or unsafe with evidence-based explanations from pregnancy nutrition experts.", icon: Book,
|
||||
mediaItems: [
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/secretary-set_53876-91485.jpg", imageAlt: "Educational information" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/gradient-food-businesses-app-template_52683-151207.jpg?_wi=2", imageAlt: "Detailed explanation interface" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/gradient-food-businesses-app-template_52683-151207.jpg", imageAlt: "Detailed explanation interface" }
|
||||
]
|
||||
}
|
||||
]}
|
||||
|
||||
@@ -1,51 +1,33 @@
|
||||
"use client";
|
||||
import React from "react";
|
||||
|
||||
import { memo } from "react";
|
||||
import useSvgTextLogo from "./useSvgTextLogo";
|
||||
import { cls } from "@/lib/utils";
|
||||
|
||||
interface SvgTextLogoProps {
|
||||
logoText: string;
|
||||
adjustHeightFactor?: number;
|
||||
verticalAlign?: "top" | "center";
|
||||
export interface SvgTextLogoProps {
|
||||
text: string;
|
||||
className?: string;
|
||||
textClassName?: 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 = "", textClassName = ""}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
viewBox="0 0 300 60"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={`w-full h-auto ${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"
|
||||
}}
|
||||
x="50%"
|
||||
y="50%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="middle"
|
||||
className={`text-2xl font-bold fill-current ${textClassName}`}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user