galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
117 lines • 11.6 kB
JSON
{
"id": "csozidev_spotty-lion-8",
"name": "spotty-lion-8",
"category": "buttons",
"author": "csozidev",
"description": "spotty-lion-8 组件 (simple, flat design, animation, button, hover, animated, colorful, interactive)",
"tags": [
"simple",
"flat design",
"animation",
"button",
"hover",
"animated",
"colorful",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" preserveAspectRatio=\"xMidYMid\" viewBox=\"0 0 256 262\" class=\"svg\">\n <path fill=\"#4285F4\" d=\"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027\" class=\"blue\"></path>\n <path fill=\"#34A853\" d=\"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1\" class=\"green\"></path>\n <path fill=\"#FBBC05\" d=\"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782\" class=\"yellow\"></path>\n <path fill=\"#EB4335\" d=\"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251\" class=\"red\"></path>\n</svg>\n<span class=\"text\">Continue with Google</span>\n</button>",
"css": "/* From Uiverse.io by csozidev - Tags: simple, flat design, animation, button, hover, animated, colorful */\n/* Fancy Google hover button made by: csozi | Website: www.csozi.hu*/\n\n.button {\n padding: 10px;\n font-weight: bold;\n display: flex;\n position: relative;\n overflow: hidden;\n border-radius: 35px;\n align-items: center;\n border: solid black 2px;\n outline: none;\n}\n\n.svg {\n height: 25px;\n margin-right: 10px;\n}\n\n.button .text {\n z-index: 10;\n font-size: 14px;\n}\n\n.button:hover .text {\n animation: text forwards 0.3s;\n /*color: white;*/\n}\n\n@keyframes text {\n from {\n color: black;\n }\n\n to {\n color: white;\n }\n}\n\n.svg {\n z-index: 6;\n}\n\n.button:hover::before {\n content: \"\";\n display: block;\n position: absolute;\n top: 50%;\n left: 9%;\n transform: translate(-50%, -50%);\n width: 0;\n height: 0;\n opacity: 0;\n border-radius: 300px;\n animation: wave1 2.5s ease-in-out forwards;\n}\n\n.button:hover::after {\n content: \"\";\n display: block;\n position: absolute;\n top: 50%;\n left: 9%;\n transform: translate(-50%, -50%);\n width: 0;\n height: 0;\n opacity: 0;\n border-radius: 300px;\n animation: wave2 2.5s ease-in-out forwards;\n}\n\n@keyframes wave1 {\n 0% {\n z-index: 1;\n background: #EB4335;\n width: 0;\n height: 0;\n opacity: 1;\n }\n\n 1% {\n z-index: 1;\n background: #EB4335;\n width: 0;\n height: 0;\n opacity: 1;\n }\n\n 25% {\n z-index: 1;\n background: #EB4335;\n width: 800px;\n height: 800px;\n opacity: 1;\n }\n\n 26% {\n z-index: 3;\n background: #34A853;\n width: 0;\n height: 0;\n opacity: 1;\n }\n\n 50% {\n z-index: 3;\n background: #34A853;\n width: 800px;\n height: 800px;\n opacity: 1;\n }\n\n 70% {\n z-index: 3;\n background: #34A853;\n width: 800px;\n height: 800px;\n opacity: 1;\n }\n\n 100% {\n z-index: 3;\n background: #34A853;\n width: 800px;\n height: 800px;\n opacity: 1;\n }\n}\n\n@keyframes wave2 {\n 0% {\n z-index: 2;\n background: #FBBC05;\n width: 0;\n height: 0;\n opacity: 1;\n }\n\n 11% {\n z-index: 2;\n background: #FBBC05;\n width: 0;\n height: 0;\n opacity: 1;\n }\n\n 35% {\n z-index: 2;\n background: #FBBC05;\n width: 800px;\n height: 800px;\n opacity: 1;\n }\n\n 39% {\n z-index: 2;\n background: #FBBC05;\n width: 800px;\n height: 800px;\n opacity: 1;\n }\n\n 40% {\n z-index: 4;\n background: #4285F4;\n width: 0;\n height: 0;\n opacity: 1;\n }\n\n 64% {\n z-index: 4;\n background: #4285F4;\n width: 800px;\n height: 800px;\n opacity: 1;\n }\n\n 100% {\n z-index: 4;\n background: #4285F4;\n width: 800px;\n height: 800px;\n opacity: 1;\n }\n}\n\n.button:hover .red {\n animation: disappear 0.1s forwards;\n animation-delay: 0.1s;\n}\n\n.button:hover .yellow {\n animation: disappear 0.1s forwards;\n animation-delay: 0.3s;\n}\n\n.button:hover .green {\n animation: disappear 0.1s forwards;\n animation-delay: 0.7s;\n}\n\n.button:hover .blue {\n animation: disappear 0.1s forwards;\n animation-delay: 1.1s;\n}\n\n@keyframes disappear {\n from {\n filter: brightness(1);\n }\n\n to {\n filter: brightness(100);\n }\n}",
"file_path": "/mnt/persist/workspace/Buttons/csozidev_spotty-lion-8.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <view xmlns=\"http://www.w3.org/2000/svg\" preserveAspectRatio=\"xMidYMid\" viewBox=\"0 0 256 262\" class=\"svg\"></view>\n <path fill=\"#4285F4\" d=\"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027\" class=\"blue\"></path>\n <path fill=\"#34A853\" d=\"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1\" class=\"green\"></path>\n <path fill=\"#FBBC05\" d=\"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782\" class=\"yellow\"></path>\n <path fill=\"#EB4335\" d=\"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251\" class=\"red\"></path>\n</svg>\n<text class=\"text\">Continue with Google</text>\n</button>",
"script": "export default {\n name: 'GalaxySpottyLion8',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by csozidev - Tags: simple, flat design, animation, button, hover, animated, colorful */\n/* Fancy Google hover button made by: csozi | Website: www.csozi.hu*/\n\n.button {\n padding: 20rpx;\n font-weight: bold;\n display: flex;\n position: relative;\n overflow: hidden;\n border-radius: 70rpx;\n align-items: center;\n border: solid black 4rpx;\n outline: none;\n}\n\n.svg {\n height: 50rpx;\n margin-right: 20rpx;\n}\n\n.button .text {\n z-index: 10;\n font-size: 28rpx;\n}\n\n.button:hover .text {\n animation: text forwards 0.3s;\n /*color: white;*/\n}\n\n@keyframes text {\n from {\n color: black;\n }\n\n to {\n color: white;\n }\n}\n\n.svg {\n z-index: 6;\n}\n\n.button:hover::before {\n content: \"\";\n display: block;\n position: absolute;\n top: 50%;\n left: 9%;\n transform: translate(-50%, -50%);\n width: 0;\n height: 0;\n opacity: 0;\n border-radius: 600rpx;\n animation: wave1 2.5s ease-in-out forwards;\n}\n\n.button:hover::after {\n content: \"\";\n display: block;\n position: absolute;\n top: 50%;\n left: 9%;\n transform: translate(-50%, -50%);\n width: 0;\n height: 0;\n opacity: 0;\n border-radius: 600rpx;\n animation: wave2 2.5s ease-in-out forwards;\n}\n\n@keyframes wave1 {\n 0% {\n z-index: 1;\n background: #EB4335;\n width: 0;\n height: 0;\n opacity: 1;\n }\n\n 1% {\n z-index: 1;\n background: #EB4335;\n width: 0;\n height: 0;\n opacity: 1;\n }\n\n 25% {\n z-index: 1;\n background: #EB4335;\n width: 1600rpx;\n height: 1600rpx;\n opacity: 1;\n }\n\n 26% {\n z-index: 3;\n background: #34A853;\n width: 0;\n height: 0;\n opacity: 1;\n }\n\n 50% {\n z-index: 3;\n background: #34A853;\n width: 1600rpx;\n height: 1600rpx;\n opacity: 1;\n }\n\n 70% {\n z-index: 3;\n background: #34A853;\n width: 1600rpx;\n height: 1600rpx;\n opacity: 1;\n }\n\n 100% {\n z-index: 3;\n background: #34A853;\n width: 1600rpx;\n height: 1600rpx;\n opacity: 1;\n }\n}\n\n@keyframes wave2 {\n 0% {\n z-index: 2;\n background: #FBBC05;\n width: 0;\n height: 0;\n opacity: 1;\n }\n\n 11% {\n z-index: 2;\n background: #FBBC05;\n width: 0;\n height: 0;\n opacity: 1;\n }\n\n 35% {\n z-index: 2;\n background: #FBBC05;\n width: 1600rpx;\n height: 1600rpx;\n opacity: 1;\n }\n\n 39% {\n z-index: 2;\n background: #FBBC05;\n width: 1600rpx;\n height: 1600rpx;\n opacity: 1;\n }\n\n 40% {\n z-index: 4;\n background: #4285F4;\n width: 0;\n height: 0;\n opacity: 1;\n }\n\n 64% {\n z-index: 4;\n background: #4285F4;\n width: 1600rpx;\n height: 1600rpx;\n opacity: 1;\n }\n\n 100% {\n z-index: 4;\n background: #4285F4;\n width: 1600rpx;\n height: 1600rpx;\n opacity: 1;\n }\n}\n\n.button:hover .red {\n animation: disappear 0.1s forwards;\n animation-delay: 0.1s;\n}\n\n.button:hover .yellow {\n animation: disappear 0.1s forwards;\n animation-delay: 0.3s;\n}\n\n.button:hover .green {\n animation: disappear 0.1s forwards;\n animation-delay: 0.7s;\n}\n\n.button:hover .blue {\n animation: disappear 0.1s forwards;\n animation-delay: 1.1s;\n}\n\n@keyframes disappear {\n from {\n \n }\n\n to {\n \n }\n}\n",
"component_name": "GalaxySpottyLion8"
},
"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": [
"不支持 filter 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 filter 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "high",
"bundle_size": 4296,
"render_cost": "high",
"memory_usage": "high"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:36.161Z",
"updated_at": "2025-07-31T07:55:36.161Z"
}