Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

海报配置分享专用 issue #1

Open
qbhy opened this issue Dec 18, 2018 · 2 comments

Comments

@qbhy
Copy link
Owner

commented Dec 18, 2018

No description provided.

@qbhy

This comment has been minimized.

Copy link
Owner Author

commented Dec 18, 2018

所需参数:
用户昵称、个性签名、头像、小程序码描述、小程序码、中间海报
效果预览

{
    "width": 640,
    "height": 1034,
    "backgroundColor": "#d04c44",
    "blocks": [
        {
            "x": 25,
            "y": 25,
            "width": 590,
            "height": 820,
            "borderColor": "#ffe6c0",
            "borderWidth": 2
        },
        {
            "x": 0,
            "y": 870,
            "width": 640,
            "height": 164,
            "backgroundColor": "#fff"
        },
        {
            "x": 67,
            "y": 303,
            "width": 506,
            "height": 500,
            "backgroundColor": "#fff"
        }
    ],
    "texts": [
        {
            "text": "{用户昵称}",
            "x": 320,
            "y": 187,
            "fontSize": 18,
            "lineHeight": 18,
            "color": "#ffe6c0",
            "width": 320,
            "lineNum": 1,
            "baseLine": "middle",
            "textAlign": "center"
        },
        {
            "text": "{个性签名}",
            "x": 320,
            "y": 225,
            "fontSize": 20,
            "lineHeight": 24,
            "color": "#ffe6c0",
            "width": 480,
            "lineNum": 2,
            "baseLine": "middle",
            "textAlign": "center"
        },
        {
            "text": "{小程序码描述}",
            "x": 170,
            "y": 923,
            "fontSize": 18,
            "color": "#999",
            "width": 300,
            "lineNum": 2,
            "baseLine": "middle",
            "zIndex": 8,
            "lineHeight": 40
        }
    ],
    "images": [
        {
            "url": "{头像}",
            "x": 270,
            "y": 67,
            "width": 100,
            "height": 100,
            "borderRadius": 100
        },
        {
            "url": "{中间海报}",
            "x": 87,
            "y": 323,
            "width": 466,
            "height": 460
        },
        {
            "url": "{小程序码}",
            "x": 45,
            "y": 905,
            "width": 100,
            "height": 100,
            "zIndex": 9
        }
    ],
    "lines": []
}
@qbhy

This comment has been minimized.

Copy link
Owner Author

commented Dec 22, 2018

圣诞树背景海报
所需参数: 用户名、用户头像、小程序码
ps: logo 和 logo 文案可以自行更换
效果图如下:
圣诞节海报

{
    "width": 640,
    "height": 1200,
    "debug": false,
    "preload": true,
    "backgroundColor": "#d04c44",
    "blocks": [
        {
            "x": 128,
            "y": 540,
            "width": 384,
            "height": 540,
            "backgroundColor": "#fff",
            "borderRadius": 13,
            "zIndex": 2
        }
    ],
    "texts": [
        {
            "text": "{用户名}",
            "x": 320,
            "y": 693,
            "fontSize": 22,
            "lineHeight": 22,
            "color": "#777",
            "width": 320,
            "lineNum": 1,
            "baseLine": "middle",
            "textAlign": "center",
            "zIndex": 3
        },
        {
            "text": "微信内长按识别小程序码",
            "x": 320,
            "y": 1030,
            "fontSize": 18,
            "lineHeight": 22,
            "color": "#777",
            "width": 320,
            "lineNum": 1,
            "baseLine": "middle",
            "textAlign": "center",
            "zIndex": 3
        },
        {
            "text": "我的相册二维码",
            "x": 320,
            "y": 324,
            "fontSize": 32,
            "lineHeight": 32,
            "color": "#fff",
            "width": 320,
            "lineNum": 1,
            "baseLine": "middle",
            "textAlign": "center",
            "zIndex": 3
        },
        {
            "text": "扫码免费一键转图",
            "x": 320,
            "y": 382,
            "fontSize": 26,
            "lineHeight": 26,
            "color": "#ddd",
            "width": 320,
            "lineNum": 1,
            "baseLine": "middle",
            "textAlign": "center",
            "zIndex": 3
        }
    ],
    "images": [
        {
            "url": "https://i.loli.net/2018/12/21/5c1c5d330db6f.jpg",
            "x": 0,
            "y": 0,
            "width": 640,
            "height": 1200,
            "zIndex": 0
        },
        {
            "url": "https://i.loli.net/2018/12/21/5c1c8c7de8fe9.jpg",
            "x": 275,
            "y": 178,
            "width": 90,
            "height": 90,
            "zIndex": 10
        },
        {
            "url": "{用户头像}",
            "x": 275,
            "y": 566,
            "width": 90,
            "height": 90,
            "zIndex": 10
        },
        {
            "url": "{小程序码}",
            "x": 195,
            "y": 737,
            "width": 249,
            "height": 249,
            "zIndex": 10
        }
    ],
    "lines": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.