2022-04-28 08:19:20 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
2022-09-07 09:00:28 +02:00
|
|
|
import { Logo } from '../components/ui/Logo/Logo';
|
2022-04-28 08:19:20 +02:00
|
|
|
|
|
|
|
export default {
|
2022-05-18 00:28:56 +02:00
|
|
|
title: 'owncast/Components/Page Logo',
|
|
|
|
component: Logo,
|
2022-09-08 22:09:11 +02:00
|
|
|
parameters: {
|
|
|
|
chromatic: { diffThreshold: 0.8 },
|
|
|
|
},
|
2022-05-18 00:28:56 +02:00
|
|
|
} as ComponentMeta<typeof Logo>;
|
2022-04-28 08:19:20 +02:00
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
2022-05-18 00:28:56 +02:00
|
|
|
const Template: ComponentStory<typeof Logo> = args => <Logo {...args} />;
|
2022-04-28 08:19:20 +02:00
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
2022-05-18 00:28:56 +02:00
|
|
|
export const LocalServer = Template.bind({});
|
|
|
|
LocalServer.args = {
|
|
|
|
src: 'http://localhost:8080/logo',
|
2022-04-28 08:19:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export const DemoServer = Template.bind({});
|
|
|
|
DemoServer.args = {
|
2022-05-18 00:28:56 +02:00
|
|
|
src: 'https://watch.owncast.online/logo',
|
|
|
|
};
|
2022-08-09 23:38:23 +02:00
|
|
|
|
|
|
|
export const NotSquare = Template.bind({});
|
|
|
|
NotSquare.args = {
|
|
|
|
src: 'https://via.placeholder.com/150x325/FF0000/FFFFFF?text=Rectangle',
|
|
|
|
};
|