Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="smallMedium"
|
||||
sizing="large"
|
||||
background="fluid"
|
||||
background="circleGradient"
|
||||
cardStyle="glass-depth"
|
||||
primaryButtonStyle="double-inset"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -43,7 +43,7 @@ export default function LandingPage() {
|
||||
<HeroBillboardGallery
|
||||
title="Regional. Transparent. Nachhaltig."
|
||||
description="Traditionshof Sixtus in Melle – Eier aus eigener Produktion und moderne Landwirtschaft mit Verantwortung. Besuchen Sie unseren Hofladen oder rufen Sie an."
|
||||
background={{ variant: "fluid" }}
|
||||
background={{ variant: "plain" }}
|
||||
tag="Willkommen"
|
||||
tagIcon={Leaf}
|
||||
tagAnimation="slide-up"
|
||||
@@ -53,9 +53,9 @@ export default function LandingPage() {
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
mediaItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/woman-white-laboratory-robe-stands-before-plants-greenhouse_8353-7180.jpg?_wi=1", imageAlt: "Traditionshof Sixtus" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/eggs-dry-grass-cardboard-tray_114579-16196.jpg?_wi=1", imageAlt: "Legehennenhaltung" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/group-people-talking-about-bio-fresh-farmers-market-products_482257-77547.jpg?_wi=1", imageAlt: "Unser Hofladen" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/woman-white-laboratory-robe-stands-before-plants-greenhouse_8353-7180.jpg", imageAlt: "Traditionshof Sixtus" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/eggs-dry-grass-cardboard-tray_114579-16196.jpg", imageAlt: "Legehennenhaltung" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/group-people-talking-about-bio-fresh-farmers-market-products_482257-77547.jpg", imageAlt: "Unser Hofladen" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/beautiful-butterfly-flower-nature_23-2148770472.jpg", imageAlt: "Nachhaltigkeit" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/man-holds-bicycle-handlebar-walks-forest-closeup_169016-37573.jpg", imageAlt: "Besuch willkommen" }
|
||||
]}
|
||||
@@ -117,20 +117,16 @@ export default function LandingPage() {
|
||||
useInvertedBackground={false}
|
||||
features={[
|
||||
{
|
||||
id: "1", title: "Legehennenhaltung – Transparent und Tiergerecht", tags: ["Eierproduktion", "Tierwohl"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/eggs-dry-grass-cardboard-tray_114579-16196.jpg?_wi=2", imageAlt: "Unsere Legehennen"
|
||||
id: "1", title: "Legehennenhaltung – Transparent und Tiergerecht", tags: ["Eierproduktion", "Tierwohl"], imageSrc: "http://img.b2bpic.net/free-photo/eggs-dry-grass-cardboard-tray_114579-16196.jpg", imageAlt: "Unsere Legehennen"
|
||||
},
|
||||
{
|
||||
id: "2", title: "Schweinemast – Regionale Verarbeitung", tags: ["QS-zertifiziert", "25 km Umkreis"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/closeup-two-wild-pigs-walking-grassy-field-with-blurred-background-dominican-republic_181624-2643.jpg", imageAlt: "Nachhaltige Schweinemast"
|
||||
id: "2", title: "Schweinemast – Regionale Verarbeitung", tags: ["QS-zertifiziert", "25 km Umkreis"], imageSrc: "http://img.b2bpic.net/free-photo/closeup-two-wild-pigs-walking-grassy-field-with-blurred-background-dominican-republic_181624-2643.jpg", imageAlt: "Nachhaltige Schweinemast"
|
||||
},
|
||||
{
|
||||
id: "3", title: "Ackerbau – Nachhaltige Bodennutzung", tags: ["Fruchtfolge", "Biodiversität"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/horizontal-shot-single-green-wheat-surrounded-by-field-daylight_181624-30282.jpg?_wi=1", imageAlt: "Unsere Ackerflächen"
|
||||
id: "3", title: "Ackerbau – Nachhaltige Bodennutzung", tags: ["Fruchtfolge", "Biodiversität"], imageSrc: "http://img.b2bpic.net/free-photo/horizontal-shot-single-green-wheat-surrounded-by-field-daylight_181624-30282.jpg", imageAlt: "Unsere Ackerflächen"
|
||||
},
|
||||
{
|
||||
id: "4", title: "Biogasanlage – Erneuerbare Energie", tags: ["Biogas", "Wärmenutzung"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/wind-farm-farmland-summer_1398-4095.jpg?_wi=1", imageAlt: "Energieproduktion vom Hof"
|
||||
id: "4", title: "Biogasanlage – Erneuerbare Energie", tags: ["Biogas", "Wärmenutzung"], imageSrc: "http://img.b2bpic.net/free-photo/wind-farm-farmland-summer_1398-4095.jpg", imageAlt: "Energieproduktion vom Hof"
|
||||
}
|
||||
]}
|
||||
animationType="slide-up"
|
||||
@@ -175,20 +171,16 @@ export default function LandingPage() {
|
||||
useInvertedBackground={true}
|
||||
features={[
|
||||
{
|
||||
id: "1", title: "Holztrocknung in Containern", tags: ["Professionell", "Zuverlässig"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/horizontal-shot-single-green-wheat-surrounded-by-field-daylight_181624-30282.jpg?_wi=2", imageAlt: "Holztrocknung"
|
||||
id: "1", title: "Holztrocknung in Containern", tags: ["Professionell", "Zuverlässig"], imageSrc: "http://img.b2bpic.net/free-photo/horizontal-shot-single-green-wheat-surrounded-by-field-daylight_181624-30282.jpg", imageAlt: "Holztrocknung"
|
||||
},
|
||||
{
|
||||
id: "2", title: "Holztransport", tags: ["Zuverlässig", "Regional"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/woman-white-laboratory-robe-stands-before-plants-greenhouse_8353-7180.jpg?_wi=2", imageAlt: "Transport Service"
|
||||
id: "2", title: "Holztransport", tags: ["Zuverlässig", "Regional"], imageSrc: "http://img.b2bpic.net/free-photo/woman-white-laboratory-robe-stands-before-plants-greenhouse_8353-7180.jpg", imageAlt: "Transport Service"
|
||||
},
|
||||
{
|
||||
id: "3", title: "Getreidetrocknung", tags: ["Modern", "Effizient"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/horizontal-shot-single-green-wheat-surrounded-by-field-daylight_181624-30282.jpg?_wi=3", imageAlt: "Getreidetrocknung"
|
||||
id: "3", title: "Getreidetrocknung", tags: ["Modern", "Effizient"], imageSrc: "http://img.b2bpic.net/free-photo/horizontal-shot-single-green-wheat-surrounded-by-field-daylight_181624-30282.jpg", imageAlt: "Getreidetrocknung"
|
||||
},
|
||||
{
|
||||
id: "4", title: "Trocknung von Pferdemist mit Biogaswärme", tags: ["Nachhaltig", "Innovativ"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/wind-farm-farmland-summer_1398-4095.jpg?_wi=2", imageAlt: "Biogaswärmenutzung"
|
||||
id: "4", title: "Trocknung von Pferdemist mit Biogaswärme", tags: ["Nachhaltig", "Innovativ"], imageSrc: "http://img.b2bpic.net/free-photo/wind-farm-farmland-summer_1398-4095.jpg", imageAlt: "Biogaswärmenutzung"
|
||||
}
|
||||
]}
|
||||
animationType="slide-up"
|
||||
@@ -206,7 +198,7 @@ export default function LandingPage() {
|
||||
]}
|
||||
textarea={{ name: "message", placeholder: "Ihre Nachricht", rows: 4, required: false }}
|
||||
useInvertedBackground={false}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/group-people-talking-about-bio-fresh-farmers-market-products_482257-77547.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/group-people-talking-about-bio-fresh-farmers-market-products_482257-77547.jpg"
|
||||
imageAlt="Unser Hofladen"
|
||||
mediaAnimation="slide-up"
|
||||
mediaPosition="right"
|
||||
|
||||
@@ -1,51 +1,30 @@
|
||||
"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;
|
||||
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 200 50"
|
||||
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-foreground ${textClassName}`}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user