Commit 75797f36a6684e5e08d25250c80c0f5cf3dbc32a

Authored by Marcelo Puebla
1 parent 0c435d546a
Exists in master

Creado page home.

src/app/home/home.component.html
... ... @@ -0,0 +1,38 @@
  1 +<!-- HEADER -->
  2 +<div class="bg-dark py-1 py-sm-2 py-lg-5 w-100">
  3 + <p class="text-white text-center">HEADER</p>
  4 +</div>
  5 +
  6 +<div class="h-100 w-100 position-relative">
  7 + <div class="background-image blur"></div>
  8 + <div class="row position-absolute w-100 h-100">
  9 + <div class="col-5 my-auto">
  10 + <!-- CAROUSEL -->
  11 + <div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel">
  12 + <div class="carousel-inner">
  13 + <div class="carousel-item active">
  14 + <img class="m-auto img-fluid d-block w-75"
  15 + src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQWhHnLeoxWeJeiBKvVg-9zDzppOVX_AY5tXpRuS7If0mzb_01b"
  16 + alt="">
  17 + </div>
  18 + <div class="carousel-item">
  19 + <img class="m-auto img-fluid d-block w-75"
  20 + src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQWhHnLeoxWeJeiBKvVg-9zDzppOVX_AY5tXpRuS7If0mzb_01b"
  21 + alt="">
  22 + </div>
  23 + </div>
  24 + </div>
  25 + </div>
  26 + <div class="col-7 my-auto">
  27 + <div class="text-center text-white">
  28 + <h1 class="display-2 font-weight-bold">Ā”BIENVENIDO!</h1>
  29 + <h1 class="display-3 font-weight-bold">Toque la pantalla<br>para comenzar.</h1>
  30 + </div>
  31 + </div>
  32 + </div>
  33 +</div>
  34 +
  35 +<!-- FOOTER -->
  36 +<div class="bg-dark py-1 py-sm-2 py-lg-5 w-100">
  37 + <p class="text-white text-center">FOOTER</p>
  38 +</div>
0 39 \ No newline at end of file
src/app/home/home.component.scss
... ... @@ -0,0 +1,6 @@
  1 +.background-image {
  2 + background-image: url(http://www.nortecorrientes.com/content/bucket/7/304027w980.jpg);
  3 + position: absolute;
  4 + width: 100%;
  5 + height: 100%;
  6 +}
src/app/home/home.component.spec.ts
... ... @@ -0,0 +1,25 @@
  1 +import { async, ComponentFixture, TestBed } from '@angular/core/testing';
  2 +
  3 +import { HomeComponent } from './home.component';
  4 +
  5 +describe('HomeComponent', () => {
  6 + let component: HomeComponent;
  7 + let fixture: ComponentFixture<HomeComponent>;
  8 +
  9 + beforeEach(async(() => {
  10 + TestBed.configureTestingModule({
  11 + declarations: [HomeComponent]
  12 + })
  13 + .compileComponents();
  14 + }));
  15 +
  16 + beforeEach(() => {
  17 + fixture = TestBed.createComponent(HomeComponent);
  18 + component = fixture.componentInstance;
  19 + fixture.detectChanges();
  20 + });
  21 +
  22 + it('should create', () => {
  23 + expect(component).toBeTruthy();
  24 + });
  25 +});
src/app/home/home.component.ts
... ... @@ -0,0 +1,15 @@
  1 +import { Component, OnInit } from '@angular/core';
  2 +
  3 +@Component({
  4 + selector: 'app-home',
  5 + templateUrl: './home.component.html',
  6 + styleUrls: ['./home.component.scss']
  7 +})
  8 +export class HomeComponent implements OnInit {
  9 +
  10 + constructor() { }
  11 +
  12 + ngOnInit() {
  13 + }
  14 +
  15 +}