Skip to content

Commit c442f9a

Browse files
committed
Add skew-top section style and apply to call-to-action divs
1 parent db884f7 commit c442f9a

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

sass/_homepage.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,3 +323,22 @@
323323
color: $brightBgrd;
324324
}
325325
}
326+
327+
.skew-top {
328+
position: relative;
329+
z-index: 5;
330+
padding-top: 120px;
331+
332+
&::before {
333+
content: "";
334+
position: absolute;
335+
top: 0;
336+
left: 0;
337+
right: 0;
338+
height: 100%;
339+
background-color: inherit;
340+
transform: skewY(-2deg);
341+
transform-origin: 0;
342+
z-index: -1;
343+
}
344+
}

templates/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h2>Trusted By Industry Leaders</h2>
6464
</div>
6565
</div>
6666

67-
<div id="call-to-action" class="call-to-action">
67+
<div id="call-to-action" class="call-to-action skew-top">
6868
<div class="cta-content">
6969
<h2>Turn Your Team Into Rust Experts In Half The Time</h2>
7070
<p class="hero-subtitle">Expert guidance from prototype to production.</p>
@@ -296,7 +296,7 @@ <h2>Success Stories</h2>
296296
</div>
297297
</div>
298298

299-
<div id="contact" class="call-to-action">
299+
<div id="contact" class="call-to-action skew-top">
300300
<div class="cta-content">
301301
<h2>Ready to Accelerate Your Rust Journey?</h2>
302302
<div class="hero-ctas-bottom">

0 commit comments

Comments
 (0)