Block 1, 3 and 4 completed

This commit is contained in:
Flatlogic Bot 2026-03-25 17:38:50 +00:00
parent 4cff5bf5d3
commit 878a866dfe
15 changed files with 12763 additions and 436 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 857 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 857 KiB

201
block1_html.html Normal file
View File

@ -0,0 +1,201 @@
<!-- KMC NEW BLOCK1 SCOPED CSS -->
<style>
/* KMC NEW HERO BLOCK */
.kmc-new-header-wrap {
position: sticky;
top: 0;
z-index: 9999;
background-color: #1C3434;
border-bottom: 1px solid rgba(144, 241, 174, 0.45);
}
.kmc-new-header-inner {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 0;
width: min(1440px, calc(100% - 72px));
margin: 0 auto;
}
.kmc-new-logo {
color: #FFFFFF;
font-family: 'Inter', sans-serif;
font-size: clamp(24px, 2.2vw, 36px);
font-weight: 700;
text-decoration: none;
line-height: 1.08;
letter-spacing: -0.01em;
}
.kmc-new-nav-right {
display: flex;
align-items: center;
gap: clamp(16px, 2.2vw, 36px);
}
.kmc-new-nav-links {
display: flex;
align-items: center;
gap: clamp(16px, 2vw, 30px);
}
.kmc-new-nav-links a {
color: rgba(255,255,255,0.95);
font-family: 'Inter', sans-serif;
font-size: 18px;
font-weight: 600;
text-decoration: none;
line-height: 1.2;
}
.kmc-new-header-cta {
background-color: #FFFFFF;
color: #1C3434;
font-family: 'Inter', sans-serif;
font-size: 16px;
font-weight: 700;
padding: 12px 24px;
border-radius: 999px;
text-decoration: none;
display: inline-flex;
align-items: center;
line-height: 1;
}
.kmc-new-hero-section {
background-color: #1C3434;
padding: 80px 0 100px;
}
.kmc-new-hero-container {
width: min(1440px, calc(100% - 72px));
margin: 0 auto;
}
.kmc-new-hero-grid {
display: grid;
grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr);
gap: 56px;
align-items: start;
margin-bottom: 60px;
}
.kmc-new-hero-heading {
margin: 0;
font-family: 'Cardo', serif;
font-size: clamp(56px, 5.2vw, 82px);
line-height: 1.03;
font-weight: 700;
color: #FFFFFF;
letter-spacing: -0.014em;
max-width: 860px;
}
.kmc-new-hero-heading .mint-text {
color: #90F1AE;
}
.kmc-new-hero-right {
display: flex;
flex-direction: column;
gap: 28px;
max-width: 520px;
margin-top: 14px;
}
.kmc-new-hero-desc {
margin: 0;
color: rgba(255,255,255,0.82);
font-family: 'Inter', sans-serif;
font-size: clamp(18px, 1.55vw, 24px);
line-height: 1.42;
font-weight: 400;
}
.kmc-new-hero-cta {
background-color: #FFFFFF;
color: #1C3434;
font-family: 'Inter', sans-serif;
font-size: 16px;
font-weight: 700;
padding: 8px 8px 8px 24px;
border-radius: 999px;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 16px;
align-self: flex-start;
line-height: 1;
}
.kmc-new-hero-cta-icon {
width: 34px;
height: 34px;
border-radius: 50%;
background-color: #90F1AE;
color: #1C3434;
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 34px;
}
.kmc-new-hero-cta-icon svg {
display: block;
}
.kmc-new-video-wrap {
width: 100%;
border-radius: 32px;
overflow: hidden;
box-shadow: 0 24px 48px rgba(0,0,0,0.4);
background: #081919;
}
.kmc-new-video-wrap video {
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
display: block;
}
@media (max-width: 980px) {
.kmc-new-header-inner, .kmc-new-hero-container { width: calc(100% - 48px); }
.kmc-new-header-inner { flex-wrap: wrap; padding: 18px 0; }
.kmc-new-nav-right { width: 100%; justify-content: space-between; margin-top: 16px; }
.kmc-new-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 680px) {
.kmc-new-header-inner, .kmc-new-hero-container { width: calc(100% - 28px); }
.kmc-new-logo { font-size: 24px; }
.kmc-new-nav-right { flex-direction: column; align-items: flex-start; gap: 14px; }
.kmc-new-nav-links a { font-size: 16px; }
.kmc-new-header-cta, .kmc-new-hero-cta { font-size: 14px; }
.kmc-new-hero-heading { font-size: 40px; }
.kmc-new-hero-desc { font-size: 18px; }
}
</style>
<div class="kmc-new-header-wrap">
<div class="kmc-new-header-inner">
<a href="/" class="kmc-new-logo">Kevin McKeand Coaching</a>
<div class="kmc-new-nav-right">
<nav class="kmc-new-nav-links" aria-label="Primary">
<a href="/pricing/">Pricing</a>
<a href="/about/">About</a>
</nav>
<a href="https://calendly.com/ktmckeand/coaching-assessment" class="kmc-new-header-cta">Schedule an assessment</a>
</div>
</div>
</div>
<section class="kmc-new-hero-section">
<div class="kmc-new-hero-container">
<div class="kmc-new-hero-grid">
<h1 class="kmc-new-hero-heading">
<span class="mint-text">Kevin McKeand CoachingKevin McKeand Coaching</span><br>
Enabling Others To Achieve Their Potential
</h1>
<div class="kmc-new-hero-right">
<p class="kmc-new-hero-desc">Coaching for C-Level Executives who want to breakthrough and achieve the impossible in their business, navigating their organizations with clarity, reduced complexity and with more purpose.</p>
<a href="https://calendly.com/ktmckeand/coaching-assessment" class="kmc-new-hero-cta">
<span>Schedule an assessment</span>
<div class="kmc-new-hero-cta-icon">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#1C3434" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg>
</div>
</a>
</div>
</div>
<div class="kmc-new-video-wrap">
<video controls preload="metadata" playsinline src="/wp-content/uploads/2026/03/Coaching-Website-Intro.mp4"></video>
</div>
</div>
</section>

