Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a9f414e87 | |||
| 652bd92321 | |||
| 3ea8f21294 | |||
| 3a216b3961 | |||
| 38ff51d95c | |||
| 616a3a5377 | |||
| ea9135af56 | |||
| aaec77598e |
@@ -1,5 +1,6 @@
|
||||
import { notFound, redirect } from 'next/navigation';
|
||||
import { getImageProps } from 'next/image';
|
||||
import { ScaleOfImpact } from '@/components/blocks/ScaleOfImpact';
|
||||
import { Container, Badge, Heading } from '@/components/ui';
|
||||
import { getTranslations, setRequestLocale } from 'next-intl/server';
|
||||
import { Metadata } from 'next';
|
||||
@@ -55,6 +56,7 @@ const mdxComponents = {
|
||||
GrowthChart,
|
||||
DeepDrillAnimation,
|
||||
DataGridPulse,
|
||||
ScaleOfImpact,
|
||||
ResponsiveImage: (props: any) => {
|
||||
let src = props.src;
|
||||
if (typeof src === 'string' && src.startsWith('/_next/image')) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { notFound, redirect } from 'next/navigation';
|
||||
import { getImageProps } from 'next/image';
|
||||
import { ScaleOfImpact } from '@/components/blocks/ScaleOfImpact';
|
||||
import JsonLd from '@/components/JsonLd';
|
||||
import { SITE_URL } from '@/lib/schema';
|
||||
import {
|
||||
@@ -25,6 +26,7 @@ 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} />,
|
||||
ScaleOfImpact,
|
||||
ResponsiveImage: (props: any) => {
|
||||
let src = props.src;
|
||||
if (typeof src === 'string' && src.startsWith('/_next/image')) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Container, Heading, Badge } from '@/components/ui';
|
||||
import { getImageProps } from 'next/image';
|
||||
import { ScaleOfImpact } from '@/components/blocks/ScaleOfImpact';
|
||||
import { getTranslations, setRequestLocale } from 'next-intl/server';
|
||||
import { Metadata } from 'next';
|
||||
import { getAllReferences } from '@/lib/references';
|
||||
@@ -41,6 +42,7 @@ const mdxComponents = {
|
||||
li: CustomLi,
|
||||
p: (props: any) => <p className="text-neutral-600 text-sm mb-4 leading-relaxed" {...props} />,
|
||||
Heading,
|
||||
ScaleOfImpact,
|
||||
ResponsiveImage: (props: any) => {
|
||||
let src = props.src;
|
||||
if (typeof src === 'string' && src.startsWith('/_next/image')) {
|
||||
|
||||
BIN
assets/certificates/260325_Rheinland Haftpflichtversicherung.pdf
Normal file
BIN
assets/certificates/260325_Rheinland Haftpflichtversicherung.pdf
Normal file
Binary file not shown.
@@ -25,7 +25,7 @@ interface CertificatesBlockProps {
|
||||
hideHeader?: boolean;
|
||||
}
|
||||
|
||||
const defaultCertificates: Certificate[] = [
|
||||
export const defaultCertificates: Certificate[] = [
|
||||
{
|
||||
title: 'ISO 14001:2015',
|
||||
description: 'Umweltmanagementsystem',
|
||||
@@ -47,6 +47,13 @@ const defaultCertificates: Certificate[] = [
|
||||
type: 'iso',
|
||||
date: '05.12.2025',
|
||||
},
|
||||
{
|
||||
title: 'Betriebshaftpflichtversicherung',
|
||||
description: 'RheinLand Versicherungen (10 Mio. € Deckung)',
|
||||
pdfUrl: '/assets/certificates/betriebshaftpflicht.pdf',
|
||||
type: 'general',
|
||||
date: '25.03.2026',
|
||||
},
|
||||
{
|
||||
title: 'Freistellungsbescheinigung',
|
||||
description: 'Nach § 48 b EStG',
|
||||
@@ -68,7 +75,6 @@ const defaultCertificates: Certificate[] = [
|
||||
type: 'tax',
|
||||
date: '13.02.2025',
|
||||
},
|
||||
|
||||
];
|
||||
|
||||
export function CertificatesBlock({ badge, title, description, certificates = defaultCertificates, hideHeader = false }: CertificatesBlockProps) {
|
||||
@@ -202,7 +208,7 @@ export function CertificatesBlock({ badge, title, description, certificates = de
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className={`mt-auto inline-flex items-center text-sm font-bold uppercase tracking-wider transition-all ${
|
||||
<div className={`mt-auto inline-flex items-center gap-2 text-sm font-bold uppercase tracking-wider transition-all duration-300 ${
|
||||
cert.pdfUrl ? 'group-hover:gap-3' : ''
|
||||
} ${
|
||||
isIso ? 'text-primary-light' : 'text-primary'
|
||||
@@ -210,7 +216,7 @@ export function CertificatesBlock({ badge, title, description, certificates = de
|
||||
{cert.pdfUrl ? (
|
||||
<>
|
||||
<span>Download PDF</span>
|
||||
<Download size={16} className="ml-2 group-hover:translate-y-0.5 transition-transform" />
|
||||
<Download size={16} className="group-hover:translate-y-0.5 transition-transform" />
|
||||
</>
|
||||
) : (
|
||||
<span className="text-neutral-400">Nachweis liegt vor</span>
|
||||
|
||||
@@ -39,6 +39,13 @@ layout: "fullBleed"
|
||||
type: 'iso',
|
||||
date: '05.12.2025',
|
||||
},
|
||||
{
|
||||
title: 'Commercial Liability Insurance',
|
||||
description: 'RheinLand Insurance (€10M coverage)',
|
||||
pdfUrl: '/assets/certificates/betriebshaftpflicht.pdf',
|
||||
type: 'general',
|
||||
date: '25.03.2026',
|
||||
},
|
||||
{
|
||||
title: 'Exemption Certificate',
|
||||
description: 'According to § 48 b EStG',
|
||||
|
||||
@@ -56,6 +56,9 @@ export class GlitchtipErrorReportingService implements ErrorReportingService {
|
||||
tracesSampleRate: this.options.tracesSampleRate ?? 0.1,
|
||||
replaysOnErrorSampleRate: 1.0,
|
||||
replaysSessionSampleRate: 0.1,
|
||||
ignoreErrors: [
|
||||
'Failed to find Server Action. This request might be from an older or newer deployment.',
|
||||
],
|
||||
});
|
||||
}
|
||||
return Sentry;
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
"prepare": "husky",
|
||||
"preinstall": "npx only-allow pnpm"
|
||||
},
|
||||
"version": "2.4.42",
|
||||
"version": "2.4.46",
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": [
|
||||
"@parcel/watcher",
|
||||
|
||||
BIN
public/assets/certificates/betriebshaftpflicht.pdf
Normal file
BIN
public/assets/certificates/betriebshaftpflicht.pdf
Normal file
Binary file not shown.
28
tests/certificates.test.ts
Normal file
28
tests/certificates.test.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import fs from 'fs';
|
||||
import { defaultCertificates } from '../components/blocks/CertificatesBlock';
|
||||
|
||||
import path from 'path';
|
||||
|
||||
describe('Certificates & Insurance Integration (DE + EN)', () => {
|
||||
it('includes the new RheinLand Betriebshaftpflichtversicherung in defaultCertificates (DE)', () => {
|
||||
const haftpflichtCert = defaultCertificates.find(
|
||||
(cert) => cert.title === 'Betriebshaftpflichtversicherung'
|
||||
);
|
||||
expect(haftpflichtCert).toBeDefined();
|
||||
expect(haftpflichtCert?.pdfUrl).toBe('/assets/certificates/betriebshaftpflicht.pdf');
|
||||
expect(haftpflichtCert?.date).toBe('25.03.2026');
|
||||
});
|
||||
|
||||
it('verifies that content/en/zertifikate.mdx includes Commercial Liability Insurance (EN)', () => {
|
||||
const enMdx = fs.readFileSync(path.join(__dirname, '../content/en/zertifikate.mdx'), 'utf-8');
|
||||
expect(enMdx).toContain("title: 'Commercial Liability Insurance'");
|
||||
expect(enMdx).toContain("pdfUrl: '/assets/certificates/betriebshaftpflicht.pdf'");
|
||||
expect(enMdx).toContain("date: '25.03.2026'");
|
||||
});
|
||||
|
||||
it('verifies that the PDF asset exists in public/assets/certificates/betriebshaftpflicht.pdf', () => {
|
||||
const filePath = path.join(__dirname, '../public/assets/certificates/betriebshaftpflicht.pdf');
|
||||
expect(fs.existsSync(filePath)).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user