@@ -3,40 +3,57 @@ import { PageHeader } from '~/components/ui/page-header'
33import { Container } from '~/components/ui/container'
44import { FriendsList } from './friends-list'
55import friends from '~/json/friends.json'
6+ import { SITE_METADATA } from '~/data/site-metadata'
7+ import { AUTHOR_INFO } from '~/data/author-info'
68
7- // const MAX_POSTS_DISPLAY = 5
8- // const MAX_SNIPPETS_DISPLAY = 6
9-
10- export const metadata = genPageMetadata ( { title : 'My friends and tech bloggers' } )
9+ export const metadata = genPageMetadata ( { title : 'Friends' } )
1110
1211export default async function FriendsPage ( ) {
1312 const friendsList = friends . filter ( ( f ) => f . type === 'friend' )
1413 const bloggersList = friends . filter ( ( f ) => f . type === 'techStar' )
14+
1515 return (
16- // <Home
17- // posts={allCoreContent(sortPosts(allBlogs)).slice(0, MAX_POSTS_DISPLAY)}
18- // snippets={allCoreContent(sortPosts(allSnippets)).slice(0, MAX_SNIPPETS_DISPLAY)}
19- // />
2016 < Container as = "div" className = "pt-4 lg:pt-12" >
2117 < PageHeader
2218 title = "Friends"
2319 description = "My friends and the tech bloggers I recommend."
2420 className = "border-b border-gray-200 dark:border-gray-700"
2521 />
26- < div className = "py-5 md:py-10" >
27- < h3 className = "mb-6 text-2xl font-bold leading-9 tracking-tight text-gray-900 dark:text-gray-100 md:text-3xl" >
22+
23+ < div className = "py-10" >
24+ < h3 className = "mb-6 text-2xl font-bold leading-9 tracking-tight text-gray-900 dark:text-gray-100" >
2825 Friends
2926 </ h3 >
30- < div className = "space-y-16" >
31- < FriendsList friends = { friendsList } />
32- </ div >
27+ < FriendsList friends = { friendsList } />
3328 </ div >
34- < div className = "mt-6 border-t border-gray-200 py-5 dark:border-gray-700 md:mt-10 md:py-10" >
35- < h3 className = "mb-6 text-2xl font-bold leading-9 tracking-tight text-gray-900 dark:text-gray-100 md:mb-8 md:text-3xl" >
36- Technical bloggers
29+
30+ < div className = "border-t border-gray-200 py-10 dark:border-gray-700" >
31+ < h3 className = "mb-6 text-2xl font-bold leading-9 tracking-tight text-gray-900 dark:text-gray-100" >
32+ Technical Bloggers
33+ </ h3 >
34+ < FriendsList friends = { bloggersList } />
35+ </ div >
36+
37+ < div className = "border-t border-gray-200 py-10 dark:border-gray-700" >
38+ < h3 className = "mb-6 text-2xl font-bold leading-9 tracking-tight text-gray-900 dark:text-gray-100" >
39+ Exchange Links
3740 </ h3 >
38- < div className = "space-y-16" >
39- < FriendsList friends = { bloggersList } />
41+ < div className = "prose max-w-none dark:prose-invert" >
42+ < p >
43+ If you are interested in exchanging links with me, please feel free to{ ' ' }
44+ < a href = { `mailto:${ AUTHOR_INFO . email } ` } > contact me</ a > .
45+ </ p >
46+ < p >
47+ < strong > Format:</ strong >
48+ </ p >
49+ < pre >
50+ < code className = "language-yaml" >
51+ { `Name: ${ SITE_METADATA . title }
52+ Url: ${ SITE_METADATA . siteUrl }
53+ Slogan: ${ SITE_METADATA . description }
54+ Avatar: ${ SITE_METADATA . siteUrl } ${ SITE_METADATA . siteLogo } ` }
55+ </ code >
56+ </ pre >
4057 </ div >
4158 </ div >
4259 </ Container >
0 commit comments