TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Releasing my first real open source project – Captionss

51 点作者 jbranchaud超过 11 年前

15 条评论

woah超过 11 年前
Why is this a plugin? I&#x27;m likely only going to be using one of these types of captions, which I can write in about 5 lines of stylus. The rest of the options that you added to make this a &#x27;real open source project&#x27; are then cruft.<p>EDIT: Sorry, not to denigrate your hard work, but I was burned early in my career by trying to use too many labor saving plugins. Later, I learned how to code correctly. I found that I could accomplish in 30 lines of js and 10 lines of css what I had previously downloaded a 500 line plugin for. I wondered why people found it necessary to build such bloated plugins, and realized that it probably stems from a desire to make a &#x27;real, full-featured project&#x27;.
评论 #7074366 未加载
评论 #7074256 未加载
评论 #7075048 未加载
jbranchaud超过 11 年前
I built captionss.<p>This is my first legitimate open-source project, I would really appreciate any feedback and suggestions related to the project as well as the landing page (captionss.com).
评论 #7074149 未加载
评论 #7074077 未加载
评论 #7073807 未加载
评论 #7075351 未加载
javajosh超过 11 年前
Looks like some pretty solid CSS with one exception: you are changing font size and colors for the <i>default</i> figure tag. While it&#x27;s not a common tag, it is used elsewhere. This may cause issues for some users, causing them to have to prefix your selectors.
评论 #7074166 未加载
xerophtye超过 11 年前
Aww.... i thought the library decided for itself whether to use light captions or dark ones based on the image. Still pretty cool stuff!<p>Btw don&#x27;t listen to the Nay-sayers. I am a programmer but my css sucks and i for one find this very very helpful.
jimhart3000超过 11 年前
I really wish the pages for projects like these would devote even a small section of their documentation to accessibility. I know it&#x27;s not usually top of mind, and not everyone is bound by Sec508, but it is an oft-ignored best practice.<p>I&#x27;m not saying this is inaccessible - it looks like it would be okay at least as far as screen readers are concerned, though there may be color contrast issues depending on the image (here&#x27;s an idea for a cool project - analyze the image and set a color on the caption that meets WCAG AA contrast ratios). It&#x27;s just every time I see a some cool new css&#x2F;js wizardry, the only way I can find out whether there&#x27;s any accessibility compliance is to poke through the rendered markup, test out hover states, etc.
publicfig超过 11 年前
Looks simple and cool, thanks for sharing!<p>How does this support touch devices? Do they have to tap on the picture to see the caption, or does it show up automatically? I could see that being an issue if clicking on the image also brings up a full-size version of the image.
评论 #7074272 未加载
dustyneuron超过 11 年前
Looks very pretty, as does the semantic markup. Personally I&#x27;d prefer it if there was a little less alpha, e.g. on the Malta pic the text isn&#x27;t so clear...
评论 #7073982 未加载
ssully超过 11 年前
Looks really nice! The animations are slick and the implementation seems simple enough.
jtheory超过 11 年前
It&#x27;d help to include at least basic support for some older browsers -- there are still a decent number of users on IE8, for example, but you seem to support only 9+.
seivan超过 11 年前
Hmm, how would one pop to the first page for ones open source tools? Asking because I&#x27;d like it to :(
tutt超过 11 年前
You have to get started somewhere. Cheers for putting your neck out. Demo renders alright on my iPhone.
Ingon超过 11 年前
Quite nice. You can think about touch interactions (maybe you have, but it was not working on iPhone)
amarcus超过 11 年前
It would be good for it to support animations (fade in&#x2F;out, slide up&#x2F;down etc...).
评论 #7073947 未加载
hrjet超过 11 年前
Nice start!<p>What would be really cool: slideshow of several images + captions.
评论 #7074619 未加载
atteeela超过 11 年前
Just what I needed, thanks for creating and sharing it!
评论 #7074850 未加载