UNPKG

galaxy-uniapp-mcp-server

Version:

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

114 lines 6.66 kB
{ "id": "vikramsinghnegi_massive-panda-81", "name": "massive-panda-81", "category": "buttons", "author": "vikramsinghnegi", "description": "massive-panda-81 组件 (animation, button, hover me, gradient, interactive)", "tags": [ "animation", "button", "hover me", "gradient", "interactive" ], "original": { "html": "<button class=\"youtube-button\">\n <div class=\"svg-wrapper-1\">\n <div class=\"svg-wrapper\">\n <svg height=\"24\" width=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M0 0h24v24H0z\" fill=\"none\"></path>\n <path d=\"M1.946 9.315c-.522-.174-.527-.455.01-.634l19.087-6.362c.529-.176.832.12.684.638l-5.454 19.086c-.15.529-.455.547-.679.045L12 14l6-8-8 6-8.054-2.685z\" fill=\"currentColor\"></path>\n </svg>\n </div>\n </div>\n <span>Watch on YouTube</span>\n</button>", "css": "/* From Uiverse.io by vikramsinghnegi - Tags: animation, button, hover me */\nbutton.youtube-button {\n font-family: inherit;\n font-size: 18px;\n background: linear-gradient(to bottom, #ff0000 0%, #ff5050 100%);\n color: white;\n padding: 0.8em 1.2em;\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n border-radius: 25px;\n box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);\n transition: all 0.3s;\n}\n\nbutton.youtube-button:hover {\n transform: translateY(-3px);\n box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);\n}\n\nbutton.youtube-button:active {\n transform: scale(0.95);\n box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);\n}\n\nbutton.youtube-button span {\n display: block;\n margin-left: 0.4em;\n transition: all 0.3s;\n}\n\nbutton.youtube-button svg {\n width: 18px;\n height: 18px;\n fill: white;\n transition: all 0.3s;\n}\n\nbutton.youtube-button .svg-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 30px;\n height: 30px;\n border-radius: 50%;\n background-color: rgba(255, 255, 255, 0.2);\n margin-right: 0.5em;\n transition: all 0.3s;\n}\n\nbutton.youtube-button:hover .svg-wrapper {\n background-color: rgba(255, 255, 255, 0.5);\n}\n\nbutton.youtube-button:hover svg {\n transform: rotate(45deg);\n}", "file_path": "/mnt/persist/workspace/Buttons/vikramsinghnegi_massive-panda-81.html" }, "uniapp": { "template": "<button class=\"youtube-button\"></button>\n <view class=\"svg-wrapper-1\"></view>\n <view class=\"svg-wrapper\"></view>\n <view height=\"24\" width=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n <path d=\"M0 0h24v24H0z\" fill=\"none\"></path>\n <path d=\"M1.946 9.315c-.522-.174-.527-.455.01-.634l19.087-6.362c.529-.176.832.12.684.638l-5.454 19.086c-.15.529-.455.547-.679.045L12 14l6-8-8 6-8.054-2.685z\" fill=\"currentColor\"></path>\n </svg>\n </div>\n </div>\n <text>Watch on YouTube</text>\n</button>", "script": "export default {\n name: 'GalaxyMassivePanda81',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by vikramsinghnegi - Tags: animation, button, hover me */\nbutton.youtube-button {\n font-family: inherit;\n font-size: 36rpx;\n background: linear-gradient(to bottom, #ff0000 0%, #ff5050 100%);\n color: white;\n padding: 0.8em 1.2em;\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n border-radius: 50rpx;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 10rpx 20rpx rgba(0, 0, 0, 0.2);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n transition: all 0.3s;\n}\n\nbutton.youtube-button:hover {\n transform: translateY(-6rpx);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 16rpx 30rpx rgba(0, 0, 0, 0.3);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\nbutton.youtube-button:active {\n transform: scale(0.95);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0rpx 4rpx 10rpx rgba(0, 0, 0, 0.2);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n\nbutton.youtube-button span {\n display: block;\n margin-left: 0.4em;\n transition: all 0.3s;\n}\n\nbutton.youtube-button svg {\n width: 36rpx;\n height: 36rpx;\n fill: white;\n transition: all 0.3s;\n}\n\nbutton.youtube-button .svg-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 60rpx;\n height: 60rpx;\n border-radius: 50%;\n background-color: rgba(255, 255, 255, 0.2);\n margin-right: 0.5em;\n transition: all 0.3s;\n}\n\nbutton.youtube-button:hover .svg-wrapper {\n background-color: rgba(255, 255, 255, 0.5);\n}\n\nbutton.youtube-button:hover svg {\n transform: rotate(45deg);\n}\n\n", "component_name": "GalaxyMassivePanda81" }, "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 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1767, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:38.012Z", "updated_at": "2025-07-31T07:55:38.012Z" }