fix and polish the return button
This commit is contained in:
parent
10b38e392a
commit
c2d76e002e
4 changed files with 19 additions and 21 deletions
|
@ -1,10 +1,15 @@
|
|||
import Link from "next/link";
|
||||
import { ArrowLeft } from "lucide-react";
|
||||
|
||||
export default function NewsLayout({ children }: { children: React.ReactNode }) {
|
||||
export default function NewsDetailLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<div className="max-w-4xl mx-auto p-4">
|
||||
<Link href="/" className="text-blue-500 hover:underline mb-4 inline-block">
|
||||
← Back to News List
|
||||
<Link
|
||||
href="/news"
|
||||
className="inline-flex items-center mb-4 text-sm font-medium text-black dark:text-white hover:underline"
|
||||
>
|
||||
<ArrowLeft className="w-4 h-4 mr-1" />
|
||||
Back
|
||||
</Link>
|
||||
{children}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue