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

Adding loading component #108

Conversation

lazywithclass
Copy link
Contributor

New PR as per #106

Copy link
Collaborator

@lightandluck lightandluck left a comment

Choose a reason for hiding this comment

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

Overall, this is awesome! Just need some minor changes for aesthetic reasons and code consistency.

@@ -0,0 +1,12 @@
import * as React from 'react';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use import React from 'react' here. #101 explains why.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure

animation: progress-bar-stripes .5s linear infinite;
}

.dotdotdot:after {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please keep .dotdotdot class and animation. It's still useful for text as mentioned in #107

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure

margin-left: 20px;
height: 70px;
background-image: url(../img/infinity-loader.svg);
background-repeat: no-repeat;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add background-position-x: center instead of using margin-left? Just preferred aesthetically.

Copy link
Contributor Author

@lazywithclass lazywithclass Aug 20, 2017

Choose a reason for hiding this comment

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

Sure, I'm a terrible noob when talking CSS, could you please share a link about the differences?

Aaah, I see, it moves the loading image at the center, ok!

</div>
</div>
</div>
<div id="web-monitoring-ui-root"></div>
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should replace that old div.row with div.loading here, too.

Copy link
Contributor Author

@lazywithclass lazywithclass Aug 20, 2017

Choose a reason for hiding this comment

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

I didn't get this one, sorry, I removed the old loading and left it as it was because when loading the page the new loader appears; what should I do?

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 a short amount of time before the React app renders, so I was suggesting that a div.loading was placed in the root div where the other one was before. It gets quickly replaced anyway, so not a big deal, just me being fussy. I'm working on some loading stuff and I really want to use your loading component, so I'll merge and just add this myself.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok I see :)

@lightandluck
Copy link
Collaborator

Great job on everything! Thanks a lot for this!

@lightandluck lightandluck merged commit 18fd340 into edgi-govdata-archiving:master Aug 20, 2017
@lazywithclass lazywithclass deleted the adding-loading-component branch August 20, 2017 23:07
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.

2 participants