Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b2dad26ec | |||
| 606fdf9a9f | |||
| 22e579761a | |||
| 7762b1e23b | |||
| 8c2e9bb11d | |||
| a5c997330c | |||
| 063d0fb4db | |||
| 9e70379aba | |||
| 68be6ff8dd | |||
| 2dc53ae002 |
@@ -1,4 +1,5 @@
|
||||
import { notFound, redirect } from 'next/navigation';
|
||||
import { getImageProps } from 'next/image';
|
||||
import { Container, Badge, Heading } from '@/components/ui';
|
||||
import { getTranslations, setRequestLocale } from 'next-intl/server';
|
||||
import { Metadata } from 'next';
|
||||
@@ -54,6 +55,28 @@ const mdxComponents = {
|
||||
GrowthChart,
|
||||
DeepDrillAnimation,
|
||||
DataGridPulse,
|
||||
ResponsiveImage: (props: any) => {
|
||||
let src = props.src;
|
||||
if (typeof src === 'string' && src.startsWith('/_next/image')) {
|
||||
try {
|
||||
const urlParam = new URLSearchParams(src.split('?')[1]).get('url');
|
||||
if (urlParam) src = decodeURIComponent(urlParam);
|
||||
} catch (_e) {
|
||||
// Ignore invalid URL parsing
|
||||
}
|
||||
}
|
||||
const { props: { srcSet, src: finalSrc, sizes } } = getImageProps({
|
||||
src,
|
||||
alt: props.alt || '',
|
||||
width: 1920,
|
||||
height: 1080,
|
||||
sizes: '(max-width: 768px) 100vw, (max-width: 1200px) 75vw, 50vw',
|
||||
quality: 80,
|
||||
});
|
||||
return (
|
||||
<img {...props} src={finalSrc} srcSet={srcSet} sizes={sizes} loading="lazy" decoding="async" />
|
||||
);
|
||||
},
|
||||
// Standard HTML element mapping for consistent E-TIB typography
|
||||
h1: (props: any) => <Heading level={1} size="2" className="hidden" {...props} />, // Hidden because Hero handles H1
|
||||
h2: (props: any) => <Heading level={2} size="3" className="mt-16 mb-6 border-b border-neutral-100 pb-4" {...props} />,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { notFound, redirect } from 'next/navigation';
|
||||
import { getImageProps } from 'next/image';
|
||||
import JsonLd from '@/components/JsonLd';
|
||||
import { SITE_URL } from '@/lib/schema';
|
||||
import {
|
||||
@@ -24,6 +25,28 @@ const mdxComponents = {
|
||||
h2: (props: any) => <Heading level={2} size="3" className="mt-16 mb-6 border-b border-neutral-100 pb-4" {...props} />,
|
||||
h3: (props: any) => <Heading level={3} size="4" className="mt-12 mb-4 text-primary" {...props} />,
|
||||
h4: (props: any) => <Heading level={4} size="5" className="mt-8 mb-4 uppercase tracking-widest text-neutral-500" {...props} />,
|
||||
ResponsiveImage: (props: any) => {
|
||||
let src = props.src;
|
||||
if (typeof src === 'string' && src.startsWith('/_next/image')) {
|
||||
try {
|
||||
const urlParam = new URLSearchParams(src.split('?')[1]).get('url');
|
||||
if (urlParam) src = decodeURIComponent(urlParam);
|
||||
} catch (_e) {
|
||||
// Ignore invalid URL parsing
|
||||
}
|
||||
}
|
||||
const { props: { srcSet, src: finalSrc, sizes } } = getImageProps({
|
||||
src,
|
||||
alt: props.alt || '',
|
||||
width: 1920,
|
||||
height: 1080,
|
||||
sizes: '(max-width: 768px) 100vw, (max-width: 1200px) 75vw, 50vw',
|
||||
quality: 80,
|
||||
});
|
||||
return (
|
||||
<img {...props} src={finalSrc} srcSet={srcSet} sizes={sizes} loading="lazy" decoding="async" />
|
||||
);
|
||||
},
|
||||
p: (props: any) => <p className="text-base md:text-lg text-text-secondary leading-[1.8] mb-6 font-normal max-w-3xl" {...props} />,
|
||||
ul: (props: any) => <ul className="list-none mb-8 space-y-3 text-base md:text-lg text-text-secondary font-normal max-w-3xl" {...props} />,
|
||||
ol: (props: any) => <ol className="list-decimal pl-6 mb-8 space-y-3 text-base md:text-lg text-text-secondary font-normal max-w-3xl" {...props} />,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Container, Heading, Badge } from '@/components/ui';
|
||||
import { getImageProps } from 'next/image';
|
||||
import { getTranslations, setRequestLocale } from 'next-intl/server';
|
||||
import { Metadata } from 'next';
|
||||
import { getAllReferences } from '@/lib/references';
|
||||
@@ -40,6 +41,28 @@ const mdxComponents = {
|
||||
li: CustomLi,
|
||||
p: (props: any) => <p className="text-neutral-600 text-sm mb-4 leading-relaxed" {...props} />,
|
||||
Heading,
|
||||
ResponsiveImage: (props: any) => {
|
||||
let src = props.src;
|
||||
if (typeof src === 'string' && src.startsWith('/_next/image')) {
|
||||
try {
|
||||
const urlParam = new URLSearchParams(src.split('?')[1]).get('url');
|
||||
if (urlParam) src = decodeURIComponent(urlParam);
|
||||
} catch (_e) {
|
||||
// Ignore invalid URL parsing
|
||||
}
|
||||
}
|
||||
const { props: { srcSet, src: finalSrc, sizes } } = getImageProps({
|
||||
src,
|
||||
alt: props.alt || '',
|
||||
width: 1920,
|
||||
height: 1080,
|
||||
sizes: '(max-width: 768px) 100vw, (max-width: 1200px) 75vw, 50vw',
|
||||
quality: 80,
|
||||
});
|
||||
return (
|
||||
<img {...props} src={finalSrc} srcSet={srcSet} sizes={sizes} loading="lazy" decoding="async" />
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
interface PageProps {
|
||||
|
||||
@@ -148,7 +148,8 @@ export function CertificatesBlock({ badge, title, description, certificates = de
|
||||
const wrapperProps = cert.pdfUrl ? {
|
||||
href: encodeURI(cert.pdfUrl),
|
||||
target: "_blank",
|
||||
rel: "noopener noreferrer"
|
||||
rel: "noopener noreferrer",
|
||||
download: cert.pdfUrl.split('/').pop()
|
||||
} : {};
|
||||
|
||||
return (
|
||||
|
||||
@@ -26,7 +26,7 @@ layout: "fullBleed"
|
||||
{
|
||||
id: "kathrin-lemanski",
|
||||
name: "Kathrin Lemanski",
|
||||
position: "Kaufmännische Leitung / Prokuristin",
|
||||
position: "Kaufmännische Leitung",
|
||||
email: "k.lemanski@e-tib.com",
|
||||
phone: "+49 3561 6857733",
|
||||
image: "/assets/photos/team/kathrin.jpg"
|
||||
|
||||
@@ -26,7 +26,7 @@ layout: "fullBleed"
|
||||
{
|
||||
id: "kathrin-lemanski",
|
||||
name: "Kathrin Lemanski",
|
||||
position: "Commercial Management / Authorized Signatory",
|
||||
position: "Commercial Management",
|
||||
email: "k.lemanski@e-tib.com",
|
||||
phone: "+49 3561 6857733",
|
||||
image: "/assets/photos/team/kathrin.jpg"
|
||||
|
||||
6
lint-results.json
Normal file
6
lint-results.json
Normal file
File diff suppressed because one or more lines are too long
@@ -280,7 +280,7 @@
|
||||
"TeamGrid": {
|
||||
"badge": "Persönliche Beratung",
|
||||
"title": "Ihre Ansprechpartner",
|
||||
"subtitle": "Sprechen Sie direkt mit unseren Experten für Ihr regionales Projekt.",
|
||||
"subtitle": "Sprechen Sie direkt mit unseren Experten für Ihr Projekt.",
|
||||
"management": "Geschäftsführung",
|
||||
"branchETIB": "E-TIB GmbH",
|
||||
"branchIng": "Ingenieurgesellschaft",
|
||||
|
||||
@@ -280,7 +280,7 @@
|
||||
"TeamGrid": {
|
||||
"badge": "Personal Consultation",
|
||||
"title": "Your Contacts",
|
||||
"subtitle": "Speak directly with our experts for your regional project.",
|
||||
"subtitle": "Speak directly with our experts for your project.",
|
||||
"management": "Management",
|
||||
"branchETIB": "E-TIB GmbH",
|
||||
"branchIng": "Engineering Company",
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
"prepare": "husky",
|
||||
"preinstall": "npx only-allow pnpm"
|
||||
},
|
||||
"version": "2.4.37",
|
||||
"version": "2.4.42",
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": [
|
||||
"@parcel/watcher",
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user