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

Support more buttons on home page(up to 5 buttons) #2261

Open
taozuhong opened this issue Mar 30, 2020 · 6 comments
Open

Support more buttons on home page(up to 5 buttons) #2261

taozuhong opened this issue Mar 30, 2020 · 6 comments
Labels
status: core team review Priority issues for the core team to review

Comments

@taozuhong
Copy link

taozuhong commented Mar 30, 2020

Feature request

What problem does this feature solve?

I use VuePress to build a website for my app, it divided into stable and development versions, So I need two button to guide user to download different version.

What does the proposed API look like?

actionText / actionLink, actionText2 / actionLink2, ...... , actionText5 / actionLink5

How should this be implemented in your opinion?

Just support up 5 buttons to support this situation(actionText / actionLink, actionText5 / actionLink5)

Are you willing to work on this yourself?

@taozuhong taozuhong changed the title Support one more button on home page(max to 5 button) Support more buttons on home page(up to 5 buttons) Mar 30, 2020
@billyyyyy3320
Copy link
Collaborator

Currently, you can use a custom layout.

What does the proposed API look like?
actionText / actionLink, actionText2 / actionLink2, ...... , actionText5 / actionLink5

If we're gonna support this feature, I suggest making the config like below:

action:
- text: Get Started →
  link: /guide/
- text: Action 2
  link: /whatever/
- text: Action 3
  link: /whatever/

@taozuhong
Copy link
Author

Yeah, custom layout is a good solution to solve this situation.

if this feature be supported, will make users feel conveniently.

@Mister-Hope
Copy link
Contributor

I can help with this featue, do we need it?@newsbielt703

@billyyyyy3320 billyyyyy3320 added the status: core team review Priority issues for the core team to review label Apr 14, 2020
@taozuhong
Copy link
Author

taozuhong commented Apr 18, 2020

@Mister-Hope Hi bro, could you implement this feature and make a PR ahead, you could follow @newsbielt703 suggestion?

awful thank in advanced.

@gtsiolis
Copy link
Contributor

gtsiolis commented Jul 6, 2020

One more action link is definitely needed. 🏀

Before proceeding I would suggest to apply a different style to the rest of the action buttons to avoid having multiple primary CTAs with the same style, weight, etc (see Option A). I would suggest to go with one more action first (see Option B) but having a different style for the rest of the actions could allow more that two action links without degrading the user experience (see Option C). WDYT @taozuhong? /cc @billyyyyy3320

Current Option A Option B Option C
image image image image

If the consensus here is to have two only actions I would suggest to use the following config structure, otherwise following the structure proposed in #2261 (comment) looks good.

action:
- primaryText: Get Started →
  primaryLink: /guide/
- secondaryText: Documentation
  secondaryLink: /documentation/

@taozuhong
Copy link
Author

in our project, could have development / stable / long-term-support(LTS) / donate(contribute) options, so I suggest the structure and style like below:
action:

  • text: Action 2
    link: /whatever/
  • primaryText: Get Started →
    primaryLink: /guide/
  • text: Action 3
    link: /whatever/
  • text: Action N
    link: /whatever/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: core team review Priority issues for the core team to review
Projects
None yet
Development

No branches or pull requests

4 participants