Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/assets/services/simkl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion src/components/ExternalLinkBlock/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import JellyfinLogo from '@app/assets/services/jellyfin.svg';
import LetterboxdLogo from '@app/assets/services/letterboxd.svg';
import PlexLogo from '@app/assets/services/plex.svg';
import RTLogo from '@app/assets/services/rt.svg';
import SimklLogo from '@app/assets/services/simkl.svg';
import TmdbLogo from '@app/assets/services/tmdb.svg';
import TraktLogo from '@app/assets/services/trakt.svg';
import TvdbLogo from '@app/assets/services/tvdb.svg';
Expand Down Expand Up @@ -35,7 +36,7 @@ const ExternalLinkBlock = ({
const { locale } = useLocale();

return (
<div className="flex w-full items-center justify-center space-x-5">
<div className="flex w-full items-center justify-center space-x-2 sm:space-x-5">
{mediaUrl && (
<a
href={mediaUrl}
Expand Down Expand Up @@ -115,6 +116,19 @@ const ExternalLinkBlock = ({
<TraktLogo />
</a>
)}
{imdbId && mediaType !== 'person' && (
<a
href={`https://api.simkl.com/redirect?to=Simkl&imdb=${encodeURIComponent(
imdbId
)}`}
aria-label="Simkl"
className="w-8 opacity-50 transition duration-300 hover:opacity-100"
target="_blank"
rel="noreferrer"
>
<SimklLogo />
</a>
)}
{tmdbId && mediaType === MediaType.MOVIE && (
<a
href={`https://letterboxd.com/tmdb/${tmdbId}`}
Expand Down
Loading