mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 20:05:41 +00:00
Replace the icon-and-cards landing with a photographic hero that alternates between the Furi station and freight train photos, a single headline, and two compact glass cards that pin the background on hover. Below it: the corridor rail, one showcase mockup per portal (passenger trip search, freight live tracking), the existing stats and footer. - Add the official EDR logo as transparent green/white PNGs (lockup and mark), used in the header, footer and favicon - Switch to Plus Jakarta Sans and a palette keyed to the logo green - Split the page into components under src/components - Header links: Passenger, Freight, Publications
21 lines
1010 B
TypeScript
21 lines
1010 B
TypeScript
// The two destinations this page exists to route to. Set NEXT_PUBLIC_* to each
|
|
// app's origin; the entry path is appended here so no deploy has to remember
|
|
// it. Inlined at build time by `output: 'export'`, so these are passed as
|
|
// Docker build args (see infrastructure/docker/Dockerfile.web), not runtime env.
|
|
const origin = (url: string) => url.replace(/\/+$/, "");
|
|
|
|
// The passenger app serves its booking search at `/` — that is already the app.
|
|
export const PASSENGER_URL = origin(
|
|
process.env.NEXT_PUBLIC_PASSENGER_URL ?? "https://passenger.edrsc.com",
|
|
);
|
|
|
|
// The freight app serves its own marketing landing at `/`, so link past it:
|
|
// `/portal` is the app itself, and redirects to /login when signed out.
|
|
const FREIGHT_ORIGIN = origin(
|
|
process.env.NEXT_PUBLIC_FREIGHT_URL ?? "https://freight.edrsc.com",
|
|
);
|
|
export const FREIGHT_URL = `${FREIGHT_ORIGIN}/portal`;
|
|
|
|
// Public notices and tariffs, published from the freight app.
|
|
export const PUBLICATIONS_URL = `${FREIGHT_ORIGIN}/publications`;
|