-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/431693_footer' into 'develop'
feature/431693_footer See merge request upm-inesdata/inesdata-connector-interface!36
- Loading branch information
Showing
13 changed files
with
173 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div class="footer-container"> | ||
<footer class="footer"> | ||
<div class="footer__logos"> | ||
<img src="assets/images/logo-UE.png" alt="Logo fundación por la UE"> | ||
<img src="assets/images/logo-ministerio.png" alt="Logo miniterio del interior"> | ||
<img src="assets/images/logo-unico.png" alt="Logo unico"> | ||
<img src="assets/images/logo-politecnica.png" alt="Logo politécnica"> | ||
<img src="assets/images/logo-ontology.png" alt="Logo ontology"> | ||
</div> | ||
</footer> | ||
|
||
<div class="footer__company"> | ||
<p> INESData (Infrastructure to Investigate Data Spaces in Distributed Environments at UPM) © {{ year }}</p> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* Custom FOOTER component styles */ | ||
|
||
.footer { | ||
background-color: #404040; | ||
padding: 50px 40px; | ||
border-top: solid 1px rgba(255, 255, 255, 0.12); | ||
|
||
&__company { | ||
color: white; | ||
font-weight: 500; | ||
text-align: center; | ||
padding: 15px 0px; | ||
background-color: #303030; | ||
} | ||
|
||
&__logos { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | ||
justify-content: center; | ||
align-items: center; | ||
gap: 40px; | ||
|
||
img { | ||
margin: auto; | ||
} | ||
} | ||
|
||
&__title { | ||
color: #ffffff; | ||
font-size: 42px; | ||
margin: 0 0 8px 0; | ||
} | ||
} | ||
|
||
// RESPONSIVE | ||
// Desktop | ||
@media (max-width: 991px) { | ||
.footer { | ||
margin: 0 -30px; | ||
} | ||
} | ||
|
||
|
||
.footer-container { | ||
z-index: 1; | ||
position: sticky; | ||
left: 0%; | ||
bottom: 0%; | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; | ||
import { LoggerTestingModule } from 'ngx-logger/testing'; | ||
|
||
import { FooterComponent } from './footer.component'; | ||
|
||
describe('FooterComponent', () => { | ||
let component: FooterComponent; | ||
let fixture: ComponentFixture<FooterComponent>; | ||
|
||
beforeEach(waitForAsync(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ FooterComponent ], | ||
imports: [LoggerTestingModule] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(FooterComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
|
||
it('footer should contain the year ', () => { | ||
const compiled = fixture.debugElement.nativeElement; | ||
expect(compiled.querySelector('.footer__company').textContent).toContain(new Date().getFullYear()); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
/** | ||
* Footer component | ||
*/ | ||
@Component({ | ||
selector: 'app-footer', | ||
templateUrl: './footer.component.html', | ||
styleUrls: ['./footer.component.scss'] | ||
}) | ||
export class FooterComponent { | ||
|
||
year: number; | ||
|
||
/** | ||
* Component constructor | ||
*/ | ||
constructor() { | ||
this.year = new Date().getFullYear(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters