chore: add Innofounder logo to public, wire to home page

This commit is contained in:
Jonathan 2026-04-19 20:36:54 +02:00
parent 49f5d976fb
commit 6cbab5ba36
4 changed files with 4 additions and 3 deletions

View file

@ -11,7 +11,8 @@
"Bash(node scripts/migrate.js)", "Bash(node scripts/migrate.js)",
"Bash(node scripts/seed.js)", "Bash(node scripts/seed.js)",
"Bash(pnpm typecheck *)", "Bash(pnpm typecheck *)",
"Bash(pnpm build *)" "Bash(pnpm build *)",
"Bash(identify /home/jonathan/Documents/DEV/Project-Bifrost/public/innofounder-logo.png)"
] ]
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
public/innofounder-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View file

@ -8,7 +8,7 @@ import { join } from 'path';
const user = Astro.locals.user; const user = Astro.locals.user;
const firstName = user.name.split(' ')[0]; const firstName = user.name.split(' ')[0];
const alreadyJoined = hasJoinRequest(user.id); const alreadyJoined = hasJoinRequest(user.id);
const innofoundarLogoExists = existsSync(join(process.cwd(), 'public/innofounder-logo.svg')); const innofoundarLogoExists = existsSync(join(process.cwd(), 'public/innofounder-logo.png'));
--- ---
<AppLayout title="Home" user={user}> <AppLayout title="Home" user={user}>
<div class="page"> <div class="page">
@ -80,7 +80,7 @@ const innofoundarLogoExists = existsSync(join(process.cwd(), 'public/innofounder
<section class="section innofounder-section"> <section class="section innofounder-section">
<div class="innofounder-header"> <div class="innofounder-header">
{innofoundarLogoExists ? ( {innofoundarLogoExists ? (
<img src="/innofounder-logo.svg" alt="Innofounder — Innovation Fund Denmark" class="innofounder-logo" /> <img src="/innofounder-logo.png" alt="Innofounder — Innovation Fund Denmark" class="innofounder-logo" />
) : ( ) : (
<div class="innofounder-placeholder" aria-label="Innofounder logo — add file"> <div class="innofounder-placeholder" aria-label="Innofounder logo — add file">
<span class="label-sm">Innofounder logo — add <code>public/innofounder-logo.svg</code></span> <span class="label-sm">Innofounder logo — add <code>public/innofounder-logo.svg</code></span>