Commit 9a5e1c64339d97348a8f07e6aa5fe0b81406a524
1 parent
2bb2c4fb9b
Exists in
master
Arreglo de pantalla home.
Showing
4 changed files
with
49 additions
and
38 deletions
Show diff stats
src/app/components/home/home.component.html
1 | <div class="container-fluid"> | 1 | <div class="container-fluid background-image"> |
2 | <div class="row"> | 2 | <div class="row"> |
3 | <div class="col p-0"> | 3 | <div class="col p-0"> |
4 | <div class="vh-100 d-flex align-items-start flex-column disable-user-select"> | 4 | <div class="vh-100 d-flex align-content-between flex-wrap disable-user-select"> |
5 | 5 | ||
6 | <!-- HEADER --> | 6 | <!-- HEADER --> |
7 | <div class="bg-dark py-1 py-sm-2 py-lg-5 w-100"> | 7 | <div class="row m-0 w-100 bg-primary-gradient-horizontal"> |
8 | <p class="text-white text-center">HEADER</p> | 8 | <div class="col-6 bg-white p-5 rounded-bottom-right"> |
9 | <img class="w-25 mx-auto d-block" src="{{apiUrl}}/imagenes/logoaxion.png"> | ||
10 | </div> | ||
9 | </div> | 11 | </div> |
10 | 12 | ||
11 | <div class="h-100 w-100 position-relative"> | 13 | <!-- INFO DE BIENVENIDA --> |
12 | <div class="background-image blur"></div> | 14 | <div class="row w-100"> |
13 | <div class="row position-absolute w-100 h-100"> | 15 | <div class="col-4 offset-2"> |
14 | <div class="col-5 my-auto"> | 16 | <img src="{{apiUrl}}/imagenes/accesoPLAYA.png" class="w-100"> |
15 | <!-- CAROUSEL --> | 17 | </div> |
16 | <div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel"> | 18 | <div class="col-6 text-center text-white my-auto"> |
17 | <div class="carousel-inner"> | 19 | <p class="display-2 font-weight-bold mb-5">¡BIENVENIDO!</p> |
18 | <div class="carousel-item active"> | 20 | <p class="display-3 m-0">Toque la pantalla<br>para comenzar</p> |
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 class="carousel-item"> | ||
24 | <img class="m-auto img-fluid d-block w-75" | ||
25 | src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQWhHnLeoxWeJeiBKvVg-9zDzppOVX_AY5tXpRuS7If0mzb_01b" | ||
26 | alt=""> | ||
27 | </div> | ||
28 | </div> | ||
29 | </div> | ||
30 | </div> | ||
31 | <div class="col-7 my-auto"> | ||
32 | <div class="text-center text-white"> | ||
33 | <h1 class="display-2 font-weight-bold">¡BIENVENIDO!</h1> | ||
34 | <h1 class="display-3 font-weight-bold">Toque la pantalla<br>para comenzar.</h1> | ||
35 | </div> | ||
36 | </div> | ||
37 | </div> | 21 | </div> |
38 | </div> | 22 | </div> |
39 | 23 | ||
40 | <!-- FOOTER --> | 24 | <!-- FOOTER --> |
41 | <div class="bg-dark py-1 py-sm-2 py-lg-5 w-100"> | 25 | <div class="row m-0 w-100 bg-gray"> |
42 | <p class="text-white text-center">FOOTER</p> | 26 | <div class="col-6 bg-white offset-6 p-5 rounded-top-left"> |
27 | <img class="w-25 mx-auto d-block" src="{{apiUrl}}/imagenes/logodebo.png"> | ||
28 | </div> | ||
43 | </div> | 29 | </div> |
src/app/components/home/home.component.scss
1 | .background-image { | 1 | .background-image { |
2 | background-image: url(http://www.nortecorrientes.com/content/bucket/7/304027w980.jpg); | 2 | background-image: url(http://10.231.45.117:4705/autoservicio/imagenes/homeBackground.jpg); |
3 | background-repeat: no-repeat; | 3 | background-repeat: no-repeat; |
4 | background-size: cover; | 4 | background-size: cover; |
5 | position: absolute; | 5 | } |
6 | width: 100%; | 6 | |
7 | height: 100%; | 7 | .w-20 { |
8 | width: 20% !important; | ||
9 | } | ||
10 | |||
11 | .rounded-bottom-right { | ||
12 | border-bottom-right-radius: 10rem; | ||
13 | &:before { | ||
14 | border-radius: 0 40px 40px 0; | ||
15 | background-color: #fff; | ||
16 | } | ||
17 | } | ||
18 | |||
19 | .rounded-top-left { | ||
20 | border-top-left-radius: 10rem; | ||
21 | } | ||
22 | |||
23 | .bg-gray { | ||
24 | background-color: #cccccc; | ||
8 | } | 25 | } |
9 | 26 |
src/app/components/home/home.component.ts
1 | import { Component, OnInit, HostListener } from '@angular/core'; | 1 | import { Component, OnInit, HostListener } from '@angular/core'; |
2 | import { Router } from '@angular/router'; | 2 | import { Router } from '@angular/router'; |
3 | import { appSettings } from 'src/etc/AppSettings'; | ||
3 | 4 | ||
4 | @Component({ | 5 | @Component({ |
5 | selector: 'app-home', | 6 | selector: 'app-home', |
6 | templateUrl: './home.component.html', | 7 | templateUrl: './home.component.html', |
7 | styleUrls: ['./home.component.scss'] | 8 | styleUrls: ['./home.component.scss'] |
8 | }) | 9 | }) |
9 | export class HomeComponent implements OnInit { | 10 | export class HomeComponent implements OnInit { |
10 | 11 | ||
12 | private apiUrl: string = appSettings.apiUrl; | ||
13 | |||
11 | constructor(private router: Router) { } | 14 | constructor(private router: Router) { } |
12 | 15 | ||
13 | ngOnInit() { | 16 | ngOnInit() { |
14 | } | 17 | } |
15 | 18 | ||
16 | @HostListener('document:click', ['$event']) | 19 | @HostListener('document:click', ['$event']) |
17 | documentClick(event: MouseEvent) { | 20 | documentClick(event: MouseEvent) { |
18 | this.router.navigate(['/inicio']); | 21 | this.router.navigate(['/inicio']); |
19 | } | 22 | } |
20 | 23 | ||
21 | } | 24 | } |
22 | 25 |
src/styles.scss
1 | @import "./assets/scss/animation.scss"; | 1 | @import "./assets/scss/animation.scss"; |
2 | @import "./assets/scss/bootstrap-override.scss"; | 2 | @import "./assets/scss/bootstrap-override.scss"; |
3 | @import "../node_modules/bootstrap/scss/_variables.scss"; | 3 | @import "../node_modules/bootstrap/scss/_variables.scss"; |
4 | 4 | ||
5 | html, | 5 | html, |
6 | body { | 6 | body { |
7 | background-color: #f0f0f0; | 7 | background-color: #f0f0f0; |
8 | font-family: bahnschrift; | 8 | font-family: bahnschrift; |
9 | } | 9 | } |
10 | 10 | ||
11 | .blur { | 11 | .blur { |
12 | filter: blur(10px); | 12 | filter: blur(10px); |
13 | -webkit-filter: blur(10px); | 13 | -webkit-filter: blur(10px); |
14 | } | 14 | } |
15 | 15 | ||
16 | .disable-user-select { | 16 | .disable-user-select { |
17 | -webkit-user-select: none; | 17 | -webkit-user-select: none; |
18 | -moz-user-select: none; | 18 | -moz-user-select: none; |
19 | -ms-user-select: none; | 19 | -ms-user-select: none; |
20 | user-select: none; | 20 | user-select: none; |
21 | } | 21 | } |
22 | 22 | ||
23 | .blue-gradient { | 23 | .blue-gradient { |
24 | background: linear-gradient(0deg, #ffffff00, $white); | 24 | background: linear-gradient(0deg, #ffffff00, $white); |
25 | } | 25 | } |
26 | 26 | ||
27 | .rounded { | 27 | .rounded { |
28 | border-radius: 1.5rem !important; | 28 | border-radius: 1.5rem !important; |
29 | } | 29 | } |
30 | 30 | ||
31 | .rounded-top-sm { | 31 | .rounded-top-sm { |
32 | border-top-left-radius: 0.75rem !important; | 32 | border-top-left-radius: 0.75rem !important; |
33 | border-top-right-radius: 0.75rem !important; | 33 | border-top-right-radius: 0.75rem !important; |
34 | } | 34 | } |
35 | 35 | ||
36 | .rounded-sm { | 36 | .rounded-sm { |
37 | border-radius: 0.75rem !important; | 37 | border-radius: 0.75rem !important; |
38 | } | 38 | } |
39 | 39 | ||
40 | .card-effect { | 40 | .card-effect { |
41 | &:active { | 41 | &:active { |
42 | background-color: #c9c9c9b3 !important; | 42 | background-color: #c9c9c9b3 !important; |
43 | transition: background-color 0.5s; | 43 | transition: background-color 0.5s; |
44 | } | 44 | } |
45 | &:focus { | 45 | &:focus { |
46 | background-color: #c9c9c9b3 !important; | 46 | background-color: #c9c9c9b3 !important; |
47 | transition: background-color 0.5s; | 47 | transition: background-color 0.5s; |
48 | } | 48 | } |
49 | } | 49 | } |
50 | 50 | ||
51 | .overflow-scroll { | 51 | .overflow-scroll { |
52 | overflow-y: auto !important; | 52 | overflow-y: auto !important; |
53 | overflow-x: hidden !important; | 53 | overflow-x: hidden !important; |
54 | &::-webkit-scrollbar { | 54 | &::-webkit-scrollbar { |
55 | width: 0.5em; | 55 | width: 0.5em; |
56 | } | 56 | } |
57 | &::-webkit-scrollbar-track { | 57 | &::-webkit-scrollbar-track { |
58 | border-radius: 10px; | 58 | border-radius: 10px; |
59 | box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4); | 59 | box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4); |
60 | -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4); | 60 | -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4); |
61 | background-color: $white; | 61 | background-color: $white; |
62 | } | 62 | } |
63 | &::-webkit-scrollbar-thumb { | 63 | &::-webkit-scrollbar-thumb { |
64 | box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7); | 64 | box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7); |
65 | -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7); | 65 | -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7); |
66 | outline: 1px solid slategrey; | 66 | outline: 1px solid slategrey; |
67 | border-radius: 10px; | 67 | border-radius: 10px; |
68 | height: 12px; | 68 | height: 12px; |
69 | &:active { | 69 | &:active { |
70 | box-shadow: inset 0 0 8px rgba(255, 0, 0, 0.9); | 70 | box-shadow: inset 0 0 8px rgba(255, 0, 0, 0.9); |
71 | -webkit-box-shadow: inset 0 0 8px rgba(255, 0, 0, 0.9); | 71 | -webkit-box-shadow: inset 0 0 8px rgba(255, 0, 0, 0.9); |
72 | } | 72 | } |
73 | } | 73 | } |
74 | &::-webkit-scrollbar-corner { | 74 | &::-webkit-scrollbar-corner { |
75 | border-radius: 10px; | 75 | border-radius: 10px; |
76 | } | 76 | } |
77 | } | 77 | } |
78 | 78 | ||
79 | .bg-gray { | 79 | .bg-gray { |
80 | background-color: #e6e6e6; | 80 | background-color: #e6e6e6; |
81 | } | 81 | } |
82 | 82 | ||
83 | .bg-primary-gradient { | 83 | .bg-primary-gradient { |
84 | background: linear-gradient(135deg, rgba(40, 112, 175, 1) 0%, rgba(0, 32, 66, 1) 100%); | 84 | background: linear-gradient(135deg, rgba(40, 112, 175, 1) 0%, rgba(0, 32, 66, 1) 100%); |
85 | } | 85 | } |
86 | 86 | ||
87 | .bg-primary-gradient-horizontal { | ||
88 | background: linear-gradient(90deg, rgba(40, 112, 175, 1) 0%, rgba(0, 32, 66, 1) 100%); | ||
89 | } | ||
90 | |||
87 | .icon-dim { | 91 | .icon-dim { |
88 | height: 40px !important; | 92 | height: 40px !important; |
89 | width: auto !important; | 93 | width: auto !important; |
90 | background-color: white !important; | 94 | background-color: white !important; |
91 | } | 95 | } |
92 | 96 | ||
93 | .text-purple { | 97 | .text-purple { |
94 | color: $purple; | 98 | color: $purple; |
95 | } | 99 | } |
96 | 100 | ||
97 | .vh-70 { | 101 | .vh-70 { |
98 | min-height: auto !important; | 102 | min-height: auto !important; |
99 | max-height: 70vh !important; | 103 | max-height: 70vh !important; |
100 | } | 104 | } |
101 | 105 | ||
102 | .vh-60 { | 106 | .vh-60 { |
103 | min-height: auto !important; | 107 | min-height: auto !important; |
104 | max-height: 60vh !important; | 108 | max-height: 60vh !important; |
105 | } | 109 | } |
106 | 110 | ||
107 | .spinner-lg { | 111 | .spinner-lg { |
108 | width: 3rem !important; | 112 | width: 3rem !important; |
109 | height: 3rem !important; | 113 | height: 3rem !important; |
110 | } | 114 | } |
111 | 115 | ||
112 | .sidebar { | 116 | .sidebar { |
113 | right: 0; | 117 | right: 0; |
114 | } | 118 | } |
115 | 119 |