Skip to content

Commit

Permalink
feat(OAuth): Add a modal to redirect to Algolia so that it OAuths
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerska committed Dec 22, 2015
1 parent aebbd3c commit cc319cc
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 9 deletions.
1 change: 1 addition & 0 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
{%if page.noFooter == null %}
{% include footer.html %}
{% endif %}
<script src="//cdn.jsdelivr.net/jquery/2/jquery.min.js"></script>
<script src="{{ "/js/bootstrap.min.js" | prepend: site.baseurl }}"></script>
<script src="//cdn.jsdelivr.net/autocomplete.js/0/autocomplete.jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/algoliasearch/3/algoliasearch.min.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions docs/css/_bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
// @import "bootstrap/panels";
// @import "bootstrap/responsive-embed";
// @import "bootstrap/wells";
// @import "bootstrap/close";
@import "bootstrap/close";

// Components w/ JavaScript
// @import "bootstrap/modals";
@import "bootstrap/modals";
// @import "bootstrap/tooltip";
// @import "bootstrap/popovers";
// @import "bootstrap/carousel";
Expand Down
7 changes: 5 additions & 2 deletions docs/css/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ h2 {
font-size: 2em;
}
}
}


}
#join {
top: 15%;
outline: none;
}
24 changes: 22 additions & 2 deletions docs/index.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@
layout: default
---

#join.modal.fade{tabindex: '-1', role: 'dialog', 'aria-labelledby' => 'join-label'}
.modal-dialog
.modal-content
%form{method: 'get', action: 'https://www.algolia.com/zendesk/auth'}
.modal-header
%button.close{type: 'button', 'data-dismiss' => 'modal', 'aria-hidden' => 'true'} &times;
%h4#join-label.modal-title Join the beta
.modal-body
:markdown
You'll first need to be logged in on your
[Algolia account](https://www.algolia.com/dashboard)
in order to use this integration.
[Click here to create one](https://www.algolia.com/users/sign_up)
%hr
.form-group
%label{for: 'join-subdomain'} Zendesk subdomain
%input#join-subdomain.form-control{type: 'text', name: 'subdomain', placeholder: 'your-zendesk-instance(.zendesk.com)'}
.modal-footer
%button.btn.btn-default{type: 'button', 'data-dismiss' => 'modal'} Close
%button.btn.btn-primary{type: 'submit'} Submit

.main-content
.jumbotron
.container
Expand All @@ -13,9 +34,8 @@ layout: default

.spacer50
%p.text-center
%a.btn.btn-primary.btn-lg{href: 'mailto:[email protected]?subject=Join%20the%20Zendesk%20beta'}
%a.btn.btn-primary.btn-lg{'data-toggle' => 'modal', 'data-target' => '#join'}
Join the beta
%i.fa.fa-envelope-o

.container
.spacer50
Expand Down
6 changes: 3 additions & 3 deletions docs/js/bootstrap.min.js
100755 → 100644

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cc319cc

Please sign in to comment.