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

Refactor/frontend#139 #142

Merged
merged 11 commits into from
Mar 5, 2023
Merged

Conversation

phklive
Copy link
Contributor

@phklive phklive commented Mar 1, 2023

First draft for new identity UI.

According to the figma sent by @fricoben.

closes #139.

Some breaking changes.

Time worked 10 hours.

@vercel
Copy link

vercel bot commented Mar 1, 2023

@phklive is attempting to deploy a commit to the Starknet Builders Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Mar 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
goerli-app-starknet-id ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 5, 2023 at 8:31AM (UTC)

@fricoben
Copy link
Contributor

fricoben commented Mar 2, 2023

Capture d’écran 2023-03-02 à 10 02 11

Not Building

Copy link
Contributor

@fricoben fricoben left a comment

Choose a reason for hiding this comment

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

Some minor changes.

Guud work ser 🔥

</Tooltip>
);
return (
<Tooltip title={title} arrow>
Copy link
Contributor

Choose a reason for hiding this comment

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

This your local prettier rules right ? if you can use the one from the repo it would be great !

import MainIcon from "../UI/iconsComponents/icons/mainIcon";
import SocialMediaActions from "./actions/socialmediaActions";

interface identityCardProps {
Copy link
Contributor

Choose a reason for hiding this comment

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

We only use types ;).

The main difference that I know is that interface can extend other interfaces and it's not the case for types. That's the main reason why I'm using types for components

Copy link
Contributor

Choose a reason for hiding this comment

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

and the first letter must be in uppercase 🔥

return (firstPart + "..." + secondPart).toLowerCase();
}

export function responsiveDomain(
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a good naming imo cause it's not only used for responsive.

You can use breakDomainor shortenDomain for example.

What do you think ?

) : (
<>
<div className="flex flex-col items-center lg:flex-row w-full p-4 justify-center lg:gap-20 h-full">
<div className="w-11/12 mt-40 mb-10 lg:mt-0 lg:mb-0 lg:w-6/12 h-full flex justify-center items-center">
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't like when there is too much inline css with tailwind.

I understand that it can be faster than css tho, you can start with that and then use https://tailwind-to-css.vercel.app/ in order to create real css in another file.

Copy link
Contributor

@fricoben fricoben left a comment

Choose a reason for hiding this comment

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

That's dope 🔥

Some few things that you forgot.

1) Change the leaves here with new ones

Capture d’écran 2023-03-02 à 16 52 55

Capture d’écran 2023-03-02 à 16 53 09

2) Change the png leaves to svg ones (you can keep the image component but just change the URL).

Capture d’écran 2023-03-02 à 16 59 20

3) Fix the prod thing with the font

Capture d’écran 2023-03-02 à 16 59 23

4) Change the default font to what the designer proposed font (Poppins)

Poppins.zip

Check here how I did it this morning

5) Change all the TITLE fonts to what the designer proposed

You can search by "Montserrat Extra-Bold" and you just use quick zap instead. Did it also this morning on the previous file.

6) Refactor responsive on iPad

Capture d’écran 2023-03-02 à 17 12 56

Capture d’écran 2023-03-02 à 17 13 05

Capture d’écran 2023-03-02 à 17 12 11

There is a too-big margin-top on the tablet and the card is too big when it breaks imo (because you used width in %, you just need to add a max-width to it).

@fricoben fricoben merged commit 40f70f0 into lfglabs-dev:testnet Mar 5, 2023
@fricoben fricoben mentioned this pull request Mar 5, 2023
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.

Front End refactor
2 participants