Skip to content

Commit

Permalink
style: image details
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasGleiter committed May 16, 2024
1 parent e3b7591 commit 20e05e4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions src/app/(lang)/(landing)/p/[id]/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { Icons } from '@/src/components/ui/icons';
import { Metadata } from 'next';
import Link from 'next/link';

export async function generateMetadata({ params }): Promise<Metadata> {
return {
title: 'Nature',
description: 'Explore the blackforst from above and find the locations',
applicationName: 'Findntravel',
keywords: [],
creator: 'Tobias Gleiter, Yannick Buekers',
};
}

export default function Layout({ children }: { children: React.ReactNode }) {
return (
<div className="flex w-screen overflow-y-auto min-h-screen inset-0">
<div className="flex flex-col gap-4 items-start lg:items-center justify-center w-full">
<Link className="flex flex-col gap-4 items-center" href={'/'}>
<div className="relative">
<Icons.tree className="w-8 h-8" />
</div>
<h1 className="flex items-center text-3xl md:text-4xl font-bold">
Blackforest from
<span className="bg-primary text-background pl-1 pr-2 ml-2">
above
</span>
</h1>
</Link>
<div className="rounded-lg overflow-hidden">{children}</div>
</div>
</div>
);
}
2 changes: 1 addition & 1 deletion src/app/(lang)/(landing)/p/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import ImageInfo from '@/src/components/ui/image-info';

export default function Page({ params }) {
const { id } = params;
// const id = 'dncseo7lnt9vookeqtov';

return <ImageInfo id={id} />;
}

0 comments on commit 20e05e4

Please sign in to comment.