Updated data, changed CE card layout

This commit is contained in:
Firq 2023-01-23 19:00:16 +01:00
parent e344bb8118
commit 07d16b3264
Signed by: Firq
GPG key ID: 4DE1059A4666E89F
2 changed files with 153 additions and 10 deletions

View file

@ -8,7 +8,7 @@ export interface Props {
const {mlb, link, name } = Astro.props; const {mlb, link, name } = Astro.props;
const ce_img: string = `ce/${link}.png`; const ce_img: string = `ce/${link}.png`;
let mlb_image: string = ""; let mlb_image: string = "mlbalign";
if(mlb === "false") { if(mlb === "false") {
mlb_image = "hidemlb"; mlb_image = "hidemlb";
@ -30,11 +30,11 @@ if(mlb === "false") {
<style> <style>
.hidemlb { .hidemlb {
display: none; display: none;
height: 1em;
} }
article { article {
background-color: rgb(27, 27, 27); background-color: rgb(27, 27, 27);
float: left;
border-color: #1e1e1e; border-color: #1e1e1e;
padding: 20px; padding: 20px;
padding-top: 5px; padding-top: 5px;
@ -45,6 +45,15 @@ if(mlb === "false") {
transition: transform var(--speed) var(--ease); transition: transform var(--speed) var(--ease);
overflow: hidden; overflow: hidden;
margin: 0px; margin: 0px;
display: grid;
grid-template-columns: auto;
grid-template-rows: auto 11em 3em;
gap: 0px 0px;
grid-auto-flow: row;
grid-template-areas:
"."
"."
".";
} }
article:hover { article:hover {
@ -52,7 +61,7 @@ if(mlb === "false") {
} }
article div { article div {
margin: 1em auto; margin: 0.5em auto;
} }
img { img {
@ -64,14 +73,12 @@ if(mlb === "false") {
.heading-center { .heading-center {
display: table; display: table;
height: 4rem; height: 4rem;
min-width: 11rem;
} }
.heading-center > h1 { .heading-center > h1 {
font-size: 20px; font-size: 1.25em;
color: white; color: white;
max-width: 200px; width: 12rem;
padding-bottom: 0.3rem;
display: table-cell; display: table-cell;
vertical-align: middle; vertical-align: middle;
} }
@ -95,8 +102,14 @@ if(mlb === "false") {
.mlb { .mlb {
width: 60%; width: 60%;
margin-top: 1rem;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
.mlbalign {
width: 10em;
display: flex;
justify-items: center;
align-items: center;
}
</style> </style>

View file

@ -24,9 +24,139 @@
"level": "90", "level": "90",
"np": "1", "np": "1",
"skills": "10 / 10 / 10 ", "skills": "10 / 10 / 10 ",
"ml": "Not Unlocked", "ml": "7",
"image_servant": "castoria_02",
"image_bond": "castoria",
"bond10": "true"
},
{
"name": "Castoria",
"level": "70",
"np": "1",
"skills": "10 / 10 / 10 ",
"ml": "1",
"image_servant": "castoria_01", "image_servant": "castoria_01",
"image_bond": "castoria", "image_bond": "castoria",
"bond10": "true" "bond10": "true"
},
{
"name": "Merlin",
"level": "90",
"np": "1",
"skills": "10 / 10 / 10 ",
"ml": "Not Unlocked",
"image_servant": "merlin_03",
"image_bond": "merlin",
"bond10": "false"
},
{
"name": "Waver",
"level": "90",
"np": "1",
"skills": "10 / 10 / 10 ",
"ml": "Not Unlocked",
"image_servant": "waver_02",
"image_bond": "waver",
"bond10": "true"
},
{
"name": "Reines",
"level": "90",
"np": "1",
"skills": "10 / 10 / 10 ",
"ml": "9",
"image_servant": "reines_01",
"image_bond": "reines",
"bond10": "true"
},
{
"name": "Tamamo-no-Mae",
"level": "90",
"np": "2",
"skills": "10 / 10 / 10 ",
"ml": "Not Unlocked",
"image_servant": "tamamo_03",
"image_bond": "tamamo",
"bond10": "true"
},
{
"name": "Van Gogh",
"level": "90",
"np": "1",
"skills": "10 / 10 / 10 ",
"ml": "Not Unlocked",
"image_servant": "gogh_01",
"image_bond": "gogh",
"bond10": "false"
},
{
"name": "Nero (Bride)",
"level": "90",
"np": "1",
"skills": "10 / 10 / 9 ",
"ml": "Not Unlocked",
"image_servant": "bride_03",
"image_bond": "bride",
"bond10": "false"
},
{
"name": "Nightingale (Santa)",
"level": "80",
"np": "5",
"skills": "9 / 10 / 10 ",
"ml": "Not Unlocked",
"image_servant": "santagale_01",
"image_bond": "santagale",
"bond10": "true"
},
{
"name": "Nightingale (Santa)",
"level": "60",
"np": "1",
"skills": "1 / 10 / 10 ",
"ml": "Not Unlocked",
"image_servant": "santagale_01",
"image_bond": "santagale",
"bond10": "true"
},
{
"name": "Elisabeth Báthory",
"level": "40",
"np": "1",
"skills": "9 / 9 / X ",
"ml": "Not Unlocked",
"image_servant": "liz_01",
"image_bond": "liz",
"bond10": "false"
},
{
"name": "Wu Zetian",
"level": "60",
"np": "1",
"skills": "9 / 1 / 9 ",
"ml": "Not Unlocked",
"image_servant": "wu_01",
"image_bond": "wu",
"bond10": "true"
},
{
"name": "Ibaraki-Douji",
"level": "40",
"np": "1",
"skills": "8 / 8 / X ",
"ml": "Not Unlocked",
"image_servant": "ibaraki_02",
"image_bond": "ibaraki",
"bond10": "false"
},
{
"name": "Calamity Jane",
"level": "60",
"np": "1",
"skills": "1 / 9 / 9 ",
"ml": "Not Unlocked",
"image_servant": "jane_03",
"image_bond": "jane",
"bond10": "false"
} }
] ]