galaxy-uniapp-mcp-server
Version:
Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成
117 lines • 6.88 kB
JSON
{
"id": "bociKond_itchy-grasshopper-27",
"name": "itchy-grasshopper-27",
"category": "buttons",
"author": "bociKond",
"description": "itchy-grasshopper-27 组件 (button, transition, transform, animation, gradient, interactive)",
"tags": [
"button",
"transition",
"transform",
"animation",
"gradient",
"interactive"
],
"original": {
"html": "<button class=\"button\">\n <span class=\"top\">\n <p>Explore More</p>\n <p class=\"before\"> </p>\n </span>\n <span class=\"bottom\"> </span>\n </button>",
"css": "/* From Uiverse.io by bociKond - Source: https://www.leagueoflegends.com/en-gb/ I designed the button from the client application which button is for the Soul Fighter event - Tags: button, transition, transform */\n.button {\n --white: #e8e8e8;\n --border-clr: #fff;\n --button-bg-clr: #151515;\n display: grid;\n grid-template-rows: 80% 20%;\n background-color: var(--button-bg-clr);\n border-width: 10px 3px 3px 3px;\n border-color: var(--border-clr);\n border-style: solid;\n font-family: sans-serif;\n font-weight: bolder;\n font-size: 1.5rem;\n cursor: pointer;\n transition: 350ms ease-in-out;\n}\n\nbutton:hover {\n --border-clr: #f55c1b;\n transform: translate(-7px, -7px);\n}\n\nbutton:hover .top::before {\n filter: saturate(1);\n opacity: 1;\n}\n\nbutton:hover .top::after {\n opacity: 0;\n}\n\n.top {\n color: var(--white);\n /* background-color: white; */\n margin: 0.75rem 0.5rem;\n padding: 0.5rem 2rem;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n isolation: isolate;\n z-index: 1;\n}\n\n.top::before {\n content: \"\";\n position: absolute;\n inset: 0;\n background: #f55c1b;\n background: linear-gradient(0deg, #f55c1b 0%, #ffffff 100%);\n filter: saturate(0);\n z-index: -2;\n transition: 350ms ease-in-out;\n opacity: 0;\n}\n\n.top .before {\n position: absolute;\n inset: 2px;\n z-index: -1;\n background-color: var(--button-bg-clr);\n}\n\n.top::after {\n content: \"\";\n position: absolute;\n inset: 0px;\n background: var(--button-bg-clr);\n filter: saturate(0);\n z-index: -1;\n transition: 350ms ease-in-out;\n border: 2px solid var(--white);\n transition: 350ms ease-in-out;\n}\n\n.bottom {\n background: repeating-conic-gradient(\n from 45deg,\n #616161 0% 25%,\n #3f3f3f 0% 50%\n );\n background-size: 16px 16px;\n background-color: #3f3f3f;\n background-position: center;\n width: 100%;\n height: 100%;\n}",
"file_path": "/mnt/persist/workspace/Buttons/bociKond_itchy-grasshopper-27.html"
},
"uniapp": {
"template": "<button class=\"button\"></button>\n <text class=\"top\"></text>\n <text>Explore More</text>\n <text class=\"before\"> </text>\n </span>\n <text class=\"bottom\"> </text>\n </button>",
"script": "export default {\n name: 'GalaxyItchyGrasshopper27',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}",
"style": "\n/* From Uiverse.io by bociKond - Source: https://www.leagueoflegends.com/en-gb/ I designed the button from the client application which button is for the Soul Fighter event - Tags: button, transition, transform */\n.button {\n --white: #e8e8e8;\n --border-clr: #fff;\n --button-bg-clr: #151515;\n display: grid;\n grid-template-rows: 80% 20%;\n background-color: var(--button-bg-clr);\n border-width: 20rpx 6rpx 6rpx 6rpx;\n border-color: var(--border-clr);\n border-style: solid;\n font-family: sans-serif;\n font-weight: bolder;\n font-size: 1.5rem;\n /* #ifdef H5 */\n cursor: pointer;\n /* #endif */\n transition: 350ms ease-in-out;\n}\n\nbutton:hover {\n --border-clr: #f55c1b;\n transform: translate(-14rpx, -14rpx);\n}\n\nbutton:hover .top::before {\n \n opacity: 1;\n}\n\nbutton:hover .top::after {\n opacity: 0;\n}\n\n.top {\n color: var(--white);\n /* background-color: white; */\n margin: 0.75rem 0.5rem;\n padding: 0.5rem 2rem;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n isolation: isolate;\n z-index: 1;\n}\n\n.top::before {\n content: \"\";\n position: absolute;\n inset: 0;\n background: #f55c1b;\n background: linear-gradient(0deg, #f55c1b 0%, #ffffff 100%);\n \n z-index: -2;\n transition: 350ms ease-in-out;\n opacity: 0;\n}\n\n.top .before {\n position: absolute;\n inset: 4rpx;\n z-index: -1;\n background-color: var(--button-bg-clr);\n}\n\n.top::after {\n content: \"\";\n position: absolute;\n inset: 0rpx;\n background: var(--button-bg-clr);\n \n z-index: -1;\n transition: 350ms ease-in-out;\n border: 4rpx solid var(--white);\n transition: 350ms ease-in-out;\n}\n\n.bottom {\n background: repeating-conic-gradient(\n from 45deg,\n #616161 0% 25%,\n #3f3f3f 0% 50%\n );\n background-size: 32rpx 32rpx;\n background-color: #3f3f3f;\n background-position: center;\n width: 100%;\n height: 100%;\n}\n",
"component_name": "GalaxyItchyGrasshopper27"
},
"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 属性",
"不支持 cursor 属性"
],
"alternatives": []
},
"mp-alipay": {
"supported": true,
"issues": [
"不支持 filter 属性",
"不支持 cursor 属性"
],
"alternatives": []
},
"app-plus": {
"supported": true,
"issues": [],
"alternatives": []
}
},
"performance": {
"complexity": "medium",
"bundle_size": 2045,
"render_cost": "medium",
"memory_usage": "medium"
},
"dependencies": [],
"examples": [
{
"title": "",
"description": "",
"code": ""
}
],
"created_at": "2025-07-31T07:55:35.988Z",
"updated_at": "2025-07-31T07:55:35.988Z"
}