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
Learn Area Footer Redesign #1645
Conversation
44ed8d4
to
dd98102
Compare
Hey @sophiatunji! This is really nice, the only two things left to do seem
|
Thank you for the review Sabine! Will make the necessary changes! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @sophiatunji, that looks really good already! 👍 Here's some feedback:
- Policies section should not be fixed to the bottom. This is just a part of the non-sticky footer.
- On small screens (320px): We need to figure out how to collapse this in a way that works. Policies section is too wide to be a single row. Resources section seems to have whitespace right of it that looks empty, while the left column seems very compressed.
- whitespace between OCaml Logo and "Innovation. Community. Security." seems slightly larger in the design than in the implementation.
- In the design, there is a small spacing above the section headings that this implementation doesn't have. See Figma:
<section class="flex justify-between w-[80%]"> | ||
<div class="flex flex-col gap-4"> | ||
<div class="flex flex-col gap-4"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, I'll put this on staging for our designer to review! 👍 |
Thanks for the review! I have made the recommended adjustments. cc @SaySayo @sabine @Clairevanden |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @sophiatunji, great work, here's some detail adjustments.
I figured a grid column layout will probably collapse better here (just like the existing footer on the other pages) and adjusted some paddings and spacings.
@@ -114,8 +114,9 @@ Layout.base | |||
<%s! left_sidebar_html %> | |||
</div> | |||
|
|||
<div class="flex-1 z-0 z- min-w-0 pt-6 pb-12 md:pb-[70vh]"> | |||
<div class="flex-1 z-0 z- min-w-0 pt-6 pb-12"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div class="flex-1 z-0 z- min-w-0 pt-6 pb-12"> | |
<div class="flex-1 z-0 z- min-w-0 pt-6"> |
remove bottom padding so we can't scroll past the footer
@@ -121,8 +121,9 @@ inner_html | |||
<%s! Option.value ~default:"" left_sidebar_html %> | |||
</div> | |||
|
|||
<div class="flex-1 z-0 z- min-w-0 lg:pt-6 pb-12 lg:pb-[70vh] <%s! if right_sidebar_html != None then "lg:max-w-3xl" else "" %>"> | |||
<div class="flex-1 z-0 z- min-w-0 lg:pt-6 pb-12 <%s! if right_sidebar_html != None then "lg:max-w-3xl" else "" %>"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div class="flex-1 z-0 z- min-w-0 lg:pt-6 pb-12 <%s! if right_sidebar_html != None then "lg:max-w-3xl" else "" %>"> | |
<div class="flex-1 z-0 z- min-w-0 lg:pt-6 <%s! if right_sidebar_html != None then "lg:max-w-3xl" else "" %>"> |
<a href="<%s Url.carbon_footprint %>" class="font-normal text-lighter leading-7 py-1">Carbon Footprint</a> | ||
<a href="<%s Url.governance %>" class="font-normal text-lighter leading-7 py-1">Governance</a> | ||
<a href="<%s Url.privacy_policy %>" class="font-normal text-lighter leading-7 py-1">Privacy</a> | ||
<a href="<%s Url.code_of_conduct %>" class="font-normal text-lighter leading-7 py-1">Code Of Conduct</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<a href="<%s Url.carbon_footprint %>" class="font-normal text-lighter leading-7 py-1">Carbon Footprint</a> | |
<a href="<%s Url.governance %>" class="font-normal text-lighter leading-7 py-1">Governance</a> | |
<a href="<%s Url.privacy_policy %>" class="font-normal text-lighter leading-7 py-1">Privacy</a> | |
<a href="<%s Url.code_of_conduct %>" class="font-normal text-lighter leading-7 py-1">Code Of Conduct</a> | |
<a href="<%s Url.carbon_footprint %>" class="font-normal text-lighter leading-7 p-2.5">Carbon Footprint</a> | |
<a href="<%s Url.governance %>" class="font-normal text-lighter leading-7 p-2.5">Governance</a> | |
<a href="<%s Url.privacy_policy %>" class="font-normal text-lighter leading-7 p-2.5">Privacy</a> | |
<a href="<%s Url.code_of_conduct %>" class="font-normal text-lighter leading-7 p-2.5">Code Of Conduct</a> |
</div> | ||
</footer> | ||
<div | ||
class="flex flex-wrap gap-x-7 md:justify-between items-center py-4 border-solid border-t-[1px] border-[#00000033] bottom-0 bg-white"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class="flex flex-wrap gap-x-7 md:justify-between items-center py-4 border-solid border-t-[1px] border-[#00000033] bottom-0 bg-white"> | |
class="flex flex-wrap gap-x-7 md:justify-between items-center py-2 border-solid border-t-[1px] border-[#00000033] bottom-0 bg-white"> |
<a href="<%s Url.install %>" class="font-normal text-lighter leading-7 py-1">Install OCaml</a> | ||
<a href="<%s Url.getting_started %>" class="font-normal text-lighter leading-7 py-1">Get Started</a> | ||
<a href="<%s Url.platform %>" class="font-normal text-lighter leading-7 py-1">Platform Tools</a> | ||
<a href="<%s Url.manual %>" class="font-normal text-lighter leading-7 py-1">Language Manual</a> | ||
<a href="<%s Url.api %>" class="font-normal text-lighter leading-7 py-1">Standard Library API</a> | ||
<a href="<%s Url.books %>" class="font-normal text-lighter leading-7 py-1">Books</a> | ||
<a href="<%s Url.exercises %>" class="font-normal text-lighter leading-7 py-1">Exercises</a> | ||
<a href="<%s Url.papers %>" class="font-normal text-lighter leading-7 py-1">Papers</a> | ||
<a href="<%s Url.playground %>" class="font-normal text-lighter leading-7 py-1">OCaml Playground</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<a href="<%s Url.install %>" class="font-normal text-lighter leading-7 py-1">Install OCaml</a> | |
<a href="<%s Url.getting_started %>" class="font-normal text-lighter leading-7 py-1">Get Started</a> | |
<a href="<%s Url.platform %>" class="font-normal text-lighter leading-7 py-1">Platform Tools</a> | |
<a href="<%s Url.manual %>" class="font-normal text-lighter leading-7 py-1">Language Manual</a> | |
<a href="<%s Url.api %>" class="font-normal text-lighter leading-7 py-1">Standard Library API</a> | |
<a href="<%s Url.books %>" class="font-normal text-lighter leading-7 py-1">Books</a> | |
<a href="<%s Url.exercises %>" class="font-normal text-lighter leading-7 py-1">Exercises</a> | |
<a href="<%s Url.papers %>" class="font-normal text-lighter leading-7 py-1">Papers</a> | |
<a href="<%s Url.playground %>" class="font-normal text-lighter leading-7 py-1">OCaml Playground</a> | |
<a href="<%s Url.install %>" class="font-normal text-lighter leading-7 py-2.5">Install OCaml</a> | |
<a href="<%s Url.getting_started %>" class="font-normal text-lighter leading-7 py-2.5">Get Started</a> | |
<a href="<%s Url.platform %>" class="font-normal text-lighter leading-7 py-2.5">Platform Tools</a> | |
<a href="<%s Url.manual %>" class="font-normal text-lighter leading-7 py-2.5">Language Manual</a> | |
<a href="<%s Url.api %>" class="font-normal text-lighter leading-7 py-2.5">Standard Library API</a> | |
<a href="<%s Url.books %>" class="font-normal text-lighter leading-7 py-2.5">Books</a> | |
<a href="<%s Url.exercises %>" class="font-normal text-lighter leading-7 py-2.5">Exercises</a> | |
<a href="<%s Url.papers %>" class="font-normal text-lighter leading-7 py-2.5">Papers</a> | |
<a href="<%s Url.playground %>" class="font-normal text-lighter leading-7 py-2.5">OCaml Playground</a> |
<li> | ||
<a class="h-10 md:h-12 flex items-center text-lighter" href="<%s Url.jobs %>" class="text-base leading-6 text-lighter">Jobs</a> | ||
</li> | ||
<div class="flex flex-col gap-2"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div class="flex flex-col gap-2"> | |
<div class="flex flex-col"> |
6e16b02
to
b7e920f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @sophiatunji for the contribution, this is ready to merge now! 👍
This fixes #1591.