🚧 wip: add image support to card
This commit is contained in:
@ -1,7 +1,19 @@
|
||||
"use server";
|
||||
|
||||
export const getRecommendationAnimeAction = async () => {
|
||||
await new Promise((resolve) => setTimeout(resolve, 2000));
|
||||
export type RecommendationAnime = {
|
||||
title: string;
|
||||
rating?: number;
|
||||
type: string;
|
||||
status: string;
|
||||
episodes: number;
|
||||
release_year: string;
|
||||
thumbnail_url: string;
|
||||
};
|
||||
|
||||
export const getRecommendationAnimeAction = async (): Promise<
|
||||
RecommendationAnime[]
|
||||
> => {
|
||||
// await new Promise((resolve) => setTimeout(resolve, 2000));
|
||||
|
||||
return [
|
||||
{
|
||||
@ -11,7 +23,7 @@ export const getRecommendationAnimeAction = async () => {
|
||||
status: "finished",
|
||||
episodes: 28,
|
||||
release_year: "2023",
|
||||
thumbnail_url: "https://example.com/images/frieren.jpg",
|
||||
thumbnail_url: "https://m.media-amazon.com/images/I/816AbVQc+0L.jpg",
|
||||
},
|
||||
{
|
||||
title: "Steins;Gate",
|
||||
@ -20,7 +32,8 @@ export const getRecommendationAnimeAction = async () => {
|
||||
status: "finished",
|
||||
episodes: 24,
|
||||
release_year: "2011",
|
||||
thumbnail_url: "https://example.com/images/steinsgate.jpg",
|
||||
thumbnail_url:
|
||||
"https://m.media-amazon.com/images/M/MV5BZjI1YjZiMDUtZTI3MC00YTA5LWIzMmMtZmQ0NTZiYWM4NTYwXkEyXkFqcGc@._V1_FMjpg_UX1000_.jpg",
|
||||
},
|
||||
{
|
||||
title: "Spirited Away",
|
||||
@ -29,7 +42,8 @@ export const getRecommendationAnimeAction = async () => {
|
||||
status: "finished",
|
||||
episodes: 1,
|
||||
release_year: "2001",
|
||||
thumbnail_url: "https://example.com/images/spirited-away.jpg",
|
||||
thumbnail_url:
|
||||
"https://printedoriginals.com/cdn/shop/products/spirited-away-french-143975.jpg?v=1602427397",
|
||||
},
|
||||
{
|
||||
title: "One Piece",
|
||||
@ -38,7 +52,7 @@ export const getRecommendationAnimeAction = async () => {
|
||||
status: "airing",
|
||||
episodes: 1100,
|
||||
release_year: "1999",
|
||||
thumbnail_url: "https://example.com/images/onepiece.jpg",
|
||||
thumbnail_url: "https://myanimelist.net/images/anime/1244/138851.jpg",
|
||||
},
|
||||
{
|
||||
title: "Cyberpunk: Edgerunners",
|
||||
@ -47,7 +61,8 @@ export const getRecommendationAnimeAction = async () => {
|
||||
status: "finished",
|
||||
episodes: 10,
|
||||
release_year: "2022",
|
||||
thumbnail_url: "https://example.com/images/edgerunners.jpg",
|
||||
thumbnail_url:
|
||||
"https://myanimelist.net/images/about_me/ranking_items/14292440-859e4272-536e-4760-845f-78fb48eccafe.jpg?t=1767555420",
|
||||
},
|
||||
{
|
||||
title: "Your Name",
|
||||
@ -56,7 +71,8 @@ export const getRecommendationAnimeAction = async () => {
|
||||
status: "finished",
|
||||
episodes: 1,
|
||||
release_year: "2016",
|
||||
thumbnail_url: "https://example.com/images/yourname.jpg",
|
||||
thumbnail_url:
|
||||
"https://m.media-amazon.com/images/M/MV5BMjM4YTE3OGEtYTY1OS00ZWEzLTg1OTctMTkyODA0ZDM3ZmJlXkEyXkFqcGc@._V1_.jpg",
|
||||
},
|
||||
{
|
||||
title: "Hunter x Hunter (2011)",
|
||||
@ -65,7 +81,7 @@ export const getRecommendationAnimeAction = async () => {
|
||||
status: "finished",
|
||||
episodes: 148,
|
||||
release_year: "2011",
|
||||
thumbnail_url: "https://example.com/images/hxh.jpg",
|
||||
thumbnail_url: "https://myanimelist.net/images/anime/1337/99013.jpg",
|
||||
},
|
||||
{
|
||||
title: "Hellsing Ultimate",
|
||||
@ -74,7 +90,7 @@ export const getRecommendationAnimeAction = async () => {
|
||||
status: "finished",
|
||||
episodes: 10,
|
||||
release_year: "2006",
|
||||
thumbnail_url: "https://example.com/images/hellsing.jpg",
|
||||
thumbnail_url: "https://cdn.myanimelist.net/images/anime/6/7333l.jpg",
|
||||
},
|
||||
{
|
||||
title: "Tower of God Season 2",
|
||||
@ -83,7 +99,8 @@ export const getRecommendationAnimeAction = async () => {
|
||||
status: "airing",
|
||||
episodes: 12,
|
||||
release_year: "2024",
|
||||
thumbnail_url: "https://example.com/images/tog-s2.jpg",
|
||||
thumbnail_url:
|
||||
"https://www.animationmagazine.net/wordpress/wp-content/uploads/TOG2_ENLOGO_v2.jpg",
|
||||
},
|
||||
{
|
||||
title: "Violet Evergarden: The Movie",
|
||||
@ -92,7 +109,7 @@ export const getRecommendationAnimeAction = async () => {
|
||||
status: "finished",
|
||||
episodes: 1,
|
||||
release_year: "2020",
|
||||
thumbnail_url: "https://example.com/images/violet-movie.jpg",
|
||||
thumbnail_url: "https://myanimelist.net/images/anime/1614/106512l.jpg",
|
||||
},
|
||||
{
|
||||
title: "Devilman Crybaby",
|
||||
@ -101,7 +118,7 @@ export const getRecommendationAnimeAction = async () => {
|
||||
status: "finished",
|
||||
episodes: 10,
|
||||
release_year: "2018",
|
||||
thumbnail_url: "https://example.com/images/devilman.jpg",
|
||||
thumbnail_url: "https://myanimelist.net/images/anime/1046/122722.jpg",
|
||||
},
|
||||
{
|
||||
title: "Mobile Suit Gundam: The Origin",
|
||||
@ -110,7 +127,7 @@ export const getRecommendationAnimeAction = async () => {
|
||||
status: "finished",
|
||||
episodes: 6,
|
||||
release_year: "2015",
|
||||
thumbnail_url: "https://example.com/images/gundam-origin.jpg",
|
||||
thumbnail_url: "https://myanimelist.net/images/anime/4/72702.jpg",
|
||||
},
|
||||
];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user