Commit 2fd63be8 authored by mdsecurity's avatar mdsecurity
Browse files

finished the animations on the nav-bar

parent 3385783f
......@@ -18,6 +18,7 @@ import { ShowHideArrowComponent } from './context-bar/show-hide-arrow/show-hide-
import { FeedbackDialogComponent } from './place-window/area/place-card/feedback-dialog/feedback-dialog.component';
import { SearchBarComponent } from './search-bar/search-bar.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { SrctLogoComponent } from './nav-bar/srct-logo/srct-logo.component';
@NgModule({
declarations: [
......@@ -33,7 +34,8 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
AreaComponent,
ShowHideArrowComponent,
FeedbackDialogComponent,
SearchBarComponent
SearchBarComponent,
SrctLogoComponent
],
imports: [
BrowserModule,
......
.small-nav-background {
position:absolute;
top:0;
width: 100%;
height: 95px;
// background-color: #006633;
z-index:1000;
}
.small-logo {
width: 60px;
height: 60px;
}
.small-logo > path{
fill:#ffffff;
}
.small-title-container {
width:200px;
height:60px;
margin-left:5px;
}
.small-title {
font-family: Nunito-Bold;
font-size: 24px;
color: #FFFFFF;
}
.small-sub-title {
opacity: 0.75;
font-family: NunitoSans-Regular;
font-size: 15px;
color: #FFFFFF;
}
.long-container{
position:relative;
width:59%;
height:100%;
display:flex;
align-items:center;
}
.links {
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
display: flex;
flex-direction: row;
width: 340px;
justify-content: space-between;
margin:auto;
}
.link-font {
font-family: NunitoSans-SemiBold;
font-size: 18px;
color:inherit;
}
.check-code-button {
position: absolute;
top: 30px;
right: 30px;
height: 35px;
width: 160px;
// background-color:green;
border-color: #FFCC33;
border-style: solid;
border-width: 2px;
border-radius: 50px;
opacity: 0.9;
font-family: NunitoSans-Regular;
font-size: 12px;
color: #FFFFFF;
text-align: center;
vertical-align: middle;
line-height: 35px;
}
.exp-nav-background {
position: absolute;
width: 100%;
top: 0px;
left: 0px;
height: 400px;
background: #ffffff;
box-shadow: 0px 8px 20px 0px $shadow-color;
&:before {
content: "";
background: url("../../assets/pattern.png") repeat;
background-size: 100px;
opacity: 0.04;
top: 0;
left: 0;
bottom: 0;
right: 0;
position: absolute;
}
}
.header-background {
//width: 56.65%;
width: 59%;
height: 100%;
position: absolute;
left: 0px;
top: 0px;
display: flex;
flex-direction: column;
justify-content: center;
}
.promo-background {
position: absolute;
width: 43.35%;
height: 100%;
top: 0px;
right: 0px;
overflow: hidden;
}
.circle {
position: absolute;
bottom: -150%;
left: 30px;
width: 400%;
height: 400%;
background-color: #006633;
border-radius: 100%;
box-shadow: -3px 0px 6px 0px rgba(0, 0, 0, 0.26), -10px 0px 20px 0px rgba(0, 0, 0, 0.19);
&:before {
content: "";
background: url("../../assets/pattern.png") repeat;
background-size: 100px;
opacity: 0.10;
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
border-radius: 100%;
}
}
.title-and-logo {
display: block;
//margin: auto;
// position:relative;
}
.logo {
display: block;
margin: auto;
height: 85px;
}
.title {
font-family: Montserrat-Bold;
font-size: 56px;
color: #354052;
text-align: center;
}
.white-gradient {
z-index: 5;
position: absolute;
width: 43.35%;
height: 100%;
top: 0px;
right: 0px;
// background: #006633;
background-image: radial-gradient(48% 50%, rgba(255, 255, 255, 0.54) 51%, rgba(255, 255, 255, 0) 100%);
background-image: radial-gradient(52% 50%, rgba(255, 255, 255, 0.2) 47%, rgba(255, 255, 255, 0) 100%);
}
.phone-background {
position: absolute;
height: 100%;
// background-color:#006633;
top: 0px;
right: 0px;
// border-radius: 84px 0px 0px 84px / 290px 0px 0px 290px;
}
.phones {
width: 360px;
height: 340px;
right: 45px;
// top: 60px;
bottom: 0px;
overflow: hidden;
}
.phone-wrap--iphone {
width: 0.6 * 292px;
height: 0.6 * 610px;
left: 126px;
top: 62px;
z-index: 400;
}
.phone-wrap--android {
width: 0.6 * 290px;
height: 0.6 * 574px;
left: 0;
top: 0;
z-index: 500;
}
.phone,
.phone-wrap,
.phones {
position: absolute;
}
.the-iphone {
position: relative;
width: 0.6 * 292px;
height: 0.6 * 610px;
background: #FFF;
box-shadow: 11px 15px 39px 0 rgba(31, 35, 61, 0.2), 0 2px 4px 0 rgba(88, 100, 177, 0.01), inset 0 0 4px 4px #dfe1ec;
border-radius: 0.6 * 40px;
z-index: 600;
}
.the-iphone-button,
.the-iphone-dot,
.the-iphone-line {
left: 50%;
transform: translate3d(-50%, 0, 0);
opacity: .5;
box-shadow: inset 0 1px 2px 0 #B3B8D0;
position: absolute;
}
.the-iphone-dot {
width: 0.6 * 8px;
height: 0.6 * 8px;
top: 0.6 * 22px;
border-radius: 50%;
background: #DAE1EA;
}
.the-iphone-line {
width: 0.6 * 44px;
height: 0.6 * 6px;
top: 0.6 * 36px;
border-radius: 0.6 * 5px;
background: #DAE1EA;
}
.the-iphone-screen {
width: 0.6 * 270px;
height: 0.6 * 479px;
border: 1px solid #E7E9F0;
background-color: #F3F4F8;
position: absolute;
left: 50%;
top: 0.6 * 60px;
border-radius: 0.6 * 4px;
transform: translate3d(-50%, 0, 0);
background-image: url(../../assets/JC.jpg);
background-size: 0.6 * 270px;
}
.the-iphone-button {
width: 0.6 * 40px;
height: 0.6 * 40px;
bottom: 0.6 * 18px;
border-radius: 50%;
background: #DAE1EA;
}
.the-android {
position: relative;
width: 0.6 * 290px;
height: 0.6 * 574px;
background: #FFF;
box-shadow: 11px 15px 39px 0 rgba(31, 35, 61, 0.2), 0 2px 4px 0 rgba(88, 100, 177, 0.01), inset 0 0 4px 4px #dfe1ec;
border-radius: 0.6 * 30px;
}
.the-android-button,
.the-android-dot,
.the-android-line {
opacity: .5;
box-shadow: inset 0 1px 2px 0 #B3B8D0;
}
.the-android-dot {
width: 0.6 * 7px;
height: 0.6 * 7px;
position: absolute;
left: 0.6 * 76px;
top: 0.6 * 25px;
border-radius: 50%;
background: #DAE1EA;
}
.the-android-button,
.the-android-line,
.the-android-screen {
position: absolute;
left: 50%;
transform: translate3d(-50%, 0, 0);
}
.the-android-line {
width: 0.6 * 94px;
height: 0.6 * 6px;
top: 0.6 * 25px;
border-radius: 0.6 * 5px;
background: #DAE1EA;
}
.the-android-screen {
width: 0.6 * 262px;
height: 0.6 * 466px;
border: 1px solid #E7E9F0;
background-color: #F3F4F8;
top: 0.6 * 50px;
border-radius: 0.6 * 4px;
background-image: url(../../assets/JC.jpg);
background-size: 0.6 * 262px;
}
.the-android-button {
width: 0.6 * 94px;
height: 0.6 * 6px;
bottom: 0.6 * 26px;
border-radius: 0.6 * 5px;
background: #DAE1EA;
}
<div [@toggle-small-bar]="expanded" class="small-nav-background">
<div class="long-container">
<img class="small-logo" src="../../assets/small-logo.png">
<div class="small-title-container">
<div class="small-title">Whats Open</div>
<div class="small-sub-title">An SRCT Application</div>
</div>
<!--<div class="small-links">-->
<!--<div class="small-link-font">Feedback</div>-->
<!--<div class="small-link-font">About</div>-->
<!--<div class="small-link-font">Ipsum</div>-->
<!--</div>-->
<div class="links">
<div class="link-font">Feedback</div>
<div class="link-font">About</div>
<div class="link-font">Ipsum</div>
</div>
<div class="long-container">
<img [@toggle-logo-and-text]="expanded"class="small-logo" src="../../assets/small-logo.png">
<div [@toggle-logo-and-text]="expanded"class="small-title-container">
<div class="small-title">Whats Open</div>
<div class="small-sub-title">A Student-Built App</div>
</div>
<div class="links"[@toggle-links]="expanded">
<div class="link-font">Feedback</div>
<div class="link-font">About</div>
<div class="link-font">Ipsum</div>
</div>
</div>
<div class="check-code-button">
Check out the code
</div>
</div>
<div class="navbars-container" [@toggle-large-bar]="expanded">
<div class="nav-bar-background">
<div class="check-code-button">
Check out the code
</div>
<div class="close-nav-bar-button-container">
<div class="close-nav-bar-button" (click)="toggleState()"></div>
<div class="exp-nav-background">
<div class="close-nav-bar-button-container">
<div class="close-nav-bar-button" (click)="toggleState()"></div>
</div>
<div class="header-background">
<!--<div class="links">-->
<!--<div class="link-font">Feedback</div>-->
<!--<div class="link-font">About</div>-->
<!--<div class="link-font">Ipsum</div>-->
<!--</div>-->
<div class="title-and-logo">
<!--<img class="logo" src="../../assets/SRCT_square.svg">-->
<svg class="logo" viewBox="194 -6 127 127" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<desc>Created with Sketch.</desc>
<defs>
<circle id="clock-1" cx="57.5" cy="57.5" r="57.5"></circle>
<mask id="mask-2" maskContentUnits="userSpaceOnUse" maskUnits="objectBoundingBox" x="-6" y="-6" width="127" height="127">
<rect x="-6" y="-6" width="127" height="127" fill="white"></rect>
<use xlink:href="#clock-1" fill="black"></use>
</mask>
</defs>
<g id="Clock" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(200.000000, 0.000000)">
<use id="clock-Oval-2" stroke="#354052" mask="url(#mask-2)" stroke-width="12" xlink:href="#clock-1"></use>
<rect id="clock-Rectangle-2" fill="#354052" transform="translate(49.500000, 68.500000) rotate(-53.000000) translate(-49.500000, -68.500000) "
x="34" y="66" width="31" height="5" rx="2.5"></rect>
<rect id="clock-Rectangle-3" fill="#354052" transform="translate(80.500000, 54.399025) rotate(-7.000000) translate(-80.500000, -54.399025) "
x="57" y="52.3990249" width="47" height="4" rx="2"></rect>
<rect id="clock-Rectangle-4" fill="#354052" transform="translate(40.000000, 44.000000) rotate(36.000000) translate(-40.000000, -44.000000) "
x="17" y="43" width="46" height="2" rx="1"></rect>
<circle id="clock-Oval-3" fill="#354052" cx="58" cy="57" r="4"></circle>
</g>
</svg>
<desc>Created with Sketch.</desc>
<defs>
<circle id="clock-1" cx="57.5" cy="57.5" r="57.5"></circle>
<mask id="mask-2" maskContentUnits="userSpaceOnUse" maskUnits="objectBoundingBox" x="-6" y="-6" width="127" height="127">
<rect x="-6" y="-6" width="127" height="127" fill="white"></rect>
<use xlink:href="#clock-1" fill="black"></use>
</mask>
</defs>
<g id="Clock" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(200.000000, 0.000000)">
<use id="clock-Oval-2" stroke="#354052" mask="url(#mask-2)" stroke-width="12" xlink:href="#clock-1"></use>
<rect id="clock-Rectangle-2" fill="#354052" transform="translate(49.500000, 68.500000) rotate(-53.000000) translate(-49.500000, -68.500000) "
x="34" y="66" width="31" height="5" rx="2.5"></rect>
<rect id="clock-Rectangle-3" fill="#354052" transform="translate(80.500000, 54.399025) rotate(-7.000000) translate(-80.500000, -54.399025) "
x="57" y="52.3990249" width="47" height="4" rx="2"></rect>
<rect id="clock-Rectangle-4" fill="#354052" transform="translate(40.000000, 44.000000) rotate(36.000000) translate(-40.000000, -44.000000) "
x="17" y="43" width="46" height="2" rx="1"></rect>
<circle id="clock-Oval-3" fill="#354052" cx="58" cy="57" r="4"></circle>
</g>
</svg>
<div class="title">What's Open</div>
</div>
</div>
......
@import "../../global-styles";
@import "phone-mock";
@import "expanded-nav";
@import "collapsed-nav";
$vertical-displacement: 10px;
.nav-bar-background {
position: relative;
width: 100%;
top: 0px;
left: 0px;
height: 400px;
background: #ffffff;
box-shadow: 0px 8px 20px 0px $shadow-color;
}
.promo-background{
position:absolute;
width:43.35%;
height:100%;
top:0px;
right:0px;
overflow:hidden;
}
.circle{
position:absolute;
bottom:-150%;
left:30px;
width:400%;
height:400%;
background-color:#006633;
border-radius:100%;
box-shadow: -3px 0px 6px 0px rgba(0,0,0,0.26),-10px 0px 20px 0px rgba(0,0,0,0.19);
&:before{
content: "";
background: url("../../assets/pattern.png") repeat;
background-size: 100px;
opacity: 0.10;
position:absolute;
top:0;
right:0;
width:100%;
height:100%;
border-radius:100%;
}
}
.close-nav-bar-button {
width: 30px;
......@@ -49,6 +12,7 @@ $vertical-displacement: 10px;
margin: 5px auto 0px auto;
border-radius: 50%;
box-shadow: 0px 0px 0px 0px $shadow-color;
z-index:1000000;
}
.close-nav-bar-button-container {
......@@ -64,306 +28,3 @@ $vertical-displacement: 10px;
box-shadow: inset 0px 0px 20px 0px $shadow-color;
z-index: 10001;
}
.nav-bar-background:before {
content: "";
background: url("../../assets/pattern.png") repeat;
background-size: 100px;
opacity: 0.04;
top: 0;
left: 0;
bottom: 0;
right: 0;
position: absolute;
}
.header-background {
width: 56.65%;
height: 100%;
position: absolute;
left: 0px;
top: 0px;
}
.long-container{
width:56.65%;
height:100%;
display:flex;
}
.links {
display: flex;
flex-direction: row;
width: 340px;
justify-content: space-between;
margin:auto;
}
.link-font {
font-family: NunitoSans-SemiBold;
font-size: 18px;
color:white; //#354052;
}
.check-code-button {
position: absolute;
top: 30px;
right: 30px;
height: 35px;
width: 160px;
// background-color:green;
border-color: #FFCC33;
border-style: solid;
border-width: 2px;
z-index: 1000;
border-radius: 50px;
opacity: 0.9;
font-family: NunitoSans-Regular;
font-size: 12px;
color: #FFFFFF;
text-align: center;
vertical-align: middle;
line-height: 35px;
}
.title-and-logo {
margin: auto;
position:relative;
}
.logo {
display: block;
margin: auto;
height: 85px;
}
.title {
font-family: Montserrat-Bold;
font-size: 56px;
color: #354052;
text-align:center;
}
.phone-background {
position: absolute;
height: 100%;
// background-color:#006633;
top: 0px;
right: 0px;