Coder Social home page Coder Social logo

Comments (1)

claudiulodro avatar claudiulodro commented on July 28, 2024

Related: https://github.com/Automattic/newspack-issues/issues/42

We need a way of inputting dek text that will display underneath the post title, similar to the dek text on this article.

I have three ideas about what a good UI for this might look like until "post meta blocks" or "featured image blocks" get figured out in the future, but I'm very open to other ideas if anyone has them:

  1. IMO the most natural place with the most accurate preview would be a new input underneath the title input for entering dek text. You could enter and see the text right under the title on the block editor. If you look at the screenshot below, it would be like the "Permalink" section, except under the title (I'm not sure whether it would have an Edit button, or just be editable always though).
  2. An alternate approach if 1 ends up being super hacky or fragile is to have the input like the excerpt input in the sidebar, but with a live preview right under the title. You would enter text in the sidebar and it would render a non-editable preview under the title.
  3. The worst-case (but still OK) approach would be to have text entered in the sidebar using an excerpt-like input with no preview in the block editor.

Screen Shot 2019-12-16 at 7 49 09 AM

Important considerations:

  • The text should look nice with all style packs.
  • The text should look nice with all featured image styles (default, small, beside feature image, etc.) and all templates (default, one-column, one-column wide)

from newspack-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.