Skip to content

Commit a2a3f17

Browse files
committed
chore: balance align h+v
1 parent 0412b11 commit a2a3f17

2 files changed

Lines changed: 101 additions & 9 deletions

File tree

index.html

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,25 @@ <h1>Are zombies supposed to be full of life?</h1>
8181
to basic education, and healthcare.</p>
8282
<!-- CTA -->
8383
<div class="ui-component-cta ui-layout-flex">
84-
<a href="mailto:wechuli07@gmail.com?subject=Website%20Inquiry%20from%20wechulisimiyu.github.io&body=Hi%20Wechuli%2C%0A%0AI%20saw%20your%20site%20and%20would%20like%20to%20talk%20about%20a%20project.%20Please%20get%20back%20to%20me%20when%20you%27re%20available.%0A%0AThanks%2C%0A"
85-
role="link" aria-label="Email Wechuli" title="Email Wechuli"
84+
<a href="#contact"
85+
role="link" aria-label="Contact Wechuli" title="Contact Wechuli"
8686
class="ui-component-button ui-component-button-normal ui-component-button-primary">Let's talk more</a>
8787
<p class="ui-text-note"><small>Send me an email</small></p>
8888
</div>
89+
<!-- Desktop-only: let visitors pick which compose flow to open (prefilled) -->
90+
<div class="ui-email-options ui-hide-mobile" aria-hidden="false">
91+
<p style="margin:0 .5rem 0 0; align-self:center;"><small>Or open compose in:</small></p>
92+
<a href="mailto:wechuli07@gmail.com?subject=Website%20Inquiry%20from%20wechulisimiyu.github.io&body=Hi%20Wechuli%2C%0A%0AI%20saw%20your%20site%20and%20would%20like%20to%20talk%20about%20a%20project.%20Please%20get%20back%20to%20me%20when%20you%27re%20available.%0A%0AThanks%2C%0A"
93+
class="ui-component-button ui-component-button-normal ui-component-button-secondary external-link" title="Open in default mail app">Mail client</a>
94+
<a href="https://mail.google.com/mail/?view=cm&fs=1&to=wechuli07@gmail.com&su=Website%20Inquiry%20from%20wechulisimiyu.github.io&body=Hi%20Wechuli%2C%0A%0AI%20saw%20your%20site%20and%20would%20like%20to%20talk%20about%20a%20project.%20Please%20get%20back%20to%20me%20when%20you%27re%20available.%0A%0AThanks%2C%0A"
95+
class="ui-component-button ui-component-button-normal ui-component-button-secondary external-link" target="_blank" rel="noopener noreferrer" title="Open in Gmail">Gmail</a>
96+
<a href="https://outlook.live.com/owa/?path=/mail/action/compose&to=wechuli07@gmail.com&subject=Website%20Inquiry%20from%20wechulisimiyu.github.io&body=Hi%20Wechuli%2C%0A%0AI%20saw%20your%20site%20and%20would%20like%20to%20talk%20about%20a%20project.%20Please%20get%20back%20to%20me%20when%20you%27re%20available.%0A%0AThanks%2C%0A"
97+
class="ui-component-button ui-component-button-normal ui-component-button-secondary external-link" target="_blank" rel="noopener noreferrer" title="Open in Outlook">Outlook</a>
98+
</div>
8999
</div>
90100
<div>
91101
<h1>My tools of trade</h1>
92-
<p class="ui-text-intro">I build software for.</p>
102+
<p class="ui-text-intro">I build/customize software for.</p>
93103
<ul class="ui-component-list ui-component-list-feature ui-layout-grid">
94104
<li class="ui-component-list--item ui-component-list--item-check">Branding: Websites</li>
95105
<li class="ui-component-list--item ui-component-list--item-check">Inventory</li>
@@ -98,6 +108,12 @@ <h1>My tools of trade</h1>
98108
<li class="ui-component-list--item ui-component-list--item-check">People management</li>
99109
<li class="ui-component-list--item ui-component-list--item-check"><b>We can also explore AI</b></li>
100110
</ul>
111+
<!-- Mobile-only quick CTA: Headstart (free consultation request) -->
112+
<div class="ui-component-cta ui-layout-flex ui-headstart-mobile" aria-hidden="false">
113+
<a href="mailto:wechuli07@gmail.com?subject=Headstart%20Request&body=Hi%20Wechuli%2C%0A%0AI%20have%20a%20few%20ideas%20and%20would%20like%20a%20free%20consultation%20to%20discuss.%20Please%20let%20me%20know%20your%20availability.%0A%0AThanks%2C%0A%5BYour%20Name%5D"
114+
role="link" aria-label="Request a Headstart consultation" title="Headstart — Free consultation"
115+
class="ui-component-button ui-component-button-normal ui-component-button-secondary external-link">Headstart — Free consultation</a>
116+
</div>
101117
</div>
102118
</div>
103119
</div>
@@ -126,7 +142,7 @@ <h3>Juvenotes</h3>
126142
<h1>Volunteering</h1>
127143
<div class="ui-section-project__layout ui-layout-grid ui-layout-grid-2">
128144
<div>
129-
<img src="public/RCNN.webp" alt="Rotary Nairobi North logo" class="ui-img-responsive ui-logo-small">
145+
<img src="public/RCNN.webp" alt="Rotary Nairobi North logo" class="ui-img-responsive ui-logo-small ui-logo-rcnn">
130146
<h4 class="ui-component-list--item ui-section-project--question"><a href="https://www.instagram.com/rotaryclubofnairobinorth/" target="_blank" rel="noopener noreferrer" class="external-link">Rotary Nairobi North</a></h4>
131147
<p class="ui-section-project--answer">The Rotary Club Nairobi North is a community-focused Rotary chapter working on local service projects, youth programs, and health initiatives. I serve as the PR Director, overseeing public relations and communications to raise awareness and mobilize support.</p>
132148
</div>

