Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 23:20:26 +00:00
2 changed files with 37 additions and 44 deletions

View File

@@ -50,7 +50,7 @@ export default function LandingPage() {
tag="Meal Planning + Pantry + Nutrition in One App"
tagIcon={Sparkles}
tagAnimation="slide-up"
background={{ variant: "circleGradient" }}
background={{ variant: "glowing-orb" }}
kpis={[
{ value: "100K+", label: "Meals Planned" },
{ value: "45%", label: "Less Takeout" },
@@ -125,19 +125,19 @@ export default function LandingPage() {
},
{
id: "3", brand: "Feature", name: "Weekly Meal Planner", price: "Plan Ahead", rating: 5,
reviewCount: "Flexible", imageSrc: "http://img.b2bpic.net/free-vector/pastel-home-screen_23-2148744995.jpg?_wi=1", imageAlt: "Weekly Meal Planner interface"
reviewCount: "Flexible", imageSrc: "http://img.b2bpic.net/free-vector/pastel-home-screen_23-2148744995.jpg", imageAlt: "Weekly Meal Planner interface"
},
{
id: "4", brand: "Feature", name: "Protein & Nutrition Tracking", price: "Health Goals", rating: 5,
reviewCount: "Detailed", imageSrc: "http://img.b2bpic.net/free-vector/orange-charity-smartphone-app-template_23-2148627918.jpg?_wi=1", imageAlt: "Nutrition Tracking interface"
reviewCount: "Detailed", imageSrc: "http://img.b2bpic.net/free-vector/orange-charity-smartphone-app-template_23-2148627918.jpg", imageAlt: "Nutrition Tracking interface"
},
{
id: "5", brand: "Feature", name: "Weight Goal Support", price: "Progress Tracking", rating: 5,
reviewCount: "Motivating", imageSrc: "http://img.b2bpic.net/free-vector/orange-charity-smartphone-app-template_23-2148627918.jpg?_wi=2", imageAlt: "Weight Goals interface"
reviewCount: "Motivating", imageSrc: "http://img.b2bpic.net/free-vector/orange-charity-smartphone-app-template_23-2148627918.jpg", imageAlt: "Weight Goals interface"
},
{
id: "6", brand: "Feature", name: "Smart Grocery List Builder", price: "Shop Smarter", rating: 5,
reviewCount: "Organized", imageSrc: "http://img.b2bpic.net/free-vector/pastel-home-screen_23-2148744995.jpg?_wi=2", imageAlt: "Grocery List interface"
reviewCount: "Organized", imageSrc: "http://img.b2bpic.net/free-vector/pastel-home-screen_23-2148744995.jpg", imageAlt: "Grocery List interface"
}
]}
/>
@@ -166,15 +166,13 @@ export default function LandingPage() {
animationType="slide-up"
plans={[
{
id: "free", tag: "Forkast Free", price: "Free", period: "Forever", description: "Great for getting started with meal planning", button: { text: "Start Free", href: "#contact" },
featuresTitle: "What's Included:", features: [
id: "free", tag: "Forkast Free", price: "Free", period: "Forever", description: "Great for getting started with meal planning", button: { text: "Start Free", href: "#contact" }, featuresTitle: "What's Included:", features: [
"Basic dinner recommendations", "Simple meal planning", "Calorie tracking", "Weekly grocery list"
]
},
{
id: "pro", tag: "Forkast Pro", tagIcon: Crown,
price: "$4.99", period: "/month", description: "For families serious about health and meal success", button: { text: "Start with Forkast Pro", href: "#contact" },
featuresTitle: "Everything in Free, plus:", features: [
price: "$4.99", period: "/month", description: "For families serious about health and meal success", button: { text: "Start with Forkast Pro", href: "#contact" }, featuresTitle: "Everything in Free, plus:", features: [
"Smarter personalized dinner recommendations", "Advanced nutrition insights & macros", "Personalized weekly meal plans", "Protein-forward meal suggestions", "Weight goal tracking & support", "Priority customer support", "Ad-free experience"
]
}

View File

@@ -1,51 +1,46 @@
"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;
fill?: string;
letterSpacing?: number;
}
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 = 48,
fontWeight = 700,
fill = 'currentColor',
letterSpacing = 0,
}) => {
const svgWidth = text.length * (fontSize * 0.6) + 40;
const svgHeight = fontSize + 20;
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox={`0 0 ${svgWidth} ${svgHeight}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
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="20"
y={fontSize}
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
letterSpacing={letterSpacing}
dominantBaseline="auto"
fontFamily="inherit"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;