1431
fix_home_block1.html Normal file

File diff suppressed because it is too large Load Diff

31
fix_home_block1.py Normal file
View File

@ -0,0 +1,31 @@
import sys
with open('tmp_home.html', 'r', encoding='utf-8') as f:
content = f.read()
# Fix duplicated text
content = content.replace(
'<span class="mint-text">Kevin McKeand CoachingKevin McKeand Coaching</span>',
'<span class="mint-text">Kevin McKeand Coaching</span>'
)
# Fix logo size
content = content.replace(
"font-size: clamp(24px, 2.2vw, 36px);",
"font-size: clamp(16px, 1.8vw, 20px);"
)
# Fix top spacing more aggressively
old_css_part = "body.home .wp-site-blocks { padding-top: 0 !important; }"
new_css_part = """body.home .wp-site-blocks { padding-top: 0 !important; margin-top: 0 !important; }
body.home main { margin-top: 0 !important; padding-top: 0 !important; }
body.home { margin-top: 0 !important; padding-top: 0 !important; }"""
if old_css_part in content:
content = content.replace(old_css_part, new_css_part)
else:
content = content.replace("body { background: #1C3434; }", new_css_part + "\nbody { background: #1C3434; }")
with open('tmp_home_fixed.html', 'w', encoding='utf-8') as f:
f.write(content)

18
fix_home_block1_step2.py Normal file
View File

@ -0,0 +1,18 @@
import sys
with open('tmp_home_fixed.html', 'r', encoding='utf-8') as f:
content = f.read()
# Fix mobile logo size
content = content.replace(
".kmc-new-logo { font-size: 24px; }",
".kmc-new-logo { font-size: 18px; }"
)
content = content.replace(
"top: 0;",
"top: var(--wp-admin--admin-bar--height, 0px);"
)
with open('tmp_home_fixed2.html', 'w', encoding='utf-8') as f:
f.write(content)

24
fix_home_block1_step3.py Normal file
View File

@ -0,0 +1,24 @@
import sys
with open('tmp_home_fixed2.html', 'r', encoding='utf-8') as f:
content = f.read()
new_css = """
body.home .wp-site-blocks,
body.home main,
body.home .entry-content,
body.home .wp-block-post-content,
body.home .type-page {
padding-top: 0 !important;
margin-top: 0 !important;
}
body.home .kmc-landing {
margin-top: 0 !important;
padding-top: 0 !important;
}
"""
content = content.replace("body.home main { margin-top: 0 !important; padding-top: 0 !important; }", new_css)
with open('tmp_home_final.html', 'w', encoding='utf-8') as f:
f.write(content)

File diff suppressed because it is too large Load Diff

1600
tmp_home_content.html Normal file

File diff suppressed because it is too large Load Diff

1431
tmp_home_current_block1.html Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1602
tmp_home_fixed.html Normal file

File diff suppressed because it is too large Load Diff

1602
tmp_home_fixed2.html Normal file

File diff suppressed because it is too large Load Diff

1599
tmp_home_updated_block1.html Normal file

File diff suppressed because it is too large Load Diff

20
update_block1.py Normal file
View File

@ -0,0 +1,20 @@
import re
with open('fix_home_block1.html', 'r', encoding='utf-8') as f:
content = f.read()
with open('block1_html.html', 'r', encoding='utf-8') as f:
new_html = f.read()
pattern_hero = re.compile(r'<div class="kmc-landing">
*<section class="kmc-hero">.*?</section>', re.DOTALL)
if pattern_hero.search(content):
content = pattern_hero.sub('<div class="kmc-landing">
' + new_html + '\n', content, count=1)
with open('tmp_home_updated_block1.html', 'w', encoding='utf-8') as f:
f.write(content)
print("Replaced successfully!")
else:
print("Could not find kmc-hero section")