Skip to content

Instantly share code, notes, and snippets.

@bre7
bre7 / Image.astro
Last active January 3, 2025 19:14 — forked from sannajammeh/Image.astro
Astro Responsive Image
---
import type { ImageMetadata, ImageTransform } from "astro";
import { getImage } from "astro:assets";
import LoadableImage from "./LoadableImage.astro";
type Props = {
src: ImageMetadata;
alt: string;
/**
* Array of screens to generate the image for i.e [320, 480, 1200]
@bre7
bre7 / readme.md
Created April 27, 2025 21:31
Twemoji Country Flags font with NextJS + Tailwind

Adding emoji country flag support to NextJS + Tailwind app

@components/CountryFlagsPolyfill.tsx

"use client"

import { polyfillCountryFlagEmojis } from "country-flag-emoji-polyfill"
import { useEffect } from "react"

export function CountryFlagsPolyfill() {
@bre7
bre7 / readme.md
Created May 9, 2025 15:20
How to test AV1 hardware decoding