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

Added 'Getting Started' button and started improving homepage style #164

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Giovym
Copy link
Contributor

@Giovym Giovym commented Oct 16, 2023

Description

This pull request introduces two main changes:

  1. Added "Getting Started" and "Learn More" buttons to the homepage that provides quick access to the "Getting Started" section and to the new Resources page.
  2. Made style improvements to the homepage.

I've opened this pull request to address a specific aspect of issue #133, which is the improvement of the "Getting Started" navigation, while also initiating the process of modernizing the homepage's style.
I'm also open to different ideas and approaches for implementing these changes.

Related Issues

Partially addresses [#133]

Copy link
Member

@Eomm Eomm left a comment

Choose a reason for hiding this comment

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

cool - it looks nice!

few comments/taste discussions 😄

@@ -9,11 +9,24 @@
}

.hero {
background: url('/static/img/bg-pattern-dark.png');
/* background: url('/static/img/bg-pattern-dark.png'); */
Copy link
Member

Choose a reason for hiding this comment

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

don't like it?
other proposal?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Initially, I thought of leaving only the black background; it seemed to me a more modern and minimalist look. If, instead, we want to keep a background image, as an alternative, I would have something similar to this:

image

What do you think? Otherwise, it's perfectly fine to keep the current one.

align-items: center;
justify-content: center;
background-color: black;
height: 50vh;
Copy link
Member

Choose a reason for hiding this comment

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

more in line with the actual

Suggested change
height: 50vh;
height: 32vh;

Comment on lines 72 to 74
.text-center {
text-align: center;
}
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, I couldn't find something similar. Infima doesn't seem to have as many utility classes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Instead, it exists, it's not written in the documentation, but by trying, using Infima's style 'with double dash' I managed to use Infima's utility class. I will remove this line of code.

src/pages/index.jsx Show resolved Hide resolved
@mcollina
Copy link
Member

I think the text and logo size is too small.

Screenshot 2023-10-19 at 10 09 12

@jsumners
Copy link
Member

I think the text and logo size is too small.

The banner in that screenshot is huge. I much prefer the smaller banner on the current site. In my opinion, the focus should be on content, not a header.

@Giovym
Copy link
Contributor Author

Giovym commented Oct 19, 2023

I think the text and logo size is too small.

Thank you for your feedback. Yes, this happens because I used 'vh' as a unit of measurement for the height, so if we zoom out the page, the header still occupies half of the height. To fix it, I will remove this unit of measurement and set the height back to its original value.

Copy link
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

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

382 kb for an optical effect is a big no for me.

I am also visiting fastify.dev when I am in the train to get links to the documentation for answering people. I know that the image is cached. But still. If somebody wants to visit the page for the first time with his mobile, then traffic is wasted.

E.g. With #125 i also reduced the size of our avatars on the start page. And I especially checked with my mobile that the loading time is improved without having significant impact on the image quality.

Also the new background image seems to be not "crisp" and you can see that the transitions are pixelated. Seems like it was created in photoshop and the subpixels were not fixed. Maybe also the image was compressed first lossy (e.g. first save as jpg) and then transformed to png.

Also the current discussion reminds me of the old "make the logo bigger" joke/problem.

I apologize if my critique is too harsh.

@Giovym
Copy link
Contributor Author

Giovym commented Oct 20, 2023

Ok, it was just a suggestion. The main change in this pull request was the addition of the two buttons for quick access to the "Getting Started" and "Resources" pages. No problem, let's go back to the current image.

Copy link
Member

@Eomm Eomm left a comment

Choose a reason for hiding this comment

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

ops

image

@Giovym
Copy link
Contributor Author

Giovym commented Oct 26, 2023

ops

It seems that when I fixed the width for the two buttons to make them the same size, I have forgotten about these other two. I'll correct this issue. Additionally, I want to add a media query to adjust the spacing between the two buttons for smartphone users.

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