diff --git a/src/app/page.tsx b/src/app/page.tsx
index f1ea1cc..da2fd60 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="compact"
sizing="largeSmallSizeLargeTitles"
- background="floatingGradient"
+ background="circleGradient"
cardStyle="solid"
primaryButtonStyle="flat"
secondaryButtonStyle="layered"
@@ -45,7 +45,7 @@ export default function LandingPage() {
@@ -159,7 +159,7 @@ export default function LandingPage() {
tag="Fréttabréf"
title="Vertu með okkar"
description="Skráðu þig í okkar fréttabréf til að fá eksklusíva tilboð, nýjar útgáfur og sögur um bak við tjöldin NODA."
- background={{ variant: "floatingGradient" }}
+ background={{ variant: "plain" }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/top-view-different-items-desk_23-2148750500.jpg"
imageAlt="NODA samfélag"
diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx
index f214190..b6f92e5 100644
--- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx
+++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx
@@ -1,51 +1,66 @@
-"use client";
-
-import { memo } from "react";
-import useSvgTextLogo from "./useSvgTextLogo";
-import { cls } from "@/lib/utils";
+import React, { useEffect, useRef } from 'react';
interface SvgTextLogoProps {
- logoText: string;
- adjustHeightFactor?: number;
- verticalAlign?: "top" | "center";
+ text: string;
className?: string;
+ animationDuration?: number;
+ animationDelay?: number;
}
-const SvgTextLogo = memo(function SvgTextLogo({
- logoText,
- adjustHeightFactor,
- verticalAlign = "top",
- className = "",
-}) {
- const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
+const SvgTextLogo: React.FC = ({
+ text,
+ className = '',
+ animationDuration = 2,
+ animationDelay = 0,
+}) => {
+ const svgRef = useRef(null);
+
+ useEffect(() => {
+ if (!svgRef.current) return;
+
+ const textElements = svgRef.current.querySelectorAll('tspan');
+ textElements.forEach((el, index) => {
+ (el as SVGTSpanElement).style.animation = `fadeIn ${animationDuration}s ease-in-out ${animationDelay + index * 0.1}s forwards`;
+ (el as SVGTSpanElement).style.opacity = '0';
+ });
+ }, [animationDuration, animationDelay]);
return (
-
+
+ {text.split('').map((char, index) => (
+
+ {char}
+
+ ))}
+
+
+ >
);
-});
-
-SvgTextLogo.displayName = "SvgTextLogo";
+};
export default SvgTextLogo;