Liz egg and final preparations

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

18
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "fgo-ta-com-website",
"version": "0.1.17-pre.6",
"version": "0.1.17-pre.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "fgo-ta-com-website",
"version": "0.1.17-pre.6",
"version": "0.1.17-pre.7",
"dependencies": {
"@astro-community/astro-embed-youtube": "^0.4.3",
"@astrojs/check": "^0.5.10",
@ -3064,11 +3064,11 @@
}
},
"node_modules/braces": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
"dependencies": {
"fill-range": "^7.0.1"
"fill-range": "^7.1.1"
},
"engines": {
"node": ">=8"
@ -3826,9 +3826,9 @@
}
},
"node_modules/fill-range": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
"dependencies": {
"to-regex-range": "^5.0.1"
},

View file

@ -1,7 +1,7 @@
{
"name": "fgo-ta-com-website",
"type": "module",
"version": "0.1.17-pre.6",
"version": "0.1.17-pre.7",
"scripts": {
"dev": "astro dev",
"start": "astro dev",

BIN
src/assets/lizsad.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  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%;