diff --git a/src/components/ceCard.astro b/src/components/ceCard.astro new file mode 100644 index 0000000..426ee76 --- /dev/null +++ b/src/components/ceCard.astro @@ -0,0 +1,102 @@ +--- +export interface Props { + name: string; + link: string; + mlb: string; +} + +const {mlb, link, name } = Astro.props; + +const ce_img: string = `ce/${link}.png`; +let mlb_image: string = ""; + +if(mlb === "false") { + mlb_image = "hidemlb"; +} +--- + +
+
+

{name}

+
+
+ A Fragment of 2030 +
+
+ Max-limit broken +
+
+ + \ No newline at end of file diff --git a/src/components/servantCard.astro b/src/components/servantCard.astro index 15dd7e7..6abcda4 100644 --- a/src/components/servantCard.astro +++ b/src/components/servantCard.astro @@ -28,19 +28,14 @@ if(bond10 === "false") {

Level {level}
{skills}
- {np}

+ NP {np}
-

Mana Loading: {ml}

+

Mana Loading: {ml === "Not Unlocked" &&
}{ml}

\ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 0761b95..da047d9 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,44 +1,21 @@ --- import Layout from '../layouts/Layout.astro'; +import BaseSection from '../layouts/baseSection.astro'; import ServantCard from '../components/servantCard.astro'; +import CeCard from '../components/ceCard.astro'; + +import servantdata from '../../static/servantdata.json' +import cedata from '../../static/cedata.json' --- - -
-
-

Servant offering

-
- -
-
-
+ + + {servantdata.map((item) => ())} + + + {cedata.map((item) => ())} + diff --git a/static/cedata.json b/static/cedata.json new file mode 100644 index 0000000..192f9b3 --- /dev/null +++ b/static/cedata.json @@ -0,0 +1,12 @@ +[ + { + "name": "The Merciless One", + "link": "merciless_one", + "mlb": "true" + }, + { + "name": "Vessel of the Saint", + "link": "vessel", + "mlb": "false" + } +] diff --git a/static/servantdata.json b/static/servantdata.json new file mode 100644 index 0000000..29230c8 --- /dev/null +++ b/static/servantdata.json @@ -0,0 +1,29 @@ +[ + { + "name": "Skadi", + "level": "120", + "np": "4", + "skills": "10 / 10 / 10 ", + "ml": "10", + "asc": "03", + "bond10": "true" + }, + { + "name": "Skadi", + "level": "70", + "np": "1", + "skills": "10 / 10 / 10 ", + "ml": "1", + "asc": "01", + "bond10": "true" + }, + { + "name": "Castoria", + "level": "90", + "np": "1", + "skills": "10 / 10 / 10 ", + "ml": "Not Unlocked", + "asc": "01", + "bond10": "true" + } +]