Added servant and turns to TA collection

This commit is contained in:
Firq 2023-03-16 17:25:45 +01:00
parent 65032859a0
commit 7b194c844e
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
9 changed files with 172 additions and 47 deletions

View file

@ -5,9 +5,11 @@ export interface Props {
link: string link: string
image: string image: string
user?: string user?: string
ta_servant?: string
turns?: string
} }
const { user, date, image, link, title } = Astro.props const { turns, ta_servant, user, date, image, link, title } = Astro.props
const options_date: Intl.DateTimeFormatOptions = { const options_date: Intl.DateTimeFormatOptions = {
year: 'numeric', year: 'numeric',
@ -17,6 +19,7 @@ const options_date: Intl.DateTimeFormatOptions = {
const formatted_date = new Date(date).toLocaleDateString('de-DE', options_date) const formatted_date = new Date(date).toLocaleDateString('de-DE', options_date)
const icon: string = `background: url('/assets/ta_icons/${image}.webp')` const icon: string = `background: url('/assets/ta_icons/${image}.webp')`
const servant: string = `/assets/ta_icons/ta_servants/${ta_servant}.webp`
let hasuser = '' let hasuser = ''
if (user !== undefined) { if (user !== undefined) {
@ -26,7 +29,7 @@ if (user !== undefined) {
<a href={link} target="_blank" rel="noopener noreferrer" aria-label={title}> <a href={link} target="_blank" rel="noopener noreferrer" aria-label={title}>
<article> <article>
<div style={icon}> <div class="icon" style={icon}>
<span> <span>
<h2>{title}</h2> <h2>{title}</h2>
</span> </span>
@ -37,6 +40,10 @@ if (user !== undefined) {
</span> </span>
{formatted_date} {formatted_date}
</p> </p>
<div class="expand-on-hover">
<img src={servant} alt="" />
<h2>{turns}</h2>
</div>
</article> </article>
</a> </a>
@ -62,14 +69,14 @@ if (user !== undefined) {
article:hover { article:hover {
transform: scale(var(--hover-scale)); transform: scale(var(--hover-scale));
} }
article > div { article > .icon {
width: 128px; width: 128px;
height: 128px; height: 128px;
object-fit: cover; object-fit: cover;
object-position: 0% 0%; object-position: 0% 0%;
} }
article:hover div span { article:hover .icon span {
padding: 0.5rem 0.5rem; padding: 0.5rem 0.5rem;
display: flex; display: flex;
align-items: center; align-items: center;
@ -94,11 +101,11 @@ if (user !== undefined) {
display: none; display: none;
} }
article div span { article .icon span {
display: none; display: none;
} }
div { .icon {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -119,4 +126,37 @@ if (user !== undefined) {
flex-wrap: wrap; flex-wrap: wrap;
flex-direction: column; flex-direction: column;
} }
.expand-on-hover {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: space-evenly;
background-color: var(--c-duskgray);
z-index: 99;
transform: scaleY(0);
transform-origin: top;
position: absolute;
top: 95%;
left: 0px;
right: 0px;
color: white;
}
.expand-on-hover img {
width: 3rem;
height: 3rem;
margin: 0.5rem;
}
.expand-on-hover h2 {
margin: 0.5rem;
}
article:hover .expand-on-hover {
transform: scaleY(1);
transition: transform 200ms ease-in-out;
background-color: var(--c-duskgray);
}
</style> </style>

View file

@ -44,6 +44,13 @@ const description = 'A collection of TAs previously completed be Firq.'
> >
{featured_data.map((item) => <TaCard {...item} />)} {featured_data.map((item) => <TaCard {...item} />)}
</TaSection> </TaSection>
<div class="placeholder"></div>
</Layout> </Layout>
<style></style> <style>
.placeholder {
visibility: hidden;
width: 100%;
height: 5rem;
}
</style>

View file

@ -4,132 +4,170 @@
"link": "https://www.youtube.com/watch?v=nYV4jwgpuR0", "link": "https://www.youtube.com/watch?v=nYV4jwgpuR0",
"image": "db", "image": "db",
"date": "2022-07-14", "date": "2022-07-14",
"user": "KOG" "user": "KOG",
"ta_servant": "shishou",
"turns": "7T"
}, },
{ {
"title": "DB 7T", "title": "DB 7T",
"link": "https://www.youtube.com/watch?v=jKoSw1XM6-c", "link": "https://www.youtube.com/watch?v=jKoSw1XM6-c",
"image": "db", "image": "db",
"date": "2022-07-07", "date": "2022-07-07",
"user": "Requiem" "user": "Requiem",
"ta_servant": "shishou",
"turns": "7T"
}, },
{ {
"title": "Valentines 2023 CQ 5T SC", "title": "Valentines 2023 CQ 5T SC",
"link": "https://www.youtube.com/watch?v=AkDFyJ98GDQ", "link": "https://www.youtube.com/watch?v=AkDFyJ98GDQ",
"image": "orion", "image": "orion",
"date": "2023-02-23", "date": "2023-02-23",
"user": "Requiem" "user": "Requiem",
"ta_servant": "shishou",
"turns": "5T"
}, },
{ {
"title": "Ibuki 3T (Lostbelt 5.5)", "title": "Ibuki 3T (Lostbelt 5.5)",
"link": "https://www.youtube.com/watch?v=zHGvHC0CUu0", "link": "https://www.youtube.com/watch?v=zHGvHC0CUu0",
"image": "ibuki", "image": "ibuki",
"date": "2022-11-22", "date": "2022-11-22",
"user": "Requiem" "user": "Requiem",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "Kingprotea 1T", "title": "Kingprotea 1T",
"link": "https://www.youtube.com/watch?v=iAhwqIGWsG4", "link": "https://www.youtube.com/watch?v=iAhwqIGWsG4",
"image": "kingprotea", "image": "kingprotea",
"date": "2022-09-13", "date": "2022-09-13",
"user": "Requiem" "user": "Requiem",
"ta_servant": "shishou",
"turns": "1T"
}, },
{ {
"title": "Golden Caenis 3T (LB5.2)", "title": "Golden Caenis 3T (LB5.2)",
"link": "https://www.youtube.com/watch?v=_yZYgdr6XA4", "link": "https://www.youtube.com/watch?v=_yZYgdr6XA4",
"image": "caenis", "image": "caenis",
"date": "2022-04-22", "date": "2022-04-22",
"user": "Requiem" "user": "Requiem",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "GudaGuda 4 CQ 3T [No DMG CE]", "title": "GudaGuda 4 CQ 3T [No DMG CE]",
"link": "https://www.youtube.com/watch?v=oCT7ngip82U", "link": "https://www.youtube.com/watch?v=oCT7ngip82U",
"image": "shibata", "image": "shibata",
"date": "2022-04-26", "date": "2022-04-26",
"user": "Requiem" "user": "Requiem",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "Valentines 2023 CQ 4T", "title": "Valentines 2023 CQ 4T",
"link": "https://www.youtube.com/watch?v=6WyPFYT8h1c", "link": "https://www.youtube.com/watch?v=6WyPFYT8h1c",
"image": "orion", "image": "orion",
"date": "2023-02-25", "date": "2023-02-25",
"user": "KOG" "user": "KOG",
"ta_servant": "summershishou",
"turns": "4T"
}, },
{ {
"title": "Ooku Rerun CQ 4T", "title": "Ooku Rerun CQ 4T",
"link": "https://www.youtube.com/watch?v=EU2THj6GnhQ", "link": "https://www.youtube.com/watch?v=EU2THj6GnhQ",
"image": "kiyohime", "image": "kiyohime",
"date": "2022-08-12", "date": "2022-08-12",
"user": "KOG" "user": "KOG",
"ta_servant": "summershishou",
"turns": "4T"
}, },
{ {
"title": "Amazoness 2021 CQ 3T", "title": "Amazoness 2021 CQ 3T",
"link": "https://www.youtube.com/watch?v=l2cmlS9LKSU", "link": "https://www.youtube.com/watch?v=l2cmlS9LKSU",
"image": "penth", "image": "penth",
"date": "2022-01-22", "date": "2022-01-22",
"user": "KOG" "user": "KOG",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "Christmas 2021 CQ 4T", "title": "Christmas 2021 CQ 4T",
"link": "https://www.youtube.com/watch?v=PrJvjo3fvVc", "link": "https://www.youtube.com/watch?v=PrJvjo3fvVc",
"image": "santagale", "image": "santagale",
"date": "2021-12-20", "date": "2021-12-20",
"user": "KOG" "user": "KOG",
"ta_servant": "summershishou",
"turns": "4T"
}, },
{ {
"title": "GudaGuda 4 CQ 3T", "title": "GudaGuda 4 CQ 3T",
"link": "https://www.youtube.com/watch?v=e9H37cnW160", "link": "https://www.youtube.com/watch?v=e9H37cnW160",
"image": "shibata", "image": "shibata",
"date": "2021-06-29", "date": "2021-06-29",
"user": "KOG" "user": "KOG",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "GudaGuda 5 CQ 4T", "title": "GudaGuda 5 CQ 4T",
"link": "https://www.youtube.com/watch?v=HmrWnxp8Qz0", "link": "https://www.youtube.com/watch?v=HmrWnxp8Qz0",
"image": "nobunaga", "image": "nobunaga",
"date": "2022-09-24", "date": "2022-09-24",
"user": "Ray" "user": "Ray",
"ta_servant": "jalter",
"turns": "4T"
}, },
{ {
"title": "GudaGuda 5 CQ 4T", "title": "GudaGuda 5 CQ 4T",
"link": "https://www.youtube.com/watch?v=pcvhCQq5gFE", "link": "https://www.youtube.com/watch?v=pcvhCQq5gFE",
"image": "nobunaga", "image": "nobunaga",
"date": "2022-09-23", "date": "2022-09-23",
"user": "Ray" "user": "Ray",
"ta_servant": "summerjalter",
"turns": "4T"
}, },
{ {
"title": "Ibuki 3T (Lostbelt 5.5)", "title": "Ibuki 3T (Lostbelt 5.5)",
"link": "https://www.youtube.com/watch?v=pcvhCQq5gFE", "link": "https://www.youtube.com/watch?v=4NgfXE1WY5I",
"image": "ibuki", "image": "ibuki",
"date": "2022-11-26", "date": "2022-11-26",
"user": "Ray" "user": "Ray",
"ta_servant": "jalter",
"turns": "3T"
}, },
{ {
"title": "Douman 3T (Lostbelt 5.5)", "title": "Douman 3T (Lostbelt 5.5)",
"link": "https://www.youtube.com/watch?v=CIoNRC4tDrY", "link": "https://www.youtube.com/watch?v=CIoNRC4tDrY",
"image": "douman", "image": "douman",
"date": "2022-11-27", "date": "2022-11-27",
"user": "Ray" "user": "Ray",
"ta_servant": "musashi",
"turns": "3T"
}, },
{ {
"title": "Boxing 3T (Xmas 5)", "title": "Boxing 3T (Xmas 5)",
"link": "https://www.youtube.com/watch?v=0ErT8Qbzuw8", "link": "https://www.youtube.com/watch?v=0ErT8Qbzuw8",
"image": "dioscuri", "image": "dioscuri",
"date": "2022-12-18", "date": "2022-12-18",
"user": "Ray" "user": "Ray",
"ta_servant": "jalter",
"turns": "3T"
}, },
{ {
"title": "Slapstick Museum CQ 5T", "title": "Slapstick Museum CQ 5T",
"link": "https://www.youtube.com/watch?v=QtthHB6rk7k", "link": "https://www.youtube.com/watch?v=QtthHB6rk7k",
"image": "moriarty", "image": "moriarty",
"date": "2023-03-10", "date": "2023-03-10",
"user": "Ray" "user": "Ray",
"ta_servant": "jalter",
"turns": "5T"
}, },
{ {
"title": "Little Big Tengu CQ 4T", "title": "Little Big Tengu CQ 4T",
"link": "https://www.youtube.com/watch?v=50Adjx4owhg", "link": "https://www.youtube.com/watch?v=50Adjx4owhg",
"image": "taira", "image": "taira",
"date": "2023-01-29", "date": "2023-01-29",
"user": "Ray" "user": "Ray",
"ta_servant": "jalter",
"turns": "4T"
} }
] ]

View file

@ -3,120 +3,160 @@
"title": "DB 7T (No Duplicates)", "title": "DB 7T (No Duplicates)",
"link": "https://www.youtube.com/watch?v=d1ftVeitR6c", "link": "https://www.youtube.com/watch?v=d1ftVeitR6c",
"image": "db", "image": "db",
"date": "2022-07-09" "date": "2022-07-09",
"ta_servant": "shishou",
"turns": "7T"
}, },
{ {
"title": "Kingprotea 1T", "title": "Kingprotea 1T",
"link": "https://www.youtube.com/watch?v=m3SATSOfpt4", "link": "https://www.youtube.com/watch?v=m3SATSOfpt4",
"image": "kingprotea", "image": "kingprotea",
"date": "2022-06-21" "date": "2022-06-21",
"ta_servant": "shishou",
"turns": "1T"
}, },
{ {
"title": "Solomon 1T (No NP)", "title": "Solomon 1T (No NP)",
"link": "https://www.youtube.com/watch?v=01Qx4Hs-X4M", "link": "https://www.youtube.com/watch?v=01Qx4Hs-X4M",
"image": "solomon", "image": "solomon",
"date": "2022-06-28" "date": "2022-06-28",
"ta_servant": "shishou",
"turns": "1T"
}, },
{ {
"title": "Ibuki 3T (Lostbelt 5.5)", "title": "Ibuki 3T (Lostbelt 5.5)",
"link": "https://www.youtube.com/watch?v=AaqRN73dO5k", "link": "https://www.youtube.com/watch?v=AaqRN73dO5k",
"image": "ibuki", "image": "ibuki",
"date": "2022-11-22" "date": "2022-11-22",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "Boxing 3T (Xmas 5)", "title": "Boxing 3T (Xmas 5)",
"link": "https://www.youtube.com/watch?v=S8OQ7yWldJY", "link": "https://www.youtube.com/watch?v=S8OQ7yWldJY",
"image": "dioscuri", "image": "dioscuri",
"date": "2022-12-24" "date": "2022-12-24",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "MHXX 2T (No DMG CE)", "title": "MHXX 2T (No DMG CE)",
"link": "https://www.youtube.com/watch?v=lz6iBZvoDuw", "link": "https://www.youtube.com/watch?v=lz6iBZvoDuw",
"image": "mhxx", "image": "mhxx",
"date": "2023-01-12" "date": "2023-01-12",
"ta_servant": "shishou",
"turns": "2T"
}, },
{ {
"title": "Taira 3T (Lostbelt 5.5)", "title": "Taira 3T (Lostbelt 5.5)",
"link": "https://www.youtube.com/watch?v=YtRvahqFA0Y", "link": "https://www.youtube.com/watch?v=YtRvahqFA0Y",
"image": "taira", "image": "taira",
"date": "2022-11-22" "date": "2022-11-22",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "Douman 3T (Lostbelt 5.5)", "title": "Douman 3T (Lostbelt 5.5)",
"link": "https://www.youtube.com/watch?v=6cstr3vTd8Y", "link": "https://www.youtube.com/watch?v=6cstr3vTd8Y",
"image": "douman", "image": "douman",
"date": "2022-11-23" "date": "2022-11-23",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "Christmas 2021 Rerun CQ 5T", "title": "Christmas 2021 Rerun CQ 5T",
"link": "https://www.youtube.com/watch?v=cpqhx9dUgTU", "link": "https://www.youtube.com/watch?v=cpqhx9dUgTU",
"image": "santagale", "image": "santagale",
"date": "2022-10-15" "date": "2022-10-15",
"ta_servant": "shishou",
"turns": "5T"
}, },
{ {
"title": "Summer 4 Rerun CQ 3T", "title": "Summer 4 Rerun CQ 3T",
"link": "https://www.youtube.com/watch?v=u72o7PDBtks", "link": "https://www.youtube.com/watch?v=u72o7PDBtks",
"image": "fuuma", "image": "fuuma",
"date": "2022-06-04" "date": "2022-06-04",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "Fate/Requiem CQ 3T", "title": "Fate/Requiem CQ 3T",
"link": "https://www.youtube.com/watch?v=k7vGC4kpEFg", "link": "https://www.youtube.com/watch?v=k7vGC4kpEFg",
"image": "erice", "image": "erice",
"date": "2022-05-11" "date": "2022-05-11",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "Kirschtaria 3T (Lostbelt 5)", "title": "Kirschtaria 3T (Lostbelt 5)",
"link": "https://www.youtube.com/watch?v=aYlyfAzuFw0", "link": "https://www.youtube.com/watch?v=aYlyfAzuFw0",
"image": "kirschtaria", "image": "kirschtaria",
"date": "2022-04-04" "date": "2022-04-04",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "Aeaean Spring Breeze CQ 3T", "title": "Aeaean Spring Breeze CQ 3T",
"link": "https://www.youtube.com/watch?v=uo3jI9xuVwI", "link": "https://www.youtube.com/watch?v=uo3jI9xuVwI",
"image": "odysseus", "image": "odysseus",
"date": "2022-03-06" "date": "2022-03-06",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "Valentines 2022 CQ 4T", "title": "Valentines 2022 CQ 4T",
"link": "https://www.youtube.com/watch?v=MOCMXZ17FkU", "link": "https://www.youtube.com/watch?v=MOCMXZ17FkU",
"image": "sei", "image": "sei",
"date": "2022-02-09" "date": "2022-02-09",
"ta_servant": "shishou",
"turns": "4T"
}, },
{ {
"title": "Amazoness 2021 CQ 3T", "title": "Amazoness 2021 CQ 3T",
"link": "https://www.youtube.com/watch?v=MU_Hw2KKYRU", "link": "https://www.youtube.com/watch?v=MU_Hw2KKYRU",
"image": "penth", "image": "penth",
"date": "2022-01-23" "date": "2022-01-23",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "Valentines 2023 CQ 4T", "title": "Valentines 2023 CQ 4T",
"link": "https://www.youtube.com/watch?v=fwCmEiaocQo", "link": "https://www.youtube.com/watch?v=fwCmEiaocQo",
"image": "orion", "image": "orion",
"date": "2023-02-25" "date": "2023-02-25",
"ta_servant": "shishou",
"turns": "4T"
}, },
{ {
"title": "Slapstick Museum CQ 5T", "title": "Slapstick Museum CQ 5T",
"link": "https://www.youtube.com/watch?v=fQImgJirFeo", "link": "https://www.youtube.com/watch?v=fQImgJirFeo",
"image": "moriarty", "image": "moriarty",
"date": "2023-03-10" "date": "2023-03-10",
"ta_servant": "shishou",
"turns": "5T"
}, },
{ {
"title": "GudaGuda 5 CQ 4T", "title": "GudaGuda 5 CQ 4T",
"link": "https://www.youtube.com/watch?v=3scILqsgobU", "link": "https://www.youtube.com/watch?v=3scILqsgobU",
"image": "nobunaga", "image": "nobunaga",
"date": "2022-09-21" "date": "2022-09-21",
"ta_servant": "shishou",
"turns": "4T"
}, },
{ {
"title": "GudaGuda 4 CQ 3T [No DMG CE]", "title": "GudaGuda 4 CQ 3T [No DMG CE]",
"link": "https://www.youtube.com/watch?v=HY95cWsjC08", "link": "https://www.youtube.com/watch?v=HY95cWsjC08",
"image": "shibata", "image": "shibata",
"date": "2022-04-30" "date": "2022-04-30",
"ta_servant": "shishou",
"turns": "3T"
}, },
{ {
"title": "GudaGuda 4 CQ 3T", "title": "GudaGuda 4 CQ 3T",
"link": "https://www.youtube.com/watch?v=7iO2WQt64-8", "link": "https://www.youtube.com/watch?v=7iO2WQt64-8",
"image": "shibata", "image": "shibata",
"date": "2022-04-26" "date": "2022-04-26",
"ta_servant": "shishou",
"turns": "3T"
} }
] ]

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB