Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added github login modal on index #11

Merged
merged 1 commit into from
Apr 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion app/static/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -491,13 +491,14 @@ header > div.menu .menu-item:last-child{

/* actionables */
.cta{
padding: 8px 16px;
padding: 12px 16px;
border-radius: 8px;
font-size: 16px;
line-height: 16px;
font-weight: 700;
display: inline-block;
cursor: pointer;
border: none;
}

.cta-primary{
Expand Down Expand Up @@ -572,4 +573,9 @@ header > div.menu .menu-item:last-child{
}
.hidden{
display: none;
}

.github-filled .iconify{
font-size: 24px !important;
vertical-align: middle;
}
25 changes: 25 additions & 0 deletions app/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
{% extends 'base.html' %}
{% block content %}
<a href="/accounts/login">Go to login page</a>

<!--modal:start-->
<div class="modal warning opened" id="manual-code-approval-modal">
<div class="modal-parent">
<div class="modal-container">
<div class="modal-dialog pb0">
<div class="modal-title pb22 main-text-strong">
Login to Github
</div>

<div class="modal-body mt70 pt0 pb22 mhz40">
<div class="body-row main-text">
Click below to login with your Github account:
</div>
<div class="body-row mt31 github-filled cta-row">
<button type="submit" class="cta cta-primary">Sign In With Github <span class="iconify"
data-icon="ant-design:github-filled"></span></span></button>
</div>
</div>
</div>
</div>
</div>
</div>
<!--modal:end-->

{% endblock %}
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
asgiref==3.5.0
# via django
backports-zoneinfo==0.2.1
# backports-zoneinfo==0.2.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gsalunke do not commit changes in this file. This is only to get things working for your machine which does not have everything installed.

# via django
certifi==2021.10.8
# via
Expand Down Expand Up @@ -36,7 +36,7 @@ gunicorn==20.1.0
# via -r requirements.in
idna==3.3
# via requests
psycopg2==2.9.3
# psycopg2==2.9.3
# via -r requirements.in
pycparser==2.21
# via cffi
Expand Down