-
Notifications
You must be signed in to change notification settings - Fork 8
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
Showing
4 changed files
with
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<div class="phx-hero w-100 center"> | ||
<h1 class="center tc">Please Sign in to Continue</h1> | ||
<p class="center tc f3">Use GitHub or Google: </p> | ||
|
||
<div style="display:flex; flex-direction:column; width:21em; margin: 20px auto;"> | ||
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap"> | ||
<a href="<%= @oauth_github_url %>" | ||
style="display:inline-flex; align-items:center; min-height:60px; | ||
background-color:#24292e; font-family:'Roboto',sans-serif; | ||
font-size:14px; color:white; text-decoration:none;"> | ||
<div style="margin: 1px; padding-top:5px; min-height:30px;"> | ||
<svg height="36" viewBox="0 0 16 16" width="64px" style="fill:white;"> | ||
<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 | ||
0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 | ||
1.08.58 1.23.82.72 1.21 1.87.87 | ||
2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 | ||
0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 | ||
2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 | ||
.21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/> | ||
</svg> | ||
</div> | ||
<div style="margin-left: 5px; font-size: 2em;"> | ||
Sign in with GitHub | ||
</div> | ||
</a> | ||
|
||
<a href="<%= @oauth_google_url %>" | ||
style="display:inline-flex; align-items:center; min-height:60px; | ||
background-color:#4285F4; font-family:'Roboto',sans-serif; | ||
font-size:14px; color:white; text-decoration:none; | ||
margin-top: 15px"> | ||
<div style="background-color: white; margin:2px; padding-top:10px; padding-left:6px; min-height:57px; min-width:57px;"> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 533.5 544.3" | ||
width="45px" height="36" style="display:inline-flex; align-items:center;" > | ||
<path d="M533.5 278.4c0-18.5-1.5-37.1-4.7-55.3H272.1v104.8h147c-6.1 33.8-25.7 63.7-54.4 82.7v68h87.7c51.5-47.4 81.1-117.4 81.1-200.2z" fill="#4285f4"/> | ||
<path d="M272.1 544.3c73.4 0 135.3-24.1 180.4-65.7l-87.7-68c-24.4 16.6-55.9 26-92.6 26-71 0-131.2-47.9-152.8-112.3H28.9v70.1c46.2 91.9 140.3 149.9 243.2 149.9z" fill="#34a853"/> | ||
<path d="M119.3 324.3c-11.4-33.8-11.4-70.4 0-104.2V150H28.9c-38.6 76.9-38.6 167.5 0 244.4l90.4-70.1z" fill="#fbbc04"/> | ||
<path d="M272.1 107.7c38.8-.6 76.3 14 104.4 40.8l77.7-77.7C405 24.6 339.7-.8 272.1 0 169.2 0 75.1 58 28.9 150l90.4 70.1c21.5-64.5 81.8-112.4 152.8-112.4z" fill="#ea4335"/> | ||
</svg> | ||
</div> | ||
<div style="margin-left: 10px; font-size: 2em;"> | ||
Sign in with Google | ||
</div> | ||
</a> | ||
<div> | ||
|
||
<div class="center"> | ||
<p class="center tc pt2 f3"><u>Or</u> your email address: </p> | ||
|
||
<%= form_for @changeset, @action, fn f -> %> | ||
<%= email_input f, :email, class: | ||
"db w-100 mt2 pa3 ba b--dark-grey f3", | ||
placeholder: "[email protected]"%> | ||
<%= error_tag f, :email %> | ||
<br /> | ||
<%= hidden_input f, :state, id: "state", value: @state %> | ||
|
||
|
||
<%= submit "Login / Register", | ||
class: "w-100 pointer ba border-box dwyl-bg-mint white pa3 ml1 mv1 f3 | ||
shadow-hover bg-animate hover-dwyl-teal-darkest no-underline db", | ||
style: "margin:0 auto; border-color: #318d7b;" | ||
%> | ||
<% end %> | ||
<style> | ||
.dwyl-bg-mint { | ||
background-color: #339999; | ||
} | ||
.hover-dwyl-teal-darkest:hover, .hover-dwyl-teal-darkest:focus { | ||
background-color: #318d7b; | ||
} | ||
</style> | ||
|
||
</div> | ||
</div> | ||
<!-- Wake the Email Heroku App github.com/dwyl/auth/issues/50 --> | ||
<img src="https://dwylmail.herokuapp.com/pixel" /> |
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,11 @@ | ||
<section class="phx-hero"> | ||
<h1> Welcome <%= @conn.assigns.person.givenName %>! | ||
<img width="32px" src="<%= @conn.assigns.person.picture %>" /> | ||
</h1> | ||
<p> You are <strong>signed in</strong> | ||
with your <strong><%= @conn.assigns.person.auth_provider %> account</strong> <br /> | ||
<strong style="color:teal;"></strong> | ||
<p/> | ||
</section> | ||
|
||
<a href="/settings/apikeys">API Keys</a> |
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