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

Loader component #108

Open
wants to merge 5 commits into
base: frontend
Choose a base branch
from
Open

Loader component #108

wants to merge 5 commits into from

Conversation

martao02p
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Jul 22, 2023

Deploy Preview for akai-guide-me ready!

Name Link
🔨 Latest commit 60e7974
🔍 Latest deploy log https://app.netlify.com/sites/akai-guide-me/deploys/64bc1a16b74b800008fe863f
😎 Deploy Preview https://deploy-preview-108--akai-guide-me.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.

@martao02p martao02p changed the base branch from main to frontend July 22, 2023 18:04
Copy link
Collaborator

@marcol13 marcol13 left a comment

Choose a reason for hiding this comment

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

Wow! Super robota! Szczególnie z tym SCSS! Gratulacje 🥳

Przypomniało mi się, że brakuje jeszcze Storybooka :) Jesteś w stanie dodać jeszcze tam ten komponent?

@@ -0,0 +1,87 @@
@import '../../assets/styles/abstracts/variables';

$coloursPrimary:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Tutaj w sumie mogłabyś zmienić nazwę zmiennej na taką, która bardziej by pasowała CSSowej konwencji nazewniczej, tzn. wykorzystać kebab-case.

Czyli zamiast $coloursPrimary to $colours-primary


$delays: 0.1s, 0.25s, 0.4s, 0.6s, 0.8s;

@mixin loader-dots-colouring($colours, $delays) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I w sumie możesz zmienić jeszcze wszędzie wystąpienia colour na color. Obie wersje językowo są poprawne, ale w programowaniu częściej można znaleźć tą krótszą 😉

transform: translateY(0);
}
25% {
transform: tborderranslateY(5px);
Copy link
Collaborator

Choose a reason for hiding this comment

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

tutaj masz chyba literówkę, wydaje mi się, że powinno być samo translateY

width: 35px;
margin-right: 15px;
}
@keyframes loading {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Myślę, że możesz dać @keyframes w mixin i poprzez jakiś argument definiować jak wysoko mają te kropki skakać.

Ten fragment kodu jest prawie identyczny z tym co jest w linijce 44, więc można z tego zrobić swego rodzaju funkcję :)

Copy link
Collaborator

@marcol13 marcol13 left a comment

Choose a reason for hiding this comment

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

Super robota! 🥳

@@ -0,0 +1,78 @@
@import '../../assets/styles/abstracts/variables';
Copy link
Contributor

Choose a reason for hiding this comment

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

replace with @use

@@ -0,0 +1,78 @@
@import '../../assets/styles/abstracts/variables';

$colors-primary:
Copy link
Contributor

Choose a reason for hiding this comment

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

Aren't these colors in variables file?

Copy link
Collaborator

Choose a reason for hiding this comment

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

There is array of colors definition. In file variables.scss one variable stores one value. In this case array is good approach imo

align-items: center;

span {
height: 25px;
Copy link
Contributor

Choose a reason for hiding this comment

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

convert to rem or add TODO comment to dont forget to refactor in the future ;)

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