Skip to content

Commit bfb7d5b

Browse files
authored
Merge pull request #16 from CodeLouisville/challenge_8_solution
Challenge 8 Solution
2 parents a08a57c + fa011a0 commit bfb7d5b

File tree

3 files changed

+53
-3
lines changed

3 files changed

+53
-3
lines changed

css/style.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,21 @@ nav a:hover {
161161
margin: .5rem 0;
162162
}
163163

164+
/****** History ******/
165+
#history {
166+
background: #871719;
167+
background-image: url(../img/louies-bg-making-red.jpg);
168+
background-repeat: no-repeat;
169+
background-position: center;
170+
background-size: cover;
171+
color: #F2F2F2;
172+
}
173+
174+
#history img {
175+
margin: 0 auto;
176+
display: block;
177+
}
178+
164179
/****** Food Menu ******/
165180
#foodmenu {
166181
display: flex;
@@ -185,6 +200,11 @@ nav a:hover {
185200
text-align: right;
186201
}
187202

203+
/*****Map******/
204+
#map {
205+
min-height: 50vh;
206+
}
207+
188208
/*****Footer******/
189209
footer {
190210
background-color: #333333;

index.html

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,20 @@ <h2>Join Louie's List today, and get a free slice!</h2>
7272
<!-- /Mail List -->
7373

7474
<!-- History -->
75-
75+
<section id="history" class="history" name="history">
76+
<div class="wrap">
77+
<div class="row">
78+
<div class="col span_1_of_2">
79+
<h2>Louie's History</h2>
80+
<p>Louie’s was founded in 1929 by Italian immigrant Louie Bianchi. Louie’s was Originally established on Main Street, in the Heart of Louisville. After losing his lease on Main Street, Louie Bianchi dismantled his original coal fired brick oven and moved it to 271 Clay Street where he continued to run and grow his business and refine his pizza recipe to perfection.</p>
81+
<p>Bianchi ran his business until 1954 when he sold the pizzeria to the Romano Brothers. Augustine Romano bought the business from his brothers and he continued to own and operate Louie’s pizzeria until he passed away in 1984, passing his legacy on.</p>
82+
</div>
83+
<div class="col span_1_of_2 text-center">
84+
<img src="img/louie-photo.png" alt="Vintage picture of Louie standing in front of original store.">
85+
</div>
86+
</div>
87+
</div>
88+
</section>
7689
<!-- /History -->
7790

7891
<!-- Food Menu -->
@@ -87,7 +100,8 @@ <h2><span class="red">Louie's</span> Menu</h2>
87100
<!-- /Food Menu -->
88101

89102
<!-- Map -->
90-
103+
<section id="map">
104+
</section>
91105
<!-- /Map -->
92106

93107
<!-- Footer -->
@@ -114,5 +128,8 @@ <h2><span class="red">Louie's</span> Menu</h2>
114128
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
115129
crossorigin="anonymous"></script>
116130
<script src="js/app.js" type="text/javascript"></script>
131+
<script async defer
132+
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBStcLRroobeFiCGUd4Sa9xBLgnFj4MgKE&callback=initMap">
133+
</script>
117134
</body>
118135
</html>

js/app.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,17 @@ $('#email-submit').click(function(e){
5858
function isValidEmailAddress(emailAddress) {
5959
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
6060
return pattern.test(emailAddress);
61-
};
61+
};
62+
63+
//Google Maps
64+
function initMap() {
65+
var uluru = {lat: 38.2556925, lng: -85.7512827};
66+
var map = new google.maps.Map(document.getElementById('map'), {
67+
zoom: 15,
68+
center: uluru
69+
});
70+
var marker = new google.maps.Marker({
71+
position: uluru,
72+
map: map
73+
});
74+
}

0 commit comments

Comments
 (0)