Liz egg and final preparations
All checks were successful
/ build-site (push) Successful in 1m37s
/ publish (push) Successful in 7s
/ checking (push) Successful in 11s

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

18
package-lock.json generated
View file

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

View file

@ -1,7 +1,7 @@
{ {
"name": "fgo-ta-com-website", "name": "fgo-ta-com-website",
"type": "module", "type": "module",
"version": "0.1.17-pre.6", "version": "0.1.17-pre.7",
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"start": "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 BaseSection from '../layouts/baseSection.astro'
import TACard from '../components/taCard.astro' import TACard from '../components/taCard.astro'
import { plsLoadTAEntry } from '../utils/tools' import { plsLoadTAEntry } from '../utils/tools'
import { Image } from 'astro:assets'
import lizsad from '../assets/lizsad.png'
export interface Props { export interface Props {
collection: "teslafest" | "taInfoData" collection: "teslafest" | "taInfoData"
@ -13,6 +15,7 @@ export interface Props {
const { collection, collectionKey, baseurl } = Astro.props const { collection, collectionKey, baseurl } = Astro.props
const taEntry = await plsLoadTAEntry(collectionKey, collection) const taEntry = await plsLoadTAEntry(collectionKey, collection)
const pagetitle = `${taEntry.info.title} - FGO TA` const pagetitle = `${taEntry.info.title} - FGO TA`
const displaystate = taEntry.quests[0].data.length > 0 ? "none" : "flex"
--- ---
<Layout <Layout
@ -32,10 +35,29 @@ const pagetitle = `${taEntry.info.title} - FGO TA`
</BaseSection> </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> <div class="placeholder"></div>
</Layout> </Layout>
<style> <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 { .placeholder {
visibility: hidden; visibility: hidden;
width: 100%; width: 100%;