From 3eccbb69d3c81508c7ec637532d1210630ea557f Mon Sep 17 00:00:00 2001 From: Firq Date: Sat, 4 Mar 2023 21:25:00 +0100 Subject: [PATCH] Added favourites, fixed cards, merge this for first deploy --- src/components/favouriteCard.astro | 90 ++++++++++++++++++++++++++++++ src/components/hero.astro | 6 +- src/components/navbar.astro | 3 +- src/components/servantCard.astro | 4 ++ src/pages/about.astro | 2 +- src/pages/blog.astro | 2 +- src/pages/index.astro | 8 ++- src/pages/servants.astro | 2 +- src/pages/ta-collection.astro | 2 +- static/_favouritesdata.json | 12 ++++ 10 files changed, 122 insertions(+), 9 deletions(-) create mode 100644 src/components/favouriteCard.astro create mode 100644 static/_favouritesdata.json diff --git a/src/components/favouriteCard.astro b/src/components/favouriteCard.astro new file mode 100644 index 0000000..aeb9389 --- /dev/null +++ b/src/components/favouriteCard.astro @@ -0,0 +1,90 @@ +--- +export interface Props { + name: string; + origin: string; + image: string; +} + +const {image, origin, name } = Astro.props; + +const img: string = `favourites/${image}.png`; + +--- + +
+
{name}
+ {name} +

+ {origin} +

+
+ + \ No newline at end of file diff --git a/src/components/hero.astro b/src/components/hero.astro index b7dccf0..b1ade07 100644 --- a/src/components/hero.astro +++ b/src/components/hero.astro @@ -3,7 +3,7 @@ ---
- Firq FGO Site +This is still a work in progress and continuously expanded. Feel free to look around.
@@ -12,9 +12,11 @@ display: flex; width: 100%; height: 10em; - background-color: grey; + background-color: #2e2e2e; text-align: center; align-items: center; justify-content: center; + color: white; + font-size: 1.5em; } \ No newline at end of file diff --git a/src/components/navbar.astro b/src/components/navbar.astro index c6aef32..ddc8794 100644 --- a/src/components/navbar.astro +++ b/src/components/navbar.astro @@ -48,8 +48,7 @@ list-style-type: none; row-gap: 0.5em; column-gap: 0.5ch; - margin-block-start: 0px; - margin-block-end: 0px; + margin: 0px; line-height: 1.5em; } .mobile > ul { diff --git a/src/components/servantCard.astro b/src/components/servantCard.astro index f7e194b..76db59d 100644 --- a/src/components/servantCard.astro +++ b/src/components/servantCard.astro @@ -60,12 +60,16 @@ if(bond10 === "false") { } article { + display: flex; + flex-wrap: wrap; + flex-direction: column; background-color: rgb(27, 27, 27); border-color: #1e1e1e; padding: 0em 0.75em; width: 40%; height: auto; justify-content: center; + align-items: center; text-align: center; transition: transform var(--speed) var(--ease); } diff --git a/src/pages/about.astro b/src/pages/about.astro index 5be32e8..80f7de5 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -11,7 +11,7 @@ import ContactCard from '../components/contactCard.astro'; import contactdata from '../../static/_contactdata.json' --- - + This is a small sideproject that I'm creating. It uses Astro for developing and Gitlab for providing the site. diff --git a/src/pages/blog.astro b/src/pages/blog.astro index e135333..f418f1f 100644 --- a/src/pages/blog.astro +++ b/src/pages/blog.astro @@ -4,7 +4,7 @@ import BasicSection from '../layouts/basicSection.astro'; --- - + Nothing to see here (yet) diff --git a/src/pages/index.astro b/src/pages/index.astro index 467c42c..603fa11 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,11 +1,17 @@ --- import Layout from '../layouts/Layout.astro'; import Hero from '../components/hero.astro'; +import BaseSection from '../layouts/baseSection.astro'; +import FavouriteCard from '../components/favouriteCard.astro'; +import favouritesdata from '../../static/_favouritesdata.json' --- - + + + {favouritesdata.map((item) => ())} +