diff --git a/src/img/opencast-editor.svg b/public/opencast-editor.svg similarity index 100% rename from src/img/opencast-editor.svg rename to public/opencast-editor.svg diff --git a/src/main/Header.tsx b/src/main/Header.tsx index c87811a9b..acf0fc1c8 100644 --- a/src/main/Header.tsx +++ b/src/main/Header.tsx @@ -12,7 +12,6 @@ import { LuKeyboard } from "react-icons/lu"; import { MainMenuStateNames } from "../types"; import { basicButtonStyle, BREAKPOINT_MEDIUM, BREAKPOINT_SMALL } from "../cssStyles"; -import LogoSvg from "../img/opencast-editor.svg?react"; import { selectIsEnd } from "../redux/endSlice"; import { checkboxMenuItem, HeaderMenuItemDef, ProtoButton, useColorScheme, WithHeaderMenu } from "@opencast/appkit"; import { IconType } from "react-icons"; @@ -92,6 +91,23 @@ function Header() { ); } +const LogoPicture: React.FC = () => { + const path = (filename:string) => import.meta.env.BASE_URL + filename; + return ( +
+ *": { + height: "calc(100% - 0.5px)", + }, + }}> + + Opencast Editor Logo + +
+ ); +}; + const Logo: React.FC = () => { const { t } = useTranslation(); @@ -100,11 +116,12 @@ const Logo: React.FC = () => { const logo = css({ paddingLeft: "8px", opacity: scheme === "dark" ? "0.8" : "1", - + display: "flex", height: "100%", "> *": { height: "calc(100% - 12px)", }, + alignItems: "center", // Unset a bunch of CSS to keep the logo clean outline: "unset", @@ -118,7 +135,7 @@ const Logo: React.FC = () => { return (