Skip to content

Commit

Permalink
fix opengraph image issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GokuxSS4 committed Jan 26, 2025
1 parent 07d2300 commit 87178c0
Show file tree
Hide file tree
Showing 6 changed files with 452 additions and 21 deletions.
6 changes: 5 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@ const roboto = Roboto({

export const metadata: Metadata = {
title: {
default: "Aniweeb · Free Anime Streaming",
default: "Aniweeb · Watch Free Anime Online",
template: "%s · Aniweeb",
},
description:
"Watch your favorite anime online in Dub or Sub format without registration on Aniweeb.",
icons: {
icon: "/icons/aniweeb-icon.ico",
},
metadataBase: new URL("https://aniweeb.com"),
openGraph: {
images: "/opengraph-image.png",
},
};

export default function RootLayout({
Expand Down
9 changes: 7 additions & 2 deletions components/watch/VideoContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { HiAnime } from "aniwatch";
import { useEffect, useState } from "react";
import { BsBadgeCc } from "react-icons/bs";
import { MdMicNone } from "react-icons/md";
import { BsFileEarmark } from "react-icons/bs";
import {
VidstackDefaultPlayer,
VidStackPlayerSkeleton,
Expand Down Expand Up @@ -257,7 +258,7 @@ export function VideoContainer({
renderServerButtons(
availableServers.sub,
"sub",
<BsBadgeCc className="size-4" />,
<BsBadgeCc className="size-5" />,
)}

{availableServers.dub?.length > 0 &&
Expand All @@ -268,7 +269,11 @@ export function VideoContainer({
)}

{availableServers.raw?.length > 0 &&
renderServerButtons(availableServers.raw, "raw")}
renderServerButtons(
availableServers.raw,
"raw",
<BsFileEarmark className="size-5" />,
)}
</>
)}
</div>
Expand Down
14 changes: 2 additions & 12 deletions components/watch/VidstackDefaultPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,12 @@ export function VidstackDefaultPlayer({
noGestures={false}
slots={{
afterCaptionButton: (
<SeekButton seconds={-10} className="block md:hidden vds-button">
<SeekButton seconds={-10} className="vds-button">
<SeekBackward10Icon size={32} className="vds-icon" />
</SeekButton>
),
beforeSettingsMenu: (
<SeekButton seconds={10} className="block md:hidden vds-button">
<SeekForward10Icon size={32} className="vds-icon" />
</SeekButton>
),
afterPlayButton: (
<SeekButton seconds={-10} className="hidden md:block vds-button">
<SeekBackward10Icon size={32} className="vds-icon" />
</SeekButton>
),
beforeMuteButton: (
<SeekButton seconds={10} className="hidden md:block vds-button">
<SeekButton seconds={10} className="vds-button">
<SeekForward10Icon size={32} className="vds-icon" />
</SeekButton>
),
Expand Down
Loading

0 comments on commit 87178c0

Please sign in to comment.