UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix(backlight): make demos mobile responsive and update video source (#934)
Abdimajidf1157a7befb1
diff --git a/apps/www/public/llms-full.txt b/apps/www/public/llms-full.txtindex 60be77c9..2a89c2f0 100644--- a/apps/www/public/llms-full.txt+++ b/apps/www/public/llms-full.txt@@ -3484,12 +3484,10 @@ import { Backlight } from "@/registry/magicui/backlight"export default function BacklightVideoDemo() {return (- <Backlight blur={40}>+ <Backlight blur={40} className="w-full"><iframe- className="block aspect-video max-w-lg rounded-xl"- width="512"- height="288"- src="https://www.youtube.com/embed/qxzbh6vPRZg"+ className="mx-auto aspect-video w-full max-w-lg"+ src="https://www.youtube.com/embed/9CJLtzzUphU"title="Gradient Loop Background"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerPolicy="strict-origin-when-cross-origin"@@ -3508,9 +3506,9 @@ import { Backlight } from "@/registry/magicui/backlight"export default function BacklightImageDemo() {return (- <Backlight>+ <Backlight className="w-full"><img- className="block max-w-lg rounded-xl"+ className="mx-auto h-auto w-full max-w-lg rounded-xl"src={"https://plus.unsplash.com/premium_photo-1672201106204-58e9af7a2888?q=80&w=1171&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"}diff --git a/apps/www/public/r/backlight-image-demo.json b/apps/www/public/r/backlight-image-demo.jsonindex 8be944b7..88cf7805 100644--- a/apps/www/public/r/backlight-image-demo.json+++ b/apps/www/public/r/backlight-image-demo.json@@ -9,7 +9,7 @@"files": [{"path": "registry/example/backlight-image-demo.tsx",- "content": "import { Backlight } from \"@/registry/magicui/backlight\"\n\nexport default function BacklightImageDemo() {\n return (\n <Backlight>\n <img\n className=\"block max-w-lg rounded-xl\"\n src={\n \"https://plus.unsplash.com/premium_photo-1672201106204-58e9af7a2888?q=80&w=1171&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n }\n alt=\"fancy gradient background\"\n />\n </Backlight>\n )\n}\n",+ "content": "import { Backlight } from \"@/registry/magicui/backlight\"\n\nexport default function BacklightImageDemo() {\n return (\n <Backlight className=\"w-full\">\n <img\n className=\"mx-auto h-auto w-full max-w-lg rounded-xl\"\n src={\n \"https://plus.unsplash.com/premium_photo-1672201106204-58e9af7a2888?q=80&w=1171&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n }\n alt=\"fancy gradient background\"\n />\n </Backlight>\n )\n}\n","type": "registry:example"}]diff --git a/apps/www/public/r/backlight-video-demo.json b/apps/www/public/r/backlight-video-demo.jsonindex d4bb77cf..79d3b294 100644--- a/apps/www/public/r/backlight-video-demo.json+++ b/apps/www/public/r/backlight-video-demo.json@@ -9,7 +9,7 @@"files": [{"path": "registry/example/backlight-video-demo.tsx",- "content": "import { Backlight } from \"@/registry/magicui/backlight\"\n\nexport default function BacklightVideoDemo() {\n return (\n <Backlight blur={40}>\n <iframe\n className=\"block aspect-video max-w-lg rounded-xl\"\n width=\"512\"\n height=\"288\"\n src=\"https://www.youtube.com/embed/qxzbh6vPRZg\"\n title=\"Gradient Loop Background\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n referrerPolicy=\"strict-origin-when-cross-origin\"\n allowFullScreen\n ></iframe>\n </Backlight>\n )\n}\n",+ "content": "import { Backlight } from \"@/registry/magicui/backlight\"\n\nexport default function BacklightVideoDemo() {\n return (\n <Backlight blur={40} className=\"w-full\">\n <iframe\n className=\"mx-auto aspect-video w-full max-w-lg\"\n src=\"https://www.youtube.com/embed/9CJLtzzUphU\"\n title=\"Gradient Loop Background\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n referrerPolicy=\"strict-origin-when-cross-origin\"\n allowFullScreen\n ></iframe>\n </Backlight>\n )\n}\n","type": "registry:example"}]diff --git a/apps/www/registry/example/backlight-image-demo.tsx b/apps/www/registry/example/backlight-image-demo.tsxindex e4b2256d..41706555 100644--- a/apps/www/registry/example/backlight-image-demo.tsx+++ b/apps/www/registry/example/backlight-image-demo.tsx@@ -2,9 +2,9 @@ import { Backlight } from "@/registry/magicui/backlight"export default function BacklightImageDemo() {return (- <Backlight>+ <Backlight className="w-full"><img- className="block max-w-lg rounded-xl"+ className="mx-auto h-auto w-full max-w-lg rounded-xl"src={"https://plus.unsplash.com/premium_photo-1672201106204-58e9af7a2888?q=80&w=1171&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"}diff --git a/apps/www/registry/example/backlight-video-demo.tsx b/apps/www/registry/example/backlight-video-demo.tsxindex a8b47e2e..1d3ee63b 100644--- a/apps/www/registry/example/backlight-video-demo.tsx+++ b/apps/www/registry/example/backlight-video-demo.tsx@@ -2,12 +2,10 @@ import { Backlight } from "@/registry/magicui/backlight"export default function BacklightVideoDemo() {return (- <Backlight blur={40}>+ <Backlight blur={40} className="w-full"><iframe- className="block aspect-video max-w-lg rounded-xl"- width="512"- height="288"- src="https://www.youtube.com/embed/qxzbh6vPRZg"+ className="mx-auto aspect-video w-full max-w-lg"+ src="https://www.youtube.com/embed/9CJLtzzUphU"title="Gradient Loop Background"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerPolicy="strict-origin-when-cross-origin"