Case study: https://www.awwwards.com/choonsiks-diary.html
1,480 karma · joined May 15, 2022
Case study: https://www.awwwards.com/choonsiks-diary.html
I first learned about CBC from this article: https://future.com/cohort-based-courses/
# top (title / url)
news.ycombinator.com##tr.athing span.titleline > a:has-text(/(Musk|Twitter|Mastodon)/):upward(tr)
# bottom (stats / comments)
news.ycombinator.com##tr.athing span.titleline > a:has-text(/(Musk|Twitter|Mastodon)/):upward(tr) + *
(warning: there is a side effect where it would mess up the formatting of the effected posts such as this one)I think embedding other websites in iframe may fall into a gray area. This is my reasoning: even though the target website can include X-Frame-Options: DENY in their header, a lot of them don't, and it opens their websites for abuse, whether intentional (from your POV, e.g. clickjacking), or unintentional (e.g. a DDOS attack on your website may also affect the target websites). Because of this, I have been careful not to embed cross-domain websites in iframe.
The issue that I was trying to bring up is actually not about iframes, but rather, other website code and assets that you copied and hosted in /sites/ directory. As you know, websites and their assets (logo, font, etc) are copyrighted materials - so we can't (directly) use it without the owner's permission. I don't know if this usage would fall under Fair Use though.
As previously mentioned, I'm not versed in legal stuff.
> Do you know of a way to automatically extract the palette or would you do it manually?
CSS Overview panel does the job. It groups colors by usage, such as by background and by text, and it also gives you the contrast level for each. I'm sure you can find other tools for extracting colors. Most recently, "HTML To Figma" by Builder.io is the one that gains a lot of hype. It basically converts any web page into figma layers that you can edit. From there, you can extract all of the design tokens, including colors.
I don't know any tools that can automatically extract and label a color palette with 100% precision. If you care about accuracy, I think you still need to do a bit of curation / manual work.
I hope this comment is not taken as a criticism, which you have received a lot already in this thread. I myself use Next.js (and Cloudflare stack) in almost all of my projects and I feel very productive with it.
Just throwing an idea here: since the viewer of your website may need to copy other website's design, it would be nice if you can save them a few clicks/keystrokes by providing a color palette. One thing I learned recently from creating a personal tools like yours (with additional types, elements, motion pattern, and tech stack) is that we can extract colors from any page easily using CSS Overview panel in Chromium Dev Tools.
Lastly, I just want to congratulate you on shipping!
Thank you for your thoughtful advice.
The article touches on something that resonates with me, that is you may find yourself learning more (practical skills) on the job. So I wonder if there is a way to learn faster without having to switch careers, such as being a part-time designer at startups, practicing under a mentor, or indie-hacking a product. Does anyone have any advice on this?
stable-diffusion/src/k-diffusion/k_diffusion/sampling.py
(before)
from typing import Optional, Callable, TypeAlias
(after) from typing import Optional, Callable
from typing_extensions import TypeAlias
This issue is tracked in https://github.com/lstein/stable-diffusion/issues/302• Lazy iframe loading
• CSS color-mix() function
• specifying the interpolation color space in CSS gradients
• `scan` media query
• WebDriver – three Shadow Root commands
news.ycombinator.com##tr.athing:has(+ tr .subtext .age:first-of-type)
news.ycombinator.com##tr:has(> .subtext .age:first-of-type)