Skip to content

Commit 03a3e52

Browse files
committed
feat: update title in explainer config and enhance navbar title display with icon for improved branding
1 parent ee039ba commit 03a3e52

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.astro/data-store.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

explainer.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineExplainerConfig } from '@/utils'
22

33
export default defineExplainerConfig({
44
meta: {
5-
title: '💧 Explainer',
5+
title: 'Explainer',
66
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
77
thumbnail: 'https://placehold.co/1200x630',
88
},

src/assets/css/markdown.css

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
--callout-success-bg: #133524;
4343
--callout-success-border: #10b981;
4444
--callout-important: #a78bfa;
45-
--callout-important-bg: #2d224a;
45+
--callout-important-bg: #2d224ab6;
4646
--callout-important-border: #8b5cf6;
4747
--callout-warning: #facc15;
4848
--callout-warning-bg: #3a320a;
@@ -194,7 +194,6 @@ h6 {
194194
margin-top: 1.7142857em;
195195
margin-bottom: 1.7142857em;
196196
border-radius: 0.375rem;
197-
padding: 0.8571429em 1.1428571em;
198197
}
199198

200199
pre code {
@@ -288,13 +287,15 @@ html.dark .prose>.astro-code {
288287

289288
.astro-code {
290289
margin: 2rem 0;
291-
padding: 1rem 0.5rem;
290+
padding: 1rem 0;
292291
border-radius: 0.5rem;
293292
font-size: 0.875rem;
294293
position: relative;
295294
border: 1px solid var(--color-border-tab) !important;
296295

297296
.line {
297+
padding-left: 1.5rem !important;
298+
padding-right: 1.5rem !important;
298299
font-size: 0.9rem;
299300
color: var(--color-foreground) !important;
300301
}
@@ -327,9 +328,8 @@ html.dark .prose>.astro-code {
327328
.prose li code {
328329
border: 1px solid var(--color-border-tab);
329330
border-radius: 0.25rem;
330-
padding: 0.15rem 0.25rem;
331-
margin-right: 0 0.25em;
332-
background: var(--background);
331+
padding: 0.3rem 0.3rem;
332+
background: color-mix(in srgb, var(--background) 30%, transparent);
333333

334334
&::before,
335335
&::after {
@@ -438,7 +438,7 @@ html.dark .prose>.astro-code {
438438

439439
.callout {
440440
margin: 1rem 0;
441-
padding: 0.5rem 0;
441+
padding: 0.5rem 1rem;
442442
border-radius: 0.5rem;
443443

444444
.callout-title {
@@ -449,7 +449,6 @@ html.dark .prose>.astro-code {
449449
display: flex;
450450
align-items: center;
451451
gap: 0.5rem;
452-
padding-left: 1.5rem;
453452
opacity: 0.8;
454453
font-size: var(--text-sm);
455454

src/content/docs/framework/docs.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import config from '../../../../explainer.config';
1111

1212
The documentation section allows you to create and manage your documentation.
1313

14+
> [!important]
1415
> A collection is a grouping of pages; it can represent a section or a complete documentation.
1516
1617
## Create new collection

src/lib/components/elements/navbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ export default function Navbar() {
4444
<div className="sticky top-0 z-50 w-full p-2 py-3 border-b bg-background/70 backdrop-blur-sm">
4545
<div className="max-w-screen-xl mx-auto flex items-center justify-between">
4646
<a href="/" className="flex sm:hidden items-center space-x-2">
47-
<span className="font-bold text-primary text-lg">{config.meta.title}</span>
47+
<span className="font-bold text-primary text-lg">💧 {config.meta.title}</span>
4848
</a>
4949

5050
<div className="hidden lg:flex items-center justify-between w-full">
5151
<a href="/" className="flex items-center space-x-2">
52-
<span className="font-bold text-primary text-lg">{config.meta.title}</span>
52+
<span className="font-bold text-primary text-lg">💧 {config.meta.title}</span>
5353
</a>
5454
<NavigationMenu>
5555
<NavigationMenuList>

0 commit comments

Comments
 (0)