Skip to content

Commit 65541f1

Browse files
committed
feat: enhance website responsiveness with mobile navigation improvements, add a 'Back to Top' button and GitHub CTA, and update feature cards.
1 parent 0413e06 commit 65541f1

File tree

1 file changed

+141
-9
lines changed

1 file changed

+141
-9
lines changed

docs/index.html

Lines changed: 141 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,26 @@
174174
}
175175

176176
@media (max-width: 768px) {
177+
nav {
178+
flex-wrap: wrap;
179+
gap: 1rem;
180+
justify-content: center;
181+
}
182+
183+
/* Show nav links on mobile, but stack them or center them */
177184
.nav-links {
178-
display: none;
185+
display: flex;
186+
order: 3;
187+
/* Move to bottom of flex container if wrapping */
188+
width: 100%;
189+
justify-content: center;
190+
gap: 1.5rem;
191+
padding-top: 0.5rem;
192+
border-top: 1px solid rgba(255, 255, 255, 0.05);
193+
}
194+
195+
.logo {
196+
margin-right: auto;
179197
}
180198
}
181199

@@ -498,6 +516,77 @@
498516
padding: 0.4rem 0.8rem;
499517
font-size: 0.8rem;
500518
}
519+
520+
.back-to-top {
521+
bottom: 20px;
522+
right: 20px;
523+
width: 40px;
524+
height: 40px;
525+
}
526+
}
527+
528+
/* Back to Top Button */
529+
.back-to-top {
530+
position: fixed;
531+
bottom: 40px;
532+
right: 40px;
533+
width: 50px;
534+
height: 50px;
535+
background: var(--surface);
536+
border: 1px solid var(--border);
537+
border-radius: 50%;
538+
display: flex;
539+
align-items: center;
540+
justify-content: center;
541+
color: var(--primary);
542+
cursor: pointer;
543+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
544+
opacity: 0;
545+
visibility: hidden;
546+
transform: translateY(20px);
547+
z-index: 99;
548+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
549+
}
550+
551+
.back-to-top.visible {
552+
opacity: 1;
553+
visibility: visible;
554+
transform: translateY(0);
555+
}
556+
557+
.back-to-top:hover {
558+
border-color: var(--primary);
559+
background: var(--surface-hover);
560+
transform: translateY(-4px);
561+
box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
562+
}
563+
564+
565+
/* Blog Heading Contrast Fix */
566+
.resources h3 {
567+
color: #E4E4E7;
568+
}
569+
570+
/* Hero CTA Button */
571+
.hero-cta-btn {
572+
display: inline-flex;
573+
align-items: center;
574+
background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
575+
color: white;
576+
padding: 0.8rem 1.5rem;
577+
border-radius: 9999px;
578+
/* Pill shape */
579+
font-weight: 600;
580+
text-decoration: none;
581+
transition: all 0.3s ease;
582+
box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
583+
border: 1px solid rgba(255, 255, 255, 0.1);
584+
}
585+
586+
.hero-cta-btn:hover {
587+
transform: translateY(-2px);
588+
box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
589+
background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
501590
}
502591
</style>
503592
</head>
@@ -533,6 +622,15 @@ <h1>Stop <span class="gradient-text">CD-ing.</span> <br> Start Coding.</h1>
533622
Git-Scope helps busy developers instantly find, filter, and manage 50+ repos so you can stay in your
534623
flow state without endlessly <code>cd</code>-ing through nested directories.
535624
</p>
625+
<div style="margin-bottom: 2.5rem;">
626+
<a href="https://github.com/Bharath-code/git-scope" target="_blank" class="hero-cta-btn">
627+
<svg height="20" width="20" viewBox="0 0 16 16" fill="currentColor" style="margin-right: 8px;">
628+
<path
629+
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z" />
630+
</svg>
631+
Star on GitHub
632+
</a>
633+
</div>
536634

537635
<div class="install-section">
538636
<div class="tabs">
@@ -640,13 +738,19 @@ <h3><span class="card-icon">⌨️</span> Keyboard Driven</h3>
640738
class="key">Enter</span> to launch your editor at the root.</p>
641739
</div>
642740
<div class="card">
643-
<h3><span class="card-icon">🧹</span> Auto-Discovery</h3>
644-
<p>Recursively scans your code folders. Ignore patterns included for <code>node_modules</code> and
645-
others.</p>
741+
<h3><span class="card-icon">🌿</span> Contribution Graph</h3>
742+
<p>Press <span class="key">g</span> to see your local coding heat. Visualizes recent activity across
743+
all repos.</p>
744+
</div>
745+
<div class="card">
746+
<h3><span class="card-icon">💾</span> Disk Usage</h3>
747+
<p>Cleaning up? Press <span class="key">d</span> to spot `node_modules` black holes and heavy `.git`
748+
folders.</p>
646749
</div>
647750
<div class="card">
648-
<h3><span class="card-icon">📝</span> Sorting</h3>
649-
<p>Sort by dirty status, name, branch, or recency. Triage your day in seconds.</p>
751+
<h3><span class="card-icon"></span> Timeline</h3>
752+
<p>Forgot what you did yesterday? Press <span class="key">t</span> for a chronological feed of your
753+
work.</p>
650754
</div>
651755
</div>
652756

@@ -702,19 +806,19 @@ <h3><span class="card-icon">📊</span> Why GoatCounter?</h3>
702806
<footer id="contact">
703807
<div class="footer-links">
704808
<a href="https://github.com/Bharath-code/" aria-label="GitHub Repository" target="_blank">
705-
<svg height="20" width="20" viewBox="0 0 16 16" fill="currentColor">
809+
<svg height="32" width="32" viewBox="0 0 16 16" fill="currentColor">
706810
<path
707811
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z" />
708812
</svg>
709813
</a>
710814
<a href="https://x.com/iam_pbk" aria-label="Twitter Profile" target="_blank">
711-
<svg height="20" width="20" viewBox="0 0 24 24" fill="currentColor">
815+
<svg height="32" width="32" viewBox="0 0 24 24" fill="currentColor">
712816
<path
713817
d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.84 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z" />
714818
</svg>
715819
</a>
716820
<a href="mailto:[email protected]" aria-label="Email Contact">
717-
<svg height="20" width="20" viewBox="0 0 24 24" fill="currentColor">
821+
<svg height="32" width="32" viewBox="0 0 24 24" fill="currentColor">
718822
<path
719823
d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z" />
720824
</svg>
@@ -727,8 +831,36 @@ <h3><span class="card-icon">📊</span> Why GoatCounter?</h3>
727831
href="https://github.com/Bharath-code"
728832
style="color: inherit; text-decoration: none;">Bharathkumar</a></p>
729833
</footer>
834+
835+
<!-- Back to Top Button -->
836+
<button id="backToTop" class="back-to-top" aria-label="Back to Top">
837+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
838+
stroke-linecap="round" stroke-linejoin="round">
839+
<path d="M18 15l-6-6-6 6" />
840+
</svg>
841+
</button>
730842
</div>
731843

844+
<script>
845+
// Back to Top functionality
846+
const backToTopBtn = document.getElementById('backToTop');
847+
848+
window.addEventListener('scroll', () => {
849+
if (window.scrollY > 300) {
850+
backToTopBtn.classList.add('visible');
851+
} else {
852+
backToTopBtn.classList.remove('visible');
853+
}
854+
});
855+
856+
backToTopBtn.addEventListener('click', () => {
857+
window.scrollTo({
858+
top: 0,
859+
behavior: 'smooth'
860+
});
861+
});
862+
</script>
863+
732864
<script src="main.js" defer></script>
733865

734866

0 commit comments

Comments
 (0)