Wild Circus' Web Site
Wild Code School challenge.
by Gaelle
HTML
<!DOCTYPE html>
<link href='https://fonts.googleapis.com/css?family=Ultra' rel='stylesheet' type='text/css'>
<body>
<header>
<h1>Wild Circus</h1>
<h2>Immerse yourself in a world beyond imagination!</h2>
<nav>
<ul>
<li><a href="#Presentation">Presentation</a></li>
<li><a href="#Rabbit">Rabbit</a></li>
<li><a href="#Clown9">Clown 9</a></li>
<li><a href="#StrongArm">Strong Arm</a></li>
<li><a href="#TheSkyWalker">The Sky Walker</a></li>
<li><a href="#OnTour">On Tour</a></li>
</ul>
</nav>
</header>
<section>
<article id="Presentation">
<p class="act">
Wild Circus is proud to present its new show: <strong>Wild Imagination</strong>.<br />
Enter the temple of the circus and be amazed by the power of imagination!<br />
What if you could alter reality at will?<br />
Our artists really want to transport you in a moment of excellence and show you that they
have no limit.<br />
This performance will be an opportunity for you to share moments of happiness with both
friends and family.
</p>
</article>
<article id="Rabbit">
<div class="act">
<img src="http://i.imgur.com/uxFOjNN.png" class="left" alt="Topsy the Rabbit" />
<h3>Topsy the Rabbit</h3>
<div class='magic'>Magic trick!</div>
<p class="description">Do you think rabbits live in magician's top hats?<br />
Not in our world. Topsy likes magic, the Wild Magic.<br />He can pull a lot of things out of a hat!
</p>
</div>
</article>
<article id="Clown9">
<div class="act">
<img src="http://i.imgur.com/lFsIFSp.png" class="right" alt="Clown 9" />
<h3>Clown 9</h3>
<div class='magic'>Magic trick!</div>
<p class="description">She takes everything with humor and transforms the everyday life into an
offbeat adventure....
CSS
body {
font-family: helvetica, sans-serif;
margin: 0 auto;
max-width: 60%;
background: url("http://www.scottishrugby.org/sites/default/files/hero-images/xqe7-xjv.jpeg");
background-size: cover;
background-attachment: fixed;
background-position: center;
}
h1 {
font-family: 'Ultra', cursive, 'Arial Black', sans-serif;
font-size: 75px;
color: #B0301C;
text-align: center;
margin: 60px 0 0 0;
border-radius: 8px;
border: 8px #B0301C solid;
text-shadow: 6px 6px 6px black;
background-image: url("http://i.imgur.com/sztAtB5.png");
}
h2 {
color: #BD6557;
text-align: center;
margin: 15px 0 60px 0;
border-radius: 8px;
border: 5px #BD6557 solid;
text-shadow: 6px 6px 6px black;
background-color: #002A42;
}
h3 {
text-align: center;
}
nav ul {
background-color: #002a42;
margin-top: -10px;
box-shadow: 6px 6px 6px black;
}
ul {
list-style-type: none;
display: flex;
justify-content: space-around;
flex-wrap: wrap;
border-radius: 8px;
}
li {
padding: 3px 30px 3px 0;
text-shadow: 6px 6px 6px black;
}
a {
color: #e2bc75;
text-decoration: none;
}
a:hover {
color: #B0301C;
border-bottom: 3px solid #760001;
}
section {
margin-top: 150px;
}
article {
margin-bottom: 200px;
border-radius: 8px;
padding-top: 50px;
}
.act {
color: rgba(255, 255, 255, 1);
background: rgba(230, 168, 84, 1);
padding: 10px 50px 10px 50px;
line-height: 25px;
text-align: center;
border-radius: 8px;
overflow: auto;
box-shadow: 6px 6px 6px black;
}
.magic {
cursor: pointer;
}
.nolinereturn {
display: flex;
flex-wrap: nowrap;
}
.description {
padding: 50px;
text-align: center;
border: 5px #FFFFFF solid;
border-radius: 8px;
display: none;
}
.left {
float: left;
margin: 0 50px 0 0;
}
.right {
float: right;
margin: 0 0 0 50px;
}
img {
border-radius: 8px;
border: 5px #FFFFFF solid;
}
footer {
display: flex;
background-image:...
JavaScript
$(document).ready(function(){
$(".magic").click(function(){
$(this).parent().children(".description").slideToggle("3000");
});
});