215 lines
7.2 KiB
Python
215 lines
7.2 KiB
Python
import re
|
||
|
||
with open('home_content.html', 'r', encoding='utf-8') as f:
|
||
content = f.read()
|
||
|
||
old_block_pattern = re.compile(r'<!-- KMC SIXTH SECTION START -->.*?<!-- KMC SIXTH SECTION END -->', re.DOTALL)
|
||
|
||
new_block = """<!-- KMC SIXTH SECTION START -->
|
||
|
||
<style>
|
||
.kmc-sixth-section{
|
||
background:#F8F7F3;
|
||
padding:110px 0 122px;
|
||
}
|
||
.kmc-sixth-wrap{
|
||
width:min(1320px, calc(100% - 72px));
|
||
margin:0 auto;
|
||
display:grid;
|
||
grid-template-columns:minmax(0,1fr) minmax(0,1fr);
|
||
gap:56px;
|
||
align-items:start;
|
||
}
|
||
.kmc-sixth-title{
|
||
margin:0;
|
||
font-family:'Cardo',serif;
|
||
font-size:clamp(46px, 4.5vw, 64px) !important;
|
||
font-weight:700;
|
||
line-height:1.15;
|
||
color:#1C3434;
|
||
letter-spacing:-0.01em;
|
||
max-width:620px;
|
||
}
|
||
.kmc-sixth-text{
|
||
margin:30px 0 0;
|
||
font-family:'Cardo',serif;
|
||
font-size:clamp(22px, 2vw, 30px) !important;
|
||
font-weight:700;
|
||
line-height:1.3;
|
||
color:#1C3434;
|
||
max-width:720px;
|
||
}
|
||
.kmc-sixth-actions{
|
||
margin-top:44px;
|
||
display:flex;
|
||
align-items:center;
|
||
gap:28px;
|
||
flex-wrap:wrap;
|
||
}
|
||
.kmc-sixth-cta{
|
||
display:inline-flex !important;
|
||
align-items:center;
|
||
gap:14px;
|
||
padding:8px 8px 8px 24px !important;
|
||
border-radius:999px;
|
||
background:#1C3434;
|
||
color:#FFFFFF;
|
||
text-decoration:none;
|
||
font-family:'Inter',sans-serif;
|
||
font-size:18px !important;
|
||
font-weight:700;
|
||
line-height:1 !important;
|
||
min-height:0 !important;
|
||
}
|
||
.kmc-sixth-cta:hover{color:#FFFFFF;opacity:.95;}
|
||
.kmc-sixth-cta-circle {
|
||
width:42px !important;
|
||
height:42px !important;
|
||
border-radius:50%;
|
||
background:#90F1AE;
|
||
display:inline-flex;
|
||
align-items:center;
|
||
justify-content:center;
|
||
color:#1C3434;
|
||
flex:0 0 42px !important;
|
||
}
|
||
.kmc-sixth-cta-circle svg { display:block; width:20px; height:20px; }
|
||
.kmc-sixth-link{
|
||
display:inline-flex !important;
|
||
align-items:center;
|
||
gap:10px;
|
||
text-decoration:none;
|
||
font-family:'Inter',sans-serif;
|
||
font-size:18px !important;
|
||
font-weight:600;
|
||
line-height:1.2 !important;
|
||
color:#1C3434;
|
||
padding:0 !important;
|
||
}
|
||
.kmc-sixth-link:hover{opacity:.85;}
|
||
.kmc-sixth-link-arrow{
|
||
display:inline-flex;
|
||
align-items:center;
|
||
justify-content:center;
|
||
}
|
||
.kmc-sixth-link-arrow svg { display:block; width:20px; height:20px; stroke:#1C3434; }
|
||
|
||
.kmc-sixth-cards{
|
||
display:flex;
|
||
flex-direction:column;
|
||
gap:24px;
|
||
}
|
||
.kmc-sixth-card{
|
||
display:flex !important;
|
||
align-items:flex-start !important;
|
||
gap:24px;
|
||
background:#F0EEE9;
|
||
border:1px solid rgba(28,52,52,.08);
|
||
border-radius:32px;
|
||
padding:36px;
|
||
box-sizing:border-box;
|
||
min-height:0 !important;
|
||
}
|
||
.kmc-sixth-icon{
|
||
width:48px !important;
|
||
height:48px !important;
|
||
border-radius:50%;
|
||
background:#90F1AE;
|
||
display:inline-flex;
|
||
align-items:center;
|
||
justify-content:center;
|
||
color:#1C3434;
|
||
flex:0 0 48px !important;
|
||
}
|
||
.kmc-sixth-icon svg { display:block; width:24px; height:24px; stroke:#1C3434; }
|
||
|
||
.kmc-sixth-card p{
|
||
margin:0;
|
||
font-family:'Inter',sans-serif;
|
||
font-size:22px !important;
|
||
font-weight:400;
|
||
line-height:1.5 !important;
|
||
color:rgba(1,1,1,.8);
|
||
}
|
||
|
||
@media (max-width: 1260px){
|
||
.kmc-sixth-wrap{width:min(1320px, calc(100% - 56px));gap:42px;}
|
||
.kmc-sixth-card{padding:28px; gap:20px;}
|
||
}
|
||
@media (max-width: 1024px){
|
||
.kmc-sixth-section{padding:88px 0 96px;}
|
||
.kmc-sixth-wrap{grid-template-columns:1fr;gap:48px;}
|
||
.kmc-sixth-title{max-width:100%;}
|
||
.kmc-sixth-text{max-width:none;}
|
||
}
|
||
@media (max-width: 680px){
|
||
.kmc-sixth-section{padding:72px 0 80px;}
|
||
.kmc-sixth-wrap{width:calc(100% - 32px);gap:36px;}
|
||
.kmc-sixth-actions{margin-top:32px;gap:20px;flex-direction:column;align-items:flex-start;}
|
||
.kmc-sixth-cta{padding:6px 6px 6px 20px !important;font-size:16px !important;}
|
||
.kmc-sixth-cta-circle {width:36px !important;height:36px !important;flex-basis:36px !important;}
|
||
.kmc-sixth-cta-circle svg {width:18px;height:18px;}
|
||
.kmc-sixth-link{font-size:16px !important;}
|
||
.kmc-sixth-card{border-radius:24px;padding:24px;gap:16px;}
|
||
.kmc-sixth-card p{font-size:18px !important;line-height:1.45 !important;}
|
||
.kmc-sixth-icon {width:40px !important;height:40px !important;flex-basis:40px !important;}
|
||
.kmc-sixth-icon svg {width:20px;height:20px;}
|
||
}
|
||
</style>
|
||
|
||
<section class="kmc-sixth-section" aria-labelledby="kmc-sixth-heading">
|
||
<div class="kmc-sixth-wrap">
|
||
<div class="kmc-sixth-left">
|
||
<h2 id="kmc-sixth-heading" class="kmc-sixth-title">Sample Outcomes Clients Seek</h2>
|
||
<p class="kmc-sixth-text">As your coach and transformation partner, our results are driven by who you're being, not the tactics your doing. Success demands total commitment to achieving the impossible.</p>
|
||
|
||
<div class="kmc-sixth-actions">
|
||
<a class="kmc-sixth-cta" href="https://calendly.com/ktmckeand/coaching-assessment" aria-label="Schedule an assessment">
|
||
<span>Schedule an assessment</span>
|
||
<span class="kmc-sixth-cta-circle" aria-hidden="true">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" 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>
|
||
</span>
|
||
</a>
|
||
|
||
<a class="kmc-sixth-link" href="/pricing/" aria-label="View coaching options">
|
||
<span>View coaching options</span>
|
||
<span class="kmc-sixth-link-arrow" aria-hidden="true">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" 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>
|
||
</span>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="kmc-sixth-cards" role="list" aria-label="Sample outcomes">
|
||
<article class="kmc-sixth-card" role="listitem">
|
||
<span class="kmc-sixth-icon" aria-hidden="true">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>
|
||
</span>
|
||
<p>Executive Reinvention, driven by ontological changes</p>
|
||
</article>
|
||
|
||
<article class="kmc-sixth-card" role="listitem">
|
||
<span class="kmc-sixth-icon" aria-hidden="true">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>
|
||
</span>
|
||
<p>Working with a team of people to achieve what is considered impossible today</p>
|
||
</article>
|
||
|
||
<article class="kmc-sixth-card" role="listitem">
|
||
<span class="kmc-sixth-icon" aria-hidden="true">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>
|
||
</span>
|
||
<p>Identify your winning strategy and what’s holding you back from leading a team to achieve the impossible</p>
|
||
</article>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
<!-- KMC SIXTH SECTION END -->"""
|
||
|
||
new_content = old_block_pattern.sub(new_block, content)
|
||
|
||
with open('home_content.html', 'w', encoding='utf-8') as f:
|
||
f.write(new_content)
|
||
|
||
print("Block 6 replaced.")
|