Skip to content
Merged
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
44 changes: 35 additions & 9 deletions frontend/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,48 @@
"use client";

import { Bug } from "lucide-react";
import Link from "next/link";
import Image from "next/image";
import { useTheme } from "next-themes";

export function Footer() {
const { resolvedTheme } = useTheme();

return (
<footer className="bottom-0 left-0 w-full py-5 px-10 text-sm text-muted-foreground border-t mt-5">
<footer className="bottom-0 left-0 w-full py-5 px-10 text-sm text-muted-foreground border-t mt-5 flex flex-col gap-y-2 md:flex-row md:items-center sm:justify-between">
<span>
Built by{" "}
<a className="cursor-pointer underline" href="https://mathphys.info">
Fachschaft MathPhysInfo
</a>{" "}
at Heidelberg University.{" "}
</span>
<span>
The source code is available on{" "}
<a
className="cursor-pointer underline"
href="https://github.com/FachschaftMathPhysInfo/pepp"

<span className="text-sm text-muted-foreground">
Build v{process.env.NEXT_PUBLIC_APP_VERSION}
</span>

<span className={"flex gap-x-4 items-center"}>
<Link href={"https://github.com/FachschaftMathPhysInfo/pepp"}>
<Image
suppressHydrationWarning
src={
resolvedTheme === "light"
? "/github_light.svg"
: "/github_dark.svg"
}
alt={"GitHub Logo"}
width={24}
height={24}
/>
</Link>
<Link
href={
"https://github.com/FachschaftMathPhysInfo/pepp/issues/new?template=bug_report.md"
}
>
GitHub
</a>
.
<Bug className={"stroke-muted-foreground"} />
</Link>
</span>
</footer>
);
Expand Down
4 changes: 0 additions & 4 deletions frontend/next.config.mjs

This file was deleted.

10 changes: 10 additions & 0 deletions frontend/next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { NextConfig } from "next";
import { version } from "./package.json";

const nextConfig: NextConfig = {
env: {
NEXT_PUBLIC_APP_VERSION: version,
},
};

export default nextConfig;
1 change: 1 addition & 0 deletions frontend/public/github_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/public/github_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading