CR = Code Review. O co chodzi? Zajrzyj tutaj
Pełna lista wszystkich Code Review? Zajrzyj tutaj
https://www.youtube.com/watch?v=vd_GnTBzJ4U
index.html:
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Retrogranie</title>
<meta name="description" content="Serwis o starych grach pochodzących z Nintendo Entertainment System" />
<meta name="keywords" content="gry, komputerowe, retro, nes, konsole, retrogranie, stare gry" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Lato:400,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link href="css/fontello.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper">
<div class="header">
<div class="logo">
<img src="pad.png" style="float: left;"/>
<span style="color: #c34f4f">retro</span>granie.com
<div style="clear:both;"></div>
</div>
</div>
<div class="nav">
<ol>
<li><a href="#">Strona główna</a></li>
<li><a href="#">Klasyki NES</a>
<ul>
<li><a href="#">Contra</a></li>
<li><a href="#">Mario Bros</a></li>
<li><a href="#">Duck Tales</a></li>
<li><a href="#">Legend of Zelda</a></li>
</ul>
</li>
<li><a href="#">Gry filmowe</a>
<ul>
<li><a href="#">Home Alone</a></li>
<li><a href="#">Dick Tracy</a></li>
<li><a href="#">The Simpsons</a></li>
<li><a href="#">Top Gun</a></li>
</ul>
</li>
<li><a href="#">Bijatyki</a>
<ul>
<li><a href="#">Mortal Kombat</a></li>
<li><a href="#">Nekketsu K.D.</a></li>
<li><a href="#">Double Dragon</a></li>
<li><a href="#">Turtles T.</a></li>
</ul>
</li>
<li><a href="#">Gry sportowe</a>
<ul>
<li><a href="#">Goal 3</a></li>
<li><a href="#">Excitebike</a></li>
<li><a href="#">Ike Ike Hockey</a></li>
<li><a href="#">Tennis</a></li>
</ul>
</li>
<li><a href="#">O autorach</a></li>
</ol>
</div>
<div class="content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum eget rhoncus mi, in vestibulum lorem. Nulla urna mauris, egestas nec erat vel, tempus ullamcorper dolor. Maecenas eu mattis arcu. Aliquam dapibus quis risus eget consequat. Curabitur eu convallis urna, vitae scelerisque est. Nunc eget posuere urna. Nulla facilisi. Phasellus blandit eleifend aliquet. Curabitur porttitor pharetra pretium. Nam ac eros laoreet, consequat felis at, auctor metus.</p>
<p>Etiam condimentum sed lectus at laoreet. Fusce pellentesque porta purus a venenatis. Quisque erat augue, malesuada nec ultrices vitae, consequat sed metus. Donec at ipsum viverra mauris feugiat euismod. Morbi ultrices tellus libero, et gravida tortor laoreet eget. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Morbi auctor interdum ornare. Praesent vel urna volutpat, accumsan erat at, pharetra urna. Pellentesque egestas sodales nibh vitae sodales. Suspendisse laoreet risus neque, viverra dictum leo condimentum vitae. Sed sem diam, blandit eu vestibulum in, tempor nec lacus. Nullam lacinia commodo elit, sed euismod leo. Suspendisse porttitor sem mi, fringilla viverra diam tincidunt ut.</p>
<p>In dui turpis, varius nec neque id, mollis cursus neque. Pellentesque eget laoreet nulla. Nam lectus ex, vehicula ut euismod et, rhoncus in lectus. Donec luctus, sapien a venenatis vulputate, sapien ante condimentum lectus, ut molestie enim velit vitae magna. Suspendisse varius neque pulvinar enim ornare, nec lobortis enim lobortis. Ut eu ex neque. Vestibulum feugiat ligula et arcu rhoncus, quis maximus mauris pellentesque. Vivamus fermentum ultrices lacus vel vulputate. Morbi ultrices dolor nulla, ac lobortis nisl vestibulum sed. Vestibulum iaculis, lectus eget condimentum sodales, lorem nulla fermentum tellus, volutpat congue lacus dolor et quam. Phasellus ac risus blandit nisi rutrum suscipit non eu mauris. Vestibulum fringilla non neque vitae vestibulum.</p>
<p>Fusce quis vehicula purus, ut fermentum quam. Suspendisse cursus dui ac est convallis, sit amet egestas lorem sodales. Praesent nec nunc mattis, hendrerit mauris quis, dignissim nisi. Pellentesque semper faucibus urna vel tempus. Suspendisse egestas lacus ornare ligula mattis, et pulvinar urna sodales. Suspendisse tristique eget lacus sit amet dapibus. Nam quis imperdiet velit. Vestibulum consectetur rutrum tortor, sit amet fringilla nisi rhoncus id. Aenean sit amet odio elit. Nulla orci quam, eleifend quis sapien sed, vestibulum elementum urna. Sed dapibus ligula vitae turpis bibendum, in tempus magna bibendum. Aenean ut purus diam. Praesent porta velit ut dui fringilla egestas. Donec dignissim non sapien at imperdiet. Quisque bibendum massa ligula, vel elementum eros iaculis quis. Maecenas velit nisl, imperdiet vitae dui sed, convallis placerat enim.</p>
<p>Nunc mollis, massa scelerisque elementum condimentum, mauris ipsum accumsan purus, in semper leo erat vel turpis. Etiam varius feugiat diam eu sagittis. Curabitur dapibus sollicitudin dictum. In tincidunt at mauris vel dictum. Vivamus id imperdiet sem. Nam viverra ac massa ac ultricies. Nam condimentum commodo faucibus. Integer eget facilisis massa, sit amet vulputate purus. Duis in eros pulvinar eros porttitor pellentesque non volutpat dui. Nam laoreet scelerisque leo, accumsan porttitor tortor dignissim tempus. Nunc sit amet rutrum lorem. Cras malesuada risus sit amet aliquet vestibulum. Donec tellus nibh, pretium sed diam vitae, aliquet tempus risus.</p>
</div>
<div class="socials">
<div class="socialdivs">
<div class="fb">
<i class="icon-facebook"></i>
</div>
<div class="yt">
<i class="icon-youtube"></i>
</div>
<div class="tw">
<i class="icon-twitter"></i>
</div>
<div class="gplus">
<i class="icon-gplus"></i>
</div>
<div style="clear:both"></div>
</div>
</div>
<div class="footer">Retrogranie.com © 2015 Thank you for your visit Mario! But our Princess is in another castle ;-)</div>
</div>
<script src="jquery-1.11.3.min.js"></script>
<script>
$(document).ready(function() {
var NavY = $('.nav').offset().top;
var stickyNav = function(){
var ScrollY = $(window).scrollTop();
if (ScrollY > NavY) {
$('.nav').addClass('sticky');
} else {
$('.nav').removeClass('sticky');
}
};
stickyNav();
$(window).scroll(function() {
stickyNav();
});
});
</script>
</body>
</html>
style.css:
body
{
background-color: #303030;
color: #ffffff;
font-family: 'Lato', sans-serif;
font-size: 20px;
margin: 0 !important;
}
.wrapper
{
width: 100%;
}
.header
{
width:100%;
padding: 40px 0;
}
.logo
{
width: 450px;
font-size: 48px;
margin-left: auto;
margin-right: auto;
}
.nav
{
width: 100%;
padding: 10px 0;
background-color: #c34f4f;
text-align: center;
border-top: 1px solid #751b1b;
border-bottom: 1px solid #751b1b;
}
.content
{
width: 1000px;
margin-left: auto;
margin-right: auto;
text-align: justify;
padding-top: 10px;
}
.socials
{
width:100%;
text-align: center;
background-color: #292929;
}
.socialdivs
{
width: 1000px;
margin-left: auto;
margin-right: auto;
}
.fb
{
width: 250px;
height: 155px;
float:left;
}
.fb:hover
{
background-color: #4668b3;
}
.yt
{
width: 250px;
height: 155px;
float:left;
}
.yt:hover
{
background-color: #d94348;
}
.tw
{
width: 250px;
height: 155px;
float:left;
}
.tw:hover
{
background-color: #3095d3;
}
.gplus
{
width: 250px;
height: 155px;
float:left;
}
.gplus:hover
{
background-color: #d95333;
}
.footer
{
text-align: center;
background-color: #222222;
padding: 30px;
}
.sticky
{
width: 100%;
position: fixed;
left: 0;
top: 0;
z-index: 100;
}
ol
{
padding: 0;
margin: 0;
list-style-type: none;
font-size: 18px;
height: 35px;
line-height: 200%;
display: inline-block;
}
ol a
{
color: #ffffff;
text-decoration: none;
display: block;
}
ol > li
{
float: left;
width: 150px;
height: 40px;
border-right: 1px dashed #751b1b;
}
ol > li:first-child
{
border-left: 1px dashed #751b1b;
}
ol > li:hover
{
background-color: #cf6969;
}
ol > li:hover > a
{
color: #451717;
}
ol > li > ul
{
list-style-type: none;
padding: 0;
margin: 0;
height: 40px;
display: none;
}
ol > li:hover > ul
{
display: block;
}
ol > li > ul > li
{
background-color:#cf6969;
position: relative;
z-index: 100;
border-top: 1px dashed #751b1b;
}
ol > li > ul > li:hover
{
background-color: #c34f4f;
}
ol > li > ul > li:hover > a
{
color: #451717;
}
Paczka z odcinka: POBIERZ