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

Updates to Anonymous Landing Page #2741

Merged
merged 12 commits into from
Aug 24, 2023
Merged

Updates to Anonymous Landing Page #2741

merged 12 commits into from
Aug 24, 2023

Conversation

ciyer
Copy link
Contributor

@ciyer ciyer commented Aug 16, 2023

An update to the landing page.

Fix #2681

/deploy renku=renku-ui/3.11-acceptance-tests #persist

@ciyer
Copy link
Contributor Author

ciyer commented Aug 17, 2023

From the meeting today:

@ciyer ciyer force-pushed the ciyer/2681-landing branch 4 times, most recently from 16e59f2 to e493e22 Compare August 18, 2023 13:34
@ciyer
Copy link
Contributor Author

ciyer commented Aug 18, 2023

Screenshots

image image

@ciyer ciyer temporarily deployed to renku-ci-ui-2741 August 18, 2023 15:18 — with GitHub Actions Inactive
@RenkuBot
Copy link
Contributor

You can access the deployment of this PR at https://renku-ci-ui-2741.dev.renku.ch

@ciyer ciyer temporarily deployed to renku-ci-ui-2741 August 21, 2023 10:35 — with GitHub Actions Inactive
@ciyer ciyer temporarily deployed to renku-ci-ui-2741 August 22, 2023 06:37 — with GitHub Actions Inactive
@ciyer ciyer temporarily deployed to renku-ci-ui-2741 August 22, 2023 07:59 — with GitHub Actions Inactive
@ciyer ciyer marked this pull request as ready for review August 22, 2023 08:36
@ciyer ciyer requested a review from a team as a code owner August 22, 2023 08:36
@ciyer ciyer temporarily deployed to renku-ci-ui-2741 August 22, 2023 08:36 — with GitHub Actions Inactive
@ciyer ciyer marked this pull request as draft August 22, 2023 08:46
@ciyer ciyer temporarily deployed to renku-ci-ui-2741 August 22, 2023 09:01 — with GitHub Actions Inactive
@ciyer ciyer temporarily deployed to renku-ci-ui-2741 August 22, 2023 09:42 — with GitHub Actions Inactive
@ciyer
Copy link
Contributor Author

ciyer commented Aug 22, 2023

Testing: check that the new design matches Figma

@ciyer ciyer marked this pull request as ready for review August 22, 2023 09:57
</Col>
<Col md={3}>
<BottomNavSection sectionTitle="Follow us">
<BottomNavExternalLink title="Twitter" url={Links.TWITTER} />
Copy link
Member

Choose a reason for hiding this comment

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

🤓

Suggested change
<BottomNavExternalLink title="Twitter" url={Links.TWITTER} />
<BottomNavExternalLink title="𝕏 (formerly Twitter)" url={Links.TWITTER} />

Copy link
Member

Choose a reason for hiding this comment

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

Some companies have already updated it actually. e.g. a marketing email I received:
image

Copy link
Member

@lorenzo-cavazzi lorenzo-cavazzi left a comment

Choose a reason for hiding this comment

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

This looks good! A couple of tiny changes before merging:

  • The buttons margin/spacing could be improved by removing the right margin and adding X margins, and adding either the bottom or Y margins. Currently, they have no bottom margin and the first 2 buttons have a right margin, making their borders collapse together on smaller screens and moving them into a non horizonatally centered position.
    image

  • Bottom margins on the top container are inconsistent, depending on the browser size
    Peek 2023-08-22 13-23

  • See inline typos

client/src/landing/anonymousHomeNav.tsx Outdated Show resolved Hide resolved
client/src/landing/anonymousHomeNav.tsx Outdated Show resolved Hide resolved
Copy link
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

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

About styling: I would suggest avoiding global CSS definitions and using Bootstrap's utility classes as much as possible. For cases when custom styling is required, (S)CSS modules seem appropriate as they will not affect components outside of their scope.

@@ -135,6 +135,18 @@ $borderRadius: 1000px;
}
}

.btn-outline-rk-white {
Copy link
Member

Choose a reason for hiding this comment

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

This class is generated by Bootstrap, I would prefer if we do not change its behavior globally. Would it be possible to override this in a (S)CSS module?

Also, overriding the color can be done with the bootstrap CSS variables (e.g. check the overrides from btn-danger or btn-outline-danger).

client/src/styles/components/_renku_home.scss Outdated Show resolved Hide resolved
@@ -100,6 +114,17 @@ nav.rk-anon-home .nav-link {
}
}

#rk-anon-home-bottom-nav {
@extend .section-content, .bg-primary;
color: $rk-white;
Copy link
Member

Choose a reason for hiding this comment

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

Use text-rk-white as a class name.

client/src/styles/components/_renku_home.scss Outdated Show resolved Hide resolved
client/src/styles/components/_renku_home.scss Outdated Show resolved Hide resolved
@ciyer ciyer temporarily deployed to renku-ci-ui-2741 August 22, 2023 12:11 — with GitHub Actions Inactive
@ciyer ciyer temporarily deployed to renku-ci-ui-2741 August 22, 2023 13:52 — with GitHub Actions Inactive
@ciyer ciyer temporarily deployed to renku-ci-ui-2741 August 22, 2023 21:44 — with GitHub Actions Inactive
@ciyer ciyer temporarily deployed to renku-ci-ui-2741 August 23, 2023 07:05 — with GitHub Actions Inactive
@ciyer
Copy link
Contributor Author

ciyer commented Aug 23, 2023

Thanks for the reviews, it's important that this page be polished. I think I have addressed all requests.

@ciyer ciyer temporarily deployed to renku-ci-ui-2741 August 23, 2023 08:15 — with GitHub Actions Inactive
@@ -176,6 +164,16 @@ $borderRadius: 1000px;
--bs-btn-active-color: white;
}

.btn-rk-over-green {
--bs-btn-active-bg: #{$rk-green};
Copy link
Member

Choose a reason for hiding this comment

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

As a note, I think var(--bs-rk-green) would work too.

client/src/landing/anonymousHome.types.ts Outdated Show resolved Hide resolved
</Col>
<Col md={3}>
<BottomNavSection sectionTitle="Follow us">
<BottomNavExternalLink title="Twitter" url={Links.TWITTER} />
Copy link
Member

Choose a reason for hiding this comment

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

Some companies have already updated it actually. e.g. a marketing email I received:
image

Co-authored-by: Flora Thiebaut <johann.thiebaut@sdsc.ethz.ch>
@ciyer ciyer temporarily deployed to renku-ci-ui-2741 August 23, 2023 11:47 — with GitHub Actions Inactive
Copy link
Member

@lorenzo-cavazzi lorenzo-cavazzi left a comment

Choose a reason for hiding this comment

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

Lgtm.
Keep using "Twitter" works fine for me since the new name is hard to relate to the product without the icon or specifying that it's actually what used to be Twitter

@ciyer ciyer merged commit 29308e0 into master Aug 24, 2023
14 checks passed
@ciyer ciyer deleted the ciyer/2681-landing branch August 24, 2023 07:26
@RenkuBot
Copy link
Contributor

Tearing down the temporary RenkuLab deplyoment for this PR.

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.

Re-organize the top and bottom bars on the landing page for anonymous users
5 participants