Skip to content

Commit

Permalink
Add favicon, opengraph, update header design
Browse files Browse the repository at this point in the history
  • Loading branch information
colepeters committed Jun 28, 2023
1 parent a9c110d commit 30d64c3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/elements/site-header.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,22 @@ export default function SiteHeader ({ html }) {
h1, p {
text-align: var(--align-heading);
}
h1:after {
content: '';
background-image: url('/_public/favicon.png');
background-size: contain;
position: absolute;
aspect-ratio: 1 / 1;
inline-size: 2.5em;
inset-block-start: 2.25em;
inset-inline-start: -1.75em;
}
</style>
<header>
<a href='/' class='no-underline'>
<h1 class='font-heading pbs4 pbe-3'>
<h1 class='font-heading pbs4 pbe-3 relative inline-block'>
A thin mantle of ash
</h1>
<p class='font-body italic text-1 pbe4'>
Expand Down
3 changes: 3 additions & 0 deletions app/head.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export default function Head(state) {
${getLinkTag()}
<link rel='stylesheet' href='/_public/css/global.css' />
<link rel='webmention' href='${siteUrl}/webmention' />
<link rel='icon' href='/_public/favicon.png' />
<meta name="image" content="/_public/opengraph.jpg" />
<meta name="og:image" content="/_public/opengraph.jpg" />
<link href='https://colepeters.com' rel='me' />
<link href='https://mastodon.online/@colepeters' rel='me' />
<link href='https://instagram.com/titledspheres' rel='me' />
Expand Down
Binary file added public/favicon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/opengraph.jpg
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 30d64c3

Please sign in to comment.