Merge version_1 into main #2
@@ -45,7 +45,7 @@ export default function LandingPage() {
|
||||
<HeroSplitKpi
|
||||
title="Från 1% till 100% - Bygga Din Sömn Maskin"
|
||||
description="Upptäck vetenskapliga metoder för att transformera din sömnkvalitet och väcka din fulla energi. En genomtänkt guide från utmattning till vitalisering."
|
||||
background={{ variant: "circleGradient" }}
|
||||
background={{ variant: "glowing-orb" }}
|
||||
kpis={[
|
||||
{ value: "10+", label: "Sömn-Hacks" },
|
||||
{ value: "100%", label: "Energi Återställning" },
|
||||
@@ -181,19 +181,19 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
plans={[
|
||||
{
|
||||
id: "founder", title: "Founder VIP", price: "599 SEK", period: "engångspris", imageSrc: "http://img.b2bpic.net/free-vector/double-sided-reserved-sign-template_742173-27527.jpg?_wi=1", imageAlt: "VIP Founder Package", features: [
|
||||
id: "founder", title: "Founder VIP", price: "599 SEK", period: "engångspris", imageSrc: "http://img.b2bpic.net/free-vector/double-sided-reserved-sign-template_742173-27527.jpg", imageAlt: "VIP Founder Package", features: [
|
||||
"Signerad första utgåva", "1-på-1 sömnkonsultation (30 min)", "Exklusiv Digital Sömnverktygssats", "Namn i \"Founding Sleep Architects\" sektion", "Tidig tillgång till ljudbok"
|
||||
],
|
||||
button: { text: "Säker Din Plats Nu", href: "#contact" }
|
||||
},
|
||||
{
|
||||
id: "standard", title: "Standard Edition", price: "249 SEK", period: "engångspris", imageSrc: "http://img.b2bpic.net/free-vector/double-sided-reserved-sign-template_742173-27527.jpg?_wi=2", imageAlt: "Standard Edition", features: [
|
||||
id: "standard", title: "Standard Edition", price: "249 SEK", period: "engångspris", imageSrc: "http://img.b2bpic.net/free-vector/double-sided-reserved-sign-template_742173-27527.jpg", imageAlt: "Standard Edition", features: [
|
||||
"Papperskopia + Digital", "Sömntrackingmall", "Samhällsforum åtkomst", "E-post stöd"
|
||||
],
|
||||
button: { text: "Köp Nu", href: "#contact" }
|
||||
},
|
||||
{
|
||||
id: "digital", title: "Digital Edition", price: "99 SEK", period: "engångspris", imageSrc: "http://img.b2bpic.net/free-vector/double-sided-reserved-sign-template_742173-27527.jpg?_wi=3", imageAlt: "Digital Edition", features: [
|
||||
id: "digital", title: "Digital Edition", price: "99 SEK", period: "engångspris", imageSrc: "http://img.b2bpic.net/free-vector/double-sided-reserved-sign-template_742173-27527.jpg", imageAlt: "Digital Edition", features: [
|
||||
"Omedelbar digital åtkomst", "PDF + ePub format", "Uppdateringar för liv", "Portabel på alla enheter"
|
||||
],
|
||||
button: { text: "Börja Läsa", href: "#contact" }
|
||||
@@ -231,6 +231,7 @@ export default function LandingPage() {
|
||||
sideDescription="Allt du behöver veta om boken och pre-order-processen"
|
||||
textPosition="left"
|
||||
useInvertedBackground={false}
|
||||
faqsAnimation="smooth"
|
||||
animationType="smooth"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -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;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fontWeight?: string | number;
|
||||
fill?: string;
|
||||
className?: 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,
|
||||
fontSize = 32,
|
||||
fontFamily = 'system-ui, -apple-system, sans-serif',
|
||||
fontWeight = 700,
|
||||
fill = 'currentColor',
|
||||
className = '',
|
||||
}) => {
|
||||
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 200 60"
|
||||
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"
|
||||
}}
|
||||
y="45"
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
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