Hacker News 中文摘要

RSS订阅

展示 HN:Nutrepedia——用Clojure和Htmx构建的29种地区营养信息 -- Show HN: Nutrepedia – Nutrition info in 29 locales built with Clojure and Htmx

文章摘要

Nutrepedia是一个多语言食品营养信息平台,提供英语、西班牙语、中文等十多种语言版本,帮助用户了解所吃食物的营养成分。网站通过不同国家/地区子站点提供本地化服务。

文章总结

以下是经过编辑整理的中文内容摘要:

Nutrepedia | 探索食物营养

网站提供多语言版本(包括中文),主要功能是为用户提供各类食物的详细营养信息。

以"蓝莓"为例展示的营养数据: - 类别:水果 - 计量标准:1杯(148克)带皮生蓝莓 - 营养成分: • 蛋白质:1.1克 • 总碳水化合物:21.45克
• 总脂肪:0.49克 • 热量:84.36千卡

网站特色: 1. 提供每日精选食物推荐(可通过邮件订阅) 2. 收录多种常见食物的营养数据,包括: - 苹果、牛油果、香蕉 - 西兰花、鹰嘴豆、黄瓜 - 羽衣甘蓝、扁豆、燕麦 - 桃子、梨等

注:删减了重复的语言选择列表和图片描述等非核心内容,保留了主要的营养信息展示方式和网站功能特点。

评论总结

以下是评论内容的总结:

正面评价(设计简洁美观、功能实用): - "Simple and beautiful, I love it."(简单美观,我很喜欢) - "awesome, very good looking and simple, useful functionality"(很棒,外观精美简洁,功能实用)

技术实现赞赏: - 作者Jovan介绍项目采用Clojure等技术栈,支持多语言搜索功能 - "The search piece has been the most interesting technically..."(搜索功能在技术层面最有趣)

功能改进建议: 1. 移动端输入问题: - "I can't enter a serving size that's not a whole number on mobile..."(移动端无法输入非整数份量) - "Can't seem to delete the input and type something new..."(Firefox移动版无法清除输入)

  1. 搜索功能问题:
  • "A search for salmon includes almonds in the results..."(搜索"三文鱼"会出现杏仁结果)
  • "The search results aren't hyperlinks? So middle clicking..."(搜索结果不支持中键打开新标签)
  1. 显示设置建议:
  • "I'd prefer to see the information per 100g by default..."(建议默认显示每100克数据)
  • "the search bar–the background colour is pink and the text colour is yellow..."(搜索栏粉底黄字影响阅读)

其他询问: - "what is the source of the data?"(数据来源是什么?) - "how do you handle multi languages?"(如何处理多语言?)

优化认可: - "Great optimization!"(优化得很棒!) - "cool! i see at least two reasons in the title to upvote this"(标题就有两个值得点赞的理由)