-
Notifications
You must be signed in to change notification settings - Fork 63
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
17 changed files
with
585 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SOCIAL_AUTH_TWITTER_KEY = 'AjLIz913Xk5gXFEx7ErAyHFrJ' | ||
SOCIAL_AUTH_TWITTER_SECRET = '50Hyxds06GZIT3JEfh5KEQXavphbH9gYdSbH0UO8tTg9eMLMyv' | ||
|
||
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '856425658206-uulba4lm3oe2lc1pldl72aoh1lb20fdt.apps.googleusercontent.com' | ||
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = 'FRf74dTfIG620ESyq_LvYhWU' | ||
|
||
SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/home/' | ||
SOCIAL_AUTH_LOGIN_URL = '/' |
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
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 |
---|---|---|
|
@@ -11,4 +11,5 @@ Pillow==4.1.1 | |
psycopg2==2.7.1 | ||
PyYAML==3.12 | ||
static3==0.7.0 | ||
social-auth-app-django | ||
autoenv |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,17 @@ | ||
<style> | ||
{% include "style.css" %} | ||
{% include "sticky-footer.css" %} | ||
</style> | ||
<section class="footer"> | ||
<div class=""> | ||
<nav> | ||
<ul> | ||
<li><a href="/aboutPC" title="Home" >About Peace Corps</a> </li> | ||
<li><a href="/policies/" title="Know about our team" >Policies </a></li> | ||
<li><a href="/details/" title="FAQs">Important Details</a></li> | ||
<li><a href="/helpPC/" title="Contact Us">Help</a></li> | ||
</ul> | ||
<nav> | ||
<p>© 2017 PeaceCorps</p> | ||
</div> | ||
</section> |
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,16 @@ | ||
<style> | ||
{% include "style.css" %} | ||
</style> | ||
|
||
|
||
<section class="header" id="top"> | ||
<div class="container"> | ||
<div class="logo"><a href="/"><img src="http://i.imgur.com/KKTKQJv.png?1" class="img-responsive"></a></div> | ||
<div class="macc"> | ||
<a href="/" > | ||
<h1> Mobile App Control Center</h1> | ||
</a> | ||
|
||
</div> | ||
</div> | ||
</section> |
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,55 @@ | ||
<html> | ||
<head> | ||
<!-- Latest compiled and minified CSS --> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | ||
|
||
<!-- jQuery library --> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | ||
|
||
<!-- Latest compiled JavaScript --> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | ||
|
||
<script src="https://use.fontawesome.com/a92a526874.js"></script> | ||
|
||
<style> | ||
{% include "bootstrap-social.css" %} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
{% include "header.html" %} | ||
<br><br><br> | ||
|
||
{% if user and not user.is_anonymous %} | ||
<h1>{{user.username}} ! {{user.first_name}}, {{user.last_name}}, {{user.email}}</h1> | ||
<form action="/login_social/" method="POST" id="myprofile"> | ||
{% csrf_token %} | ||
<input type="hidden" name="uname" value="{{user.username}}"> | ||
<input type="hidden" name="fname" value="{{user.first_name}}"> | ||
<input type="hidden" name="lname" value="{{user.last_name}}"> | ||
<input type="hidden" name="email" value="{{user.email}}"> | ||
{% csrf_token %} | ||
<script type="text/javascript"> | ||
document.getElementById('myprofile').submit(); | ||
</script> | ||
</form> | ||
<p><a href="/logout_do/">Logout</a> | ||
|
||
{% else %} | ||
<center> | ||
<br><br><br><br><br><br><br><br> | ||
<a href="{% url 'social:begin' 'twitter' %}?next={{request.path }}" class="btn btn-social btn-twitter"><span class="fa fa-twitter"></span>Login with Twitter</a> | ||
<a href="{% url 'social:begin' 'google-oauth2' %}?next={{ request.path }}" class="btn btn-social btn-google"> <span class="fa fa-google"></span>Login with Google</a> | ||
</center> | ||
|
||
{% endif %} | ||
|
||
<br><br> | ||
{% include "footer.html" %} | ||
|
||
|
||
|
||
</body> | ||
|
||
</html> | ||
|
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,37 @@ | ||
/* Sticky footer styles | ||
-------------------------------------------------- */ | ||
html { | ||
position: relative; | ||
min-height: 100%; | ||
} | ||
|
||
body { | ||
/* Margin bottom by footer height */ | ||
margin-bottom: 150px; | ||
} | ||
|
||
.footer { | ||
position: absolute; | ||
bottom: 0; | ||
width: 100%; | ||
/* Set the fixed height of the footer here */ | ||
/* Set margin-bottom of body to this value as well */ | ||
min-height: 110px; | ||
background-color: #DCDCDC; | ||
text-align: center; | ||
padding: 15px; | ||
} | ||
|
||
.footer-content { | ||
padding-top: 35px; | ||
} | ||
|
||
.footer-mid-text { | ||
color: #2c0f00; | ||
display: inline; | ||
} | ||
|
||
.footer-small-text { | ||
color: #2c0f00; | ||
padding-top: 20px; | ||
} |
Oops, something went wrong.