Skip to content

Commit

Permalink
more tweaks and added animation
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanbh committed Jul 27, 2016
1 parent 8ea5619 commit 19d7ff7
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 17 deletions.
15 changes: 10 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="styles/materialize.min.css" media="screen,projection" />


<!-- Our styles -->
<link rel="stylesheet" href="styles/main.css" />

<title>Faron Big • Trinklets for tomorrow</title>
</head>

<body>
<header>
<header autoscroll="true">
<!-- Top navigation -->
<nav class="nav-wrapper" style="background:#ffffff">

Expand Down Expand Up @@ -51,11 +52,11 @@
<!-- Mobile side navbar below. Activates through custom.js -->
<a href="#" data-activates="mobile-demo" class="button-collapse"><i class="material-icons">menu</i></a>
<ul class="side-nav" id="mobile-demo">
<li><a ui-sref='home'>HOME</a></li>
<li><a href="#" ui-sref='home'>HOME</a></li>
<li><a ui-sref='shop({id:"squire"})'>SHOP</a></li>
<li><a ui-sref='projects'>PROJECTS</a></li>
<!-- <li><a ui-sref='story'>OUR STORY</a></li> -->
<li><a ui-sref='login'>LOG IN</a></li>
<!-- <li><a ui-sref='login'>LOG IN</a></li> -->
</ul>
</nav>

Expand All @@ -65,11 +66,12 @@

<main class="site-main" role="main">

<ui-view class="well">
<div class="well" ui-view>
<!-- Indeterminate progress bar below; color white -->
<div class="progress" style="background:none">
<div class="indeterminate" style="background:#ffffff"></div>
</div>
</ui-view>
</div>

</main>

Expand Down Expand Up @@ -151,6 +153,9 @@
<script src="scripts/materialize.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.15/angular-ui-router.js"></script>
<!-- Angular animate -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular-animate.js"></script>


<!--Our Script Files-->
<script src="./scripts/app.js"></script>
Expand Down
9 changes: 8 additions & 1 deletion scripts/app.js
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
angular.module('faronBig', ['ui.router']);
var app = angular.module('faronBig', ['ui.router', 'ngAnimate']);

// Make sure the browser scrolls to the top
app.run(function($rootScope) {
$rootScope.$on('$stateChangeSuccess', function() {
document.body.scrollTop = document.documentElement.scrollTop = 0;
});
})
2 changes: 1 addition & 1 deletion scripts/homeCtrl.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var app = angular.module('faronBig');

app.controller('homeCtrl', function(){

})

app.directive('imgSlide', function() {
Expand Down
1 change: 1 addition & 0 deletions scripts/routs.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ angular.module('faronBig')


});

45 changes: 35 additions & 10 deletions styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,33 @@ body {
main {
flex: 1 0 auto;
}
input[type]:focus:not([readonly]) {
border-bottom: 1px solid #5D3348;
box-shadow: 0 1px 0 0 #5D3348;
}

/*ngAnimate begins*/

[ui-view].ng-enter, [ui-view].ng-leave {
position: absolute;
left: 0;
right: 0;
transition: all 1s ease;
}
[ui-view].ng-enter {
opacity: 0;
transform: scale3d(.96, .96, .96);
}
[ui-view].ng-enter-active {
opacity: 1;
transform: scale3d(1, 1, 1);
}
[ui-view].ng-leave-active {
opacity: 0;
}

/*ngAnimate ends here*/

.nav-wrapper {
height: 68px;
}
Expand Down Expand Up @@ -311,21 +338,19 @@ footer.page-footer .footer-copyright {
margin-left: 10%;
width: auto;
}

.projects-bottom #mc_embed_signup input.email {
width: 75%;
width: 75%;
}
.projects-bottom #mc_embed_signup_scroll {
display: flex;
display: flex;
}

@media (max-width:601px) {
.projects-bottom {
margin-top: 20px;
}
.projects-bottom h5{
margin-left: 0 !important;
}
.projects-bottom {
margin-top: 20px;
}
.projects-bottom h5 {
margin-left: 0 !important;
}
.projects-bottom #mc_embed_signup {
margin: 0;
}
Expand Down
1 change: 1 addition & 0 deletions views/home.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<section class="home-container">
<!-- Slider and main images -->

Expand Down

0 comments on commit 19d7ff7

Please sign in to comment.