Skip to content

Commit 1b10f85

Browse files
author
Julia Elman
committed
Created custom map marker, fixed address display for upcoming events and fixed some styles.
1 parent eff8326 commit 1b10f85

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed
956 Bytes
Loading

pythonkc_site/static/pykc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ pykc.mapInit = function(lat,lon) {
99
mapTypeId: google.maps.MapTypeId.ROADMAP
1010
};
1111
this.map = new google.maps.Map(document.getElementById("map_canvas"), opts);
12+
var image = '/site_media/static/pykc-marker.png';
1213
var venue = new google.maps.Marker({
1314
position: latlng,
14-
map: this.map
15+
map: this.map,
16+
icon: image
1517
});
1618
}
1719

pythonkc_site/static/screen.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ table { border-collapse: collapse; border-spacing: 0; }
3434
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
3535
textarea, input { border: 1px solid #ddd; background: #FFFFFF; font-weight: normal; color: #333; font-size: 13px; }
3636
ul, li { list-style: none; }
37-
a { text-decoration: none; color:#646565; text-decoration: underline;}
38-
a:hover { text-decoration: none; }
37+
a { text-decoration: none; color:#646565; }
38+
a:hover { text-decoration: underline; }
3939
.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
4040
.clearfix { display: inline-block; }
4141
* html .clearfix { height: 1%; }
@@ -76,7 +76,7 @@ h3{
7676

7777
.next-meeting .details {
7878
padding: 30px 0 40px 0;
79-
width: 450px;
79+
width: 400px;
8080
}
8181

8282
.next-meeting h1 {

pythonkc_site/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1>{{ next_event.time|date:"F j"|upper }}</h1>
2525
</time>
2626
</header>
2727
<h2>{{ next_event.name|safe }}</h2>
28-
{% if next_event.venue.id %}<address>{{ next_event.venue.name }}{% if next_event.venue.address1 %} // {{ next_event.venue.address1 }}{% if next_event.venue.address2 %}, {{ next_event.venue.address2 }}{% endif %}{% endif %} // {{ next_event.venue.city }}, {{ next_event.venue.state }} {{ next_event.venue.zip }}</address>{% else %}Venue TBD{% endif %}
28+
{% if next_event.venue.id %}<address>{{ next_event.venue.name }}{% if next_event.venue.address_1 %} // {{ next_event.venue.address_1 }}{% if next_event.venue.address_2 %}, {{ next_event.venue.address_2 }}{% endif %}{% endif %} // {{ next_event.venue.city }}, {{ next_event.venue.state }} {{ next_event.venue.zip }}</address>{% else %}Venue TBD{% endif %}
2929
{% if next_event.description %}<p class="description">{{ next_event.description|safe }}</p>{% endif %}
3030
<p class="rsvp">RSVP at <a href="{{ next_event.event_url }}"><img src="{{ STATIC_URL }}meetup-logo.gif" alt="PythonKC Meetup RSVP for {{ next_event.name|safe }}"></a></p>
3131
</div>

0 commit comments

Comments
 (0)