0.1.14 build
All checks were successful
/ publish (push) Successful in 6s
/ deploy-unlighthouse-files (push) Successful in 7s
/ unlighthouse (push) Successful in 26s
/ deploy-unlighthouse-site (push) Successful in 5s
/ checking (push) Successful in 41s
/ build-site (push) Successful in 1m18s
/ release (push) Successful in 7s

This commit is contained in:
Firq 2024-01-07 13:01:36 +01:00
parent cbf8f0d2ea
commit 45319bcbf0
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
10 changed files with 93 additions and 66 deletions

View file

@ -1,5 +1,6 @@
import { defineConfig } from 'astro/config' import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap' import sitemap from '@astrojs/sitemap';
import metaTags from "astro-meta-tags";
export default defineConfig({ export default defineConfig({
sitemap: true, sitemap: true,
@ -7,6 +8,6 @@ export default defineConfig({
outDir: 'dist', outDir: 'dist',
publicDir: 'static', publicDir: 'static',
site: 'https://fgo-ta.com/', site: 'https://fgo-ta.com/',
integrations: [sitemap()], integrations: [sitemap(), metaTags()],
trailingSlash: "never" trailingSlash: "never"
}) });

9
package-lock.json generated
View file

@ -12,6 +12,7 @@
"@astrojs/check": "^0.3.4", "@astrojs/check": "^0.3.4",
"@astrojs/sitemap": "^3.0.3", "@astrojs/sitemap": "^3.0.3",
"astro": "^4.0.7", "astro": "^4.0.7",
"astro-meta-tags": "^0.1.3",
"autoprefixer": "^10.4.16", "autoprefixer": "^10.4.16",
"iconoir": "^7.3.0", "iconoir": "^7.3.0",
"postcss-preset-env": "^9.3.0", "postcss-preset-env": "^9.3.0",
@ -2366,6 +2367,14 @@
"sharp": "^0.32.5" "sharp": "^0.32.5"
} }
}, },
"node_modules/astro-meta-tags": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/astro-meta-tags/-/astro-meta-tags-0.1.3.tgz",
"integrity": "sha512-hQ2JK9deBBPI94umeQxnj2hrs1hJ9pJcnqK8XjyZNnBq6pHefR5dpRXTzHDoxr1V4TjIQho0P9F2NG7JdaQhHA==",
"peerDependencies": {
"astro": "^4.0.0"
}
},
"node_modules/astro/node_modules/@types/node": { "node_modules/astro/node_modules/@types/node": {
"version": "20.10.5", "version": "20.10.5",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz",

View file

@ -1,7 +1,7 @@
{ {
"name": "fgo-ta-com-website", "name": "fgo-ta-com-website",
"type": "module", "type": "module",
"version": "0.1.13", "version": "0.1.14",
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"start": "astro dev", "start": "astro dev",
@ -14,6 +14,7 @@
"@astrojs/check": "^0.3.4", "@astrojs/check": "^0.3.4",
"@astrojs/sitemap": "^3.0.3", "@astrojs/sitemap": "^3.0.3",
"astro": "^4.0.7", "astro": "^4.0.7",
"astro-meta-tags": "^0.1.3",
"autoprefixer": "^10.4.16", "autoprefixer": "^10.4.16",
"iconoir": "^7.3.0", "iconoir": "^7.3.0",
"postcss-preset-env": "^9.3.0", "postcss-preset-env": "^9.3.0",

13
postcss.config.cjs Normal file
View file

@ -0,0 +1,13 @@
module.exports = {
plugins: {
"postcss-preset-env": {
autoprefixer: { flexbox: "no-2009" },
stage: 2,
features: {
"custom-properties": false,
"custom-media-queries": true,
"nesting-rules": true
}
}
}
};

View file

@ -86,6 +86,14 @@
"servant": "shishou", "servant": "shishou",
"turns": "4T", "turns": "4T",
"runner": "KOG" "runner": "KOG"
},
{
"title": "Amakusa 4T",
"link": "https://www.youtube.com/watch?v=hRu3EskLExE",
"date": "2023-07-27",
"servant": "amakusa",
"turns": "4T",
"runner": "Yier"
} }
] ]
} }

View file

@ -5,6 +5,7 @@ import navdata from '../../static/data/_navdata.json'
import embed from '../assets/embed.png' import embed from '../assets/embed.png'
import home from 'iconoir/icons/home.svg' import home from 'iconoir/icons/home.svg'
import database from 'iconoir/icons/database.svg' import database from 'iconoir/icons/database.svg'
import mail from 'iconoir/icons/mail.svg'
import type { IconsLookup } from '../types/generic' import type { IconsLookup } from '../types/generic'
export interface Props { export interface Props {
@ -16,6 +17,7 @@ export interface Props {
const icons: IconsLookup = { const icons: IconsLookup = {
home: home, home: home,
database: database, database: database,
about: mail
} }
const { descriptionOverride, currentpage, title } = Astro.props const { descriptionOverride, currentpage, title } = Astro.props

View file

@ -21,26 +21,21 @@ const { title, description } = Astro.props
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
}
div > div { div {
row-gap: 1em; gap: 1em;
column-gap: 1em;
justify-content: center;
align-self: center; align-self: center;
display: flex;
flex-flow: row wrap; flex-flow: row wrap;
padding-top: 1em; padding-top: 1em;
position: relative; position: relative;
} }
div h1 {
h1 {
font-size: 40px; font-size: 40px;
line-height: 48px; line-height: 48px;
letter-spacing: -1px; letter-spacing: -1px;
color: white; color: white;
margin-top: 2rem; margin: 2rem auto 0px auto;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
padding: 0.25rem 1.5rem; padding: 0.25rem 1.5rem;
border-radius: 0.5rem; border-radius: 0.5rem;
max-width: max-content; max-width: max-content;
@ -48,7 +43,7 @@ const { title, description } = Astro.props
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
} }
div h2 { h2 {
color: white; color: white;
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
@ -56,25 +51,24 @@ const { title, description } = Astro.props
margin: 1rem; margin: 1rem;
line-height: 20px; line-height: 20px;
text-align: center; text-align: center;
}
@supports (text-align-last: center) { @supports (text-align-last: center) {
div h2 {
text-align: justify; text-align: justify;
text-align-last: center; text-align-last: center;
} }
} }
@media (min-width: 512px) {
div {
row-gap: 1.5em;
column-gap: 1.5em;
}
} }
.base { .base {
margin-left: 1rem; margin-left: 1rem;
margin-right: 1rem; margin-right: 1rem;
} }
@media (min-width: 512px) {
div {
row-gap: 1.5em;
column-gap: 1.5em;
}
}
@media (min-width: 1000px) { @media (min-width: 1000px) {
.base { .base {
@ -88,18 +82,17 @@ const { title, description } = Astro.props
margin-left: 10%; margin-left: 10%;
margin-right: 10%; margin-right: 10%;
} }
div h1 {
div {
h1 {
margin-left: unset; margin-left: unset;
margin-right: unset; margin-right: unset;
} }
h2 {
div h2 {
text-align: left; text-align: left;
}
@supports (text-align-last: center) { @supports (text-align-last: center) {
div h2 { text-align-last: unset;
text-align-last: initial; }
} }
} }
} }

View file

@ -10,9 +10,9 @@ export interface Props {
} }
const { datafile } = Astro.props const { datafile } = Astro.props
const fulldata = import.meta.glob<GlobAny>(`../content/data/*.json`) const fulldata = import.meta.glob<GlobAny>(`/src/content/data/*.json`)
const filecontent: FileData = ( const filecontent: FileData = (
await fulldata[`../content/data/${datafile}.json`]() await fulldata[`/src/content/data/${datafile}.json`]()
)['default'] )['default']
const pagetitle = `${filecontent.info.title} - FGO TA` const pagetitle = `${filecontent.info.title} - FGO TA`

View file

@ -5,7 +5,7 @@ import { findSlug } from '../../utils/tools'
export function getStaticPaths() { export function getStaticPaths() {
const fulldata = import.meta.glob<GlobAny>( const fulldata = import.meta.glob<GlobAny>(
`../../content/data/*.json` `/src/content/data/*.json`
) )
const keylist = Object.keys(fulldata).map((item) => findSlug(item)!) const keylist = Object.keys(fulldata).map((item) => findSlug(item)!)

View file

@ -9,7 +9,7 @@ const description = 'FGO NA TA Database'
const questInfo = [] const questInfo = []
const fulldata = import.meta.glob<GlobFiledata>( const fulldata = import.meta.glob<GlobFiledata>(
`../../content/data/*.json` `/src/content/data/*.json`
) )
for (const [key, value] of Object.entries(fulldata)) { for (const [key, value] of Object.entries(fulldata)) {