From 4b3ec5573241b9c71504dfd0bd5f181cbde19a49 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Sat, 13 Apr 2024 03:58:40 +0100 Subject: [Embeds] Embed subdomain landing page (#3501) * add build output to web build * simplify post-build step by copying everything at once * make script that converts placeholder -> iframe * dynamically resize iframe based on inner content Requires the iframe content to `postMessage` its height back up to the parent * add lang to embed * svg explicit height -> viewBox * add build output to web build * simplify post-build step by copying everything at once * attempt to fix go embed issue * rm changes to bskyweb * remove another bskyweb change * embed landing page * Drop xl breakpoint, too far down * Remove pointer enter behavior * Avoid button width jump * Escape HTML --------- Co-authored-by: Dan Abramov --- bskyembed/src/components/link.tsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 bskyembed/src/components/link.tsx (limited to 'bskyembed/src/components/link.tsx') diff --git a/bskyembed/src/components/link.tsx b/bskyembed/src/components/link.tsx new file mode 100644 index 000000000..7226ecf3d --- /dev/null +++ b/bskyembed/src/components/link.tsx @@ -0,0 +1,21 @@ +import {h} from 'preact' + +export function Link({ + href, + className, + ...props +}: { + href: string + className?: string +} & h.JSX.HTMLAttributes) { + return ( + evt.stopPropagation()} + className={`cursor-pointer ${className || ''}`} + {...props} + /> + ) +} -- cgit 1.4.1