2024-07-10 22:11:18 +00:00
|
|
|
import VodsList from '@/app/components/vods-list';
|
2024-01-20 16:16:14 +00:00
|
|
|
import Link from 'next/link';
|
2024-07-10 22:11:18 +00:00
|
|
|
import { getVtuberBySlug } from '@/app/lib/vtubers'
|
2024-01-20 16:16:14 +00:00
|
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
|
|
import { faExternalLinkAlt, faBagShopping } from "@fortawesome/free-solid-svg-icons";
|
|
|
|
import { faFacebook, faInstagram, faPatreon, faYoutube, faTwitch, faTiktok, faXTwitter, faReddit, faDiscord } from "@fortawesome/free-brands-svg-icons";
|
2024-06-13 02:54:44 +00:00
|
|
|
import Image from "next/legacy/image";
|
2024-07-10 22:11:18 +00:00
|
|
|
import OnlyfansIcon from "@/app/components/icons/onlyfans";
|
|
|
|
import PornhubIcon from '@/app/components/icons/pornhub';
|
|
|
|
import ThroneIcon from '@/app/components/icons/throne';
|
|
|
|
import LinktreeIcon from '@/app/components/icons/linktree';
|
|
|
|
import FanslyIcon from '@/app/components/icons/fansly';
|
|
|
|
import ChaturbateIcon from '@/app/components/icons/chaturbate';
|
|
|
|
import CarrdIcon from '@/app/components/icons/carrd';
|
2024-01-20 16:16:14 +00:00
|
|
|
import styles from '@/assets/styles/icon.module.css';
|
|
|
|
|
2024-07-10 22:11:18 +00:00
|
|
|
import { getVodsForVtuber } from '@/app/lib/vods';
|
2024-01-20 16:16:14 +00:00
|
|
|
import { notFound } from 'next/navigation';
|
2024-07-10 22:11:18 +00:00
|
|
|
import ArchiveProgress from '@/app/components/archive-progress';
|
|
|
|
import { getAllStreamsForVtuber, getStreamsForVtuber } from '@/app/lib/streams';
|
|
|
|
import LinkableHeading from '@/app/components/linkable-heading';
|
2024-01-20 16:16:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default async function Page({ params }: { params: { slug: string } }) {
|
|
|
|
const vtuber = await getVtuberBySlug(params.slug);
|
|
|
|
if (!vtuber) notFound();
|
|
|
|
|
|
|
|
const vods = await getVodsForVtuber(vtuber.id, 1, 9);
|
|
|
|
if (!vods) notFound();
|
|
|
|
|
2024-03-14 22:08:49 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
{vtuber && (
|
|
|
|
<>
|
2024-03-29 07:28:02 +00:00
|
|
|
<div className="section">
|
2024-03-14 22:08:49 +00:00
|
|
|
|
|
|
|
<div className="columns is-multiline">
|
|
|
|
<div className="column is-full">
|
2024-12-12 07:23:46 +00:00
|
|
|
<h1 className="title is-2">{vtuber.display_name}</h1>
|
2024-03-14 22:08:49 +00:00
|
|
|
</div>
|
|
|
|
<div className="column is-one-quarter">
|
|
|
|
<figure className="image is-rounded is-1by1">
|
|
|
|
<Image
|
|
|
|
className="is-rounded"
|
2024-12-12 07:23:46 +00:00
|
|
|
alt={vtuber.display_name}
|
|
|
|
src={vtuber.image}
|
2024-06-13 02:54:44 +00:00
|
|
|
layout='fill'
|
2024-06-13 01:38:11 +00:00
|
|
|
objectFit='cover'
|
2024-03-14 22:08:49 +00:00
|
|
|
placeholder='blur'
|
2024-12-12 07:23:46 +00:00
|
|
|
blurDataURL={vtuber.image_blur}
|
2024-03-14 22:08:49 +00:00
|
|
|
/>
|
|
|
|
</figure>
|
|
|
|
</div>
|
|
|
|
<div className="column is-three-quarters">
|
2024-12-12 07:23:46 +00:00
|
|
|
<p className="is-size-5 mb-3">{vtuber.description_1}</p>
|
|
|
|
<p className="is-size-5">{vtuber.description_2}</p>
|
2024-03-14 22:08:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2 id="socials" className="title is-3">
|
|
|
|
<Link href="#socials">Socials</Link>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<div className="column is-full mb-5">
|
|
|
|
<div className="columns has-text-centered is-multiline is-centered">
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.patreon && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link href={vtuber.patreon} className="subtitle is-5">
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className="mr-2"><FontAwesomeIcon icon={faPatreon} className="fab fa-patreon" /></span><span className="mr-2">Patreon</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.twitter && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.twitter} className="subtitle is-5">
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className="mr-2"><FontAwesomeIcon icon={faXTwitter} className="fab fa-x-twitter" /></span><span className="mr-2">Twitter</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.youtube && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.youtube} className="subtitle is-5">
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className="mr-2"><FontAwesomeIcon icon={faYoutube} className="fab fa-youtube" /></span><span className="mr-2">YouTube</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.twitch && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.twitch} className="subtitle is-5">
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className="mr-2"><FontAwesomeIcon icon={faTwitch} className="fab fa-twitch" /></span><span className="mr-2">Twitch</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.tiktok && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.tiktok} className="subtitle is-5">
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className="mr-2"><FontAwesomeIcon icon={faTiktok} className="fab fa-tiktok" /></span><span className="mr-2">TikTok</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.fansly && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.fansly} className='subtitle is-5'>
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className='mr-2'><FanslyIcon width={20} height={20} className={styles.icon}/></span><span className="mr-2">Fansly</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.onlyfans && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.onlyfans} className='subtitle is-5'>
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className='mr-2'>
|
|
|
|
<OnlyfansIcon width={20} height={20} className={styles.icon}></OnlyfansIcon>
|
|
|
|
</span><span className="mr-2">OnlyFans</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.pornhub && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.pornhub} className='subtitle is-5'>
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className='mr-2'><PornhubIcon width={20} height={20} className={styles.icon}/></span><span className="mr-2">Pornhub</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.reddit && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.reddit} className="subtitle is-5">
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className="mr-2"><FontAwesomeIcon icon={faReddit} className="fab fa-reddit" /></span><span className="mr-2">Reddit</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.discord && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.discord} className="subtitle is-5">
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className="mr-2"><FontAwesomeIcon icon={faDiscord} className="fab fa-discord" /></span><span className="mr-2">Discord</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.instagram && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.instagram} className="subtitle is-5">
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className="mr-2"><FontAwesomeIcon icon={faInstagram} className="fab fa-instagram" /></span><span className="mr-2">Instagram</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.facebook && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.facebook} className="subtitle is-5">
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className="mr-2"><FontAwesomeIcon icon={faFacebook} className="fab fa-facebook" /></span><span className="mr-2">Facebook</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.merch && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.merch} className="subtitle is-5">
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className="mr-2"><FontAwesomeIcon icon={faBagShopping} className="fas fa-bag-shopping" /></span><span className="mr-2">Merch</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.chaturbate && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.chaturbate} className='subtitle is-5'>
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className='mr-2'><ChaturbateIcon width={20} className={styles.icon}/></span><span className="mr-2">Chaturbate</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.throne && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.throne} className='subtitle is-5'>
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className='mr-2'><ThroneIcon width={20} height={20} className={styles.icon}/></span><span className="mr-2">Throne</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.linktree && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.linktree} className='subtitle is-5'>
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className='mr-2'><LinktreeIcon width={20} height={20} className={styles.icon}/></span><span className="mr-2">Linktree</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
2024-12-12 07:23:46 +00:00
|
|
|
{vtuber.carrd && (
|
2024-03-14 22:08:49 +00:00
|
|
|
<div className="column is-3 is-narrow">
|
2024-12-12 07:23:46 +00:00
|
|
|
<Link target="_blank" href={vtuber.carrd} className='subtitle is-5'>
|
2024-03-14 22:08:49 +00:00
|
|
|
<span className='mr-2'><CarrdIcon width={20} height={20} className={styles.icon}/></span><span className="mr-2">Carrd</span><span><FontAwesomeIcon icon={faExternalLinkAlt} className="fas fa-external-link-alt" /></span>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{/* <h2 id="toys" className="title is-3">
|
|
|
|
<Link href="#toys">Toys</Link>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<>
|
|
|
|
<ToysList vtuber={vtuber} toys={toys} page={1} pageSize={toySampleCount} />
|
2024-12-12 07:23:46 +00:00
|
|
|
{(toys.pagination.total > toySampleCount) && <Link href={`/vt/${vtuber.slug}/toys/1`} className='button mb-5'>See all of {vtuber.display_name}'s toys</Link>}
|
2024-03-14 22:08:49 +00:00
|
|
|
</> */}
|
|
|
|
|
|
|
|
<h2 id="vods" className="title is-3">
|
|
|
|
<Link href="#vods">Vods</Link>
|
|
|
|
</h2>
|
|
|
|
|
2024-12-12 07:23:46 +00:00
|
|
|
<VodsList vtuber={vtuber} vods={vods} page={1} pageSize={9} />
|
2024-03-14 22:08:49 +00:00
|
|
|
{
|
2024-12-12 07:23:46 +00:00
|
|
|
(vods) ? (
|
|
|
|
<Link className='button mb-5' href={`/vt/${vtuber.slug}/vods/1`}>See all {vtuber.display_name} vods</Link>
|
2024-03-14 22:08:49 +00:00
|
|
|
) : (<p className='section'><i>No VODs have been added, yet.</i></p>)
|
|
|
|
}
|
|
|
|
|
2024-01-20 16:16:14 +00:00
|
|
|
|
2024-03-14 22:08:49 +00:00
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
)}
|
|
|
|
</>
|
|
|
|
);
|
2024-01-20 16:16:14 +00:00
|
|
|
}
|