forked from casassg/events-landing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Elliot Whitehead
committed
Nov 28, 2017
1 parent
754cd50
commit 4380350
Showing
5 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
$("#email-submit").click(function(){ | ||
$.post("http://hackcu-sendgrid-capture.herokuapp.com", $("#email-form").serialize(), function(data) { | ||
$(".response-info").html(data); | ||
}); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,10 @@ layout: base | |
<section class="events"> | ||
<div class="container"> | ||
<div class="row"> | ||
<h2 class="text-center white-text biko">Our events</h2> | ||
<h1 class="text-center white-text biko main-title">Our events</h1> | ||
{% assign sorted = site.data.events | sort: 'date','last' %} | ||
{% for event in sorted %} | ||
<div class="col-sm-6 col-md-4 "> | ||
<div class="col-sm-6 col-md-4"> | ||
<a {% unless event.url == null %} href="{{event.url}}" {% endunless %} target="_blank" class="event-url"> | ||
<div class="panel panel-default "> | ||
<div class="panel-heading"> | ||
|
@@ -30,7 +30,20 @@ layout: base | |
{% endfor %} | ||
</div> | ||
<div class="row text-center"> | ||
<a class="btn btn-accent calendar biko" href="https://calendar.google.com/calendar/r?cid=webcal://{{ site.domain }}/calendars/events.ics" target="_blank">Add to Google Calendar</a> | ||
<div class="email-sub col-md-4 col-md-offset-4"> | ||
<h2 class="text-center white-text biko">Don't miss out!</h2> | ||
<h4 class="text-center white-text" style="display: inline-block;">Subscribe to be notified of upcoming events!</h4> | ||
<form id="email-form" accept-charset="utf-8"> | ||
<div class="input-group"> | ||
<input type="email" class="form-control" name="email" placeholder="[email protected]"> | ||
<span class="input-group-btn"> | ||
<button id="email-submit" class="btn btn-success" type="button"><i class="fa fa-paper-plane"></i></button> | ||
</span> | ||
<span class="response-info"></span> | ||
</div> | ||
</form><br> | ||
<a class="btn btn-accent calendar biko" href="https://calendar.google.com/calendar/r?cid=webcal://{{ site.domain }}/calendars/events.ics" target="_blank">Add events to Google Calendar</a> | ||
</div> | ||
</div> | ||
</div> | ||
</section> |