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

feat add invitation banner for landing page #3431

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adam-strzelec
Copy link
Contributor

Description

Add colony invitation banner for landing page

Testing

  • Run storybook
  • Open Colony Invitation Banner

Diffs

New stuff

Screenshot 2024-10-22 at 18 43 47 Screenshot 2024-10-22 at 19 03 50

Main issue - #3392

@adam-strzelec adam-strzelec self-assigned this Oct 22, 2024
@adam-strzelec adam-strzelec requested review from a team as code owners October 22, 2024 17:04
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


strzelec seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

@mmioana mmioana left a comment

Choose a reason for hiding this comment

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

What a nice component @adam-strzelec 🙌

Design wise seem to be looking as expected
Screenshot 2024-10-24 at 10 59 48
Screenshot 2024-10-24 at 10 59 50
Screenshot 2024-10-24 at 10 59 53

Left a veeeery tiny refactoring comment 😁
But nice job 🎉

<p className="mt-2 text-sm font-normal">
{formatText({
id:
coloniesRemaining > 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's refactor this into a constant const hasColoniesRemaining = coloniesRemaining > 0 and use it here

: 'landingPage.invitationBanner.descriptionNoRemaining',
})}
</p>
{coloniesRemaining > 0 && (
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use hasColoniesRemaining also here

Copy link
Contributor

@mmioana mmioana left a comment

Choose a reason for hiding this comment

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

Sorry @adam-strzelec on a second look I found some small mismatches with Figma

return (
<div className="w-full max-w-[31.25rem] rounded-2xl border px-6 py-6">
<div className="flex h-10 w-10 items-center justify-center rounded-md border">
<SmileySticker size={20} />
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually on a second look, I think this should be 24

<div className="flex h-10 w-10 items-center justify-center rounded-md border">
<SmileySticker size={20} />
</div>
<h1 className="mb-[.625rem] mt-[.625rem] heading-4">
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we use here my-2.5

)}
</span>

<p className="mt-2 text-sm font-normal">
Copy link
Contributor

Choose a reason for hiding this comment

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

And I think we should also apply text-gray-700

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.

3 participants