-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import Layout from '../../components/Layout' | ||
import ezbdc from '@/assets/friendlinks/ezbdc.jpg' | ||
import kk from '@/assets/friendlinks/kk.jpg' | ||
import web_worker from '@/assets/friendlinks/web-worker.png' | ||
import type React from 'react' | ||
|
||
export const FriendLinks: React.FC = () => { | ||
const links = [ | ||
{ | ||
title: 'ez背单词', | ||
href: 'https://ezbdc.dashu.ai', | ||
imgSrc: ezbdc, | ||
description: '一款极简的英文单词学习应用,可以非常方便高效地学习英文,具有有挑战性的单词背诵模式,无需注册,下载即用', | ||
}, | ||
{ | ||
title: 'Kai', | ||
href: 'https://kaiyi.cool/', | ||
imgSrc: kk, | ||
description: 'Kai 的个人博客,记录了一些技术文章,生活感悟,以及一些有趣的小项目', | ||
}, | ||
{ | ||
title: 'Web Worker-前端程序员都爱听', | ||
href: 'https://www.xiaoyuzhoufm.com/podcast/613753ef23c82a9a1ccfdf35', | ||
imgSrc: web_worker, | ||
description: | ||
'Web Worker 播客是几个前端程序员闲聊的前端中文音频播客节目。节目围绕程序员领域瞎聊,聊资讯、聊职场、聊技术选型……只要是和 web 开发有关的都可以聊。', | ||
}, | ||
] | ||
|
||
return ( | ||
<Layout> | ||
<div className="flex w-full flex-1 flex-col items-center px-4 pt-20"> | ||
<div className="flex w-full max-w-md flex-grow flex-col items-center"> | ||
<div className="mt-5 text-center text-lg font-bold">友情链接</div> | ||
<div className="links flex w-full flex-col items-center gap-y-8 py-5"> | ||
{links.map((link, index) => ( | ||
<a | ||
key={index} | ||
title={link.title} | ||
href={link.href} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="linkItem flex w-full items-center overflow-hidden" | ||
> | ||
<div className="mr-3 flex h-8 w-8 flex-shrink-0 items-center justify-center bg-gray-200"> | ||
<img src={link.imgSrc} alt={link.title} className="h-full w-full object-cover" /> | ||
</div> | ||
<div className="flex-1"> | ||
<div className="pb-1 text-sm font-bold">{link.title}</div> | ||
<div className="text-xs text-gray-500">{link.description}</div> | ||
</div> | ||
</a> | ||
))} | ||
</div> | ||
</div> | ||
<div className="mt-auto pb-5 text-center text-sm text-gray-500"> | ||
想要添加友链?请联系邮箱: | ||
<a href="mailto:[email protected]" className="text-blue-500"> | ||
[email protected] | ||
</a> | ||
</div> | ||
</div> | ||
</Layout> | ||
) | ||
} |