UNPKG

galaxy-uniapp-mcp-server

Version:

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

119 lines 6.65 kB
{ "id": "elijahgummer_short-bird-25", "name": "short-bird-25", "category": "buttons", "author": "elijahgummer", "description": "short-bird-25 组件 (glassmorphism, animation, black, button, hover effect, shimmer, gradient, interactive)", "tags": [ "glassmorphism", "animation", "black", "button", "hover effect", "shimmer", "gradient", "interactive" ], "original": { "html": "<button class=\"button\">\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n Hover Me\n</button>", "css": "/* From Uiverse.io by elijahgummer - Tags: glassmorphism, animation, black, button, hover effect, shimmer */\n.button {\n cursor: pointer;\n position: relative;\n padding: 15px 20px;\n text-decoration: none;\n border: none;\n color: #fff;\n font-size: 1.2em;\n text-transform: uppercase;\n font-family: sans-serif;\n letter-spacing: 4px;\n overflow: hidden;\n background: rgba(255, 255, 255, 0.1);\n box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);\n}\n.button:before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 50%;\n height: 100%;\n background: rgba(255, 255, 255, 0.1);\n}\n.button::after {\n content: \"\";\n position: absolute;\n top: 0;\n left: -100%;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n 90deg,\n transparent,\n rgba(255, 255, 255, 0.4),\n transparent\n );\n transition: 0.5s;\n transition-delay: 0.5s;\n}\n.button:hover:after {\n left: 100%;\n}\n.button span {\n position: absolute;\n display: block;\n transition: 0.5s ease;\n}\n.button span:nth-child(1) {\n top: 0;\n left: 0;\n width: 0;\n height: 1px;\n background: #fff;\n}\n.button:hover span:nth-child(1) {\n width: 100%;\n transform: translateX(100%);\n}\n.button span:nth-child(2) {\n top: 0;\n left: 0;\n width: 1px;\n height: 0;\n background: #fff;\n}\n.button:hover span:nth-child(2) {\n height: 100%;\n transform: translateY(100%);\n}\n.button span:nth-child(3) {\n bottom: 0;\n right: 0;\n width: 0;\n height: 1px;\n background: #fff;\n}\n.button:hover span:nth-child(3) {\n width: 100%;\n transform: translateX(-100%);\n}\n.button span:nth-child(4) {\n bottom: 0;\n right: 0;\n width: 1px;\n height: 0;\n background: #fff;\n}\n.button:hover span:nth-child(4) {\n height: 100%;\n transform: translateY(-100%);\n}", "file_path": "/mnt/persist/workspace/Buttons/elijahgummer_short-bird-25.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n <text></text>\n <text></text>\n <text></text>\n <text></text>\n Hover Me\n</button>", "script": "export default {\n name: 'GalaxyShortBird25',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by elijahgummer - Tags: glassmorphism, animation, black, button, hover effect, shimmer */\n.button {\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n position: relative;\n padding: 30rpx 40rpx;\n text-decoration: none;\n border: none;\n color: #fff;\n font-size: 1.2em;\n text-transform: uppercase;\n font-family: sans-serif;\n letter-spacing: 8rpx;\n overflow: hidden;\n background: rgba(255, 255, 255, 0.1);\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 10rpx 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.button:before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 50%;\n height: 100%;\n background: rgba(255, 255, 255, 0.1);\n}\n.button::after {\n content: \"\";\n position: absolute;\n top: 0;\n left: -100%;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n 90deg,\n transparent,\n rgba(255, 255, 255, 0.4),\n transparent\n );\n transition: 0.5s;\n transition-delay: 0.5s;\n}\n.button:hover:after {\n left: 100%;\n}\n.button span {\n position: absolute;\n display: block;\n transition: 0.5s ease;\n}\n.button span:nth-child(1) {\n top: 0;\n left: 0;\n width: 0;\n height: 2rpx;\n background: #fff;\n}\n.button:hover span:nth-child(1) {\n width: 100%;\n transform: translateX(100%);\n}\n.button span:nth-child(2) {\n top: 0;\n left: 0;\n width: 2rpx;\n height: 0;\n background: #fff;\n}\n.button:hover span:nth-child(2) {\n height: 100%;\n transform: translateY(100%);\n}\n.button span:nth-child(3) {\n bottom: 0;\n right: 0;\n width: 0;\n height: 2rpx;\n background: #fff;\n}\n.button:hover span:nth-child(3) {\n width: 100%;\n transform: translateX(-100%);\n}\n.button span:nth-child(4) {\n bottom: 0;\n right: 0;\n width: 2rpx;\n height: 0;\n background: #fff;\n}\n.button:hover span:nth-child(4) {\n height: 100%;\n transform: translateY(-100%);\n}\n\n", "component_name": "GalaxyShortBird25" }, "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 属性", "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1828, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:36.539Z", "updated_at": "2025-07-31T07:55:36.539Z" }