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

Astro/download page [RFR] #1164

Merged
merged 32 commits into from
Dec 7, 2023
Merged

Astro/download page [RFR] #1164

merged 32 commits into from
Dec 7, 2023

Conversation

djacu
Copy link
Member

@djacu djacu commented Nov 23, 2023

To reviewers:
Please check that the NixOS AWS EC2 selection works correctly and updates the table.

  • Fix vertical centering on the tabs.
  • Panels that aren't the full width are not filling the remaining column.
  • Need to add mobil (small screen) styling.
  • Need to extract AMIs into a content file and map over it.
  • Fix tabs not filling the parent.
  • Tabs don't look exactly the same as the original when the screen is small (when the cross over to medium size).

@djacu djacu changed the base branch from master to main November 23, 2023 17:25
Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

@djacu djacu changed the title Astro/download page [WIP] Astro/download page [RFR] Nov 25, 2023
Copy link
Contributor

@djacu
Copy link
Member Author

djacu commented Nov 25, 2023

@garbas @thilobillerbeck This is ready for review. It works as far as I can tell.

One thing I didn't realize was how the tabs for the different section changed when the screen is less wide. I didn't account for this when designing the components. It can probably be fixed but I haven't figured out how to do it yet.

You can see the comparison below. The old way hides the original tabs and unhides these header tags that are used to collapse the content after. The way I have it now is that the just changes the grid layout.

What do you think? Do we want to match the old way?
If so, and either of you want to give it a try, please feel free.
I've been working on this for 3 days and need a break.

OLD

image

NEW

image

@thilobillerbeck
Copy link
Collaborator

thilobillerbeck commented Nov 29, 2023

nice work, Ill do the review later this day

Copy link
Collaborator

@thilobillerbeck thilobillerbeck left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for your work! There are some small things I marked with a comment but nothing too big.

One thing this implementation clearly leaves open is how we deal with hard coded links to things like NixOS releases, I think it would be better if there would be a place to just swap verison numbers on release and all URLS adapt.

Apart from that I like the mobile UI. It is (against what we planned) not a 1:1 port of the original design but it's okay for me. In the future we maybe could add some kind of dropdown at the top with a heading like Choose platform to save on mobile screen space, but it's okay for now. :)

src/components/pages/download/components/recommended.astro Outdated Show resolved Hide resolved
src/content/aws-ec2/options.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

github-actions bot commented Dec 7, 2023

djacu added 3 commits December 6, 2023 22:47
…ton components. Also, fixed the classList arg for the Button component.
… how to use them properly. Restored to how they used to be. And fixed how they are used in the Download page.
@djacu djacu requested a review from thilobillerbeck December 7, 2023 07:03
Copy link
Contributor

github-actions bot commented Dec 7, 2023

@djacu
Copy link
Member Author

djacu commented Dec 7, 2023

@thilobillerbeck all changes resolved
See 2a2b082 for modifications to the Button class to allow for optional SHA arguments.
See 86e3ee3 for the new Tag class.

@thilobillerbeck
Copy link
Collaborator

looks good, the Button on the /learn page seems to be broken but this is a fix we can incorporate shortly before publishing the site. Thx for the work.

@thilobillerbeck thilobillerbeck merged commit ce93588 into main Dec 7, 2023
2 checks passed
@thilobillerbeck thilobillerbeck deleted the astro/download-page branch December 7, 2023 14:21
thilobillerbeck pushed a commit that referenced this pull request Dec 8, 2023
Fixes the lg-full size in the Button component as mentioned here:
#1164 (comment)
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.

2 participants