Add interactive map to Impressum with configurable coordinates
- Add OpenStreetMap iframe to legal page showing business location - Support ADDRESS_LATITUDE and ADDRESS_LONGITUDE environment variables - Generate dynamic map URLs based on configured coordinates - Include link to full map view - Update legal-config.ts interface to include latitude/longitude - Document new environment variables in README.md - Use Kiel coordinates as default (54.3233, 10.1228)
This commit is contained in:
@@ -8,6 +8,8 @@ export interface LegalConfig {
|
||||
city: string;
|
||||
postalCode: string;
|
||||
country: string;
|
||||
latitude?: number;
|
||||
longitude?: number;
|
||||
};
|
||||
contact: {
|
||||
phone: string;
|
||||
@@ -41,10 +43,12 @@ export const defaultLegalConfig: LegalConfig = {
|
||||
companyName: process.env.COMPANY_NAME || "Stargirlnails Kiel",
|
||||
ownerName: process.env.OWNER_NAME || "Inhaber Name",
|
||||
address: {
|
||||
street: process.env.ADDRESS_STREET || "Musterstraße 123",
|
||||
street: process.env.ADDRESS_STREET || "Liebigstr. 15",
|
||||
city: process.env.ADDRESS_CITY || "Kiel",
|
||||
postalCode: process.env.ADDRESS_POSTAL_CODE || "24103",
|
||||
postalCode: process.env.ADDRESS_POSTAL_CODE || "24145",
|
||||
country: process.env.ADDRESS_COUNTRY || "Deutschland",
|
||||
latitude: process.env.ADDRESS_LATITUDE ? parseFloat(process.env.ADDRESS_LATITUDE) : 54.3233,
|
||||
longitude: process.env.ADDRESS_LONGITUDE ? parseFloat(process.env.ADDRESS_LONGITUDE) : 10.1228,
|
||||
},
|
||||
contact: {
|
||||
phone: process.env.CONTACT_PHONE || "+49 431 123456",
|
||||
|
Reference in New Issue
Block a user