mirror of
https://github.com/idanoo/autobrr
synced 2025-07-26 02:09:13 +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
|
@ -12,7 +12,7 @@ import { useMutation, useQuery } from "@tanstack/react-query";
|
|||
import toast from "react-hot-toast";
|
||||
|
||||
import { AuthContext } from "@utils/Context";
|
||||
import logo from "@app/logo.png";
|
||||
import { ReactComponent as Logo } from "@app/logo.svg";
|
||||
import { APIClient } from "@api/APIClient";
|
||||
import Toast from "@components/notifications/Toast";
|
||||
import { classNames } from "@utils";
|
||||
|
@ -70,16 +70,7 @@ export default function Base() {
|
|||
<div className="flex items-center">
|
||||
<div className="flex-shrink-0 flex items-center">
|
||||
<Link to="/">
|
||||
<img
|
||||
className="block lg:hidden h-10 w-auto"
|
||||
src={logo}
|
||||
alt="Logo"
|
||||
/>
|
||||
<img
|
||||
className="hidden lg:block h-10 w-auto"
|
||||
src={logo}
|
||||
alt="Logo"
|
||||
/>
|
||||
<Logo className="h-10" />
|
||||
</Link>
|
||||
</div>
|
||||
<div className="sm:ml-3 hidden sm:block">
|
||||
|
|
|
@ -10,7 +10,7 @@ import { useMutation } from "@tanstack/react-query";
|
|||
import toast from "react-hot-toast";
|
||||
import { Tooltip } from "react-tooltip";
|
||||
|
||||
import logo from "@app/logo.png";
|
||||
import { ReactComponent as Logo } from "@app/logo.svg";
|
||||
import { APIClient } from "@api/APIClient";
|
||||
import { AuthContext } from "@utils/Context";
|
||||
import { PasswordInput, TextInput } from "@components/inputs/text";
|
||||
|
@ -64,7 +64,7 @@ export const Login = () => {
|
|||
return (
|
||||
<div className="min-h-screen flex flex-col justify-center py-12 sm:px-6 lg:px-8">
|
||||
<div className="sm:mx-auto sm:w-full sm:max-w-md mb-6">
|
||||
<img className="mx-auto h-12 w-auto" src={logo} alt="logo"/>
|
||||
<Logo className="mx-auto h-12" />
|
||||
<h1 className="text-center text-gray-900 dark:text-gray-200 font-bold pt-2 text-2xl">
|
||||
autobrr
|
||||
</h1>
|
||||
|
|
|
@ -9,7 +9,7 @@ import { useNavigate } from "react-router-dom";
|
|||
|
||||
import { APIClient } from "@api/APIClient";
|
||||
import { TextField, PasswordField } from "@components/inputs";
|
||||
import logo from "@app/logo.png";
|
||||
import { ReactComponent as Logo } from "@app/logo.svg";
|
||||
|
||||
interface InputValues {
|
||||
username: string;
|
||||
|
@ -46,7 +46,7 @@ export const Onboarding = () => {
|
|||
return (
|
||||
<div className="min-h-screen flex flex-col justify-center py-12 sm:px-6 lg:px-8">
|
||||
<div className="sm:mx-auto sm:w-full sm:max-w-md mb-6">
|
||||
<img className="mx-auto h-12 w-auto" src={logo} alt="logo"/>
|
||||
<Logo className="mx-auto h-12" />
|
||||
<h1 className="text-center text-gray-900 dark:text-gray-200 font-bold pt-2 text-2xl">
|
||||
autobrr
|
||||
</h1>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue