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

Footer #18

Merged
merged 20 commits into from
Oct 3, 2016
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
16 changes: 11 additions & 5 deletions browser/js/about/about.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<section id="about">
<p>
Dish'd! Get your dish on.
</p>
<md-content flex>
<div layout="row">
<div flex>
<section id="about">
<p>
Dish'd! Get your dish on.
</p>
</section>
</div>
</div>
</md-content>

</section>
2 changes: 1 addition & 1 deletion browser/js/common/directives/dishd-logo/dishd-logo.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<ng-md-icon icon="restaurant_menu"></ng-md-icon>
<ng-md-icon icon="restaurant_menu" size="40px"></ng-md-icon>

14 changes: 14 additions & 0 deletions browser/js/common/directives/footer/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<md-content flex>
<div layout="row" class="footercontainer">
<div class="link" ui-sref="about">ABOUT</div>
<!-- Need to create contact us html & state -->
<div class="link" ui-sref="about">CONTACT US</div>
<div class="copyright">© 2016 DISH'D</div>
<!-- Social icons not real links obvs -->
<div class="social">
<ng-md-icon icon="facebook"></ng-md-icon>
<ng-md-icon icon="twitter"></ng-md-icon>
<ng-md-icon icon="photo_camera"></ng-md-icon>
</div>
</div>
</md-content>
6 changes: 6 additions & 0 deletions browser/js/common/directives/footer/footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
app.directive('footer', function ($rootScope, $state) {
return {
restrict: 'E',
templateUrl: 'js/common/directives/footer/footer.html',
}
});
4 changes: 1 addition & 3 deletions browser/js/common/directives/navbar/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ app.directive('navbar', function ($rootScope, AuthService, AUTH_EVENTS, $state)
link: function (scope) {

scope.items = [
{ label: 'Home', state: 'home' },
{ label: 'About', state: 'about' },
{ label: 'Members Only', state: 'membersOnly', auth: true }
{ label: 'My Account', state: 'myAccount', auth: true }
];

scope.user = null;
Expand Down
2 changes: 1 addition & 1 deletion browser/js/home/home.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<md-content>
<md-content flex>
<div layout="row">
<div flex>
<section id="home">
Expand Down
12 changes: 4 additions & 8 deletions browser/js/login/login.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<md-content class="md-no-momentum" flex>
<md-content flex>
<div id="login-page" layout="column" ng-cloak>
<h1>Login to Dish'd!</h1>
<p>New to Dish'd? <a ui-sref="signup">Sign up here!</a></p>
<form id="login-form" name="loginForm" ng-submit="loginForm.$valid && sendLogin(login)">
<md-input-container class="md-block">
<input ng-model="login.email" type="email" placeholder="Email (required)" ng-required="true">
Expand All @@ -12,17 +11,14 @@ <h1>Login to Dish'd!</h1>
<div>
<md-button type="submit">Submit</md-button>
</div>
<div>
<h4>Or, log in with an external provider: </h4>
<div class="oauth">
<p>New to Dish'd? <a id="signup" ui-sref="signup">Sign up here! </a>
Or, with: </p>
<a href="/auth/google">
Copy link
Collaborator

Choose a reason for hiding this comment

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

amazing -- Oauth works!

<md-button class="md-fab md-accent provider-button">
<ng-md-icon icon="google-plus-box" size="40"></ng-md-icon>
</md-button>
</a>
<a href="/auth/facebook">
<md-button class="md-fab md-primary provider-button">
<ng-md-icon icon="facebook-box" size="40"></ng-md-icon>
</md-button>
</a>
</div>
</form>
Expand Down
2 changes: 1 addition & 1 deletion browser/js/members-only/members-only.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
app.config(function ($stateProvider) {

$stateProvider.state('membersOnly', {
$stateProvider.state('myAccount', {
url: '/members-area',
template: '<img ng-repeat="item in stash" width="300" ng-src="{{ item }}" />',
controller: function ($scope, SecretStash) {
Expand Down
2 changes: 1 addition & 1 deletion browser/js/signup/signup.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<md-content layout-padding>
<md-content flex>
<div ng-controller="SignupCtrl" layout="column" ng-cloak class="md-inline-form" id="signup-page">
<h1>Sign up for Dish'd!</h1>
<p>Already have an account? <a ui-sref="login">Login here!</a></p>
Expand Down
42 changes: 6 additions & 36 deletions browser/scss/about/main.scss
Original file line number Diff line number Diff line change
@@ -1,38 +1,8 @@
#about {

margin: 0 auto;
width: 90%;
@include clearfix;

p {
width: 40%;
margin: 0 auto;
text-align: justify;
font-size: 22px;
font-weight: 300;
float: left;
}

.carousel {
float: right;
width: 55%;
overflow: hidden;
margin: 0 auto;
.carousel-inner {
height: 500px !important;
}
.carousel-control {
background: none;
}
.carousel-indicators {
display: none;
}
img {
max-width: 100%;
max-height: 500px;
display: block;
margin: 0 auto;
}
}

display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
width: 100vw;
height: 85vh;
}
4 changes: 2 additions & 2 deletions browser/scss/directives/_main.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import "fullstack-logo";
@import "navbar";
@import "footer";
@import "navbar";
28 changes: 28 additions & 0 deletions browser/scss/directives/footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
footer {
display: flex;
.footercontainer {
width: 100vw;
height: 10vh;
align-items: center;
justify-content: space-around;
display: flex;
background-color: black;
.link {
color: #FDFDFD;
cursor: pointer;
border-bottom: 1px dotted #9a9a9a;
font-size: 14px;
}
.copyright {
color: #FDFDFD;
}
.social {
color: #FDFDFD;
justify-content: space-around;
align-items: center;
ng-md-icon {
fill: #FDFDFD;
}
}
}
}
7 changes: 0 additions & 7 deletions browser/scss/directives/fullstack-logo.scss

This file was deleted.

2 changes: 2 additions & 0 deletions browser/scss/directives/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ navbar {
flex-direction: row;
#navitems {
display: inline-flex;
//for MyAccount link
align-items: flex-end;
li {
list-style-type: none;
padding-left: 10px;
Expand Down
36 changes: 15 additions & 21 deletions browser/scss/login/main.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
@mixin form-page {
background-color: #FAFAFA;
h1, p{
align-self: center;
align-items: center;
a {
border-bottom: 1px dotted #9a9a9a;
}
}

@mixin form-body{
display: flex;
flex-direction: column;
justify-content: center;
margin-left: 10vw;
width: 80vw;
align-self: center;
width: 60vw;
div{
display: flex;
justify-content: center;
Expand All @@ -19,24 +19,18 @@

#login-page{
@include form-page;
.oauth {
align-items: center;
a {
border-bottom: none;
padding: 5px;
}
#signup {
border-bottom: 1px dotted #9a9a9a;
}
}
}

#login-form{
@include form-body;
}


/*ng-md-icon{
align-self: center;
vertical-align: center;
}*/

.md-fab {
font-size: 2.8rem;
display: block;
}

ng-md-icon {
width : 2.8rem;
height: 2.8rem;
}
7 changes: 7 additions & 0 deletions browser/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@ body {
}
}

a {
text-decoration: none;
color: black;
cursor: pointer;
}

#main {
display: flex;
height: 85vh;
}

@import 'directives/main';
Expand Down
27 changes: 21 additions & 6 deletions browser/scss/signup/main.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
md-content {
width: 100vw;
@mixin form-page {
background-color: #FAFAFA;
align-items: center;
a {
border-bottom: 1px dotted #9a9a9a;
}
}

@mixin form-body {
display: flex;
flex-direction: column;
align-self: center;
width: 60vw;
div {
display: flex;
justify-content: center;
}
}

#signup-page{
#signup-page {
@include form-page;
}
}

#signup-form{
#signup-form {
@include form-body;
}
}
Binary file modified server/app/views/favicon.ico
Binary file not shown.
3 changes: 2 additions & 1 deletion server/app/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<base href="/" />
<title>Fullstack Academy Generated Application</title>
<title>Dish'd</title>
<link rel="stylesheet" href="/angular-material/angular-material.min.css" />
<link rel="stylesheet" type="text/css" href="/style.css" />
<script src="/lodash/index.js"></script>
Expand All @@ -18,5 +18,6 @@
<body ng-app="FullstackGeneratedApp">
<navbar></navbar>
<div id="main" ui-view></div>
<footer></footer>
</body>
</html>
9 changes: 5 additions & 4 deletions server/db/models/user-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ var db = require('../_db');
module.exports = db.define('user', {
email: {
type: Sequelize.STRING,
allowNull: false,
unique: true
unique: true,
validate: {
isEmail: true
}
},
password: {
type: Sequelize.STRING,
allowNull: false
type: Sequelize.STRING
},
firstName: {
type: Sequelize.STRING,
Expand Down
4 changes: 2 additions & 2 deletions server/env/development.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ module.exports = {
},
FACEBOOK: {
clientID: '1798317553747617',
clientSecret: '1f4efd52e49a5366c8a50b8b3647f42f',
clientSecret: '4f698c66684cf989dddeb6cce4fb3355',
callbackURL: 'http://localhost:1337/auth/facebook/callback'
},
GOOGLE: {
clientID: '405517878236-493ai7memfuvad4dpmi4haniq0o1dshl.apps.googleusercontent.com',
clientSecret: 'pxot-QA273WNhdRAHBzNbZq1',
clientSecret: 'k3d-wl6X3_K23Vhw0d1EmoOu',
callbackURL: 'http://localhost:1337/auth/google/callback'
},
LOGGING: true,
Expand Down