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

Improve homepage hero design #459

Merged
merged 5 commits into from
Jun 13, 2022
Merged

Improve homepage hero design #459

merged 5 commits into from
Jun 13, 2022

Conversation

lhsazevedo
Copy link
Contributor

@lhsazevedo lhsazevedo commented Nov 18, 2021

view this proposal live here: https://php.lhsazevedo.dev/

Intro

The PHP webpage has received some design proposals in the past [1,2]. I think they didn't get traction or support from the community because they were drastic changes and walked away from the current PHP branding style.

But we had a recent case of a successful design improvement: the PHP 8.0 (and 8.1) release page.
The new release page proposed [3] by JetBrains employees was accepted and very well received by the community [4-7].

Inspired by the new release page, and following the same design principles, I would like to propose small tweaks to the home page hero section. Note that this is not a complete redesign, the current style is respected and improved upon.

Proposal

If accepted, this PR will adjust the home page hero section design to accomplish the following objectives:

  • Be friendlier to mobile devices.
  • Highlight common actions with CTAs.
  • Empower the PHP brand.

Some notable changes are:

  • Added the PHP logo as the first element
  • Added call-to-action buttons after the lead text
  • Moved active versions links after the CTAs
  • Centered the layout

Desktop overview

Desktop overview

Mobile overview

Mobile overview

At the moment. the actions are:

We can change those actions to better reflect user needs and the PHP team intentions.

Background

Back in Nov 2021, I created an issue proposing some adjustments to the design of the homepage hero section.

Preview

View this proposal live here: https://php.lhsazevedo.dev/

Desktop:
Screen Shot 2022-03-01 at 19 54 51

Mobile:
Screen Shot 2022-03-01 at 19 54 59

[1] #332
[2] https://externals.io/message/104088
[3] https://externals.io/message/112026
[4] https://externals.io/message/112026#112073
[5] #350 (comment)
[6] https://twitter.com/official_php/status/1331989622025580550
[7] https://twitter.com/official_php/status/1463949488016564230

@lhsazevedo lhsazevedo changed the title Adjust homepage hero Improve homepage hero design Nov 26, 2021
@lhsazevedo
Copy link
Contributor Author

lhsazevedo commented Mar 1, 2022

I just set up a temporary mirror. Preview this proposal here: https://php.lhsazevedo.dev/

The forced push was just a rebase with master.

styles/home.css Outdated Show resolved Hide resolved
@kamil-tekiela
Copy link
Member

I like this and I am in favour of it. I would even put the aside permanently at the bottom. I would also change the "upgrading" text to "migration guide"

lhsazevedo and others added 2 commits March 2, 2022 17:13
The <strong> tag currently defaults to a 700 font-weight, which causes
weird looking results on Windows as the higher weight included for the
Fira Sans font is 500.
@lhsazevedo
Copy link
Contributor Author

I would also change the "upgrading" text to "migration guide"

Initially I intended to change this text as well, but later decided to left it out to reduce the number of changes in this patch. Should we create an issue for this?

Thanks for reviewing.

Center align the hero versions on mobile screens.
Additionally, increases the margin between versions to prevent
users from mistapping.
Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice improvement. Thank you!

The only concern I have is prominently linking to https://www.php.net/manual/en/getting-started.php. Especially the "simple tutorial" is in urgent need of some TLC. On the other hand, this may help to get that part improved.

So, if there are no objections, I'll merge this early next week.

@lhsazevedo
Copy link
Contributor Author

I'm happy to hear you liked it @cmb69!

Another option for the primary action is the latest release page.
This seems to be a page visitors will be looking for, and what the team want to showcase as well.

Here's how it would look like:
Desktop preview

We could create an issue for polishing the simple tutorial and link when it's done.

@cmb69
Copy link
Member

cmb69 commented Jun 10, 2022

Linking to the latest release page is also okayish for me, although that is not quite what I'd expect on "Get Started".

Changes the primary action to "What's new in 8.1", linking to
the release page. The Getting Started section in the manual
needs some care before being actively promoted.

Co-authored-by: Christoph M. Becker <[email protected]>
@lhsazevedo
Copy link
Contributor Author

lhsazevedo commented Jun 10, 2022

Oh sure, the text would also be updated to reflect the link.

The button is now "What's new in 8.1" and links to the release page. I updated the live preview (may need a force refresh), and there is a screenshot in my previous comment as well.

Looks great to me!

@cmb69 cmb69 merged commit cfcf303 into php:master Jun 13, 2022
@lhsazevedo lhsazevedo deleted the home branch June 13, 2022 19:13
@lhsazevedo
Copy link
Contributor Author

Awesome, thanks everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants