Skip to content

Commit c3c4741

Browse files
committed
[FIX] responsive & new contents
1 parent fcd8537 commit c3c4741

File tree

3 files changed

+94
-124
lines changed

3 files changed

+94
-124
lines changed

charts/adhoc-defaultbackend/v0.1.7/Chart.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: El "backend predeterminado" es un servicio que maneja todas las rut
66

77
type: application
88

9-
version: 0.1.6
9+
version: 0.1.7
1010

1111
appVersion: "stable-alpine"
1212

@@ -18,5 +18,7 @@ maintainers:
1818
email: dib@adhoc.com.ar
1919
- name: jjscarafia
2020
email: jjs@adhoc.com.ar
21+
- name: azacchino
22+
email: az@adhoc.com.ar
2123

2224
icon: "https://github.com/adhoc-dev/helm-charts/raw/master/img/nginx.png"

charts/adhoc-defaultbackend/v0.1.7/index.html

+5-5
Large diffs are not rendered by default.

charts/adhoc-defaultbackend/v0.1.7/style.css

+86-118
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,19 @@
1010
/*--------------------------------------------------------------
1111
# General
1212
--------------------------------------------------------------*/
13+
html {
14+
height: 100%;
15+
}
16+
1317
body {
18+
height: 100vh; /* Cambiado a vh en lugar de % */
1419
color: #1a1919;
1520
background-color: #b5a9b2;
21+
overflow-x: hidden;
22+
display: flex;
23+
flex-direction: column;
24+
margin: 0;
25+
padding: 0;
1626
}
1727

1828
.bloque_texto {
@@ -33,18 +43,36 @@ a:hover {
3343
text-decoration: none;
3444
}
3545

36-
3746
/*--------------------------------------------------------------
3847
# Hero Section
3948
--------------------------------------------------------------*/
4049
#hero {
4150
width: 100%;
42-
height: 70vh;
43-
margin-top: 30px;
51+
flex: 1;
52+
display: flex;
53+
align-items: flex-start;
54+
justify-content: center;
55+
padding: 20px 0;
56+
}
57+
58+
@media (min-width: 1024px) {
59+
#hero {
60+
background-attachment: fixed;
61+
min-height: 0; /* Eliminamos min-height en pantallas grandes */
62+
height: auto; /* Dejamos que se ajuste al contenido */
63+
}
64+
65+
body {
66+
overflow-y: hidden; /* Prevenimos scroll en pantallas grandes */
67+
}
68+
}
69+
70+
#hero h1, #hero h2 {
71+
margin: 0;
72+
padding: 0;
4473
}
4574

4675
#hero h1 {
47-
margin: 0 0 10px 0;
4876
font-size: 48px;
4977
font-weight: 700;
5078
line-height: 56px;
@@ -61,15 +89,9 @@ a:hover {
6189
animation: up-down 2s ease-in-out infinite alternate-reverse both;
6290
}
6391

64-
@media (min-width: 1024px) {
65-
#hero {
66-
background-attachment: fixed;
67-
}
68-
}
69-
7092
@media (max-width: 991px) {
7193
#hero {
72-
height: 100vh;
94+
min-height: auto;
7395
}
7496

7597
#hero .animated {
@@ -82,81 +104,58 @@ a:hover {
82104
}
83105

