Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
5279230
first commit, basic html/css changes
Aug 28, 2017
74f3d09
added settings/profile pages and many small changes
tmfahey Sep 5, 2017
c39fc68
adding basic functionality for modifying and grabbing users from sett…
tmfahey Oct 16, 2017
66bbf55
added models, reformatted registration to use them
tmfahey Oct 17, 2017
eefbf92
Merge branch 'login_controller_and_models' into settings_controller_a…
tmfahey Oct 17, 2017
0c3e187
working settings view and controller for accelerator and investors
tmfahey Oct 17, 2017
ac2d655
dynamic creation of team members through users api. should be updated…
tmfahey Oct 22, 2017
3a45aaf
beautiful formatting
tmfahey Oct 23, 2017
d152b7c
fixed two small syntax bugs
tmfahey Oct 30, 2017
a59c093
landing page init
0x1A1-1 Oct 30, 2017
eb12567
Only allow authenticated admins or the own user to delete users
jrdallman Oct 31, 2017
b959445
Limit user registration to admins only
jrdallman Oct 31, 2017
152e8e1
added registration functionality
svdorn Oct 31, 2017
9b62b77
First attempt at adding invite and self-register
jrdallman Nov 1, 2017
a26cf0d
add landing page to components
0x1A1-1 Nov 1, 2017
c6ef7ee
routing for landing page finished
0x1A1-1 Nov 1, 2017
c92a060
add recapcha route
0x1A1-1 Nov 1, 2017
d8a6db1
fix how this is displays to prevent errors on logout
tmfahey Nov 1, 2017
1ebff63
test changes
Alheimurinn Nov 1, 2017
803ee18
added functionality for dynamically adding team members
svdorn Nov 1, 2017
677eef6
adding aboutus view
Alheimurinn Nov 1, 2017
ea40c02
Update format in aboutus
Alheimurinn Nov 1, 2017
cf68c74
adding angular code for adding cohorts and companies of cohorts
tmfahey Nov 1, 2017
be8ba8f
add toggling feature to form submissions
tmfahey Nov 1, 2017
27ea779
add table to cohorts and companies
0x1A1-1 Nov 1, 2017
5ba0955
mix fix on styling
0x1A1-1 Nov 1, 2017
bc15e7d
fixing about us and adding it to landing page
tmfahey Nov 1, 2017
0705b6b
undo past mistakes, fix invite/delete verification
jrdallman Nov 1, 2017
8f776df
fixing issue with adding companies dynamic menu
tmfahey Nov 1, 2017
71b1b25
Merge pull request #4 from tmfahey/admin_controller
tmfahey Nov 1, 2017
135fa48
Merge branch 'staging' into landing_page
tmfahey Nov 2, 2017
73740f6
Merge pull request #1 from tmfahey/landing_page
tmfahey Nov 2, 2017
83455e9
Merge branch 'staging' into registration_controller_and_view
tmfahey Nov 2, 2017
30f6a28
Merge pull request #6 from tmfahey/settings_controller_and_view
svdorn Nov 2, 2017
553dc7a
added cohort and company functionality to registration
svdorn Nov 2, 2017
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
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ coverage
# node-waf configuration
.lock-wscript

.DS_Store

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

Expand All @@ -39,4 +41,6 @@ typings

# Generated files
client/app/**/*.js
client/app/**/*.js.map
client/app/**/*.js.map
client/package-lock.json
server/package-lock.json
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# mean-angular2-registration-login-example
# Omnivalley

MEAN Stack with Angular 2 - User Registration and Login Example & Tutorial

For details and documentation go to http://jasonwatmore.com/post/2017/02/22/mean-with-angular-2-user-registration-and-login-example-tutorial
Repository for the tech stack of OmniValley
329 changes: 324 additions & 5 deletions client/app.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,326 @@
a {
cursor: pointer;
/*!
* Start Bootstrap - Landing Page (https://startbootstrap.com/template-overviews/landing-page)
* Copyright 2013-2017 Start Bootstrap
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-landing-page/blob/master/LICENSE)
*/

body, html {
width: 100%;
height: 100%;
}

body, h1, h2, h3, h4, h5, h6 {
font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 700;
background-color: #fff;
}

h2 {
font-size: 24px;
font-weight: 600;
margin-top: 8px;
}

h3 {
font-size: 18px;
}

hr{
width: 80%;
border-color: rgba(135,135,135,0.5);
}

.navbar, .alert {
margin-bottom: 0px;
}

.menu-heading {
padding: 8px 10px;
margin-top: 0;
margin-bottom: 0;
font-size: 16px;
font-weight: 600;
line-height: 20px;
color: #586069;
background-color: #f3f5f8;
border-bottom: 1px solid #e1e4e8;
}

.Subhead-heading {
border-bottom: 1px #e1e4e8 solid;
padding-bottom: 8px;
margin-bottom: 16px;
font-size: 24px;
font-weight: normal;
-webkit-box-flex: 1;
-webkit-flex: 1 1 auto;
flex: 1 1 auto;
}

.Subhead--spacious {
margin-top: 40px;
}

.Subtext-heading {
padding-bottom: 8px;
font-size: 18px;
font-weight: normal;
-webkit-box-flex: 1;
-webkit-flex: 1 1 auto;
flex: 1 1 auto;
}

.member{
display: inline-block;
width: 150px;
margin: 10px;
}

.member_photo{
width:150px;
}

.member_name{
}

.member_buttons{

}

.navbar{
margin-bottom: 0px;
}

.body {
padding-top: 30px;
padding-bottom: 30px;
margin-bottom: 60px;
color: inherit;
min-height: 400px;
clear: both;
}

.body::before, .body::after {
clear: both;
content: ".";
display: block;
visibility: hidden;
}

#footer {
bottom: 0;
width: 100%;
position: absolute;
height: 60px;
background-color: #f5f5f5;
}

