-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add popover, fix mastodon domain processing, tweak styling
- Loading branch information
Showing
6 changed files
with
169 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
apps/web/organisms/live/comment-post/fediverse-sync-popover.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { | ||
PopoverArrow, | ||
PopoverBody, | ||
PopoverCloseButton, | ||
PopoverContent, | ||
PopoverHeader, | ||
Portal, | ||
Text, | ||
VStack | ||
} from '@chakra-ui/react'; | ||
import { FC } from 'react'; | ||
import { FormattedMessage } from 'react-intl'; | ||
|
||
type Props = { | ||
hashtag: string; | ||
}; | ||
|
||
export const FediverseSyncPopover: FC<Props> = ({ hashtag }) => { | ||
return ( | ||
<Portal> | ||
<PopoverContent width="700px" maxWidth="100dvw"> | ||
<PopoverArrow /> | ||
|
||
<PopoverHeader textAlign="center" fontWeight="bold"> | ||
<FormattedMessage | ||
id="live.comment-post.fediverse-sync.title" | ||
values={{ hashtag }} | ||
/> | ||
</PopoverHeader> | ||
|
||
<PopoverCloseButton /> | ||
|
||
<PopoverBody> | ||
<VStack gap={2}> | ||
<Text textAlign="center" fontSize="sm"> | ||
<FormattedMessage | ||
id="live.comment-post.fediverse-sync.description" | ||
values={{ hashtag }} | ||
/> | ||
</Text> | ||
|
||
<Text fontSize="xs" w="full"> | ||
<FormattedMessage | ||
id="live.comment-post.fediverse-sync.notice" | ||
values={{ hashtag }} | ||
/> | ||
</Text> | ||
</VStack> | ||
</PopoverBody> | ||
</PopoverContent> | ||
</Portal> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters