Skip to content

Conversation

@kulikov98
Copy link

No description provided.

@@ -0,0 +1,2 @@
.DS_Store
Vladimir Kulikov/node_modules

Choose a reason for hiding this comment

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

You have script to create style.css file. That's why it also should be added in gitignore

Copy link
Author

Choose a reason for hiding this comment

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

Sure, I just thought maybe you will not download this repo and compiled css files will be useful. Fixed)

<article class="weather-widget">
<section class="weather-widget__top">
<div class="weather-widget__image">
<img src="img/cloudy.png" alt="">

Choose a reason for hiding this comment

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

alt can't be empty.
if image isn't loaded, user will see this text

@include font('SourceSansPro-SemiBold');
@include font('OpenSans-Regular');

html {
Copy link

@mariia-zu mariia-zu Jul 13, 2019

Choose a reason for hiding this comment

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

Try to avoid adding css rule on html tag

Copy link
Author

Choose a reason for hiding this comment

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

ok

height: 100%;
}

body {
Copy link

@mariia-zu mariia-zu Jul 13, 2019

Choose a reason for hiding this comment

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

Here https://www.w3.org/Style/Examples/007/center.ru.html you can read how you can locate you widget in the center

Copy link
Author

Choose a reason for hiding this comment

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

Added wrapper.

box-shadow: 0 21px 19px rgba(0, 0, 0, 0.15);
}

.weather-widget__top {

Choose a reason for hiding this comment

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

If you use sccs, you can write like this:

.weather-widget {
    &__top {
         ...
    }
}

Copy link
Author

Choose a reason for hiding this comment

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

good advice, thanks)

.weather-widget__dot {
width: 6px;
height: 6px;
border: 2px solid #565a5b;

Choose a reason for hiding this comment

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

Add variable for this color

Copy link
Author

Choose a reason for hiding this comment

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

done


.weather-widget__dot_active {
@extend .weather-widget__dot;
background: #eee;

Choose a reason for hiding this comment

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

Add variable for this color

Copy link
Author

Choose a reason for hiding this comment

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

done

<section class="weather-widget__top">
<div class="weather-widget__image">
<img src="img/cloudy.png" alt="">
<button></button>

Choose a reason for hiding this comment

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

This button doesn't have any text. If some problems with image downloading, user doesn't see anything. It's better to use here and fill alt.
And anyway you should add class for button to write css rule

Copy link
Author

@kulikov98 kulikov98 Jul 14, 2019

Choose a reason for hiding this comment

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

Completely agree, alt is very useful especially on buttons without text.

<span class="weather-widget__clear">83%</span>
</div>
<div class="weather-widget__pagination">
<span class="weather-widget__dot weather-widget__dot_active"></span>

Choose a reason for hiding this comment

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

You use BEM. Then active is modifier. This class should be called weather-widget__dot--active

Copy link
Author

Choose a reason for hiding this comment

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

You talking about alternate BEM syntax called 'two dashes', I'm using basic here.

.weather-widget__top-info {
@include flex(space-between, center);
padding-bottom: 5%;
font-family: 'ProximaNova-Light';

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

exactly, I forgot about it)

<section class="weather-widget__top">
<div class="weather-widget__image">
<img class="weather-widget__image-img" src="img/cloudy.png" alt="cloudy weather image">
<button class="weather-widget__image-btn" alt="update"></button>

Choose a reason for hiding this comment

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

Sorry, I misprinted. I meant
<button> <img alt='...'> </button>
Tag button doesn't have attribute alt

<article class="weather-widget">
<section class="weather-widget__top">
<div class="weather-widget__image">
<img class="weather-widget__image-img" src="img/cloudy.png" alt="cloudy weather image">

Choose a reason for hiding this comment

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

Class names for image and button are strange

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