@@ -8,7 +8,7 @@ import { Metadata } from "next";
88import { MoveRightIcon , MoveUpRightIcon } from "lucide-react" ;
99import Image from "next/image" ;
1010import Link from "next/link" ;
11-
11+ import Footer from "@/components/footer" ;
1212interface IProps {
1313 params : { slug : string [ ] } ;
1414}
@@ -55,12 +55,32 @@ export default function page({ params }: IProps) {
5555 }
5656
5757 return (
58- < div className = "max-w-3xl mx-auto" >
58+ < div className = "max-w-3xl mt-8 mx-auto" >
5959 < div className = "border-b border-black pb-6 mb-6" >
60- < Text className = "text-muted-foreground text-sm" >
61- { format ( new Date ( blog . publishedAt ) , "dd, MMMM yyyy" ) }
62- </ Text >
63- < Text as = "h2" className = "mb-2" >
60+ < div className = "flex items-center gap-4 mb-6" >
61+ < Text className = "text-muted-foreground text-sm font-medium" >
62+ { format ( new Date ( blog . publishedAt ) , "dd, MMMM yyyy" ) }
63+ </ Text >
64+ < Text > |</ Text >
65+ < div className = "flex items-center gap-3" >
66+ { blog . tags . map ( ( tag ) => (
67+ < Badge
68+ key = { tag }
69+ size = "sm"
70+ variant = "surface"
71+ className = { `bg-${
72+ [ "red" , "green" , "blue" , "yellow" , "purple" , "pink" ] [
73+ blog . tags . indexOf ( tag ) % 6
74+ ]
75+ } -300`}
76+ >
77+ { tag }
78+ </ Badge >
79+ ) ) }
80+ </ div >
81+ </ div >
82+
83+ < Text as = "h1" className = "mb-2" >
6484 { blog . title }
6585 </ Text >
6686 < p className = "text-lg text-muted-foreground mb-8" >
@@ -81,13 +101,24 @@ export default function page({ params }: IProps) {
81101 </ Avatar >
82102 < div >
83103 < Text as = "h5" > { blog . author . name } </ Text >
84- < Link
85- href = { `https://x.com/@${ blog . author . x } ` }
86- target = "_blank"
87- className = "text-muted-foreground"
88- >
89- @{ blog . author . x }
90- </ Link >
104+ { blog . author . linkedin && (
105+ < Link
106+ href = { `https://www.linkedin.com/in/${ blog . author . linkedin } ` }
107+ target = "_blank"
108+ className = "text-muted-foreground"
109+ >
110+ @{ blog . author . linkedin }
111+ </ Link >
112+ ) }
113+ { blog . author . x && (
114+ < Link
115+ href = { `https://x.com/@${ blog . author . x } ` }
116+ target = "_blank"
117+ className = "text-muted-foreground"
118+ >
119+ @{ blog . author . x }
120+ </ Link >
121+ ) }
91122 </ div >
92123 </ div >
93124
0 commit comments