New Files

This commit is contained in:
Firq 2023-01-15 17:53:19 +01:00
parent 91feb849fa
commit b62ede67d4
Signed by: Firq
GPG key ID: 4DE1059A4666E89F
63 changed files with 9798 additions and 0 deletions

20
.gitignore vendored Normal file
View file

@ -0,0 +1,20 @@
# build output
dist/
.output/
# dependencies
node_modules/
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# environment variables
.env
.env.production
# macOS-specific files
.DS_Store

4
.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}

11
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}

50
README_astro.md Normal file
View file

@ -0,0 +1,50 @@
# Welcome to [Astro](https://astro.build)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/s/github/withastro/astro/tree/latest/examples/basics)
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
![basics](https://user-images.githubusercontent.com/4677417/186188965-73453154-fdec-4d6b-9c34-cb35c248ae5b.png)
## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
```
/
├── public/
│ └── favicon.svg
├── src/
│ ├── components/
│ │ └── Card.astro
│ ├── layouts/
│ │ └── Layout.astro
│ └── pages/
│ └── index.astro
└── package.json
```
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the `public/` directory.
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :--------------------- | :------------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro preview` |
| `npm run astro --help` | Get help using the Astro CLI |
## 👀 Want to learn more?
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).

9
astro.config.mjs Normal file
View file

@ -0,0 +1,9 @@
import { defineConfig } from 'astro/config';
// https://astro.build/config
export default defineConfig({
outDir: 'public',
publicDir: 'static',
base: '/firq-ta-on-astro',
site: 'https://firq.gitlab.neshweb.net/firq-ta-on-astro/'
});

9409
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

16
package.json Normal file
View file

@ -0,0 +1,16 @@
{
"name": "@example/basics",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"astro": "^1.9.0"
}
}

62
src/components/Card.astro Normal file
View file

@ -0,0 +1,62 @@
---
export interface Props {
title: string;
body: string;
href: string;
}
const { href, title, body } = Astro.props;
---
<li class="link-card">
<a href={href}>
<h2>
{title}
<span>&rarr;</span>
</h2>
<p>
{body}
</p>
</a>
</li>
<style>
.link-card {
list-style: none;
display: flex;
padding: 0.15rem;
background-color: white;
background-image: var(--accent-gradient);
background-size: 400%;
border-radius: 0.5rem;
background-position: 100%;
transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.link-card > a {
width: 100%;
text-decoration: none;
line-height: 1.4;
padding: 1rem 1.3rem;
border-radius: 0.35rem;
color: #111;
background-color: white;
opacity: 0.8;
}
h2 {
margin: 0;
font-size: 1.25rem;
transition: color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
p {
margin-top: 0.5rem;
margin-bottom: 0;
color: #444;
}
.link-card:is(:hover, :focus-within) {
background-position: 0;
}
.link-card:is(:hover, :focus-within) h2 {
color: rgb(var(--accent));
}
</style>

View file

@ -0,0 +1,137 @@
---
export interface Props {
name: string;
level: string;
skills: string;
np: string;
asc: string;
ml: string;
bond10: string;
}
const {bond10, ml, asc, np, skills, level, name } = Astro.props;
const servant_img: string = `servant/${name}_${asc}.png`;
const bondce_img: string = `ce/bond-ce/${name}.png`
let bondce_css: string = "bond-ce";
if(bond10 === "false") {
bondce_css += " unobtained"
}
---
<article>
<div class="heading-center">
<h1 class="servantname">{name}</h1>
</div>
<img src={servant_img} alt={name}>
<h2 class="subtext">
Level {level}<br>
{skills}<br>
{np}</h2>
<div class="expand-on-hover">
<img class={bondce_css} src={bondce_img} alt="">
<h2 class="subtext">Mana Loading: {ml}</h2>
</div>
</article>
<style>
.heading-section {
justify-content: center;
text-align: center;
}
.heading-center {
display: table;
width: 100%;
height: 4.5rem;
}
.servants-container {
row-gap: 1em;
column-gap: 1em;
justify-content: center;
align-self: center;
}
article:hover {
transform: scale(var(--hover-scale));
}
article {
background-color: rgb(27, 27, 27);
border-color: #1e1e1e;
padding: 0em 0.75em;
width: 40%;
height: auto;
justify-content: center;
text-align: center;
transition: transform var(--speed) var(--ease);
}
article>img {
width:120px;
height:auto;
}
@media(min-width: 512px) {
article {
padding: 10px 10px;
width: auto;
height: auto;
}
.servants-container {
row-gap: 1.5em;
column-gap: 1.5em;
}
article>img {
width: 200px;
height: auto;
}
}
.subtext {
color: white;
font-size: 16px;
font-weight: 600;
margin: 5;
line-height: 20px;
}
.servantname {
font-size: 22px;
color: white;
max-width: 200px;
padding-bottom: 0.3rem;
display: table-cell;
vertical-align: middle;
}
.expand-on-hover {
z-index: 99;
transform: scaleY(0);
transform-origin: top;
position: absolute;
top: 95%;
left: 0px;
right: 0px;
}
article:hover .expand-on-hover {
transform: scaleY(1);
transition: transform 200ms ease-in-out;
background-color: #242424;
}
.bond-ce {
padding-top: 0.75rem;
height: 3rem;
width: auto;
}
.unobtained {
filter: grayscale(1)
}
</style>

1
src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

32
src/layouts/Layout.astro Normal file
View file

@ -0,0 +1,32 @@
---
export interface Props {
title: string;
}
const { title } = Astro.props;
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/ico" href="/favicon.ico" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
<body>
<slot />
</body>
</html>
<style is:global>
:root {
--hover-scale: 1.05;
--speed: 50%;
--ease: 50%;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: #3e3e3e;
}
</style>

44
src/pages/index.astro Normal file
View file

@ -0,0 +1,44 @@
---
import Layout from '../layouts/Layout.astro';
import ServantCard from '../components/servantCard.astro';
---
<Layout title="Firq TA on Astro.">
<main>
<div class="servant-section">
<h1 class="section-title">Servant offering</h1>
<div class="servants-container container">
<ServantCard
name="Skadi"
level="120"
skills="10 / 10 / 10"
np="NP4"
asc="03"
ml="10"
bond10="true"
/>
</div>
</div>
</main>
</Layout>
<style>
.servants-container {
row-gap: 1em;
column-gap: 1em;
justify-content: center;
align-self: center;
}
.container {
display: flex;
flex-flow: row wrap;
padding: 1em;
position: relative;
}
.servant-section {
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
</style>

BIN
static/ce/2030.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 750 KiB

BIN
static/ce/500.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 KiB

BIN
static/ce/bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 KiB

BIN
static/ce/bond-ce/bride.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
static/ce/bond-ce/gogh.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
static/ce/bond-ce/jane.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
static/ce/bond-ce/liz.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
static/ce/bond-ce/skadi.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
static/ce/bond-ce/waver.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
static/ce/bond-ce/wu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
static/ce/db.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 KiB

BIN
static/ce/kaleidoscope.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 557 KiB

BIN
static/ce/merciless_one.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 KiB

BIN
static/ce/mlb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
static/ce/outrage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 687 KiB

BIN
static/ce/oxdemon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 767 KiB

BIN
static/ce/prisma.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 KiB

BIN
static/ce/vessel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 KiB

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

BIN
static/link_192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
static/lurker.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
static/padoru.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

BIN
static/servant/bride_03.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
static/servant/gogh_01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
static/servant/jane_03.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

BIN
static/servant/liz_01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
static/servant/skadi_01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
static/servant/skadi_03.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

BIN
static/servant/waver_02.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
static/servant/wu_01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
static/ta_icons/db.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
static/ta_icons/ibuki.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
static/ta_icons/mhxx.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
static/ta_icons/solomon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

3
tsconfig.json Normal file
View file

@ -0,0 +1,3 @@
{
"extends": "astro/tsconfigs/strict"
}