Skip to content

Commit 9f4d086

Browse files
committed
centrar cabra y padding fix
1 parent 6e5585f commit 9f4d086

File tree

2 files changed

+83
-13
lines changed

2 files changed

+83
-13
lines changed

css/style.css

Lines changed: 79 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,80 @@ body {
294294
color: var(--bs-secondary) !important;
295295
font-size: smaller !important;
296296
}
297+
/*** Text End ***/
298+
299+
/*** Header Start ***/
300+
/* Header padding adjustments */
301+
.portfolio-header,
302+
.about-header,
303+
.testimonial-header {
304+
padding: 2rem !important; /* Base padding for all screen sizes */
305+
}
306+
307+
/* Adjust header text sizing and spacing */
308+
.display-6 {
309+
font-size: 1.75rem !important; /* Slightly smaller base size */
310+
margin-bottom: 1rem !important;
311+
line-height: 1.3 !important;
312+
}
313+
314+
/* Responsive adjustments */
315+
@media (min-width: 576px) {
316+
.portfolio-header,
317+
.about-header,
318+
.testimonial-header {
319+
padding: 2.5rem !important;
320+
}
321+
322+
.display-6 {
323+
font-size: 2rem !important;
324+
}
325+
}
326+
327+
@media (min-width: 768px) {
328+
.portfolio-header,
329+
.about-header,
330+
.testimonial-header {
331+
padding: 3rem !important;
332+
}
333+
334+
.display-6 {
335+
font-size: 2.25rem !important;
336+
}
337+
}
338+
339+
@media (min-width: 992px) {
340+
.portfolio-header,
341+
.about-header,
342+
.testimonial-header {
343+
padding: 4% !important;
344+
}
345+
346+
.display-6 {
347+
font-size: 2.5rem !important;
348+
}
349+
}
350+
351+
/* Additional spacing for header content */
352+
.text-start.d-flex.flex-column.justify-content-center {
353+
padding: 0.5rem;
354+
}
355+
356+
/* Ensure sub-title has proper spacing */
357+
.sub-title {
358+
margin-top: 0.5rem;
359+
line-height: 1.4;
360+
}
361+
362+
/* Add proper spacing when stacked on mobile */
363+
@media (max-width: 991px) {
364+
.portfolio-header,
365+
.about-header,
366+
.testimonial-header {
367+
margin-bottom: 1rem;
368+
}
369+
}
370+
/*** Header End ***/
297371

298372
/*** Navbar Start ***/
299373
.nav-section {
@@ -362,21 +436,17 @@ body {
362436

363437
/*** About Start ***/
364438
.about-content .about-img {
365-
display: block;
366-
margin: 0 auto;
367-
max-width: 100%;
368-
height: auto;
439+
display: flex;
440+
justify-content: center;
441+
align-items: center;
442+
width: 100%;
369443
padding-top: 10%;
370-
/* margin-left: calc(15%); */
371444
}
372445

373446
.about-img img {
374-
display: block;
375-
margin: 0 auto;
376447
max-width: 100%;
377448
height: auto;
378-
margin: 10%;
379-
/* margin-left: calc(50%); */
449+
margin: 0 auto;
380450
}
381451

382452
/*** About End ***/

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ <h1 class="display-6 text-white">Hola, somos</h1>
7171
<h1 class="text-big text-header">Against Software</h1>
7272
</div>
7373
</div>
74-
<div class="row xl-5 centered-section-padding">
75-
<div class="col-xl-8">
74+
<div class="row justify-content-center centered-section-padding">
75+
<div class="col-12 col-xl-8">
7676
<div class="about-img p-4 wow fadeInUp" data-wow-delay="0.05s">
77-
<img src="img/la cabra.png" class="img-fluid w-100" alt="Image">
77+
<img src="img/la cabra.png" class="img-fluid mx-auto d-block" alt="Image">
7878
</div>
7979
</div>
8080
</div>
@@ -118,7 +118,7 @@ <h4 class="text-big">Nuestro manifiesto</h4>
118118
<div class="container">
119119
<div class="row g-0">
120120
<div class="col-lg-3">
121-
<div class="portfolio-header h-100 bg-dark pt-6 pe-6 pb-6">
121+
<div class="portfolio-header h-100 bg-dark">
122122
<div class="text-start d-flex flex-column justify-content-center wow fadeInUp" data-wow-delay="0.05s">
123123
<h1 class="display-6 text-white">Proyectos pasados de nuestros miembros</h1>
124124
<em class="text-white sub-title">Our team members past works</em>

0 commit comments

Comments
 (0)