Skip to content

Commit

Permalink
feat: Add mermaidchart logo
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Mar 15, 2023
1 parent 1605536 commit f634434
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"editor.formatOnSave": true,
"cSpell.words": [
"Browserslist",
"KROKI",
"Serde",
"asyncable",
"Browserslist",
"corg",
"cssnano",
"daisyui",
"esserializer",
"KROKI",
"localstorage",
"mermaidchart",
"mindmap",
"pako",
"Serde",
"serdes",
"tailwindcss"
],
Expand Down
22 changes: 18 additions & 4 deletions src/lib/components/Navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
import Theme from './Theme.svelte';
interface Link {
title: string;
href: string;
title?: string;
icon?: string;
img?: string;
}
const links: Link[] = [
{
Expand All @@ -32,9 +33,12 @@
href: 'https://github.com/mermaid-js/mermaid-cli'
},
{
title: '',
href: 'https://github.com/mermaid-js/mermaid-live-editor',
icon: 'fab fa-github fa-lg'
},
{
href: 'https://mermaidchart.com',
img: '/mermaidchart-logo.svg'
}
];
</script>
Expand All @@ -59,13 +63,18 @@
<Theme />
<div class="hidden lg:flex lg:items-center lg:w-auto w-full" id="menu">
<ul class="lg:flex items-center justify-between text-base pt-4 lg:pt-0">
{#each links as { title, href, icon }}
{#each links as { title, href, icon, img }}
<li>
<a class="btn btn-ghost" target="_blank" rel="noreferrer" {href}>
{#if icon}
<i class={icon} />
{:else if img}
<img src={img} alt={title} />
{/if}
{#if title}
{title}
{/if}
{title}</a>
</a>
</li>
{/each}
</ul>
Expand All @@ -79,4 +88,9 @@
.navbar {
z-index: 10000;
}
img {
width: 1.5rem;
height: 1.5rem;
}
</style>
1 change: 1 addition & 0 deletions static/mermaidchart-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f634434

Please sign in to comment.