feat(@theme): add base footer

This commit is contained in:
tibing 2017-04-18 20:29:57 +03:00
parent 0992b52b24
commit d9cd3c28aa
12 changed files with 67 additions and 19 deletions

View file

@ -0,0 +1,9 @@
@mixin base-footer-theme() {
/deep/ base-footer {
color: $nga-color-default;
.socials a:hover {
color: $nga-color-secondary !important;
}
}
}

View file

@ -0,0 +1,14 @@
:host {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
.socials {
font-size: 2rem;
a {
padding: .4rem;
}
}
}

View file

@ -0,0 +1,17 @@
import { Component } from '@angular/core';
@Component({
selector: 'base-footer',
styleUrls: ['./base-footer.component.scss'],
template: `
<span>Created with by <b>Akveo</b> 2017</span>
<div class="socials">
<a href="https://github.com/akveo" target="_blank" class="ion ion-social-github"></a>
<a href="https://www.facebook.com/akveo" target="_blank" class="ion ion-social-facebook"></a>
<a href="https://twitter.com/akveo_inc" target="_blank" class="ion ion-social-twitter"></a>
<a href="https://www.linkedin.com/company/akveo" target="_blank" class="ion ion-social-linkedin"></a>
</div>
`
})
export class BaseFooterComponent {
}

View file

@ -58,7 +58,6 @@
padding-right: 0;
}
}
}
}

View file

@ -19,6 +19,7 @@ import { Component } from '@angular/core';
</nga-layout-column>
<nga-layout-footer fixed>
<base-footer></base-footer>
</nga-layout-footer>
</nga-layout>
`,

View file

@ -0,0 +1,9 @@
@import '../layouts/base-header/base-header.component.theme';
@import '../search-input/search-input.component.theme';
@import '../layouts/base-footer/base-footer.component.theme';
@mixin custom-components-theme() {
@include base-header-theme();
@include base-footer-theme();
@include search-input-theme();
}

View file

@ -1,7 +0,0 @@
@import '../../layouts/base-header/base-header.component.theme';
@import '../../search-input/search-input.component.theme';
@mixin custom-components-theme() {
@include base-header-theme();
@include search-input-theme();
}

View file

@ -30,6 +30,10 @@ $nga-sidebar-width-compact: 3.45rem;
color: $nga-color-default;
}
a:hover {
color: $nga-color-secondary;
}
nga-layout {
nga-layout-header > nav {
box-shadow: 0 4px 12px 0 rgba(33, 57, 161, 0.08);
@ -66,6 +70,7 @@ $nga-sidebar-width-compact: 3.45rem;
nga-layout-footer > nav {
box-shadow: 0 4px 12px 0 rgba(33, 57, 161, 0.08);
border: none !important;
padding: 1.25rem;
}
}
}

View file

@ -1,5 +1,5 @@
@import '~@nga/theme/styles/themes/nga.theme.default';
@import 'pure.components';
@import '../components';
@import 'pure.redefines';
@include nga-theme();

View file

@ -14,6 +14,7 @@ import {
import { SearchInputComponent } from './search-input/search-input.component';
import { OneCollLayoutComponent, BaseHeaderComponent } from './layouts';
import { BaseFooterComponent } from './layouts/base-footer/base-footer.component';
const BASE_MODULES = [
CommonModule,
@ -32,7 +33,8 @@ const NGA_MODULES = [
const LAYOUTS = [
OneCollLayoutComponent,
BaseHeaderComponent
BaseHeaderComponent,
BaseFooterComponent
];
@NgModule({
@ -49,7 +51,8 @@ const LAYOUTS = [
],
declarations: [
...LAYOUTS,
SearchInputComponent
SearchInputComponent,
BaseFooterComponent
]
})
export class ThemeModule {