1

借助 ChatGPT 帮我重构了一下博客,看看是什么水平

 1 year ago
source link: https://www.v2ex.com/t/922482
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  分享创造

借助 ChatGPT 帮我重构了一下博客,看看是什么水平

  leedarmau · darmau · 11 小时 7 分钟前 · 3463 次点击

最近用 next 把博客重写了一遍,过程中用到了 chatgpt 非常多的帮助,解决了很多做过就觉得很容易但没做过完全不知道怎么下手的问题。

我用它解决了很多 typescript 的报错,甚至还实现了一个 node 接口。关于这个的背景和过程,参见利用 ChatGPT 实现一个 Node.js API

另外这次我也强迫自己使用 tailwind 。虽然导致代码看起来有点复杂,但用起来挺顺手。

样式上用的是现成的 tailwindUI 组件,最后出来的效果还行。

利用上述提到的 node 接口,实现了展示摄影图片的拍摄参数和 GPS 信息的效果。

尤其是正文排版的改进,我非常满意。增加了正文图片可以全屏预览的功能。我觉得目前的文章阅读体验应该是博客里面最好的(吧

关于这次重构更多的介绍,可以看这里

部署上没有用 vercel 的服务,因为图片太多。尝试运行在自己服务器上,因此有时候可能会遇到加载缓慢的情况,估计是因为 next 在压缩图片。

链接放到下方。网站刚上线,需要各位就产品设计、体验、性能、网络等各方面提出建议,谢谢大家。

👉前往该站👈

刚想起来,copilot 也在默默的付出,我把它给忘了!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK