-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSmallBusinessWebsite.html
More file actions
133 lines (120 loc) · 3.23 KB
/
SmallBusinessWebsite.html
File metadata and controls
133 lines (120 loc) · 3.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<head>
<script src="/assets/jquery.js"></script>
<link href="//imgur.com/a/aR4Uvsw">
<script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
<link href='https://fonts.googleapis.com/css?family=Londrina+Shadow' rel='stylesheet' type='text/css'>
<style>
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: 'Londrina Shadow', 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;
}
p {
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));
display: inline-block;
width: 96.6%;
padding: 10px 10px 10px 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;
backgr
}
small {
opacity: 0;
}
.show-description p {
height: 150px;
}
.show-description small {
opacity: 1;
}
.first{
background-image: url("https://lh3.googleusercontent.com/AX9ABdpVxH-GDolNHjrWl88A90qzKq93fo67C-Vv_KpDpeqFRBY_znfp_79f_XeGjM2PKP5CaptWQGHo2KWZUBT7ctsq1-OLo0AcrSMA-RJMvX4DpL_ULoL96NL6dXKlsq5Azs96PA=w600-h315-p-k");
}
.second{
background-image: url("https://lh3.googleusercontent.com/pqe6NBqc27II0Mz-J8uHdWLb0vuiyovH_Xzh--uI7qK0CDTnYZtvRKrJqk-LdfKjAYwCmG-wZzvULFrj-q-dMSvm7ffCrbLpvFsuikVnKmQDpGnBEoB-pWSiiyBchdRpkiAvR6XnWw=w600-h315-p-k");
}
.dessert{
background-image: url("https://lh3.googleusercontent.com/1IOvenIXgF7GD_oNA4mt1hnAdyLiexdjTd1QD0PuAWv33SafStkAsLivLcMkbJl0tRSrpEBuew3jY6patFaA-KlPIUGx7Xz5ZT-IgMkCJ-SvProhqEi-kVAu_cTn5HskqqmWK6hhQw=w600-h315-p-k");
}
.price {
float: right;
}
@media (max-width: 500px) {
h1 {
font-size: 50px;
margin-top: 20px;
line-height: 40px;
}
h2 {
font-size: 20px;
margin: 20px 0 30px 0;
}
div {
margin: 20px 12px 0 12px;
}
p {
font-size: 20px;
line-height: 24px;
display: inline-block;
width: 93.3%;
padding: 10px 10px 10px 10px;
}
small {
font-size: 16px;
}
}
</style>
</head>
<body>
<h1>NOLA Bakery</h1>
<h2>New Orleans based Cake and Pastery shop</h2>
<div class="first show-description">
<p>Cakes <span class="price">$14</span><br />
<small>Flavors: Chocolate, vanilla, ribbon, white chocolate, mint, coffee. </small></p>
</div>
<div class="second show-description">
<p>Pastries<span class="price">$22</span><br />
<small>Raspberry breakfast pastries, Boudin, Sausage roll, Veggie rolls, Ranchero, Cannoli.</small></p>
</div>
<div class="dessert show-description">
<p>Cheesecake<span class="price">$8</span><br />
<small>Cheesecakes with your choice of toppings. Available toppings: Strawberry, Raspberry, cherry, Blueberry & Peach.</small></p>
</div>
<script>
$('div').on('click', function() {
$(this).toggleClass('show-description');
});
</script>
</body>