di usage in website

This commit is contained in:
2026-01-06 19:36:03 +01:00
parent 589b55a87e
commit e589c30bf8
191 changed files with 6367 additions and 4253 deletions

View File

@@ -1,9 +1,9 @@
'use client';
import { useRef } from 'react';
import Container from '@/components/ui/Container';
import Heading from '@/components/ui/Heading';
import { useParallax } from '../../hooks/useScrollProgress';
import { useParallax } from '@/hooks/useScrollProgress';
import { useRef } from 'react';
interface AlternatingSectionProps {
heading: string;

View File

@@ -2,7 +2,8 @@
import { useState, FormEvent } from 'react';
import { motion, AnimatePresence } from 'framer-motion';
import { useServices } from '@/lib/services/ServiceProvider';
import { useInject } from '@/lib/di/hooks/useInject';
import { LANDING_SERVICE_TOKEN } from '@/lib/di/tokens';
type FeedbackState =
| { type: 'idle' }
@@ -14,7 +15,7 @@ type FeedbackState =
export default function EmailCapture() {
const [email, setEmail] = useState('');
const [feedback, setFeedback] = useState<FeedbackState>({ type: 'idle' });
const { landingService } = useServices();
const landingService = useInject(LANDING_SERVICE_TOKEN);
const handleSubmit = async (e: FormEvent<HTMLFormElement>) => {
e.preventDefault();