Skip to content

Commit

Permalink
chore: add marpme's logo to page
Browse files Browse the repository at this point in the history
  • Loading branch information
marpme committed Oct 30, 2023
1 parent c602625 commit 5b436d4
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 15 deletions.
Binary file removed public/favicon.ico
Binary file not shown.
63 changes: 63 additions & 0 deletions public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 13 additions & 10 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ import DarkModeToggle from "./DarkModeToggle.astro";
---

<header>
<a
class="unset absolute z-10 left-[50%] -top-[100rem] translate-x-[-50%] bg-white text-black px-8 py-2 focus:top-[initial]"
href="#main"
>
Skip to content
</a>
<div class="logo">
<img alt="marpme's logo" src="/logo.svg" width="32px" />
</div>
<nav>
<section class="text-text-bold">
<ul class="unset flex gap-4 [&>li]:p-0">
Expand Down Expand Up @@ -50,9 +47,15 @@ import DarkModeToggle from "./DarkModeToggle.astro";
grid-area: header;
display: grid;
align-items: center;
grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(
0,
max-content
);
grid-template-columns:
minmax(0, max-content) minmax(0, 1fr)
minmax(0, max-content) minmax(0, max-content);
}

.logo {
display: flex;
align-content: center;
justify-content: center;
margin-inline-end: 2rem;
}
</style>
11 changes: 6 additions & 5 deletions src/layouts/Favicon.astro
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
/*
/*
Not a layout. Just a component used in layouts.
*/
---

<meta name="theme-color" content="#ffffff" />

<!--
This is an example.
Use https://realfavicongenerator.net to generate the icons and manifest.
<!--
This is an example.
Use https://realfavicongenerator.net to generate the icons and manifest.
-->
<link href="/favicon.ico" rel="shortcut icon" />
<link href="/logo.svg" rel="shortcut icon" />

0 comments on commit 5b436d4

Please sign in to comment.