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

Styleguide Update #8

Merged
merged 33 commits into from Feb 19, 2022
Merged

Styleguide Update #8

merged 33 commits into from Feb 19, 2022

Conversation

loichu
Copy link
Contributor

@loichu loichu commented Feb 4, 2022

Atoms

Button

Available in 2 versions:

  • Classic (.btn)
  • Danger (.btn--danger)

Image Container

Contains an image and can be shaped (Square, Circle, Rectangle) and sized (Small, Medium, Large, Big) using enum properties (Shape and Size. It is responsive out-of-the-box unless you choose to make it Adaptive sized in which case it will fill the parent. It is then parent's responsibility to be responsive. The image automatically covers the container in any case.

Message

Message contained in a box.

Molecules

ChatCard

Similar to Message excepts it also takes a pseudo which will be displayed on the left of a default image on top of the message. By default the message is a left message (.chat-card-container) but it can also be a right message (chat-card-container--right).

Nav

It takes an array of link objects and makes it a list of links.

UserCard

Exists in 2 versions:

  • classic (main-user-card)
  • full (main-user-card--full)

It displays a user with a default profile picture, a pseudo and a rating (react-stars). There is also a warning icon on the top right but it doesnt do anything yet nor serve any purpose. In full mode it also displays a location, a rank and a button "Notifier".

Organism

Header

Displays a menu with a default app icon and default user avatar. It takes The user path and the title as well a styleClass as parameters.

@loichu loichu requested a review from MarJC5 February 4, 2022 13:04
@loichu loichu self-assigned this Feb 4, 2022
color: red;
@import "styles/variables";
@import "styles/atoms/buttons";
.btn {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should use a pointer cursor

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#9

import styles from './Button.module.scss';
import style from "./Button.module.scss";

interface types {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should take an onClick event

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#10

rank="6H"
location="Lausanne"
>
<svg
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should make an Icon atom component

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#11

@loichu loichu mentioned this pull request Feb 4, 2022
@loichu loichu linked an issue Feb 4, 2022 that may be closed by this pull request
@loichu loichu linked an issue Feb 4, 2022 that may be closed by this pull request
@loichu loichu mentioned this pull request Feb 4, 2022
@loichu loichu linked an issue Feb 4, 2022 that may be closed by this pull request
@loichu loichu requested a review from Deegoh February 4, 2022 13:22
Copy link
Contributor

@Deegoh Deegoh left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@MarJC5 MarJC5 left a comment

Choose a reason for hiding this comment

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

LGTM

@Deegoh Deegoh merged commit e3c2a90 into main Feb 19, 2022
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.

Créer un composant Icon Exécuter une fonction lorsqu'on clique sur un bouton Button cursor pointer
4 participants