style.css

Lines changed: 81 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ a.external-link::after {
270270
row-gap: var(--ui-gap-cta);
271271
}
272272

273+
/* Keep CTAs left-aligned so buttons sit flush with the container edge on mobile and desktop */
274+
.ui-component-cta { align-items: flex-start; }
275+
273276
/*--------------------------------------------------------------
274277
|
275278
| 6.2 BUTTON
@@ -472,8 +475,32 @@ div label[for=ui-component-toggle__yearly] {
472475

473476
/* Make feature paragraph text align/indent like project answers on mobile */
474477
.ui-section-content--feature p { padding-left: 0; }
478+
479+
/* Show a mobile-only Headstart CTA after the tools list */
480+
.ui-headstart-mobile { display: flex; margin-top: .75rem; }
475481
}
476482

483+
/* Hide the Headstart CTA on wider screens */
484+
.ui-headstart-mobile { display: none; }
485+
486+
/* Desktop-only helper: hide on small screens */
487+
.ui-hide-mobile { display: block; }
488+
489+
.ui-email-options {
490+
display: flex;
491+
gap: .5rem;
492+
align-items: center;
493+
margin-top: .75rem;
494+
}
495+
496+
@media (max-width: 600px) {
497+
.ui-hide-mobile { display: none !important; }
498+
}
499+
500+
/* Temporary: hide alternative email chooser and mobile Headstart until ready */
501+
.ui-email-options { display: none !important; }
502+
.ui-headstart-mobile { display: none !important; }
503+
477504
@media (min-width: 601px) and (max-width: 1024px) {
478505
.ui-section-hero__layout { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
479506
.ui-section-project__layout { grid-template-columns: 1fr 1fr; }
@@ -549,6 +576,17 @@ div label[for=ui-component-toggle__yearly] {
549576
text-align: left;
550577
}
551578

579+
/* Ensure hero columns use a predictable vertical rhythm so the intro
580+
paragraphs in both columns sit at a similar vertical level. */
581+
.ui-section-hero__layout > div {
582+
display: flex;
583+
flex-direction: column;
584+
justify-content: flex-start;
585+
}
586+
587+
.ui-section-hero__layout > div h1 { margin-bottom: .5rem; }
588+
.ui-section-hero__layout > div p.ui-text-intro { margin-top: 0; }
589+
552590
/*--------------------------------------------------------------
553591
|
554592
| 7.3 CUSTOMER
@@ -722,16 +760,26 @@ div label[for=ui-component-toggle__yearly] {
722760
grid-template-columns: auto 1fr; /* logo column + content column */
723761
gap: 1rem;
724762
align-items: start; /* align both columns at the top */
763+
padding-left: 0; /* align with the site container edge for visual balance */
725764
}
726765

766+
/* Use a scalable clamp-based height so logos reach comparable visual heights
767+
across a range of desktop widths without hard-coding a single px value. */
727768
.ui-section-project__layout > div img {
728-
width: auto;
729-
height: 72px; /* fixed visual logo height on desktop for consistent alignment */
730-
object-fit: cover; /* fill the height and avoid top/bottom whitespace */
769+
width: auto;
770+
height: clamp(72px, 6vw, 96px); /* scales from 72px up to 96px */
771+
object-fit: contain; /* avoid cropping logos; keep aspect ratio */
731772
margin: 0;
732773
align-self: start;
733774
}
734775

776+
/* Target Rotary (RCNN) logo specifically if it needs extra visual height
777+
to match other logos that may have less padding in the artwork. */
778+
.ui-section-project__layout > div img.ui-logo-rcnn {
779+
height: clamp(88px, 7vw, 110px);
780+
object-fit: contain;
781+
}
782+
735783
.ui-section-project__layout > div h4,
736784
.ui-section-project__layout > div p { margin: 0; }
737785

@@ -743,7 +791,7 @@ div label[for=ui-component-toggle__yearly] {
743791
titles appear at the same vertical level regardless of image resolution */
744792
.ui-section-content--feature img {
745793
width: auto;
746-
height: clamp(48px, 6vw, 96px);
794+
height: clamp(72px, 6vw, 96px);
747795
object-fit: contain;
748796
margin: 0;
749797
align-self: start;
@@ -820,6 +868,34 @@ div label[for=ui-component-toggle__yearly] {
820868
margin-top: 1.5rem; /* small breathing room so images don't crowd the intro text */
821869
}
822870

871+
/* Make project entries match feature card layout: image, title, and description
872+
each on their own line (stacked). Keeps visuals consistent across sizes. */
873+
.ui-section-project__layout > div {
874+
display: block !important;
875+
text-align: left;
876+
padding-left: 0; /* let the container padding control horizontal alignment */
877+
}
878+
879+
.ui-section-project__layout > div img {
880+
display: block;
881+
margin: 0 0 0.6rem 0;
882+
max-width: 140px;
883+
height: auto;
884+
}
885+
886+
.ui-section-project__layout > div h4,
887+
.ui-section-project__layout > div h4 a {
888+
display: block;
889+
margin: 0 0 .35rem;
890+
}
891+
892+
.ui-section-project__layout > div p {
893+
display: block;
894+
margin: 0;
895+
max-width: 44rem;
896+
text-align: left;
897+
}
898+
823899
/*--------------------------------------------------------------
824900
8.0 MEDIA
825901
--------------------------------------------------------------*/
@@ -1073,7 +1149,7 @@ div label[for=ui-component-toggle__yearly] {
10731149
------------------------------------------------------------*/
10741150

10751151
.ui-section-hero .ui-component-cta {
1076-
align-items: center;
1152+
align-items: flex-start;
10771153
column-gap: var(--ui-gap-cta);
10781154
flex-direction: row;
10791155
justify-content: start;

0 commit comments

Comments
 (0)