patx/miadruck

Enhance scrolling and update link text

Commit 95e94db · Harrison Erd · 2026-01-09T04:46:10-05:00

Changeset
95e94dbde191223ffcf8ac5addb6063e51c11839
Parents
3a44cc86b3441a906a07f12de5866eccec7065cf

View source at this commit

Enhance scrolling and update link text

Added smooth scrolling behavior and adjusted link text.

Comments

No comments yet.

Log in to comment

Diff

diff --git a/index.html b/index.html
index 45aac2f..0983ab0 100644
--- a/index.html
+++ b/index.html
@@ -38,6 +38,15 @@
       color:var(--text);
       background:#fff;
     }
+      html{
+    scroll-behavior: smooth;
+    scroll-padding-top: 84px;
+  }
+
+  /* Optional: if user prefers reduced motion */
+  @media (prefers-reduced-motion: reduce){
+    html{ scroll-behavior: auto; }
+  }
     a{ color:inherit; text-decoration:none; }
     .wrap{ width:min(var(--wrap), calc(100% - 36px)); margin:0 auto; }
 
@@ -996,7 +1005,7 @@
             <div class="tags">${tags}</div>
             <div class="card-actions">
               <div class="btn-split">
-                <a href="${esc(link)}" ${newTab}>See More</a>
+                <a href="${esc(link)}" ${newTab}>More Details</a>
                 <a href="#contact" onclick="prefillListing('${esc(x.id || x.title)}'); switchToContact();">Contact</a>
               </div>
             </div>