Created
October 4, 2016 21:40
-
-
Save ValentynaGorbachenko/04304db424deb2472218b0213667e88f to your computer and use it in GitHub Desktop.
Valentyna's_bakary created by ValentynaGorbachenko - https://repl.it/DoVC/0
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
body { | |
font-family: helvetica, sans-serif; | |
margin: 0 auto; | |
/*max-width: 600px;*/ | |
background: #232323; | |
} | |
div { | |
height: 200px; | |
background-size: cover; | |
position: relative; | |
margin: 40px 0 0 0; | |
/*border-radius: 12px;*/ | |
} | |
h1 { | |
font-family: 'Playball', cursive; | |
text-align: center; | |
font-size: 75px; | |
color: #aaaaaa; | |
margin: 60px 0 0 0; | |
} | |
h2 { | |
text-align: center; | |
color: #bbbbbb; | |
margin: 0px 0 70px 0; | |
font-family: 'Playball', cursive; | |
} | |
p { | |
font-family: cursive; | |
color: rgba(255,255,255,1); | |
background: black; | |
background: linear-gradient(bottom, rgba(0,0,0,1), rgba(0,0,0,.4)); | |
background: -webkit-linear-gradient(bottom, rgba(0,0,0,1), rgba(0,0,0,.4)); | |
background: -moz-linear-gradient(bottom, rgba(0,0,0,1), rgba(0,0,0,.4)); | |
padding: 10px; | |
line-height: 28px; | |
text-align: justify; | |
position: absolute; | |
bottom: 0; | |
margin: 0; | |
height: 30px; | |
transition: height .5s; | |
-webkit-transition: height .5s; | |
-moz-transition: height .5s; | |
} | |
small, a { | |
opacity: 0; | |
} | |
.show-description p { | |
height: 150px; | |
} | |
.show-description small { | |
opacity: 1; | |
} | |
.show-description a { | |
opacity: 1; | |
} | |
.apple{ | |
background-image: url("http://gorbachenko.byethost18.com/assets/apple_pie_bg.png"); | |
} | |
.berry{ | |
background-image: url("http://gorbachenko.byethost18.com/assets/berry_pie_bg.png"); | |
} | |
.crepes{ | |
background-image: url("http://gorbachenko.byethost18.com/assets/crepes_bg.png"); | |
} | |
.price { | |
float: right; | |
} | |
a { | |
padding: 5px 15px; | |
background: black; | |
border-radius: 8px; | |
text-decoration: none; | |
color: white; | |
float: right; | |
margin: 5px 0 0 0; | |
opacity: 0; | |
} | |
a:hover{ | |
text-decoration: underline; | |
} | |
@media (max-width: 500px) { | |
h1 { | |
font-size: 50px; | |
margin-top: 20px; | |
line-height: 40px; | |
} | |
h2 { | |
font-size: 20px; | |
margin: 20px 15px 30px 15px; | |
} | |
div { | |
margin: 20px 0px 0 0px; | |
} | |
p { | |
font-size: 16px; | |
line-height: 24px; | |
} | |
small { | |
font-size: 18px; | |
} | |
} |
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Valentyna's bakery</title> | |
<script src="index.js"></script> | |
<link href="index.css" rel="stylesheet" type="text/css" /> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
<link href='https://fonts.googleapis.com/css?family=Playball' rel='stylesheet' type='text/css'> | |
</head> | |
<body> | |
<h1>Valentyna's bakery</h1> | |
<h2>The Delicious Bakary Products in Silicon Valley</h2> | |
<div class="apple"> | |
<p>Apple Pie<span class="price">$15</span><br /> | |
<small>Aenean iaculis metus vel nisl elementum gravida. Maecenas lobortis nunc vel velit accumsan, id ultricies ligula dignissim. Nulla at venenatis justo.<a href="#">Order Now</a></small></p> | |
</div> | |
<div class="berry"> | |
<p>Berry Pie<span class="price">$25</span><br /> | |
<small>TUt vestibulum, dolor maximus maximus convallis, massa ligula rutrum est, porttitor elementum felis leo quis orci. Phasellus quis viverra velit.<a href="#">Order Now</a></small></p> | |
</div> | |
<div class="crepes"> | |
<p>Crepes with cottage cheese <span class="price">$20</span><br /> | |
<small>Curabitur at nulla vel enim bibendum feugiat quis sit amet lorem. Donec mattis velit vitae nisl gravida, et luctus est fringilla. Curabitur ultricies placerat fermentum.<a href="#">Order Now</a></small></p> | |
</div> | |
<script> | |
$('div').on('click', function() { | |
$(this).toggleClass('show-description'); | |
}); | |
</script> | |
</body> | |
</html> |
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
Empty file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment