UNPKG

galaxy-uniapp-mcp-server

Version:

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

109 lines 6.36 kB
{ "id": "KSAplay_lazy-lion-26", "name": "lazy-lion-26", "category": "buttons", "author": "KSAplay", "description": "lazy-lion-26 组件 (button, animation, gradient, interactive)", "tags": [ "button", "animation", "gradient", "interactive" ], "original": { "html": "<div class=\"container\">\n <button class=\"button\">\n <p>PREMIUM</p>\n </button>\n</div>", "css": "/* From Uiverse.io by KSAplay - Tags: button */\n.container {\n transition: 200ms ease;\n}\n\n.button {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px 40px;\n border-width: 0;\n border-radius: 1em;\n background-color: #19171C;\n transition: 500ms ease;\n}\n\n.button p {\n font-size: 20px;\n font-weight: bold;\n background: rgb(137,60,21);\n background: linear-gradient(90deg, rgba(137,60,21,1) 0%, rgba(255,222,68,1) 17%, rgba(177,116,30,1) 24%, rgba(255,231,82,1) 40%, rgba(224,147,38,1) 50%, rgba(228,150,42,1) 59%, rgba(176,120,27,1) 70%, rgba(239,179,51,1) 85%, rgba(135,58,26,1) 100%);\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n\n.button::before {\n position: absolute;\n content: '';\n width: 190px;\n height: 50px;\n border-radius: 1em;\n background-size: 100%;\n background: rgb(137,60,21);\n background: linear-gradient(90deg, rgba(137,60,21,1) 0%, rgba(255,222,68,1) 17%, rgba(177,116,30,1) 24%, rgba(255,231,82,1) 40%, rgba(224,147,38,1) 50%, rgba(228,150,42,1) 59%, rgba(176,120,27,1) 70%, rgba(239,179,51,1) 85%, rgba(135,58,26,1) 100%);\n z-index: -1;\n}\n\n.container:hover .button::before {\n animation: golden 5s infinite alternate ease-in-out;\n}\n\n.container:hover .button p {\n animation: golden 5s infinite alternate ease-in-out;\n}\n\n.container:hover {\n transform: scale(1.1);\n}\n\n.container:active {\n transform: scale(1);\n}\n\n.container:active .button::before {\n animation: golden 1s infinite alternate ease-in-out;\n}\n\n.container:active .button p {\n animation: golden 1s infinite alternate ease-in-out;\n}\n\n@keyframes golden {\n 0% {\n background-size: 100%;\n background-position: 50%;\n }\n\n 50% {\n background-size: 500%;\n background-position: 0%;\n }\n\n 100% {\n background-size: 200%;\n background-position: 100%;\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/KSAplay_lazy-lion-26.html" }, "uniapp": { "template": "<view class=\"container\"></view>\n <button class=\"button\"></button>\n <text>PREMIUM</text>\n </button>\n</div>", "script": "export default {\n name: 'GalaxyLazyLion26',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by KSAplay - Tags: button */\n.container {\n transition: 200ms ease;\n}\n\n.button {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 20rpx 80rpx;\n border-width: 0;\n border-radius: 1em;\n background-color: #19171C;\n transition: 500ms ease;\n}\n\n.button p {\n font-size: 40rpx;\n font-weight: bold;\n background: rgb(137,60,21);\n background: linear-gradient(90deg, rgba(137,60,21,1) 0%, rgba(255,222,68,1) 17%, rgba(177,116,30,1) 24%, rgba(255,231,82,1) 40%, rgba(224,147,38,1) 50%, rgba(228,150,42,1) 59%, rgba(176,120,27,1) 70%, rgba(239,179,51,1) 85%, rgba(135,58,26,1) 100%);\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n\n.button::before {\n position: absolute;\n content: '';\n width: 380rpx;\n height: 100rpx;\n border-radius: 1em;\n background-size: 100%;\n background: rgb(137,60,21);\n background: linear-gradient(90deg, rgba(137,60,21,1) 0%, rgba(255,222,68,1) 17%, rgba(177,116,30,1) 24%, rgba(255,231,82,1) 40%, rgba(224,147,38,1) 50%, rgba(228,150,42,1) 59%, rgba(176,120,27,1) 70%, rgba(239,179,51,1) 85%, rgba(135,58,26,1) 100%);\n z-index: -1;\n}\n\n.container:hover .button::before {\n animation: golden 5s infinite alternate ease-in-out;\n}\n\n.container:hover .button p {\n animation: golden 5s infinite alternate ease-in-out;\n}\n\n.container:hover {\n transform: scale(1.1);\n}\n\n.container:active {\n transform: scale(1);\n}\n\n.container:active .button::before {\n animation: golden 1s infinite alternate ease-in-out;\n}\n\n.container:active .button p {\n animation: golden 1s infinite alternate ease-in-out;\n}\n\n@keyframes golden {\n 0% {\n background-size: 100%;\n background-position: 50%;\n }\n\n 50% {\n background-size: 500%;\n background-position: 0%;\n }\n\n 100% {\n background-size: 200%;\n background-position: 100%;\n }\n}\n", "component_name": "GalaxyLazyLion26" }, "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": [], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1930, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:33.649Z", "updated_at": "2025-07-31T07:55:33.649Z" }