Skip to content

Commit

Permalink
Add github signup option
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks committed Nov 16, 2023
1 parent 5ba853f commit 12b4ccd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/auth/signin.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ <h2 class="font-semibold text-4xl mb-4">Sign in</h2>
fill-opacity="0.6"
/>
</svg>
Login with GitHub
Continue with GitHub
</a>
<div class="divider text-gray-400 text-sm">or Login with Email</div>
<div class="divider text-gray-400 text-sm">or continue with Email</div>
<form action="{{ url_for('auth.signin', next=next) }}" method="post">
{% include 'auth/_form_partial.html' %}

Expand Down
19 changes: 19 additions & 0 deletions templates/auth/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@
{{ h.alert('mb-10') }}
<h2 class="font-semibold text-4xl mb-4">Create an account</h2>
<p class="font-medium mb-4">Let's get started</p>
<a href="{{ url_for('auth.signin_with_github') }}"
class="btn btn-outline border-gray-200 hover:bg-transparent hover:text-gray-500 gap-2 w-full normal-case no-animation"
>
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M12 0.184998C5.373 0.184998 0 5.558 0 12.185C0 17.808 3.872 22.513 9.092 23.815C9.036 23.653 9 23.465 9 23.232V21.181C8.513 21.181 7.697 21.181 7.492 21.181C6.671 21.181 5.941 20.828 5.587 20.172C5.194 19.443 5.126 18.328 4.152 17.646C3.863 17.419 4.083 17.16 4.416 17.195C5.031 17.369 5.541 17.791 6.021 18.417C6.499 19.044 6.724 19.186 7.617 19.186C8.05 19.186 8.698 19.161 9.308 19.065C9.636 18.232 10.203 17.465 10.896 17.103C6.9 16.692 4.993 14.704 4.993 12.005C4.993 10.843 5.488 9.719 6.329 8.772C6.053 7.832 5.706 5.915 6.435 5.185C8.233 5.185 9.32 6.351 9.581 6.666C10.477 6.359 11.461 6.185 12.495 6.185C13.531 6.185 14.519 6.359 15.417 6.668C15.675 6.355 16.763 5.185 18.565 5.185C19.297 5.916 18.946 7.841 18.667 8.779C19.503 9.724 19.995 10.845 19.995 12.005C19.995 14.702 18.091 16.689 14.101 17.102C15.199 17.675 16 19.285 16 20.498V23.232C16 23.336 15.977 23.411 15.965 23.5C20.641 21.861 24 17.421 24 12.185C24 5.558 18.627 0.184998 12 0.184998Z"
fill="black"
fill-opacity="0.6"
/>
</svg>
Continue with GitHub
</a>
<div class="divider text-gray-400 text-sm">or continue with Email</div>
<form action="{{ url_for('auth.signup') }}" method="post">
{% include 'auth/_form_partial.html' %}

Expand Down

0 comments on commit 12b4ccd

Please sign in to comment.