Skip to content

Instantly share code, notes, and snippets.

View adaptive's full-sized avatar
🎯
Focusing

Hugo Romano adaptive

🎯
Focusing
View GitHub Profile
@adaptive
adaptive / getBgHero.ts
Created December 21, 2022 02:09 — forked from jasikpark/getBgHero.ts
Tool to generate a responsive `background-image: url("bg-hero.jpg");` for https://defined.net homepage
import { getPicture } from "@astrojs/image";
type BgHeroCSS = {
/** perfect for use w/ define:vars to inject */
cssProperty: string;
/** the source of the regular image */
imageSrc: string;
/** the sourceset used in the image-set */
imageSet: string;
/** the set useful for preloading
http://s3.amazonaws.com/alexa-static/top-1m.csv.zip
http://downloads.majestic.com/majestic_million.csv
https://ak.quantcast.com/quantcast-top-sites.zip
https://all-certificates.s3.amazonaws.com/domainnames.gz
http://crimeflare.net:82/domains/nsout.zip
https://statvoo.com/dl/top-1million-sites.csv.zip
http://s3-us-west-1.amazonaws.com/umbrella-static/top-1m.csv.zip
https://moz.com/top500/domains/csv
https://ausdomainledger.net/au-domains-latest.csv.gz