Skip to content

Commit 3a1a3cc

Browse files
author
Manuel Schächinger
committed
feat: node update and contact upgrade
1 parent ab44d9a commit 3a1a3cc

8 files changed

Lines changed: 16 additions & 11 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM node:22-alpine AS base
1+
FROM node:24-alpine AS base
2+
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
3+
RUN apk add --no-cache libc6-compat
24

35
# Install dependencies only when needed
46
FROM base AS deps
5-
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
6-
RUN apk add --no-cache libc6-compat
77
WORKDIR /app
88

99
COPY package*.json ./

app/[locale]/(legal)/imprint/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Metadata } from 'next';
22
import { getTranslations } from 'next-intl/server';
33

4+
import { CONTACT_EMAIL } from '@app/config';
45
import Address from '@components/atoms/Address';
56
import Breadcrumbs from '@components/atoms/Breadcumbs';
67
import Heading from '@components/atoms/Heading';
@@ -38,7 +39,7 @@ const ImprintPage = async () => {
3839
</p>
3940

4041
<p className="mb-4">
41-
<LinkButton href="mailto:manuel@schaechinger.com" label={t('contact.goto')} />
42+
<LinkButton href={`mailto:${CONTACT_EMAIL}`} label={t('contact.goto')} />
4243
</p>
4344

4445
<p>

app/[locale]/contact/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Metadata } from 'next';
22
import { getTranslations } from 'next-intl/server';
33
import { ReCaptchaProvider } from 'next-recaptcha-v3';
44

5-
import { RECAPTCHA_SITE_KEY } from '@app/config';
5+
import { CONTACT_EMAIL, RECAPTCHA_SITE_KEY } from '@app/config';
66
import AvailabilityIndicator from '@components/atoms/AvailabilityIndicator';
77
import Breadcrumbs from '@components/atoms/Breadcumbs';
88
import Heading from '@components/atoms/Heading';
@@ -48,7 +48,7 @@ const ContactPage = async ({ params }: PageProps<"/[locale]/contact">) => {
4848
<div className="flex-1">
4949
<Heading level={2} title={t('types.mail.title')} />
5050

51-
<LinkButton href="mailto:manuel@schaechinger.com" label={t('types.mail.goto')} />
51+
<LinkButton href={`mailto:${CONTACT_EMAIL}`} label={t('types.mail.goto')} />
5252
</div>
5353

5454
<div className="flex-1">

app/components/molecules/KonamiCode.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { useEffect, useState } from 'react';
44

5+
import { CONTACT_EMAIL } from '@app/config';
56
import LinkButton from '@components/atoms/LinkButton';
67
import ArrowRight from '@components/icons/ArrowRight';
78
import PageSection from '@components/organisms/PageSection';
@@ -76,7 +77,7 @@ const KonamiCode = ({ translations }: Props) => {
7677
{ 10 <= index
7778
&& <p className="mt-4">
7879
<LinkButton
79-
href={`mailto:manuel@schaechinger.com?subject=${translations.subject} [${
80+
href={`mailto:${CONTACT_EMAIL}?subject=${translations.subject} [${
8081
code.map((c, i) => c[index - (i + 1)]).reverse().join('')}]`}
8182
label={translations.goto}
8283
/>

app/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ export const LEGAL_NAVIGATION = [
3030
'privacy',
3131
];
3232

33+
// email
34+
export const CONTACT_EMAIL = 'schaechinger.starfish943@passmail.com';
35+
3336
// technologies
3437
export const CORE_TECHNOLOGIES = [
3538
{ name: 'Next.js', href: 'https://nextjs.org/' },

app/lib/seo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Metadata } from 'next';
22

3-
import { supportedLangs, WEB_HOST } from '@app/config';
3+
import { CONTACT_EMAIL, supportedLangs, WEB_HOST } from '@app/config';
44
import { isProd } from '@app/utils';
55
import type { LocaleCode } from '@lib/router';
66

@@ -36,7 +36,7 @@ export const generateProfileJson = () => wrapJson(
3636
jobTitle: 'Senior Software Engineer',
3737
nationality: 'German',
3838
image: `${WEB_HOST}/images/schaechinger.jpg`,
39-
email: 'manuel@schaechinger.com',
39+
email: CONTACT_EMAIL,
4040
url: 'https://www.schaechinger.com',
4141
sameAs: [
4242
'https://instagram.com/theschaechinger',

messages/de.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const contact = {
7777
email: 'E-Mail-Adresse',
7878
emailError: 'Bitte gib deine E-Mail-Adresse an.',
7979
message: 'Nachricht',
80-
messageError: 'Bitte schildere dein Anliegen.',
80+
messageError: 'Bitte schildere dein Anliegen ausführlicher.',
8181
submit: 'Absenden',
8282
submitError: 'Deine Nachricht konnte nicht gesendet werden.',
8383
successTitle: 'Deine Anfrage wurde versendet!',

messages/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const contact = {
7777
email: 'Mail Address',
7878
emailError: 'Please enter your mail address.',
7979
message: 'Message',
80-
messageError: 'Please provide some details.',
80+
messageError: 'Please provide more details.',
8181
submit: 'Send',
8282
submitError: 'Your message could not be sent.',
8383
successTitle: 'Your inquiry has been sent!',

0 commit comments

Comments
 (0)