• 请不要在回答技术问题时复制粘贴 AI 生成的内容
daidr
1.04D
V2EX  ›  程序员

把自己新的个人博客前端写完了

  •  7
     
  •   daidr ·
    PRO
    ·
    daidr · Oct 13, 2023 · 10223 views
    This topic created in 968 days ago, the information mentioned may be changed or developed.

    之前用的是 WordPress ,一直想自己实现一套博客系统。 现在前端差不多写完了,第一次用 Nuxt.js ,也用了很多新的特性,前前后后忙了挺久,不过现在后端依旧是 WordPress ,前端部署在 Vercel ,自己感觉还行。就想着发出来给大家看看。

    https://im.daidr.me

    121 replies    2023-10-18 00:50:22 +08:00
    1  2  
    impaul
        101
    impaul  
       Oct 13, 2023   ❤️ 1
    大佬太强了,相对而言感觉我新做的就要简单很多了,没有什么花里胡哨的动画,也是很常见的排版布局

    https://beta.paul.ren/
    daidr
        102
    daidr  
    OP
    PRO
       Oct 13, 2023
    @yjd #92 可能是因为我的滚动容器不是 body😣
    cyp0633
        103
    cyp0633  
       Oct 13, 2023
    难得的能把动效做得绚丽却又不喧宾夺主
    xyxsw2023
        104
    xyxsw2023  
       Oct 13, 2023
    厉害!
    geebos
        105
    geebos  
    PRO
       Oct 13, 2023
    AI 摘要能放到首页的摘要里就更好了
    daidr
        106
    daidr  
    OP
    PRO
       Oct 14, 2023
    @geebos #105 设想是这样的,不过数据库设计上有有些问题,可能得等哪天自己设计后端了才能这么搞😂
    HaroldFinchNYC
        107
    HaroldFinchNYC  
       Oct 14, 2023
    问个问题哈

    后端用 wordpress 的话,有个问题,就是你怎么渲染 wordpress 那边的 post ,wordpress 存的 post 数据结构乱的很,也只有 他们自己能识别出来

    所以你是怎么把 wordpress 的数据进行转换的呢
    daidr
        108
    daidr  
    OP
    PRO
       Oct 14, 2023
    @HaroldFinchNYC 直接获取 html 进行渲染,jsdom 处理插件产生的 html 结构
    8024ldbryant
        109
    8024ldbryant  
       Oct 14, 2023
    很赞
    tonytonychopper
        110
    tonytonychopper  
       Oct 14, 2023
    点进去有点卡顿,感觉性能有点问题
    uvwlab
        111
    uvwlab  
       Oct 14, 2023
    我也想学
    daidr
        112
    daidr  
    OP
    PRO
       Oct 14, 2023
    @uvwlab #111 开源了,可以在前面几楼找找
    PeekPop
        113
    PeekPop  
       Oct 14, 2023
    舒服,但在 Firefox 上好卡
    daidr
        114
    daidr  
    OP
    PRO
       Oct 14, 2023
    @ltuxer #113 会不会是没开硬件加速,我感觉还挺流畅的
    Terminl
        115
    Terminl  
       Oct 14, 2023
    @daidr 有一点不太明白,为什么博客要加入多个前端框架,这样做不会卡吗?
    ivvei
        116
    ivvei  
       Oct 15, 2023
    很不错,很好看
    daidr
        117
    daidr  
    OP
    PRO
       Oct 15, 2023
    @Terminl #115 多个前端框架是指?
    daidr
        118
    daidr  
    OP
    PRO
       Oct 15, 2023
    @Terminl #115 如果你说的是 wappalyzer 检测结果的话,我加了一点点代码欺骗 wappalyzer ,所以检测出来是不对的
    seahorzhang
        119
    seahorzhang  
       Oct 17, 2023 via iPhone
    这个做的太棒了,那个当前状态感觉非常好,手机上快捷指令可以分享下思路吗?是监测到专注模式自动请求指定网址?
    HarperLucky
        120
    HarperLucky  
       Oct 17, 2023
    动画真棒啊!很丝滑~
    daidr
        121
    daidr  
    OP
    PRO
       Oct 18, 2023
    @seahorzhang #119 对的,所有专注模式改变都会运行快捷指令,然后快捷指令内获取当前专注模式,发起请求
    1  2  
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2995 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 13:13 · PVG 21:13 · LAX 06:13 · JFK 09:13
    ♥ Do have faith in what you're doing.