From 62a141ff6cce0c0eb29885fa855b83fa11a6577b Mon Sep 17 00:00:00 2001 From: maddalax Date: Mon, 28 Oct 2024 11:49:21 -0500 Subject: [PATCH] blur overlay on iframe --- htmgo-site/pages/examples/index.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htmgo-site/pages/examples/index.go b/htmgo-site/pages/examples/index.go index 7c06985..fecac96 100644 --- a/htmgo-site/pages/examples/index.go +++ b/htmgo-site/pages/examples/index.go @@ -110,11 +110,15 @@ func snippetView(ctx *h.RequestContext, snippet *Snippet) *h.Element { h.Class("h-full min-h-[800px] w-[50vw]"), ), h.A( - h.Class("absolute top-0 left-0 w-full h-full bg-transparent cursor-pointer"), + h.Class("absolute top-0 left-0 w-full h-full bg-gray-800 bg-opacity-50 backdrop-blur-[2px] flex items-center justify-center cursor-pointer"), h.Href( snippet.externalRoute, ), h.Target("_blank"), + h.Span( + h.Text("Click to view"), + h.Class("text-white text-lg font-bold"), + ), ), ), h.Div(