Skip to content

Commit

Permalink
load thg banner from url
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Wrege committed Dec 4, 2023
1 parent ebb56f6 commit 429facb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY .yarn .yarn

RUN yarn install --immutable

FROM node:18-alpine as builder
FROM node:20-alpine as builder

WORKDIR /app

Expand Down
10 changes: 3 additions & 7 deletions components/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import bannerThg from "../public/banner/banner_parkfuchs_thg.png";

import Image from "next/image";
import Link from "next/link";

interface Props {
Expand All @@ -11,11 +8,10 @@ export default function Banner({ link }: Props): JSX.Element {
return (
<div className="fixed left-0 right-0 bottom-0 bg-green z-10 w-full h-[4.3rem] banner-shadow md:h-[5.0rem]">
<Link prefetch={false} href={link} target="_blank">
<Image
src={bannerThg}
height={120}
<img
src="https://parkfuchs.app/images/banner/banner_parkfuchs_thg.png"
alt={"thg Banner"}
className="mx-auto relative bottom-3 max-sm:bottom-[12px]"
className="mx-auto relative bottom-3 max-sm:bottom-[12px] h-[120px]"
/>
</Link>
</div>
Expand Down

0 comments on commit 429facb

Please sign in to comment.