84106
#hero .hero-img img {
85-
width: 120%;
86-
}
87-
}
88-
89-
@media (max-width: 768px) {
90-
#hero {
91-
margin-top: 20px;
92-
}
93-
94-
#hero h1 {
95-
font-size: 28px;
96-
line-height: 36px;
97-
}
98-
99-
#hero h2 {
100-
font-size: 18px;
101-
line-height: 24px;
102-
margin-bottom: 30px;
103-
}
104-
105-
#hero .hero-img img {
106-
width: 70%;
107+
width: 100%;
107108
}
108-
}
109-
110-
@media (max-width: 575px) {
111-
#hero .hero-img img {
112-
width: 80%;
113-
}
114-
}
115-
116-
@-webkit-keyframes up-down {
117-
0% {
118-
transform: translateY(10px);
119-
}
120-
121-
100% {
122-
transform: translateY(-10px);
123-
}
124-
}
125-
126-
@keyframes up-down {
127-
0% {
128-
transform: translateY(10px);
129-
}
130-
131-
100% {
132-
transform: translateY(-10px);
109+
110+
body {
111+
overflow-y: auto; /* Permitimos scroll en pantallas pequeñas */
133112
}
134113
}
135114

136-
137115
/*--------------------------------------------------------------
138116
# Footer
139117
--------------------------------------------------------------*/
140118
footer {
141-
bottom: 0;
142-
left: 0;
143-
right: 0;
144-
width: 100vw;
145-
display: flex;
146-
flex-flow: row wrap;
147-
padding: 30px 30px 27px 30px;
119+
width: 100%;
148120
background-color: rgb(43, 40, 63);
149-
margin-bottom: 0;
121+
padding: 20px 30px;
122+
display: flex;
123+
flex-wrap: wrap;
124+
justify-content: space-between;
125+
}
150126

127+
/* Nuevo contenedor para el logo */
128+
.footer__logo {
129+
order: 3; /* Mueve el logo al final */
130+
flex: 1;
131+
display: flex;
132+
justify-content: flex-end;
133+
align-items: flex-start;
151134
}
152135

153-
footer > * {
154-
flex: 1 100%;
136+
.footer__logo img {
137+
max-width: 150px; /* Ajusta según el tamaño de tu logo */
138+
height: auto;
155139
}
156140

157141
.footer__addr {
142+
order: 1;
158143
margin-right: 1.25em;
159-
margin-bottom: 10.25em;
144+
margin-bottom: 1em;
145+
flex: 1;
146+
}
147+
148+
.footer__nav {
149+
order: 2;
150+
display: flex;
151+
flex-wrap: wrap;
152+
gap: 20px;
153+
flex: 2;
154+
}
155+
156+
.footer__nav > * {
157+
flex: 1;
158+
min-width: 200px;
160159
}
161160

162161
.nav__title {
@@ -166,72 +165,41 @@ footer > * {
166165
text-transform: uppercase;
167166
}
168167

169-
.footer__btn {
170-
display: flex;
171-
align-items: center;
172-
justify-content: center;
173-
height: 36px;
174-
max-width: max-content;
175-
background-color: rgb(33, 33, 33, 0.07);
176-
border-radius: 100px;
177-
color: #2f2f2f;
178-
line-height: 0;
179-
margin: 0.6em 0;
180-
font-size: 1rem;
181-
padding: 0 0em;
182-
}
183-
184-
footer ul {
168+
.nav__ul {
185169
list-style: none;
186-
padding-left: 0;
187-
}
188-
189-
footer li {
190-
line-height: 2em;
191-
}
192-
193-
footer a {
194-
text-decoration: none;
195-
}
196-
197-
.footer__nav {
198-
display: flex;
199-
flex-flow: row wrap;
200-
}
201-
202-
.footer__nav > * {
203-
flex: 1 50%;
204-
margin-right: 1.25em;
170+
padding: 0;
205171
}
206172

207173
.nav__ul li a {
208174
color: azure;
209175
font-weight: lighter;
176+
line-height: 2;
210177
}
211178

212179
.legal {
213-
display: inline;
214-
flex-wrap: wrap;
215180
color: rgb(213, 212, 212);
216181
text-align: right;
217-
}
218-
219-
@media screen and (min-width: 24.375em) {
220-
.legal {
221-
margin-left: auto;
222-
}
182+
margin-top: 1em;
183+
width: 100%;
184+
order: 4; /* Asegura que el texto legal esté al final */
223185
}
224186

225-
@media screen and (min-width: 40.375em) {
226-
.footer__nav > * {
227-
flex: 1;
187+
@media screen and (max-width: 768px) {
188+
footer {
189+
flex-direction: column;
190+
}
191+
192+
.footer__logo {
193+
order: 1; /* En móvil, ponemos el logo primero */
194+
justify-content: center;
195+
margin-bottom: 1em;
228196
}
229197

230198
.footer__addr {
231-
flex: 1 0px;
199+
order: 2;
232200
}
233201

234202
.footer__nav {
235-
flex: 2 0px;
203+
order: 3;
236204
}
237205
}

0 commit comments

Comments
 (0)