fabio renda
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Home image Poster redesign MVP ### Requirements - [x] **The home** - [x] only use light mode - [x] **The Logo** - [x] is on top of the Slide - [x] color parametrizable - [x] No action associated - [x] **The slide**: - [x] slide will cover all the screen - [x] The swipe up/dowm action move all the slide - [x] Could have a link associated - [x] **The Poster** (content) - [x] is located in the slide - [x] has margins defined by the app (client) - [x] is centered - [x] use the scaleType nearest to the poster container ( is already like this) - [x] options parameters: [ scaleType, safeMargins ] - [x] `scaleType == fill AND safeMargins == null` // required - [x] `scaleType == fill AND safeMargins == ["top","bottom","left","right"]` // required all combination - [x] **Image text**: Cannot lose quality - [x] With layers the problem will be solved for now ### Tech integration Las homes actuales tienen la siguiente estructura de xmedia: ```js "xmedias": [ { "type": "image", "kind": "other", "timestamp": "1608725272871", "datatype": "xmedia", "height": 4475, "name": "portrait_0", "path": "/contents/mkt/spots/aw20-north-new-in-man/subhome-xmedia-52-2/", "set": 2, "allowedScreens": [ "small", "large" ], "width": 3000 }, ... ] ``` ### Ampliación de los nodos xmedia (continuísta) #### Propuesta: Proponemos que "scaleType" sea un atributo de tres estados - fill - fit - legacy Al añadir el valor *legacy* estamos añadiendo la posibilidad de que los xMedia con este valor se consuman únicamente en las versiones antiguas, evitando problemas en la visualización de las imágenes (texto mal posicionado, etc). De igual manera, los xMedia que deban visualizarse en las versiones antiguas deberán estar posicionados al principio del array de xMedias, si scaleType es fit o fill se cunsumirá dicho xMedia en ambas versiones (aplicando márgenes o fullscreen, según corresponda, en la versión nueva) ```json= "xmedias": [ { "type": "image", "kind": "other", "timestamp": "1608725272871", "datatype": "xmedia", "height": 4475, "name": "portrait_0", "path": "/contents/mkt/spots/aw20-north-new-in-man/subhome-xmedia-52-2/", "set": 2, "scaleType": "legacy|fill|fit", // NEW --> default value: legacy "allowedScreens": [ "small", "large" ], "width": 3000, "layers": [ typeof(xmedia) ] // NEW --> default value: [] ... }, ... ], "meta": [ { "xmediaName": "portrait_0", "color": "#ffffff", // legacy "title": { "fontSize": 70, "lineHeight": 70, "letterSpacing": 0, "text": "SALE" }, "subtitle": { "fontSize": 19, "letterSpacing": 0, "text": " " }, "button": { "text": "VIEW" }, "enhancement": { "active": false, "name": "aw20-sales" }, // new "logo": { "color": "#ffffff" }, // new "leftSectionContainer": { "color": "#ffffff" }, // new "rightSectionContainer": { "color": "#ffffff" }, // new "topSectionContainer": { "color": "#ffffff" }, // new "bottomSectionContainer": { "color": "#ffffff" }, // new "bullets": { "color": "#ffffff" }, // new "background": { "color": "#ffffff" }, // new "safeMargins": [ "left","right","top","bottom" ] // default value: [] }, ... ] ``` # HOME redesign Phase II - [x] el modo de renderizado podría ser fit - [ ] el contenido se puede anclar por parámetro en el modo fit/fill - [ ] parametrización del color de fondo a partir de `background.color` - [ ] renderizado de contenido a partir de los nodos `xmedia` alojados en `fragments` - [x] `scaleType == fill|fit AND safeMargins == ["top","bottom","left","right"]` // optional all the combination ## opt 1 - extend xmedia ```js "xmedias": [ { "type": "image", "kind": "other", "timestamp": "1608725272871", "datatype": "xmedia", "height": 4475, "name": "portrait_0", "path": "/contents/mkt/spots/aw20-north-new-in-man/subhome-xmedia-52-2/", "set": 2, "scaleType": "legacy|fill|fit", "allowedScreens": [ "small", "large" ], "width": 3000, "layers": [typeof(xmedia)] // new "fragments": [typeof(xmedia)] }, ... ] ``` ## opt 2 - Nuevo nodo a nivel de slide (sólo interpretable por nuevas versiones) TBD Crear un sibling al del `xmedias` alojando únicamente la información necesaria para renderizar un cartel a partir de sus `xmedias` con la información de posicionamiento relativa al área de renderizado: ```js "posters": [ { "datatype": "xmedia", "type": "image", "kind": "other", "name": "portrait_0", "path": "/contents/mkt/spots/aw20-north-new-in-man/subhome-xmedia-52-2/", "timestamp": "1608725272871", "width": 3000, "height": 4475, "scaleType": "legacy|fill|fit", "allowedScreens": [ "small", "large" ], "fragments": [typeof(xmedia)] }, ... ] ``` Los elementos xmedia del array `fragments` contendrán información del posicionamiento dentro del nodo `extraInfo.area`: ```js { // Valor porcentuales respecto el width del xmedia "x1": 21.86667, "y1": 40.02869, "x2": 65.6, "y2": 42.64706 } ``` *NOTA*: A fin de dar compatibilidad con las versiones legacy, el array de xmedia proporcionará en primera posición variantes `fill`. La nueva versión de la app dará prioridad a xmedias `fit` por encima de las `fill`. # Dudas ## Legacy _"Javier Blanco Gutierrez, los XMedias que se enviarían al principio, que serían los que las versiones Legacy de la app tomen para pintar las imágenes,¿van a ser igualmente válidos para nueva versiones de la app si en vez de "fit" tiramos por "fill" para el MVP que haremos para el rediseño? Es decir, ¿habrían unos XMedias específicos SOLO para Legacy, o por el contrario también serían aplicables para las nuevas versiones de las apps?"_ De partida se preparan posters en diferentes aspect ratios compatibles para el modo fill donde los operadores tendrán en cuenta los márgenes de seguridad.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully