Skip to content

Commit d52f41b

Browse files
groksrcclaude
andcommitted
Update footer styling and fix navigation naming
- Change footer colors to match left nav (lighter gray) - Update heart to red emoji in footer text - Fix "Introduction" to "Basic Memory" in navigation config - Improve overall visual consistency 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent fc1e136 commit d52f41b

File tree

4 files changed

+26
-46
lines changed

4 files changed

+26
-46
lines changed

src/components/Footer.astro

Lines changed: 19 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -28,45 +28,25 @@ const socialLinks = [
2828
]
2929
---
3030

31-
<footer class="border-t bg-background">
32-
<div class="flex justify-center">
33-
<div class="flex flex-col items-center justify-between gap-4 py-10 md:h-24 md:flex-row md:py-0 w-full max-w-screen-2xl px-6">
34-
<div class="flex flex-col items-center gap-4 md:flex-row md:gap-2">
35-
<p class="text-center text-sm leading-loose text-muted-foreground md:text-left">
36-
Built by{' '}
37-
<a
38-
href="https://basicmachines.co"
39-
target="_blank"
40-
rel="noreferrer"
41-
class="font-medium hover:text-foreground transition-colors no-underline"
42-
>
43-
Basic Machines
44-
</a>
45-
. The source code is available on{' '}
46-
<a
47-
href="https://github.com/basicmachines-co/basic-memory"
48-
target="_blank"
49-
rel="noreferrer"
50-
class="font-medium hover:text-foreground transition-colors no-underline"
51-
>
52-
GitHub
53-
</a>
54-
.
55-
</p>
56-
</div>
57-
<div class="flex items-center space-x-4">
58-
{socialLinks.map((link) => (
59-
<a
60-
href={link.href}
61-
target="_blank"
62-
rel="noreferrer"
63-
class="text-muted-foreground hover:text-foreground transition-colors"
64-
title={link.name}
65-
>
66-
<span set:html={link.icon} />
67-
</a>
68-
))}
69-
</div>
31+
<footer class="mt-16 py-8 border-t">
32+
<div class="flex flex-col items-center justify-between gap-4 md:flex-row md:items-center">
33+
<div class="flex items-center space-x-4 h-6">
34+
{socialLinks.map((link) => (
35+
<a
36+
href={link.href}
37+
target="_blank"
38+
rel="noreferrer"
39+
class="inline-flex items-center justify-center h-full text-gray-400 hover:text-gray-600 transition-colors"
40+
title={link.name}
41+
>
42+
<span set:html={link.icon} class="inline-flex" />
43+
</a>
44+
))}
45+
</div>
46+
<div class="flex items-center h-6">
47+
<p class="text-center text-sm text-gray-500 md:text-right m-0">
48+
Built with ❤️ by Basic Machines
49+
</p>
7050
</div>
7151
</div>
7252
</footer>

src/components/Sidebar.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Icon from './Icon.astro'
55
const currentPath = Astro.url.pathname
66
---
77

8-
<aside class="hidden md:block w-64 flex-shrink-0 bg-background">
8+
<aside class="hidden md:block w-72 flex-shrink-0 bg-background">
99
<nav class="sticky top-16 h-[calc(100vh-4rem)] overflow-y-auto py-6 pr-6 pl-8">
1010
<div class="space-y-6">
1111
<!-- Top links section -->
@@ -27,11 +27,11 @@ const currentPath = Astro.url.pathname
2727
</a>
2828
))}
2929
</div>
30-
30+
3131
<!-- Regular navigation sections -->
3232
{navConfig.sidebar.map((section) => (
33-
<div class="space-y-3">
34-
<h4 class="text-sm font-semibold leading-none tracking-tight text-gray-900 px-3">
33+
<div>
34+
<h4 class="text-sm font-semibold leading-none tracking-tight text-gray-900 px-3 mb-4 mt-10">
3535
{section.title}
3636
</h4>
3737
<ul class="space-y-1 list-none m-0 p-0">
@@ -55,4 +55,4 @@ const currentPath = Astro.url.pathname
5555
))}
5656
</div>
5757
</nav>
58-
</aside>
58+
</aside>

src/config/navigation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const navConfig = {
2525
{
2626
title: 'Get Started',
2727
items: [
28-
{ title: 'Introduction', href: '/' },
28+
{ title: 'Basic Memory', href: '/' },
2929
{ title: 'Getting Started', href: '/getting-started' },
3030
{ title: 'User Guide', href: '/user-guide' },
3131
],

src/layouts/DocsLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ const { title, description } = Astro.props.frontmatter || Astro.props
2323
<article class="max-w-4xl py-8">
2424
<slot />
2525
</article>
26+
<Footer />
2627
</main>
2728
<TableOfContents />
2829
</div>
2930
</div>
30-
<Footer />
3131
</div>
3232
</Layout>

0 commit comments

Comments
 (0)