diff --git a/src/pages/index.astro b/src/pages/index.astro index 2556cb9..4e38b85 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,10 +2,17 @@ import AppLayout from '../layouts/AppLayout.astro'; import ProjectLockup from '../components/ProjectLockup.astro'; import { hasJoinRequest } from '../lib/db'; +import { homeRouteForRole } from '../lib/routing'; import { existsSync } from 'fs'; import { join } from 'path'; const user = Astro.locals.user; + +// Council members (cab) and Fenja team (fenja) land on /pulse; pilots see +// the existing editorial home below — the right audience for that content. +const redirectTo = homeRouteForRole(user.role); +if (redirectTo) return Astro.redirect(redirectTo); + const firstName = user.name.split(' ')[0]; const alreadyJoined = hasJoinRequest(user.id); const innofoundarLogoExists = existsSync(join(process.cwd(), 'public/innofounder-logo.png')); diff --git a/src/pages/pulse.astro b/src/pages/pulse.astro new file mode 100644 index 0000000..1b976c2 --- /dev/null +++ b/src/pages/pulse.astro @@ -0,0 +1,28 @@ +--- +import AppLayout from '../layouts/AppLayout.astro'; + +const user = Astro.locals.user; +const firstName = user.name.split(' ')[0]; +--- + + + Pulse + Welcome back, {firstName}. + The full member view lands in the next commit. + + + +
Pulse
The full member view lands in the next commit.