This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Для лого задать класс .logo | |
<img src="img/logo.svg" alt="" width="188" height="188" class="logo"> | |
В файл main.js добавить | |
$(window).on('scroll', function() { | |
$('.logo').toggleClass('active', $(document).scrollTop() >= 100); | |
}); | |
в файл style.css добавить | |
.active { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Main = (props) => { | |
const { gifts, friends, selectGift, addFriendToOrder, isMenuOpen } = props; | |
return ( | |
<div className={isMenuOpen ? 'body cf active' : 'body cf'}> | |
<HotOffers /> | |
<div className="wrapper"> | |
<FriendsLine friends={friends} addFriendToOrder={addFriendToOrder}/> | |
<FilterCategories /> | |
<ListGifts gifts={gifts} selectGift={selectGift}/> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Забыл вчера сказать поэтому пишу сегодня | |
// Мы не должны нигде использовать тэг 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script> | |
<style type="text/css"> | |
.active { | |
color: blue; | |
font-weight: 600; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//import friends from '../FakeData/friends'; | |
export function fetchFriends() { | |
return function(dispatch) { | |
dispatch(requestFriends()); | |
return new Promise(requestFriendsFB) | |
.then(response => fbFriendsAdapter(response)) | |
.then(data => dispatch(receiveFriends(data))) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
friendsActions.js 1 / 16 | |
import { REQUEST_FRIENDS, | |
RECEIVE_FRIENDS, | |
MIN_TIME_TO_REFETCH, | |
} from '../constants/friends.js'; | |
//import friends from '../FakeData/friends'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://avada.theme-fusion.com/law/ - можно попробовать | |
https://avada.theme-fusion.com/agency/blog/ - можно поиграться | |
http://demo.goodlayers.com/?theme=modernize - очень понраввился (мой фаворит) | |
http://preview.themeforest.net/item/inovado-retina-re.. - (мой второй вариант) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Привет, | |
Замечательно. Текст пришлю. | |
Мой domain - vostokov.us | |
Hosting надо обговорить. По ценам посмотрю. У меня было что первый год бесплатный, потом не помню цены. Я на 1&1 купил свой домэйн давным давно. Ты говорил что можно через вас. Надо сравнить если имеет смысл. | |
Спасибо |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).on('scroll', function() { | |
$('.header').toggleClass('active', $(document).scrollTop() >= 100); | |
}); |