UNPKG

galaxy-uniapp-mcp-server

Version:

Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成

119 lines 9.67 kB
{ "id": "StealthWorm_pretty-lion-68", "name": "pretty-lion-68", "category": "buttons", "author": "StealthWorm", "description": "pretty-lion-68 组件 (button, animation, gradient, interactive)", "tags": [ "button", "animation", "gradient", "interactive" ], "original": { "html": "<button class=\"btn\" type=\"button\">\n <strong>SPACE</strong>\n <div id=\"container-stars\">\n <div id=\"stars\"></div>\n </div>\n\n <div id=\"glow\">\n <div class=\"circle\"></div>\n <div class=\"circle\"></div>\n </div>\n</button>", "css": "/* From Uiverse.io by StealthWorm - Tags: button */\n.btn {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 13rem;\n height: 3rem;\n background-size: 300% 300%;\n backdrop-filter: blur(1rem);\n border-radius: 5rem;\n transition: 0.5s;\n animation: gradient_301 5s ease infinite;\n border: double 4px transparent;\n background-image: linear-gradient(#212121, #212121), linear-gradient(137.48deg, #ffdb3b 10%,#FE53BB 45%, #8F51EA 67%, #0044ff 87%);\n background-origin: border-box;\n background-clip: content-box, border-box;\n}\n\n#container-stars {\n position: fixed;\n z-index: -1;\n width: 100%;\n height: 100%;\n overflow: hidden;\n transition: 0.5s;\n backdrop-filter: blur(1rem);\n border-radius: 5rem;\n}\n\nstrong {\n z-index: 2;\n font-family: 'Avalors Personal Use';\n font-size: 12px;\n letter-spacing: 5px;\n color: #FFFFFF;\n text-shadow: 0 0 4px white;\n}\n\n#glow {\n position: absolute;\n display: flex;\n width: 12rem;\n}\n\n.circle {\n width: 100%;\n height: 30px;\n filter: blur(2rem);\n animation: pulse_3011 4s infinite;\n z-index: -1;\n}\n\n.circle:nth-of-type(1) {\n background: rgba(254, 83, 186, 0.636);\n}\n\n.circle:nth-of-type(2) {\n background: rgba(142, 81, 234, 0.704);\n}\n\n.btn:hover #container-stars {\n z-index: 1;\n background-color: #212121;\n}\n\n.btn:hover {\n transform: scale(1.1)\n}\n\n.btn:active {\n border: double 4px #FE53BB;\n background-origin: border-box;\n background-clip: content-box, border-box;\n animation: none;\n}\n\n.btn:active .circle {\n background: #FE53BB;\n}\n\n#stars {\n position: relative;\n background: transparent;\n width: 200rem;\n height: 200rem;\n}\n\n#stars::after {\n content: \"\";\n position: absolute;\n top: -10rem;\n left: -100rem;\n width: 100%;\n height: 100%;\n animation: animStarRotate 90s linear infinite;\n}\n\n#stars::after {\n background-image: radial-gradient(#ffffff 1px, transparent 1%);\n background-size: 50px 50px;\n}\n\n#stars::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: -50%;\n width: 170%;\n height: 500%;\n animation: animStar 60s linear infinite;\n}\n\n#stars::before {\n background-image: radial-gradient(#ffffff 1px, transparent 1%);\n background-size: 50px 50px;\n opacity: 0.5;\n}\n\n@keyframes animStar {\n from {\n transform: translateY(0);\n }\n\n to {\n transform: translateY(-135rem);\n }\n}\n\n@keyframes animStarRotate {\n from {\n transform: rotate(360deg);\n }\n\n to {\n transform: rotate(0);\n }\n}\n\n@keyframes gradient_301 {\n 0% {\n background-position: 0% 50%;\n }\n\n 50% {\n background-position: 100% 50%;\n }\n\n 100% {\n background-position: 0% 50%;\n }\n}\n\n@keyframes pulse_3011 {\n 0% {\n transform: scale(0.75);\n box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);\n }\n\n 70% {\n transform: scale(1);\n box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);\n }\n\n 100% {\n transform: scale(0.75);\n box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/StealthWorm_pretty-lion-68.html" }, "uniapp": { "template": "<button class=\"btn\" type=\"button\"></button>\n <strong>SPACE</strong>\n <view id=\"container-stars\"></view>\n <view id=\"stars\"></view>\n </div>\n\n <view id=\"glow\"></view>\n <view class=\"circle\"></view>\n <view class=\"circle\"></view>\n </div>\n</button>", "script": "export default {\n name: 'GalaxyPrettyLion68',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by StealthWorm - Tags: button */\n.btn {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 13rem;\n height: 3rem;\n background-size: 300% 300%;\n backdrop-\n border-radius: 5rem;\n transition: 0.5s;\n animation: gradient_301 5s ease infinite;\n border: double 8rpx transparent;\n background-image: linear-gradient(#212121, #212121), linear-gradient(137.48deg, #ffdb3b 10%,#FE53BB 45%, #8F51EA 67%, #0044ff 87%);\n background-origin: border-box;\n background-clip: content-box, border-box;\n}\n\n#container-stars {\n position: fixed;\n z-index: -1;\n width: 100%;\n height: 100%;\n overflow: hidden;\n transition: 0.5s;\n backdrop-\n border-radius: 5rem;\n}\n\nstrong {\n z-index: 2;\n font-family: 'Avalors Personal Use';\n font-size: 24rpx;\n letter-spacing: 10rpx;\n color: #FFFFFF;\n /* #ifdef H5 */\n text-shadow: 0 0 8rpx white;\n /* #endif */\n}\n\n#glow {\n position: absolute;\n display: flex;\n width: 12rem;\n}\n\n.circle {\n width: 100%;\n height: 60rpx;\n \n animation: pulse_3011 4s infinite;\n z-index: -1;\n}\n\n.circle:nth-of-type(1) {\n background: rgba(254, 83, 186, 0.636);\n}\n\n.circle:nth-of-type(2) {\n background: rgba(142, 81, 234, 0.704);\n}\n\n.btn:hover #container-stars {\n z-index: 1;\n background-color: #212121;\n}\n\n.btn:hover {\n transform: scale(1.1)\n}\n\n.btn:active {\n border: double 8rpx #FE53BB;\n background-origin: border-box;\n background-clip: content-box, border-box;\n animation: none;\n}\n\n.btn:active .circle {\n background: #FE53BB;\n}\n\n#stars {\n position: relative;\n background: transparent;\n width: 200rem;\n height: 200rem;\n}\n\n#stars::after {\n content: \"\";\n position: absolute;\n top: -10rem;\n left: -100rem;\n width: 100%;\n height: 100%;\n animation: animStarRotate 90s linear infinite;\n}\n\n#stars::after {\n background-image: radial-gradient(#ffffff 2rpx, transparent 1%);\n background-size: 100rpx 100rpx;\n}\n\n#stars::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: -50%;\n width: 170%;\n height: 500%;\n animation: animStar 60s linear infinite;\n}\n\n#stars::before {\n background-image: radial-gradient(#ffffff 2rpx, transparent 1%);\n background-size: 100rpx 100rpx;\n opacity: 0.5;\n}\n\n@keyframes animStar {\n from {\n transform: translateY(0);\n }\n\n to {\n transform: translateY(-135rem);\n }\n}\n\n@keyframes animStarRotate {\n from {\n transform: rotate(360deg);\n }\n\n to {\n transform: rotate(0);\n }\n}\n\n@keyframes gradient_301 {\n 0% {\n background-position: 0% 50%;\n }\n\n 50% {\n background-position: 100% 50%;\n }\n\n 100% {\n background-position: 0% 50%;\n }\n}\n\n@keyframes pulse_3011 {\n 0% {\n transform: scale(0.75);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n }\n\n 70% {\n transform: scale(1);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 0 20rpx rgba(0, 0, 0, 0);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n }\n\n 100% {\n transform: scale(0.75);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n }\n}\n", "component_name": "GalaxyPrettyLion68" }, "platforms": { "h5": true, "mp-weixin": true, "mp-alipay": true, "mp-baidu": true, "mp-toutiao": true, "app-plus": true }, "props": [ { "name": "disabled", "type": "Boolean", "default": false, "required": false, "description": "是否禁用" }, { "name": "text", "type": "String", "default": "按钮", "required": false, "description": "按钮文字" }, { "name": "type", "type": "String", "default": "primary", "required": false, "description": "按钮类型" } ], "events": [ { "name": "click", "description": "点击事件", "parameters": [ "event" ] } ], "slots": [ { "name": "", "description": "", "props": [] } ], "compatibility": { "h5": { "supported": true, "issues": [], "alternatives": [] }, "mp-weixin": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 text-shadow 属性", "不支持 filter 属性", "不支持 backdrop-filter 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 text-shadow 属性", "不支持 filter 属性", "不支持 backdrop-filter 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "high", "bundle_size": 3087, "render_cost": "high", "memory_usage": "high" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:34.875Z", "updated_at": "2025-07-31T07:55:34.875Z" }