Skip to content

Commit

Permalink
one last attempt this eve
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Larkin committed Aug 2, 2024
1 parent e045aab commit 84ba4ae
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
11 changes: 11 additions & 0 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* Sticky section titles */
.sticky-title {
position: -webkit-sticky;
position: sticky;
top: 0;
background: white; /* Adjust as needed */
z-index: 10;
padding: 10px 0; /* Adjust as needed */
font-size: 2em; /* Adjust as needed */
}

2 changes: 0 additions & 2 deletions assets/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,3 @@ window.addEventListener('load', function() {
});

// MOVE SECTION TITLES TO LEFT OF HOME SCREEN


18 changes: 17 additions & 1 deletion content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,20 @@ sections:
text: ''
design:
css_class: section-content-left #section title on LHS
---
---

<!-- Add sticky-title class to section titles -->
<section id="projects">
<h2 class="sticky-title">Projects</h2>
<!-- Add your projects content here -->
</section>

<section id="posts">
<h2 class="sticky-title">Posts</h2>
<!-- Add your posts content here -->
</section>

<section id="contact">
<h2 class="sticky-title">Contact</h2>
<!-- Add your contact content here -->
</section>

0 comments on commit 84ba4ae

Please sign in to comment.