Skip to content

Commit

Permalink
feat(all): icon and favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Sep 27, 2023
1 parent 53bb97d commit 3cdb6ef
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="./assets/favicon.ico" type="image/x-icon" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light dark" />
Expand Down
Binary file added frontend/src/assets/favicon.ico
Binary file not shown.
Binary file added frontend/src/assets/procchi_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import { LocationProvider, Router, Route } from 'preact-iso'

import { Home } from './pages/Home/index.jsx'
import { NotFound } from './pages/_404.jsx'

import './style.css'
import ProcchiIcon from './assets/procchi_icon.png'

export function App() {
return (
<div id="root">
<div id="header">
<img src="https://placeholder.com/200x200" className="icon" />
<img src={ProcchiIcon} className="icon" />
<span className="title">
Procchi
</span>
Expand Down
4 changes: 3 additions & 1 deletion frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ export default defineConfig({
react: 'preact/compat',
'react-dom': 'preact/compat'
}
}
},
// Move favicon to dist/
assetsInclude: './assets/favicon.ico'
})

0 comments on commit 3cdb6ef

Please sign in to comment.