Skip to content

Instantly share code, notes, and snippets.

@mihailsitnic
Created November 27, 2016 10:36
Show Gist options
  • Save mihailsitnic/03abf128c823bca2744d3ab4014324a0 to your computer and use it in GitHub Desktop.
Save mihailsitnic/03abf128c823bca2744d3ab4014324a0 to your computer and use it in GitHub Desktop.
// Забыл вчера сказать поэтому пишу сегодня
// Мы не должны нигде использовать тэг img
<img src={avatar} alt="" />
// Все изображения должны быть загружены через файл стилей .css
.friends li span {
width: 100px;
height: 100px;
border-radius: 50%;
background: url('https://pp.vk.me/c11029/v11029812/4e2/1yXOUBMNPLY.jpg') no-repeat center;
background-size: cover;
cursor: pointer;
}
// В ReactDOM вместо тега img должн быть любой тег div, span, strong, small и т.д.
// Перепиши пожалуйста страницу ListFriends.js что бы получился такой скилет
<form action="">
<input type="text">
</form>
<ul class="listfriends">
<li>
<a href="#">
<span></span>
<strong>Дмитрий</strong>
</a>
</li>
<li>
<a href="#">
<span></span>
<strong>Наташа</strong>
</a>
</li>
<li>
<a href="#">
<span></span>
<strong>Маргарита</strong>
</a>
</li>
<li>
<a href="#">
<span></span>
<strong>Оля</strong>
</a>
</li>
<li>
<a href="#">
<span></span>
<strong>Игорь</strong>
</a>
</li>
</ul>
// СПАСИБО!!! )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment