UNPKG

galaxy-uniapp-mcp-server

Version:

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

123 lines 13.6 kB
{ "id": "Yaya12085_serious-snake-25", "name": "serious-snake-25", "category": "buttons", "author": "Yaya12085", "description": "serious-snake-25 组件 (glassmorphism, button, hover, hover effect, challenges, animation, gradient, interactive)", "tags": [ "glassmorphism", "button", "hover", "hover effect", "challenges", "animation", "gradient", "interactive" ], "original": { "html": "<button class=\"button\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" class=\"icon\">\n <g stroke-width=\"0\" id=\"SVGRepo_bgCarrier\"></g>\n <g stroke-linejoin=\"round\" stroke-linecap=\"round\" id=\"SVGRepo_tracerCarrier\"></g>\n <g id=\"SVGRepo_iconCarrier\">\n <path fill=\"#222222\" d=\"M11.5 13.8H10.1299C8.72143 13.8 8.01721 13.8 7.72228 13.3385C7.42735 12.8769 7.72321 12.2379 8.31493 10.9597L11.0463 5.06006C11.4205 4.25182 11.6075 3.8477 11.8038 3.89091C12 3.93413 12 4.37946 12 5.27013V9.7C12 9.9357 12 10.0536 12.0732 10.1268C12.1464 10.2 12.2643 10.2 12.5 10.2H13.8701C15.2786 10.2 15.9828 10.2 16.2777 10.6615C16.5726 11.1231 16.2768 11.7621 15.6851 13.0402L12.9537 18.9399C12.5795 19.7482 12.3925 20.1523 12.1962 20.1091C12 20.0659 12 19.6205 12 18.7299V14.3C12 14.0643 12 13.9464 11.9268 13.8732C11.8536 13.8 11.7357 13.8 11.5 13.8Z\"></path>\n </g>\n </svg>\n <span class=\"title\">Join now</span>\n <span class=\"border\"></span>\n</button>", "css": "/* From Uiverse.io by Yaya12085 - Tags: glassmorphism, button, hover, hover effect, challenges */\n.button {\n --color1: #e3a4fb;\n --color2: #fca7a6;\n --color3: #fe986d;\n --white: rgba(255, 255, 255, 0.9);\n --white2: rgba(255, 255, 255, 0.6);\n --white3: rgba(255, 255, 255, 0.4);\n --white4: rgba(255, 255, 255, 0.2);\n --white5: rgba(255, 255, 255, 0.1);\n cursor: pointer;\n padding: 10px 20px;\n height: 40px;\n width: 150px;\n border-radius: 10px;\n outline: none;\n position: relative;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 1px;\n border: none;\n background: transparent;\n background-color: transparent;\n transition: all 235ms ease-in-out;\n}\n\n.button::before,\n.button::after {\n position: absolute;\n content: \"\";\n width: 120%;\n height: 150%;\n border-radius: 16px;\n background-color: var(--color1);\n background: linear-gradient(\n 55deg,\n var(--color1) 10%,\n var(--color2) 40%,\n var(--color3) 60%,\n var(--color1) 80%\n );\n transition: all 235ms ease-in-out;\n}\n\n.button::before {\n filter: blur(2px);\n z-index: -1;\n border: 2px solid rgba(255, 255, 255, 0.2);\n background: radial-gradient(\n circle at 20% 50%,\n var(--white2) 8%,\n transparent 0%\n ),\n radial-gradient(circle at 25% 50%, var(--white2) 8%, transparent 0%),\n radial-gradient(ellipse at 5% 90%, var(--white4) 8%, transparent 0%),\n radial-gradient(ellipse at 5% 50%, var(--white4) 8%, transparent 0%),\n radial-gradient(circle at 15% 80%, var(--white3) 3%, transparent 0%),\n radial-gradient(ellipse at 15% 10%, var(--white2) 14%, transparent 0%),\n radial-gradient(ellipse at 15% 25%, var(--white3) 10%, transparent 0%),\n radial-gradient(circle at 50% 50%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 45% 25%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 50% 75%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 70% 50%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 75% 25%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 70% 50%, var(--white2) 8%, transparent 0%),\n radial-gradient(circle at 70% 75%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 80% 50%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 85% 25%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 98% 5%, var(--white2) 4%, transparent 0%),\n radial-gradient(circle at 88% 25%, var(--white2) 8%, transparent 0%),\n radial-gradient(ellipse at 90% 75%, var(--white2) 6%, transparent 0%),\n radial-gradient(circle at 98% 55%, var(--white2) 8%, transparent 0%),\n radial-gradient(circle at 98% 95%, var(--white2) 8%, transparent 0%);\n background-repeat: no-repeat;\n}\n.button::after {\n z-index: -2;\n box-shadow: rgba(0, 0, 0, 0.2) 15px 28px 25px -18px;\n}\n.icon {\n height: 30px;\n width: 30px;\n}\n.title {\n display: block;\n font-weight: 600;\n}\n\n.border {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n height: 100%;\n width: 100%;\n background: transparent;\n box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);\n border-radius: 10px;\n transition: all 235ms ease-in-out;\n}\n.border::before,\n.border::after {\n position: absolute;\n content: \"\";\n border-radius: 16px;\n width: 120%;\n height: 150%;\n}\n.border::before {\n box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);\n border-radius: 20px;\n border: 2px solid transparent;\n background: linear-gradient(\n 50deg,\n rgba(0, 0, 0, 0.1) 1%,\n var(--color1) 10%,\n var(--color2) 40%,\n var(--color3) 60%,\n var(--color1) 80%,\n rgba(0, 0, 0, 0.1) 100%\n )\n border-box;\n -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n -webkit-mask-composite: destination-out;\n mask-composite: exclude;\n}\n\n.button:hover::after {\n box-shadow: rgba(0, 0, 0, 0.2) 15px 28px 25px -24px;\n}\n.button:hover {\n transform: translate3d(0, 2px, 0);\n}", "file_path": "/mnt/persist/workspace/Buttons/Yaya12085_serious-snake-25.html" }, "uniapp": { "template": "<button class=\"button\"></button>\n <view xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" class=\"icon\"></view>\n <g stroke-width=\"0\" id=\"SVGRepo_bgCarrier\"></g>\n <g stroke-linejoin=\"round\" stroke-linecap=\"round\" id=\"SVGRepo_tracerCarrier\"></g>\n <g id=\"SVGRepo_iconCarrier\">\n <path fill=\"#222222\" d=\"M11.5 13.8H10.1299C8.72143 13.8 8.01721 13.8 7.72228 13.3385C7.42735 12.8769 7.72321 12.2379 8.31493 10.9597L11.0463 5.06006C11.4205 4.25182 11.6075 3.8477 11.8038 3.89091C12 3.93413 12 4.37946 12 5.27013V9.7C12 9.9357 12 10.0536 12.0732 10.1268C12.1464 10.2 12.2643 10.2 12.5 10.2H13.8701C15.2786 10.2 15.9828 10.2 16.2777 10.6615C16.5726 11.1231 16.2768 11.7621 15.6851 13.0402L12.9537 18.9399C12.5795 19.7482 12.3925 20.1523 12.1962 20.1091C12 20.0659 12 19.6205 12 18.7299V14.3C12 14.0643 12 13.9464 11.9268 13.8732C11.8536 13.8 11.7357 13.8 11.5 13.8Z\"></path>\n </g>\n </svg>\n <text class=\"title\">Join now</text>\n <text class=\"border\"></text>\n</button>", "script": "export default {\n name: 'GalaxySeriousSnake25',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by Yaya12085 - Tags: glassmorphism, button, hover, hover effect, challenges */\n.button {\n --color1: #e3a4fb;\n --color2: #fca7a6;\n --color3: #fe986d;\n --white: rgba(255, 255, 255, 0.9);\n --white2: rgba(255, 255, 255, 0.6);\n --white3: rgba(255, 255, 255, 0.4);\n --white4: rgba(255, 255, 255, 0.2);\n --white5: rgba(255, 255, 255, 0.1);\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n padding: 20rpx 40rpx;\n height: 80rpx;\n width: 300rpx;\n border-radius: 20rpx;\n outline: none;\n position: relative;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 2rpx;\n border: none;\n background: transparent;\n background-color: transparent;\n transition: all 235ms ease-in-out;\n}\n\n.button::before,\n.button::after {\n position: absolute;\n content: \"\";\n width: 120%;\n height: 150%;\n border-radius: 32rpx;\n background-color: var(--color1);\n background: linear-gradient(\n 55deg,\n var(--color1) 10%,\n var(--color2) 40%,\n var(--color3) 60%,\n var(--color1) 80%\n );\n transition: all 235ms ease-in-out;\n}\n\n.button::before {\n \n z-index: -1;\n border: 4rpx solid rgba(255, 255, 255, 0.2);\n background: radial-gradient(\n circle at 20% 50%,\n var(--white2) 8%,\n transparent 0%\n ),\n radial-gradient(circle at 25% 50%, var(--white2) 8%, transparent 0%),\n radial-gradient(ellipse at 5% 90%, var(--white4) 8%, transparent 0%),\n radial-gradient(ellipse at 5% 50%, var(--white4) 8%, transparent 0%),\n radial-gradient(circle at 15% 80%, var(--white3) 3%, transparent 0%),\n radial-gradient(ellipse at 15% 10%, var(--white2) 14%, transparent 0%),\n radial-gradient(ellipse at 15% 25%, var(--white3) 10%, transparent 0%),\n radial-gradient(circle at 50% 50%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 45% 25%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 50% 75%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 70% 50%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 75% 25%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 70% 50%, var(--white2) 8%, transparent 0%),\n radial-gradient(circle at 70% 75%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 80% 50%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 85% 25%, var(--white4) 12%, transparent 0%),\n radial-gradient(circle at 98% 5%, var(--white2) 4%, transparent 0%),\n radial-gradient(circle at 88% 25%, var(--white2) 8%, transparent 0%),\n radial-gradient(ellipse at 90% 75%, var(--white2) 6%, transparent 0%),\n radial-gradient(circle at 98% 55%, var(--white2) 8%, transparent 0%),\n radial-gradient(circle at 98% 95%, var(--white2) 8%, transparent 0%);\n background-repeat: no-repeat;\n}\n.button::after {\n z-index: -2;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: rgba(0, 0, 0, 0.2) 30rpx 56rpx 50rpx -36rpx;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n.icon {\n height: 60rpx;\n width: 60rpx;\n}\n.title {\n display: block;\n font-weight: 600;\n}\n\n.border {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n height: 100%;\n width: 100%;\n background: transparent;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 0 0 0 4rpx rgba(255, 255, 255, 0.3);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n border-radius: 20rpx;\n transition: all 235ms ease-in-out;\n}\n.border::before,\n.border::after {\n position: absolute;\n content: \"\";\n border-radius: 32rpx;\n width: 120%;\n height: 150%;\n}\n.border::before {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: inset 0 0 0 4rpx rgba(0, 0, 0, 0.1);\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n border-radius: 40rpx;\n border: 4rpx solid transparent;\n background: linear-gradient(\n 50deg,\n rgba(0, 0, 0, 0.1) 1%,\n var(--color1) 10%,\n var(--color2) 40%,\n var(--color3) 60%,\n var(--color1) 80%,\n rgba(0, 0, 0, 0.1) 100%\n )\n border-box;\n -webkit-\n -webkit-mask-composite: destination-out;\n mask-composite: exclude;\n}\n\n.button:hover::after {\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: rgba(0, 0, 0, 0.2) 30rpx 56rpx 50rpx -48rpx;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n}\n.button:hover {\n transform: translate3d(0, 4rpx, 0);\n}\n\n", "component_name": "GalaxySeriousSnake25" }, "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 属性", "不支持 filter 属性", "不支持 mask 属性", "不支持 cursor 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 filter 属性", "不支持 mask 属性", "不支持 cursor 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "high", "bundle_size": 4988, "render_cost": "high", "memory_usage": "high" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:35.244Z", "updated_at": "2025-07-31T07:55:35.244Z" }