vocdoni / interoperability

Private repository to manage the interoperability between protocol, API, SDK, UIs and documentation
1 stars 0 forks source link

PxLl Project #158

Closed jpaulet closed 4 months ago

jpaulet commented 4 months ago

1 - Add in the voting page, the possibility to show the header/streaming if it's defined in the metadata of the election


{
    "version": "1.1", // Protocol version
    "title": {
        "en": "Universal Basic Income",
        "ca": "Renda Bàsica Universal"
    },
    "description": {
        "en": "The description goes here",
        "ca": "La descripció va aquí"
    },
    "media": {
        "header": "<content uri>",
        "streamUri": "https://.../"
    },

Check the "media.header" & "media.streamUri" and show the images if it's present.

The header image shoud be positioned in the top part of the page, and the streaming below the description. When scrolling, the streaming should be always visible by moving as a float element in the top-right part of the screen.

Example (width: 100%, max-height:200px; margin-top: 20px;) : image

Same with the streaming:

image

2 - Create a new theme for PxLL, and adapt the colors and logo:

Ref: Logo: votacions_cap votacions_avatar