mirror of
https://github.com/idanoo/autobrr
synced 2025-07-25 17:59:14 +00:00
feat(web): use svg logo instead of png (#970)
* add fonts files to workbox * remove logo.png and touches manifest assets * install vite-plugin-svgr to import svg as react components * move logo.svg from public to src * replace logo.png to logo.svg --------- Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
This commit is contained in:
parent
c361f23139
commit
32ffc875b0
12 changed files with 215 additions and 45 deletions
|
@ -4,20 +4,22 @@
|
|||
*/
|
||||
|
||||
import { Link } from "react-router-dom";
|
||||
import logo from "@app/logo.png";
|
||||
import { ReactComponent as Logo } from "@app/logo.svg";
|
||||
|
||||
export const NotFound = () => {
|
||||
return (
|
||||
<div className="min-h-screen flex flex-col justify-center ">
|
||||
<div className="flex justify-center"><img className="h-24 sm:h-48" src={logo} alt="Logo" /></div>
|
||||
<div className="flex justify-center">
|
||||
<Logo className="h-24 sm:h-48" />
|
||||
</div>
|
||||
<h1 className="text-3xl text-center font-bold text-gray-900 dark:text-gray-200 my-8 px-2">
|
||||
Oops, looks like there was a little too much brr!
|
||||
Oops, looks like there was a little too much brr!
|
||||
</h1>
|
||||
<h3 className="text-xl text-center text-gray-700 dark:text-gray-400 mb-1 px-2">
|
||||
In case you think this a bug rather than too much brr,
|
||||
</h3>
|
||||
<h3 className="text-xl text-center text-gray-700 dark:text-gray-400 mb-1 px-2">
|
||||
feel free to report this to our
|
||||
feel free to report this to our
|
||||
{" "}
|
||||
<a
|
||||
rel="noopener noreferrer"
|
||||
|
@ -25,7 +27,7 @@ export const NotFound = () => {
|
|||
href="https://github.com/autobrr/autobrr"
|
||||
className="text-gray-700 dark:text-gray-200 underline font-semibold underline-offset-2 decoration-sky-500 hover:decoration-2 hover:text-black hover:dark:text-gray-100"
|
||||
>
|
||||
GitHub page
|
||||
GitHub page
|
||||
</a>
|
||||
{" or to "}
|
||||
<a
|
||||
|
@ -34,19 +36,19 @@ export const NotFound = () => {
|
|||
href="https://discord.gg/WQ2eUycxyT"
|
||||
className="text-gray-700 dark:text-gray-200 underline font-semibold underline-offset-2 decoration-purple-500 hover:decoration-2 hover:text-black hover:dark:text-gray-100"
|
||||
>
|
||||
our official Discord channel
|
||||
our official Discord channel
|
||||
</a>
|
||||
.
|
||||
.
|
||||
</h3>
|
||||
<h3 className="text-xl text-center leading-6 text-gray-700 dark:text-gray-400 mb-8 px-2">
|
||||
Otherwise, let us help you to get you back on track for more brr!
|
||||
Otherwise, let us help you to get you back on track for more brr!
|
||||
</h3>
|
||||
<div className="flex justify-center">
|
||||
<Link to="/">
|
||||
<button
|
||||
className="w-48 flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 dark:bg-blue-600 hover:bg-blue-700 dark:hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 dark:focus:ring-blue-500"
|
||||
>
|
||||
Back to Dashboard
|
||||
Back to Dashboard
|
||||
</button>
|
||||
</Link>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue