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(dashboard): signup and login page design update #7070

Open
wants to merge 12 commits into
base: next
Choose a base branch
from

Conversation

scopsy
Copy link
Contributor

@scopsy scopsy commented Nov 19, 2024

What changed? Why was the change needed?

  • Updated design for sign in and sign up pages
  • Data Residency region picker
  • Updated Auth Layout

Screenshots

CleanShot 2024-11-20 at 11 47 40@2x
CleanShot 2024-11-20 at 11 47 54@2x
CleanShot 2024-11-20 at 11 48 02@2x

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

netlify bot commented Nov 19, 2024

Deploy Preview for novu-stg-vite-dashboard-poc ready!

Name Link
🔨 Latest commit e5f0c14
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/673eec8611828900085aa1a0
😎 Deploy Preview https://deploy-preview-7070--novu-stg-vite-dashboard-poc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

return (
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 17 16" fill="none" {...props}>
<path
d="M6.50004 7.99999L7.83337 9.33333L10.5 6.66666M15.1667 7.99999C15.1667 11.6819 12.1819 14.6667 8.50004 14.6667C4.81814 14.6667 1.83337 11.6819 1.83337 7.99999C1.83337 4.3181 4.81814 1.33333 8.50004 1.33333C12.1819 1.33333 15.1667 4.3181 15.1667 7.99999Z"
stroke="#1FC16B"
stroke={props.color ?? '#1FC16B'}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the abilty to update the color from the default green

Copy link
Contributor

Choose a reason for hiding this comment

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

Variant styles should be applied via Tailwind classes on the className prop only, not via new props. So you can simply pass something like: <CircleCheck className="stroke-accent" />, or replace accent with an override using stroke-[red] or whichever color is necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rifont issue is that I need this to be applied to the specific path element which is a child of the SVG parent. Will check if I can somehow convert it to use nesting.

@scopsy scopsy requested review from desiprisg and removed request for ChmaraX November 20, 2024 09:49

Choose a reason for hiding this comment

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

Copilot reviewed 12 out of 21 changed files in this pull request and generated no suggestions.

Files not reviewed (9)
  • apps/dashboard/src/components/icons/flags/eu.tsx: Language not supported
  • apps/dashboard/src/components/icons/flags/us.tsx: Language not supported
  • apps/dashboard/src/components/icons/plug.tsx: Language not supported
  • apps/dashboard/src/components/icons/shield-zap.tsx: Language not supported
  • apps/dashboard/src/components/icons/sparkling.tsx: Language not supported
  • apps/dashboard/src/pages/sign-up.tsx: Evaluated as low risk
  • apps/dashboard/src/utils/clerk-appearance.ts: Evaluated as low risk
  • apps/dashboard/src/components/icons/circle-check.tsx: Evaluated as low risk
  • apps/dashboard/src/components/auth-layout.tsx: Evaluated as low risk
</TooltipProvider>
</div>
<Select value={selectedRegion} onValueChange={handleRegionChange}>
<SelectTrigger className="h-[22px] w-[64px] p-[4px] pl-[6px] text-[10px] leading-[14px]">
Copy link
Contributor

Choose a reason for hiding this comment

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

Tailwind operates with multiples of 4 for all spacing properties, so here is an example of what you would use here:

Suggested change
<SelectTrigger className="h-[22px] w-[64px] p-[4px] pl-[6px] text-[10px] leading-[14px]">
<SelectTrigger className="h-[22px] w-16 p-1 pl-1.5 text-[10px] leading-[14px]">

Futhermore, you should always try the builtin default multiples first to see if they feel appropriate. This ensures that the base variable spacing values can be modified and the rest of the application updates dynamically with them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Perfect, on it. Thank you

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the example of h-[22px] is it ok to use h-5.5 similiar to pl-1.5?

Copy link
Contributor

Choose a reason for hiding this comment

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

chore: Please parse all SVGs through https://jakearchibald.github.io/svgomg/ to clean up redundant values and optimize size, most often we can reduce the total bytes by 50%

<div className="inline-flex flex-col items-start justify-start px-5">
<div className="flex flex-col items-start justify-start">
<div className="relative h-[20px]">
<img src={`/images/auth/${name}-customer.svg`} alt={name} />
Copy link
Contributor

@rifont rifont Nov 20, 2024

Choose a reason for hiding this comment

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

nice use ofalt - accessibility 😍

Copy link
Contributor

Choose a reason for hiding this comment

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

was it Dima or Cursor, we will never know ;)

Copy link
Contributor

Choose a reason for hiding this comment

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

Beautiful!!

@scopsy scopsy requested a review from rifont November 21, 2024 08:17
@scopsy scopsy changed the title feat(dashboard): signup and login page design update - DRAFT feat(dashboard): signup and login page design update Nov 21, 2024
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