mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 20:28:15 +03:00
Experiment with using image component for logo. Closes #2019
This commit is contained in:
parent
d12f25f556
commit
9187a7a435
3 changed files with 7 additions and 4 deletions
|
@ -1,3 +0,0 @@
|
|||
export default function PageLogo() {
|
||||
return <div>Pimary logo component goes here</div>;
|
||||
}
|
|
@ -1,3 +1,4 @@
|
|||
import { Image } from 'antd';
|
||||
import s from './Logo.module.scss';
|
||||
|
||||
interface Props {
|
||||
|
@ -8,7 +9,7 @@ export default function Logo({ src }: Props) {
|
|||
return (
|
||||
<div className={s.root}>
|
||||
<div className={s.container}>
|
||||
<div className={s.image} style={{ backgroundImage: `url(${src})` }} />
|
||||
<Image src={src} alt="Logo" className={s.image} rootClassName={s.image} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -21,3 +21,8 @@ export const DemoServer = Template.bind({});
|
|||
DemoServer.args = {
|
||||
src: 'https://watch.owncast.online/logo',
|
||||
};
|
||||
|
||||
export const NotSquare = Template.bind({});
|
||||
NotSquare.args = {
|
||||
src: 'https://via.placeholder.com/150x325/FF0000/FFFFFF?text=Rectangle',
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue