Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
/* eslint-disable react/no-unescaped-entities */
import { FC } from 'react';
import { Modal, Space } from 'antd';
import styles from './FollowModal.module.scss';
import { FollowForm } from './FollowForm';
import { Translation } from '../../ui/Translation/Translation';
import { Localization } from '../../../types/localization';
/*
First production surface migrated to Ant Design v6. Theming and class-prefix
scoping come from the app-wide AntdProvider mounted in pages/_app.tsx.
Unlike the other modals, which render inside the shared v4 ui/Modal shell,
this component renders its own v6 Modal so the whole follow experience
(modal chrome + form controls) is themed through v6 design tokens.
*/
export type FollowModalProps = {
open: boolean;
handleClose: () => void;
account: string;
name: string;
};
export const FollowModal: FC<FollowModalProps> = ({ open, handleClose, account, name }) => (
<Modal
title={`Follow ${name}`}
open={open}
onCancel={handleClose}
width="550px"
zIndex={999}
footer={null}
centered
>
<Space orientation="vertical" id="follow-modal">
<div className={styles.header}>
<Translation
translationKey={Localization.Frontend.FollowModal.description}
defaultText="By following this stream you'll get notified on the Fediverse when it goes live. Now is a great time to"
/>
<a href="https://owncast.online/join-fediverse" target="_blank" rel="noreferrer">
<Translation
translationKey={Localization.Frontend.FollowModal.learnFediverse}
defaultText="learn about the Fediverse"
/>
</a>
<Translation
translationKey={Localization.Frontend.FollowModal.newToYou}
defaultText="if it's new to you."
/>
</div>
<div className={styles.account}>
<img src="/logo" alt="logo" className={styles.logo} />
<div className={styles.username}>
<div className={styles.name}>{name}</div>
<div>{account}</div>
</div>
</div>
<FollowForm handleClose={handleClose} />
</Space>
</Modal>
);