Skip to content

feat: add ipdj logo to footer #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions docker-entrypoint.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
#!/usr/bin/env bun

import { spawn } from 'node:child_process'
import { spawn } from "node:child_process";

const env = { ...process.env }
const env = { ...process.env };

// If running the web server then prerender pages
if (process.argv.slice(-3).join(' ') === 'bun run start') {
await exec('bunx next build --experimental-build-mode generate')
if (process.argv.slice(-3).join(" ") === "bun run start") {
await exec("bunx next build --experimental-build-mode generate");
}

// Launch application
await exec(process.argv.slice(2).join(' '))
await exec(process.argv.slice(2).join(" "));

function exec(command: string) {
const child = spawn(command, { shell: true, stdio: 'inherit', env })
const child = spawn(command, { shell: true, stdio: "inherit", env });
return new Promise<void>((resolve, reject) => {
child.on('exit', code => {
child.on("exit", (code) => {
if (code === 0) {
resolve()
resolve();
} else {
reject(new Error(`${command} failed rc=${code}`))
reject(new Error(`${command} failed rc=${code}`));
}
})
})
});
});
}
1 change: 1 addition & 0 deletions public/logo/ipdj.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 24 additions & 9 deletions src/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,31 @@ const Footer = () => {
<footer className=" flex flex-col place-items-center pb-16 pt-8 sm:flex-row sm:place-items-end">
<div className="flex w-full max-w-[500px] flex-col place-items-center justify-center space-y-5 sm:w-1/2 sm:max-w-max sm:flex-col-reverse md:place-items-start">
<div className="w-full space-y-6 pb-2.5 sm:mt-[50px] sm:w-80 sm:pb-0">
<Image
src="/logo/cesium.svg"
alt="CeSIUM Logo Icon"
width={40}
height={40}
className="w-[32px]"
/>
<p className="text-sm leading-[17px] text-[#94959C]">
<div className="flex -translate-x-0.5 items-center gap-4">
<Image
src="/logo/cesium.svg"
alt="CeSIUM Logo Icon"
width={40}
height={40}
className="h-9 sm:h-10"
/>
<Link
href="https://ipdj.gov.pt/"
target="_blank"
rel="noopener noreferrer"
>
<Image
src="/logo/ipdj.svg"
alt="IPDJ Logo"
width={155.817}
height={40}
className="h-9 w-fit sm:h-10"
/>
</Link>
</div>
{/* <p className="text-sm leading-[17px] text-[#94959C]">
{dict.cesium}
</p>
</p> */}
<div className="justify-left flex h-[30px] space-x-5">
{dict.socials.map((social) => {
return (
Expand Down