#copyright{
padding: 20px;
}

#container {
position: relative;
overflow: auto;
clear: both;
min-height: 100%;
}

#container {
position: relative;
overflow: auto;
clear: both;
min-height: 100%;
}

.col-md-3{
border-radius: 9px;
box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 8px 0px;
background-color: rgb(255, 255, 255);
margin: 20px;
}

.profile{
border-radius: 50%;
width: 60%;
margin: auto;
display: block;
}

.menu{
margin-bottom: 15px;
list-style: none;
background-color: #fff;
border: 1px solid #d1d5da;
border-radius: 3px;
min-width: 130px;
padding-right: 0;
padding-left: 0;
}

.intro-header {
padding-top: 50px;
padding-bottom: 50px;
text-align: center;
color: #f8f8f8;
background: url(../img/intro-bg.jpg) no-repeat center center;
background-size: cover;
}

.intro-message {
position: relative;
padding-top: 20%;
padding-bottom: 20%;
}

.intro-message>h1 {
margin: 0;
text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
font-size: 5em;
}

.intro-divider {
width: 400px;
border-top: 1px solid #f8f8f8;
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.intro-message>h3 {
text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
}

.intro-social-buttons i {
font-size: 80%;
}

@media(max-width:767px) {
.intro-message {
padding-bottom: 15%;
}
.intro-message>h1 {
font-size: 3em;
}
ul.intro-social-buttons>li {
display: block;
margin-bottom: 20px;
padding: 0;
}
ul.intro-social-buttons>li:last-child {
margin-bottom: 0;
}
.intro-divider {
width: 100%;
}
}

.network-name {
text-transform: uppercase;
font-size: 14px;
font-weight: 400;
letter-spacing: 2px;
}

.content-section-a {
padding: 50px 0;
background-color: #f8f8f8;
}

.content-section-b {
padding: 50px 0;
border-top: 1px solid #e7e7e7;
border-bottom: 1px solid #e7e7e7;
}

.section-heading {
margin-bottom: 30px;
}

.section-heading-spacer {
float: left;
width: 200px;
border-top: 3px solid #e7e7e7;
}

.banner {
padding: 100px 0;
color: #f8f8f8;
background: url(../img/banner-bg.jpg) no-repeat center center;
background-size: cover;
}

.banner h2 {
margin: 0;
text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
font-size: 3em;
}

.banner ul {
margin-bottom: 0;
}

.banner-social-buttons {
float: right;
margin-top: 0;
}

@media(max-width:1199px) {
ul.banner-social-buttons {
float: left;
margin-top: 15px;
}
}

@media(max-width:767px) {
.banner h2 {
margin: 0;
text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
font-size: 3em;
}
ul.banner-social-buttons>li {
display: block;
margin-bottom: 20px;
padding: 0;
}
ul.banner-social-buttons>li:last-child {
margin-bottom: 0;
}
}

.form-group .form-control {
width: 440px;
max-width: 100%;
margin-right: 5px;
background-color: #fafbfc;
}

.form-control, .form-select {
min-height: 34px;
padding: 6px 8px;
font-size: 14px;
line-height: 20px;
color: #24292e;
vertical-align: middle;
background-color: #fff;
background-repeat: no-repeat;
background-position: right 8px center;
border: 1px solid #d1d5da;
border-radius: 3px;
outline: none;
box-shadow: inset 0 1px 2px rgba(27,31,35,0.075);
}

.btn {
color: #24292e;
background-color: #eff3f6;
background-image: -webkit-linear-gradient(270deg, #fafbfc 0%, #eff3f6 90%);
background-image: linear-gradient(-180deg, #fafbfc 0%, #eff3f6 90%);
}

.mr-2 {
margin-right: 8px !important;
}

label{
margin-top: 5px;
}

.help-block {
font-size: 12px;
}
12 changes: 9 additions & 3 deletions client/app/_guards/auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ export class AuthGuard implements CanActivate {
return true;
}

// not logged in so redirect to login page with the return url
this.router.navigate(['/login'], { queryParams: { returnUrl: state.url }});
if(state.url == "/"){
this.router.navigate(['/landing'], { skipLocationChange: true });
}
else{
// not logged in so redirect to login page with the return url
//window.location = "http://www.domain.com/login"
this.router.navigate(['/login'], { queryParams: { returnUrl: state.url }});
}
return false;
}
}
}
Loading