Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 19c8cec1d3 | |||
| 2a9f414e87 | |||
| 652bd92321 | |||
| 3ea8f21294 | |||
| 3a216b3961 |
4
.gitignore
vendored
@@ -40,3 +40,7 @@ next-env.d.ts
|
||||
# turborepo
|
||||
.turbo
|
||||
.turbo-test
|
||||
|
||||
# scratch
|
||||
scratch/
|
||||
|
||||
|
||||
@@ -208,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'
|
||||
@@ -216,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>
|
||||
|
||||
@@ -9,7 +9,7 @@ layout: "fullBleed"
|
||||
badge="Unternehmen"
|
||||
title="Unser Team"
|
||||
subtitle="Die Experten hinter der E-TIB Gruppe"
|
||||
backgroundImage={{ url: '/assets/photos/DJI_0048.JPG' }}
|
||||
backgroundImage={{ url: '/assets/photos/E-TIB_Gruppenfoto.jpg', focalY: 25 }}
|
||||
alignment="center"
|
||||
/>
|
||||
|
||||
@@ -68,15 +68,15 @@ layout: "fullBleed"
|
||||
name: "Kerstin Joseph",
|
||||
position: "Buchhaltung / Controlling",
|
||||
email: "k.joseph@e-tib.com",
|
||||
phone: "+49 3561 6857733",
|
||||
image: "/assets/photos/team/kerstin.jpg"
|
||||
phone: "+49 3561 6857733"
|
||||
},
|
||||
{
|
||||
id: "katrin-haigold",
|
||||
name: "Katrin Haigold",
|
||||
position: "Buchhaltung / Personalwesen",
|
||||
email: "k.haigold@e-tib.com",
|
||||
phone: "+49 3561 6851692"
|
||||
phone: "+49 3561 6851692",
|
||||
image: "/assets/photos/team/katrin-heigold.jpg"
|
||||
},
|
||||
{
|
||||
id: "maik-weichert",
|
||||
|
||||
@@ -9,7 +9,7 @@ layout: "fullBleed"
|
||||
badge="Company"
|
||||
title="Our Team"
|
||||
subtitle="The Experts behind the E-TIB Group"
|
||||
backgroundImage={{ url: '/assets/photos/DJI_0048.JPG' }}
|
||||
backgroundImage={{ url: '/assets/photos/E-TIB_Gruppenfoto.jpg', focalY: 25 }}
|
||||
alignment="center"
|
||||
/>
|
||||
|
||||
@@ -68,15 +68,15 @@ layout: "fullBleed"
|
||||
name: "Kerstin Joseph",
|
||||
position: "Accounting / Controlling",
|
||||
email: "k.joseph@e-tib.com",
|
||||
phone: "+49 3561 6857733",
|
||||
image: "/assets/photos/team/kerstin.jpg"
|
||||
phone: "+49 3561 6857733"
|
||||
},
|
||||
{
|
||||
id: "katrin-haigold",
|
||||
name: "Katrin Haigold",
|
||||
position: "Accounting / Human Resources",
|
||||
email: "k.haigold@e-tib.com",
|
||||
phone: "+49 3561 6851692"
|
||||
phone: "+49 3561 6851692",
|
||||
image: "/assets/photos/team/katrin-heigold.jpg"
|
||||
},
|
||||
{
|
||||
id: "maik-weichert",
|
||||
|
||||
@@ -8,7 +8,7 @@ services:
|
||||
- infra
|
||||
- default
|
||||
labels:
|
||||
- "caddy=http://${TRAEFIK_HOST:-etib.localhost}"
|
||||
- "caddy=http://${TRAEFIK_HOST:-etib.localhost}, http://e-tib.localhost"
|
||||
- "caddy.reverse_proxy=http://etib-app:3001"
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
@@ -77,7 +77,7 @@ services:
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: ${PROJECT_NAME:-e-tib}-internal
|
||||
name: ${COMPOSE_PROJECT_NAME:-etib}-dev-internal
|
||||
infra:
|
||||
external: true
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"/assets/photos/DJI_0048.JPG": "data:image/webp;base64,UklGRjIAAABXRUJQVlA4ICYAAADwAQCdASoKAAcABUB8JYwCdH8AGDNIbaAA92kbyv6vgOVMTIAAAA==",
|
||||
"/assets/videos/web/hero-bahnkreuzung-poster.jpg": "data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoKAAYABUB8JaQAA3AA/vDUoAA=",
|
||||
"/assets/videos/web/hero-bohrung-poster.jpg": "data:image/webp;base64,UklGRjIAAABXRUJQVlA4ICYAAACwAQCdASoKAAYABUB8JZACdAEOO2gAAN5Rr3co8j7CDYNKNCAAAA==",
|
||||
"/assets/videos/web/hero-kabelpflug-poster.jpg": "data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoKAAYABUB8JaQAA3AA/vDUoAA=",
|
||||
"/assets/videos/web/hero-messe-poster.jpg": "data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoKAAYABUB8JaQAA3AA/vDUoAA="
|
||||
"/assets/photos/DJI_0048.JPG": "data:image/webp;base64,UklGRjIAAABXRUJQVlA4ICYAAADwAQCdASoKAAcABUB8JYwCdH8AGDXtwwAA92kbyv6vgOVMTIAAAA==",
|
||||
"/assets/photos/E-TIB_Gruppenfoto.jpg": "data:image/webp;base64,UklGRiwAAABXRUJQVlA4ICAAAACQAQCdASoKAAUABUB8JZQCdAEOgwAA4XqSiWtFZ0AAAA==",
|
||||
"/assets/videos/web/hero-bahnkreuzung-poster.jpg": "data:image/webp;base64,UklGRi4AAABXRUJQVlA4ICIAAACQAQCdASoKAAYABUB8JQAAXKXv4AAA/UZNt5FbP3v64AAA",
|
||||
"/assets/videos/web/hero-bohrung-poster.jpg": "data:image/webp;base64,UklGRjIAAABXRUJQVlA4ICYAAACwAQCdASoKAAYABUB8JZACdAEOI+oAAN5Rr3co8j7CDYNKNCAAAA==",
|
||||
"/assets/videos/web/hero-kabelpflug-poster.jpg": "data:image/webp;base64,UklGRjIAAABXRUJQVlA4ICYAAADQAQCdASoKAAYABUB8JagCw7EOwCTyAAD9QIvsqI74a4qbWwAAAA==",
|
||||
"/assets/videos/web/hero-messe-poster.jpg": "data:image/webp;base64,UklGRi4AAABXRUJQVlA4ICIAAABQAQCdASoKAAYABUB8JQBOgC6gAP7hJjEBwUoIEPzDKgAA"
|
||||
}
|
||||
@@ -100,7 +100,7 @@
|
||||
"xlsx-cli": "^1.1.3"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "bash -c 'bash scripts/registry-auth.sh && [ -f .env ] || (cp .env.example .env && sed -i.bak \"s/TRAEFIK_HOST=e-tib.com/TRAEFIK_HOST=etib.localhost/\" .env && rm -f .env.bak && echo \"✅ Created .env from .env.example\"); trap \"COMPOSE_PROJECT_NAME=etib docker compose -f docker-compose.dev.yml down\" EXIT INT TERM; docker network create infra 2>/dev/null || true && COMPOSE_PROJECT_NAME=etib docker compose -f docker-compose.dev.yml down && COMPOSE_PROJECT_NAME=etib docker compose -f docker-compose.dev.yml up etib-app etib-proxy --remove-orphans'",
|
||||
"dev": "bash -c 'bash scripts/registry-auth.sh && [ -f .env ] || (cp .env.example .env && sed -i.bak \"s/TRAEFIK_HOST=e-tib.com/TRAEFIK_HOST=etib.localhost/\" .env && rm -f .env.bak && echo \"✅ Created .env from .env.example\"); trap \"COMPOSE_PROJECT_NAME=etib docker compose -f docker-compose.dev.yml down\" EXIT INT TERM; docker network create infra 2>/dev/null || true && COMPOSE_PROJECT_NAME=etib docker compose -f docker-compose.dev.yml down && COMPOSE_PROJECT_NAME=etib docker compose -f docker-compose.dev.yml up --build etib-app etib-proxy --remove-orphans'",
|
||||
"dev:local": "bash -c 'bash scripts/registry-auth.sh && next dev --webpack --port 3100 --hostname 0.0.0.0'",
|
||||
"dev:infra": "COMPOSE_PROJECT_NAME=etib docker compose -f docker-compose.dev.yml up -d etib-proxy",
|
||||
"build": "next build",
|
||||
@@ -140,7 +140,7 @@
|
||||
"prepare": "husky",
|
||||
"preinstall": "npx only-allow pnpm"
|
||||
},
|
||||
"version": "2.4.44",
|
||||
"version": "2.4.47",
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": [
|
||||
"@parcel/watcher",
|
||||
|
||||
BIN
public/assets/photos/E-TIB_Gruppenfoto.jpg
Normal file
|
After Width: | Height: | Size: 390 KiB |
|
Before Width: | Height: | Size: 117 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 300 KiB After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 56 KiB |
BIN
public/assets/photos/team/katrin-heigold.jpg
Normal file
|
After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 650 KiB After Width: | Height: | Size: 59 KiB |
@@ -5,6 +5,7 @@ import sharp from 'sharp';
|
||||
const PUBLIC_DIR = path.join(process.cwd(), 'public');
|
||||
const IMAGES_TO_PROCESS = [
|
||||
'/assets/photos/DJI_0048.JPG',
|
||||
'/assets/photos/E-TIB_Gruppenfoto.jpg',
|
||||
'/assets/videos/web/hero-bahnkreuzung-poster.jpg',
|
||||
'/assets/videos/web/hero-bohrung-poster.jpg',
|
||||
'/assets/videos/web/hero-kabelpflug-poster.jpg',
|
||||
|
||||
@@ -2,6 +2,8 @@ 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(
|
||||
@@ -13,14 +15,14 @@ describe('Certificates & Insurance Integration (DE + EN)', () => {
|
||||
});
|
||||
|
||||
it('verifies that content/en/zertifikate.mdx includes Commercial Liability Insurance (EN)', () => {
|
||||
const enMdx = fs.readFileSync('/Volumes/Alpha SSD/Coding/e-tib.com/content/en/zertifikate.mdx', 'utf-8');
|
||||
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 = '/Volumes/Alpha SSD/Coding/e-tib.com/public/assets/certificates/betriebshaftpflicht.pdf';
|
||||
const filePath = path.join(__dirname, '../public/assets/certificates/betriebshaftpflicht.pdf');
|
||||
expect(fs.existsSync(filePath)).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
61
tests/team-images.test.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
describe('Team Images and Team Page Content', () => {
|
||||
const publicTeamPhotosDir = path.join(process.cwd(), 'public', 'assets', 'photos', 'team');
|
||||
const publicPhotosDir = path.join(process.cwd(), 'public', 'assets', 'photos');
|
||||
const deTeamPath = path.join(process.cwd(), 'content', 'de', 'team.mdx');
|
||||
const enTeamPath = path.join(process.cwd(), 'content', 'en', 'team.mdx');
|
||||
|
||||
it('should verify all required team photos exist in public/assets/photos/team/', () => {
|
||||
const requiredMemberImages = [
|
||||
'danny.jpg',
|
||||
'dirk.jpg',
|
||||
'kathrin.jpg',
|
||||
'katrin-heigold.jpg',
|
||||
'maik.jpg',
|
||||
'martin.jpg',
|
||||
'oliver.jpg',
|
||||
'sven.jpg',
|
||||
];
|
||||
|
||||
for (const imgName of requiredMemberImages) {
|
||||
const imgPath = path.join(publicTeamPhotosDir, imgName);
|
||||
expect(fs.existsSync(imgPath), `Expected image ${imgName} to exist`).toBe(true);
|
||||
}
|
||||
});
|
||||
|
||||
it('should verify team group photo exists in public/assets/photos/', () => {
|
||||
const groupPhotoPath = path.join(publicPhotosDir, 'E-TIB_Gruppenfoto.jpg');
|
||||
expect(fs.existsSync(groupPhotoPath), 'Expected E-TIB_Gruppenfoto.jpg to exist').toBe(true);
|
||||
});
|
||||
|
||||
it('should verify DE and EN team.mdx use E-TIB_Gruppenfoto.jpg in HeroSection', () => {
|
||||
const deContent = fs.readFileSync(deTeamPath, 'utf8');
|
||||
const enContent = fs.readFileSync(enTeamPath, 'utf8');
|
||||
|
||||
expect(deContent).toContain("url: '/assets/photos/E-TIB_Gruppenfoto.jpg'");
|
||||
expect(enContent).toContain("url: '/assets/photos/E-TIB_Gruppenfoto.jpg'");
|
||||
});
|
||||
|
||||
it('should verify Frau Joseph (Kerstin Joseph) has no image property in team.mdx', () => {
|
||||
const deContent = fs.readFileSync(deTeamPath, 'utf8');
|
||||
const enContent = fs.readFileSync(enTeamPath, 'utf8');
|
||||
|
||||
// Parse kerstin-joseph block and ensure no image line exists for kerstin-joseph
|
||||
const deKerstinBlock = deContent.match(/id:\s*"kerstin-joseph"[\s\S]*?\}/)?.[0] || '';
|
||||
const enKerstinBlock = enContent.match(/id:\s*"kerstin-joseph"[\s\S]*?\}/)?.[0] || '';
|
||||
|
||||
expect(deKerstinBlock).not.toContain('image:');
|
||||
expect(enKerstinBlock).not.toContain('image:');
|
||||
});
|
||||
|
||||
it('should verify Katrin Heigold has image set in team.mdx', () => {
|
||||
const deContent = fs.readFileSync(deTeamPath, 'utf8');
|
||||
const enContent = fs.readFileSync(enTeamPath, 'utf8');
|
||||
|
||||
expect(deContent).toContain('/assets/photos/team/katrin-heigold.jpg');
|
||||
expect(enContent).toContain('/assets/photos/team/katrin-heigold.jpg');
|
||||
});
|
||||
});
|
||||