Skip to content

Commit

Permalink
Added new logo (thomiceli#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomiceli committed Sep 19, 2023
1 parent c20ed60 commit 61e274e
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 12 deletions.
Binary file added public/favicon-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions public/favicon.svg

This file was deleted.

3 changes: 2 additions & 1 deletion public/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import './style.css';
import './style.scss';
import './favicon.svg';
import './favicon-32.png';
import './opengist.svg';
import './default.png';
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
Expand Down
29 changes: 29 additions & 0 deletions public/opengist.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 9 additions & 7 deletions templates/base/base_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
)

</script>
<link rel="icon" type="image/svg+xml" href="{{ asset "favicon.svg" }}" />
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset "favicon-32.png" }}">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

{{ if dev }}
Expand Down Expand Up @@ -61,14 +61,16 @@
</svg>
</button>
</div>

<div class="flex-shrink-0 items-center hidden sm:flex">
<a href="{{ $.c.ExternalUrl }}/">
<img src="{{ asset "opengist.svg" }}" class="object-cover h-12 w-12">
</a>
</div>
<div class="flex-1 flex items-center justify-center sm:items-stretch sm:justify-start">
<div class="flex-shrink-0 flex items-center">
<div class="flex-shrink-0 items-center flex sm:hidden">
<a href="{{ $.c.ExternalUrl }}/">
<svg xmlns="http:https://www.w3.org/2000/svg" class="h-8 w-8 flex text-primary-400" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4" />
</svg>
</a>
<img src="{{ asset "opengist.svg" }}" class="object-cover h-12 w-12">
</a>
</div>
<div class="hidden sm:block sm:ml-6">
<div class="flex space-x-4">
Expand Down
3 changes: 2 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default defineConfig({
manifest: true,
rollupOptions: {
input: ['./public/main.ts', './public/editor.ts', './public/admin.ts', './public/hljs.ts']
}
},
assetsInlineLimit: 0,
}
})

0 comments on commit 61e274e

Please sign in to comment.