forked from Hafid-Davila/landing-page-demo-wdfc20-ucamp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
151 lines (131 loc) · 3.2 KB
/
Copy pathstyles.css
File metadata and controls
151 lines (131 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
body {
font-family: 'Arial', sans-serif;
background-color: #eee;
color: #333;
margin: 0;
padding: 0;
display: flex; /* Flexbox: Distribuye los hijos del body (header, main, footer) en una dirección de columna. */
flex-direction: column;
min-height: 100vh;
}
header, footer {
background-color: #4CAF50;
padding: 10px 0;
text-align: center;
color: white;
flex-shrink: 0;
}
nav ul {
padding: 0;
margin: 0;
list-style-type: none;
display: flex; /* Flexbox: Distribuye los items de la lista horizontalmente. */
justify-content: center;
gap: 20px;
}
nav li {
display: inline;
}
nav a {
color: white;
text-decoration: none;
padding: 5px 10px;
border-radius: 5px;
transition: background-color 0.3s ease;
}
nav a:hover {
background-color: rgba(0, 0, 0, 0.2);
}
footer {
padding: 20px;
}
footer nav ul {
display: flex; /* Flexbox: Permite manejar la dirección y alineación de los items de la lista. */
flex-direction: column; /* Los elementos se apilan verticalmente. */
align-items: flex-end;
gap: 5px;
}
main {
flex: 1;
}
.jumbotron {
background-color: #F5A31A;
display: flex; /* Flexbox: Distribuye imagen y texto uno al lado del otro en una fila. */
align-items: center;
gap: 20px;
}
.jumbotron img {
width: 50%;
padding: 10px;
}
.jumbotron-text h2 {
color: #EDF4F2;
text-shadow: 1px 1px 2px black;
margin: 0;
}
.jumbotron-text p {
color: #EDF4F2;
text-shadow: 1px 1px 2px black;
margin: 10px 0 0 0;
font-size: 0.9em;
}
.registration {
background-color: #f7f7f7;
padding: 20px 0;
text-align: center;
display: flex; /* Flexbox: Centra el contenido del formulario en el centro del contenedor. */
flex-direction: column; /* Los elementos se apilan verticalmente. */
align-items: center;
justify-content: center;
}
.registration form {
max-width: 300px;
width: 100%;
display: flex; /* Flexbox: Organiza los elementos del formulario en una pila vertical. */
flex-direction: column;
gap: 10px;
}
.catalogue {
padding: 20px 0;
display: grid; /* CSS Grid: Organiza los productos en una cuadrícula responsive. */
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Se define un número flexible de columnas según el ancho disponible. */
gap: 20px;
justify-items: center;
align-items: center;
}
.product {
display: flex; /* Flexbox: Alinea el contenido del producto en una pila vertical centrada. */
flex-direction: column;
align-items: center;
text-align: center;
}
.product a {
text-decoration: none;
color: inherit;
display: block;
}
.product img {
width: 80%;
max-width: 250px;
margin-bottom: 10px;
}
.product h3 {
text-align: center;
}
@media only screen and (max-width: 600px) {
.jumbotron {
flex-direction: column; /* Flexbox: Cambia la dirección para apilar la imagen y el texto verticalmente. */
}
.jumbotron img {
width: 90%;
max-width: 90%;
margin: 0 auto;
display: block;
}
.jumbotron-text {
text-align: center;
}
.catalogue {
grid-template-columns: 1fr;
}
}