Liz egg and final preparations

This commit is contained in:
Firq 2024-06-14 00:00:23 +02:00
parent 7ee1afa674
commit e577cf3861
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
4 changed files with 32 additions and 10 deletions

BIN
src/assets/lizsad.png Normal file

Binary file not shown.

After

(image error) Size: 191 KiB

View file

@ -3,6 +3,8 @@ import Layout from '../layouts/Layout.astro'
import BaseSection from '../layouts/baseSection.astro'
import TACard from '../components/taCard.astro'
import { plsLoadTAEntry } from '../utils/tools'
import { Image } from 'astro:assets'
import lizsad from '../assets/lizsad.png'
export interface Props {
collection: "teslafest" | "taInfoData"
@ -13,6 +15,7 @@ export interface Props {
const { collection, collectionKey, baseurl } = Astro.props
const taEntry = await plsLoadTAEntry(collectionKey, collection)
const pagetitle = `${taEntry.info.title} - FGO TA`
const displaystate = taEntry.quests[0].data.length > 0 ? "none" : "flex"
---
<Layout
@ -32,10 +35,29 @@ const pagetitle = `${taEntry.info.title} - FGO TA`
</BaseSection>
))
}
<div style=`display: ${displaystate}` class="overridewrapper">
<Image class="overrideimage" src={lizsad} alt="Sad override if there are no runs" loading="eager"></Image>
</div>
<div class="placeholder"></div>
</Layout>
<style>
.overridewrapper {
justify-content: center;
margin-left: auto;
margin-right: auto;
height: 100%;
width: 100%;
}
.overrideimage {
overflow: auto;
height: auto;
width: auto;
max-width: max-content;
max-height: 16rem;
padding: 0px 1rem;
border-radius: 4rem;
}
.placeholder {
visibility: hidden;
width: 100%;