JSFiddle - React, Tailwind, and code Playground
by zamith
HTML
<script src="http://fonts.googleapis.com/css?family=Open+Sans"></script>
<script src="http://fonts.googleapis.com/css?family=Arvo"></script>
<div id="wrapper">
<header>
<h1>CS Blog</h1>
<nav class="main-menu">
<ul>
<li><a href="blog.html">Home</a>
</li>
<li><a href="contact.html">Contact</a>
</li>
</ul>
</nav>
</header>
<article class="post">
<h1 class="title">A Creators School é muito boa!</h1>
<img src="http://i.vimeocdn.com/video/468020659_640.jpg" alt="cs photo" class="image">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</article>
<footer>
<hr>
<p>© Copyright Ronaldo & Zamith, <strong>2014</strong>
</p>
</footer>
</div>
CSS
* {
box-sizing: border-box;
}
body {
background: url(http://subtlepatterns.com/patterns/sativa.png);
font-family:'Open Sans', Helvetica, sans-serif;
}
header {
background: #333;
color: white;
left: 0;
padding: 10px;
position: fixed;
top: 0;
width: 100%;
}
#wrapper {
margin: 200px auto 0;
width: 500px;
}
.main-menu ul {
list-style: none;
padding: 0;
}
.main-menu li {
display: inline;
}
.main-menu li:not(:last-child) {
border-right: solid 1px #ccc;
margin-right: 10px;
padding-right: 10px;
}
.main-menu a {
color: rgb(200, 50, 50);
text-decoration: none;
}
.main-menu a:hover {
background-color: rgb(200, 50, 50);
color: white;
}
.post .title {
color: orange;
font-family:'Arvo', Georgia, serif;
font-size: 30px;
}
.post .image {
border: solid 1px #333;
padding: 5px;
width: 100%;
height: 100px;
}
.post p {
font-size: 18px;
line-height: 1.5em;
}
footer {
text-align: center;
}
JavaScript
$("a").click(function(event){
event.preventDefault();
// Alert the user he is clicking the link
});
// Change the color of the post title
// Hide the image
// Change the size of the header title by adding a class