moved folders around and added janken
1
main-web/client/.env
Normal file
@@ -0,0 +1 @@
|
||||
REACT_APP_API_URL=http://localhost:7000/
|
||||
1
main-web/client/.env.production
Normal file
@@ -0,0 +1 @@
|
||||
REACT_APP_API_URL=/
|
||||
23
main-web/client/.gitignore
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
/.pnp
|
||||
.pnp.js
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# production
|
||||
/build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
.env.local
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
44
main-web/client/README.md
Normal file
@@ -0,0 +1,44 @@
|
||||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
||||
|
||||
## Available Scripts
|
||||
|
||||
In the project directory, you can run:
|
||||
|
||||
### `npm start`
|
||||
|
||||
Runs the app in the development mode.<br />
|
||||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
||||
|
||||
The page will reload if you make edits.<br />
|
||||
You will also see any lint errors in the console.
|
||||
|
||||
### `npm test`
|
||||
|
||||
Launches the test runner in the interactive watch mode.<br />
|
||||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
||||
|
||||
### `npm run build`
|
||||
|
||||
Builds the app for production to the `build` folder.<br />
|
||||
It correctly bundles React in production mode and optimizes the build for the best performance.
|
||||
|
||||
The build is minified and the filenames include the hashes.<br />
|
||||
Your app is ready to be deployed!
|
||||
|
||||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
||||
|
||||
### `npm run eject`
|
||||
|
||||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
||||
|
||||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
||||
|
||||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
||||
|
||||
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
||||
|
||||
## Learn More
|
||||
|
||||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
||||
|
||||
To learn React, check out the [React documentation](https://reactjs.org/).
|
||||
56
main-web/client/package.json
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"name": "catherine-league",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"axios": "^0.19.2",
|
||||
"dotenv": "^8.2.0",
|
||||
"i18next": "^19.6.3",
|
||||
"node-sass": "^4.13.1",
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
"react-i18next": "^11.7.0",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"react-scripts": "3.4.1",
|
||||
"react-youtube": "^7.11.3",
|
||||
"semantic-ui-css": "^2.4.1",
|
||||
"semantic-ui-react": "^0.88.2",
|
||||
"typescript": "^3.7.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/jest-dom": "^4.2.4",
|
||||
"@testing-library/react": "^9.5.0",
|
||||
"@testing-library/user-event": "^7.2.1",
|
||||
"@types/react-router-dom": "^5.1.5",
|
||||
"@types/jest": "^24.9.1",
|
||||
"@types/node": "^12.12.35",
|
||||
"@types/react": "^16.9.34",
|
||||
"@types/react-dom": "^16.9.6",
|
||||
"@types/react-youtube": "^7.6.2",
|
||||
"tslint": "^5.18.0",
|
||||
"tslint-config-airbnb": "^5.11.1",
|
||||
"tslint-react": "^4.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject",
|
||||
"lint": "tslint -c tslint.json -p tsconfig.json"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "react-app"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
}
|
||||
}
|
||||
BIN
main-web/client/public/favicon.ico
Normal file
|
After Width: | Height: | Size: 134 KiB |
43
main-web/client/public/index.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#ff2d7c" />
|
||||
<meta
|
||||
name="description"
|
||||
content="キャサリン faito crab"
|
||||
/>
|
||||
<link href="https://fonts.googleapis.com/css?family=M+PLUS+1p" rel="stylesheet">
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is installed on a
|
||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
-->
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<!--
|
||||
Notice the use of %PUBLIC_URL% in the tags above.
|
||||
It will be replaced with the URL of the `public` folder during the build.
|
||||
Only files inside the `public` folder can be referenced from the HTML.
|
||||
|
||||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
||||
work correctly both with client-side routing and a non-root public URL.
|
||||
Learn how to configure a non-root public URL by running `npm run build`.
|
||||
-->
|
||||
<title>キャサリン faito crab</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
<!--
|
||||
This HTML file is a template.
|
||||
If you open it directly in the browser, you will see an empty page.
|
||||
|
||||
You can add webfonts, meta tags, or analytics to this file.
|
||||
The build step will place the bundled scripts into the <body> tag.
|
||||
|
||||
To begin the development, run `npm start` or `yarn start`.
|
||||
To create a production bundle, use `npm run build` or `yarn build`.
|
||||
-->
|
||||
</body>
|
||||
</html>
|
||||
25
main-web/client/public/manifest.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"short_name": "React App",
|
||||
"name": "Create React App Sample",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
"sizes": "64x64 32x32 24x24 16x16",
|
||||
"type": "image/x-icon"
|
||||
},
|
||||
{
|
||||
"src": "logo192.png",
|
||||
"type": "image/png",
|
||||
"sizes": "192x192"
|
||||
},
|
||||
{
|
||||
"src": "logo512.png",
|
||||
"type": "image/png",
|
||||
"sizes": "512x512"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"theme_color": "#000000",
|
||||
"background_color": "#ffffff"
|
||||
}
|
||||
3
main-web/client/public/robots.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
# https://www.robotstxt.org/robotstxt.html
|
||||
User-agent: *
|
||||
Disallow:
|
||||
42
main-web/client/src/App.css
Normal file
@@ -0,0 +1,42 @@
|
||||
.App {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.App-logo {
|
||||
height: 40vmin;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.App-logo {
|
||||
animation: App-logo-spin infinite 20s linear;
|
||||
}
|
||||
}
|
||||
|
||||
.App-header {
|
||||
background-color: #282c34;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: calc(10px + 2vmin);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.App-link {
|
||||
color: #61dafb;
|
||||
}
|
||||
|
||||
@keyframes App-logo-spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
#root {
|
||||
height: 100vh;
|
||||
}
|
||||
9
main-web/client/src/App.test.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
import App from './App';
|
||||
|
||||
test('renders learn react link', () => {
|
||||
const { getByText } = render(<App />);
|
||||
const linkElement = getByText(/learn react/i);
|
||||
expect(linkElement).toBeInTheDocument();
|
||||
});
|
||||
105
main-web/client/src/App.tsx
Normal file
@@ -0,0 +1,105 @@
|
||||
import React from 'react';
|
||||
import './App.css';
|
||||
import style from './web.module.scss';
|
||||
import 'semantic-ui-css/semantic.min.css';
|
||||
import { Home } from './components/home';
|
||||
import { Players } from './components/players';
|
||||
import { Scoreboard } from './components/scoreboard';
|
||||
import { Tournaments } from './components/tournaments';
|
||||
import { About } from './components/about';
|
||||
import { Guide } from './components/guide';
|
||||
import { Archive } from './components/archive';
|
||||
import { Contact } from './components/contact';
|
||||
import { NotFound } from './components/notfound';
|
||||
import {
|
||||
BrowserRouter as Router,
|
||||
Switch,
|
||||
Route,
|
||||
Link
|
||||
} from 'react-router-dom';
|
||||
|
||||
function App(): JSX.Element {
|
||||
return (
|
||||
<Router>
|
||||
<div className={style.main}>
|
||||
<div className={style.header}>
|
||||
<div className={style.background} />
|
||||
<div className={style.buynow}>
|
||||
<a href='https://www.atlus.co.jp/news/13264/' rel='noopener noreferrer' target='_blank'> </a>
|
||||
</div>
|
||||
<div className={style.logoHeader} />
|
||||
<div className={style.logoSwitch} />
|
||||
<div className={style.waveContainer}>
|
||||
<svg className={style.waves} viewBox='0 24 150 28' preserveAspectRatio='none' shapeRendering='auto'>
|
||||
<defs>
|
||||
<path id='gentle-wave' d='M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z' />
|
||||
</defs>
|
||||
<g>
|
||||
<use className={style.firstWave} x={48} y={7} xlinkHref='#gentle-wave' fill='rgba(255,45,124,0.7)' />
|
||||
<use className={style.secondWave} x={48} y={0} xlinkHref='#gentle-wave' fill='#ff2d7c' />
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<nav className={style.navigation}>
|
||||
<ul>
|
||||
<li>
|
||||
<Link to='/'>Home</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to='/tournaments/stray_sheep_0/players'>Players</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to='/tournaments/stray_sheep_0/scoreboard'>Scoreboard</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to='/guide'>Guide</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to='/archive'>Archive</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to='/about'>About</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to='/contact'>Q&A</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div className={style.contents}>
|
||||
<Switch>
|
||||
<Route exact={true} path='/' component={Home} />
|
||||
<Route path='/players' component={Players} />
|
||||
<Route path='/tournaments/:tournament_key/players' component={Players} />
|
||||
<Route path='/tournaments/:tournament_key/scoreboard' component={Scoreboard} />
|
||||
<Route path='/tournaments' component={Tournaments} />
|
||||
<Route path='/about' component={About} />
|
||||
<Route path='/guide' component={Guide} />
|
||||
<Route path='/archive' component={Archive} />
|
||||
<Route path='/contact' component={Contact} />
|
||||
<Route path='*' component={NotFound} />
|
||||
</Switch>
|
||||
</div>
|
||||
<div className={style.footer}>
|
||||
<div className={style.footerText}>
|
||||
<p><a href='https://www.atlus.co.jp/copyright/' rel='noopener noreferrer' target='_blank'>©ATLUS</a> ©SEGA All Rights Reserved.</p>
|
||||
<p>本ページは、株式会社ATLUS様のページとは異なるユーザーサイトです。</p>
|
||||
<p>問い合わせなどをATLUS様に出されないよう、ご注意ください。</p>
|
||||
</div>
|
||||
<div className={style.twitter}>
|
||||
<a href='https://twitter.com/catherine_f_c' rel='noopener noreferrer' target='_blank'> </a>
|
||||
</div>
|
||||
<div className={style.twitch}>
|
||||
<a href='https://www.twitch.tv/catherine_faito_crab' rel='noopener noreferrer' target='_blank'> </a>
|
||||
</div>
|
||||
<div className={style.youtube}>
|
||||
<a href='https://www.youtube.com/channel/UC5cvyvCdOMbxwZqCT09cGNA/' rel='noopener noreferrer' target='_blank'> </a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Router>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
28
main-web/client/src/components/about.tsx
Normal file
@@ -0,0 +1,28 @@
|
||||
import React, { FunctionComponent } from 'react';
|
||||
import style from '../web.module.scss';
|
||||
|
||||
type ComponentProps = {
|
||||
};
|
||||
|
||||
export const About: FunctionComponent<ComponentProps> = (props): JSX.Element => {
|
||||
|
||||
return (
|
||||
<div className={style.guideBody}>
|
||||
<h2>About</h2>
|
||||
<hr />
|
||||
<div className={style.aboutNoticeBlock}>
|
||||
<br />
|
||||
<p>Covid-19 の影響で、オフライン大会の実施なども困難であるため、オンラインによるランキングバトル(通称:ストレイシープ杯)を開催することになりました。</p>
|
||||
<p>先日発売されたSwitch版+各自の配信設備を用いて大会を実施するため、まずは少人数で進めていきます。(まずは第0回を実験的に開催)</p>
|
||||
<p>キャサリンの対戦は、決着はわかりやすいですが、使われているテクニックなどが分かるともっと楽しめると思うので、解説なども交えながら実施する予定です。</p>
|
||||
<p>悪い点は改善し、良い点はつづけながら、継続的に続けていきたいと思います。</p>
|
||||
<p>もっとこうしてみては?次の大会から参加したい!などございましたら問い合わせフォームからご意見下さい!</p>
|
||||
<p>それでは、楽しんでいくめぇ。~</p>
|
||||
<div className={style.sheepAbout} />
|
||||
<div className={style.aboutContactBox}>
|
||||
<a href='https://forms.gle/Dn4p7cFEPLK1zcTz5' rel='noopener noreferrer' target='_blank'> </a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
69
main-web/client/src/components/archive.tsx
Normal file
@@ -0,0 +1,69 @@
|
||||
import React, { FunctionComponent, useState, useEffect } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import axios from 'axios';
|
||||
import style from '../web.module.scss';
|
||||
import YouTube from 'react-youtube';
|
||||
|
||||
import { IGuideItem } from '../models/IGuideItem';
|
||||
|
||||
type ComponentProps = {
|
||||
};
|
||||
|
||||
export const Archive: FunctionComponent<ComponentProps> = (props): JSX.Element => {
|
||||
const { t } = useTranslation();
|
||||
const [guideItems, setGuideItems] = useState<IGuideItem[]>([]);
|
||||
|
||||
useEffect(() => {
|
||||
if (guideItems.length === 0) {
|
||||
const url = process.env.REACT_APP_API_URL;
|
||||
const apiUrl = `${url}api/archive`;
|
||||
axios.get(apiUrl)
|
||||
.then((response) => {
|
||||
if (response.data) {
|
||||
setGuideItems(response.data);
|
||||
}
|
||||
});
|
||||
}
|
||||
}, [guideItems, setGuideItems]);
|
||||
|
||||
const renderVideo = (): JSX.Element[] => {
|
||||
const result: JSX.Element[] = [];
|
||||
if (guideItems.length > 0) {
|
||||
const opts = {
|
||||
height: '195',
|
||||
width: '320'
|
||||
};
|
||||
guideItems.forEach((el: IGuideItem) => {
|
||||
result.push(
|
||||
<div
|
||||
key={`archiveItemsLoop-${el.id}`}
|
||||
className={style.characterBlock}
|
||||
style={{
|
||||
animationDelay:`${el.id*0.2}s`
|
||||
}}
|
||||
>
|
||||
<h4>{el.title}</h4>
|
||||
<hr />
|
||||
<div className={style.centerVideo}>
|
||||
<YouTube
|
||||
videoId={el.youtube_id}
|
||||
opts={opts}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={style.guideBody}>
|
||||
<h2>{t('archive')}</h2>
|
||||
<hr />
|
||||
<br />
|
||||
{renderVideo()}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
61
main-web/client/src/components/contact.tsx
Normal file
@@ -0,0 +1,61 @@
|
||||
import React, { FunctionComponent, useState, useEffect } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import axios from 'axios';
|
||||
import style from '../web.module.scss';
|
||||
|
||||
import { IContactQuestion } from '../models/IContactQuestion';
|
||||
|
||||
type ComponentProps = {
|
||||
};
|
||||
|
||||
export const Contact: FunctionComponent<ComponentProps> = (props): JSX.Element => {
|
||||
const { t } = useTranslation();
|
||||
const [contactItems, setContactItems] = useState<IContactQuestion[]>([]);
|
||||
|
||||
useEffect(() => {
|
||||
if (contactItems.length === 0) {
|
||||
const url = process.env.REACT_APP_API_URL;
|
||||
const apiUrl = `${url}api/about`;
|
||||
axios.get(apiUrl)
|
||||
.then((response) => {
|
||||
if (response.data) {
|
||||
setContactItems(response.data);
|
||||
}
|
||||
});
|
||||
}
|
||||
}, [contactItems, setContactItems]);
|
||||
|
||||
const renderQuestions = (): JSX.Element[] => {
|
||||
const result: JSX.Element[] = [];
|
||||
if (contactItems.length > 0) {
|
||||
contactItems.forEach((el: IContactQuestion) => {
|
||||
result.push(
|
||||
<div
|
||||
key={`contactItemsLoop-${el.id}`}
|
||||
className={style.characterBlock}
|
||||
style={{
|
||||
animationDelay:`${el.id*0.2}s`
|
||||
}}
|
||||
>
|
||||
<h4>{el.question}</h4>
|
||||
<hr />
|
||||
<div>{el.answer}</div>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={style.guideBody}>
|
||||
<h2>{t('qanda')}</h2>
|
||||
<hr />
|
||||
<div className={style.contactBox}>
|
||||
<a href='https://forms.gle/Dn4p7cFEPLK1zcTz5' rel='noopener noreferrer' target='_blank'> </a>
|
||||
</div>
|
||||
{renderQuestions()}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
70
main-web/client/src/components/guide.tsx
Normal file
@@ -0,0 +1,70 @@
|
||||
import React, { FunctionComponent, useState, useEffect } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import axios from 'axios';
|
||||
import style from '../web.module.scss';
|
||||
import YouTube from 'react-youtube';
|
||||
|
||||
import { IGuideItem } from '../models/IGuideItem';
|
||||
|
||||
type ComponentProps = {
|
||||
};
|
||||
|
||||
export const Guide: FunctionComponent<ComponentProps> = (props): JSX.Element => {
|
||||
const { t } = useTranslation();
|
||||
const [guideItems, setGuideItems] = useState<IGuideItem[]>([]);
|
||||
|
||||
useEffect(() => {
|
||||
if (guideItems.length === 0) {
|
||||
const url = process.env.REACT_APP_API_URL;
|
||||
const apiUrl = `${url}api/guide`;
|
||||
axios.get(apiUrl)
|
||||
.then((response) => {
|
||||
if (response.data) {
|
||||
setGuideItems(response.data);
|
||||
}
|
||||
});
|
||||
}
|
||||
}, [guideItems, setGuideItems]);
|
||||
|
||||
const renderVideo = (): JSX.Element[] => {
|
||||
const result: JSX.Element[] = [];
|
||||
if (guideItems.length > 0) {
|
||||
const opts = {
|
||||
height: '195',
|
||||
width: '320'
|
||||
};
|
||||
guideItems.forEach((el: IGuideItem) => {
|
||||
result.push(
|
||||
<div
|
||||
key={`guideItemsLoop-${el.id}`}
|
||||
className={style.characterBlock}
|
||||
style={{
|
||||
animationDelay:`${el.id*0.2}s`
|
||||
}}
|
||||
>
|
||||
<h4>{el.title}</h4>
|
||||
<hr />
|
||||
<div>{el.description}</div>
|
||||
<div className={style.centerVideo}>
|
||||
<YouTube
|
||||
videoId={el.youtube_id}
|
||||
opts={opts}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={style.guideBody}>
|
||||
<h2>{t('guide')}</h2>
|
||||
<hr />
|
||||
<br />
|
||||
{renderVideo()}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
26
main-web/client/src/components/home.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import React, { FunctionComponent } from 'react';
|
||||
import style from '../web.module.scss';
|
||||
|
||||
type ComponentProps = {
|
||||
};
|
||||
|
||||
export const Home: FunctionComponent<ComponentProps> = (props): JSX.Element => {
|
||||
|
||||
return (
|
||||
<div className={style.mainBody}>
|
||||
<div className={style.chalice} />
|
||||
<div className={style.titleImageStrayShip0} />
|
||||
<div className={style.players} />
|
||||
<div className={style.padding} />
|
||||
<div className={style.rule} />
|
||||
<div className={style.twitchHome}>
|
||||
<a href='https://www.twitch.tv/catherine_faito_crab' rel='noopener noreferrer' target='_blank'> </a>
|
||||
</div>
|
||||
<div className={style.players0801} />
|
||||
<div className={style.players0802} />
|
||||
<div className={style.players0808} />
|
||||
<div className={style.players0809} />
|
||||
<div className={style.players0815} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
13
main-web/client/src/components/notfound.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import React, { FunctionComponent } from 'react';
|
||||
|
||||
type ComponentProps = {
|
||||
};
|
||||
|
||||
export const NotFound: FunctionComponent<ComponentProps> = (props): JSX.Element => {
|
||||
|
||||
return (
|
||||
<div>
|
||||
404
|
||||
</div>
|
||||
);
|
||||
};
|
||||
64
main-web/client/src/components/players.tsx
Normal file
@@ -0,0 +1,64 @@
|
||||
import React, { FunctionComponent, useState, useEffect } from 'react';
|
||||
import { useParams } from 'react-router-dom';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import axios from 'axios';
|
||||
import style from '../web.module.scss';
|
||||
|
||||
import { IPlayerInfo } from '../models/IPlayerInfo';
|
||||
|
||||
type ComponentProps = {
|
||||
};
|
||||
|
||||
export const Players: FunctionComponent<ComponentProps> = (props): JSX.Element => {
|
||||
const { t } = useTranslation();
|
||||
const [playerInfo, setPlayerInfo] = useState<IPlayerInfo[]>([]);
|
||||
const { tournament_key } = useParams();
|
||||
useEffect(() => {
|
||||
if (playerInfo.length === 0) {
|
||||
const url = process.env.REACT_APP_API_URL;
|
||||
let apiUrl = `${url}api/players`;
|
||||
if (tournament_key) {
|
||||
apiUrl += `/${tournament_key}`;
|
||||
}
|
||||
axios.get(apiUrl)
|
||||
.then((response) => {
|
||||
if (response.data) {
|
||||
setPlayerInfo(response.data);
|
||||
}
|
||||
});
|
||||
}
|
||||
}, [tournament_key, playerInfo, setPlayerInfo]);
|
||||
const renderPlayerInfo = (): JSX.Element[] => {
|
||||
const result: JSX.Element[] = [];
|
||||
if (playerInfo.length > 0) {
|
||||
playerInfo.forEach((el: IPlayerInfo) => {
|
||||
result.push(
|
||||
<div
|
||||
key={`playerInfoLoop-${el.id}`}
|
||||
className={style.characterBlock}
|
||||
style={{
|
||||
animationDelay:`${el.id*0.2}s`
|
||||
}}
|
||||
>
|
||||
<div className={style[`character-${el.name_id}`]} />
|
||||
<div className={style.titlePlayer}><span className={style.titlePlayerBlock}>{t('player_name')}</span></div>
|
||||
<div>{el.player_name}</div>
|
||||
<div className={style.titlePlayer}><span className={style.titlePlayerBlock}>{t('use_character')}</span></div>
|
||||
<div>{el.name_jp}</div>
|
||||
<div className={style.titlePlayer}><span className={style.titlePlayerBlock}>{t('description')}</span></div>
|
||||
<div>{el.description}</div>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
}
|
||||
return result;
|
||||
};
|
||||
return (
|
||||
<div className={style.guideBody}>
|
||||
<h2>Players</h2>
|
||||
<hr />
|
||||
<br />
|
||||
{renderPlayerInfo()}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
14
main-web/client/src/components/scoreboard.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import React, { FunctionComponent } from 'react';
|
||||
import style from '../web.module.scss';
|
||||
|
||||
type ComponentProps = {
|
||||
};
|
||||
|
||||
export const Scoreboard: FunctionComponent<ComponentProps> = (props): JSX.Element => {
|
||||
|
||||
return (
|
||||
<div className={style.mainBody}>
|
||||
<div className={style.scoreboardImage} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
14
main-web/client/src/components/tournaments.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import React, { FunctionComponent } from 'react';
|
||||
|
||||
type ComponentProps = {
|
||||
};
|
||||
|
||||
export const Tournaments: FunctionComponent<ComponentProps> = (props): JSX.Element => {
|
||||
// const [openPlayer, setOpenPlayer] = useState<boolean>(true);
|
||||
|
||||
return (
|
||||
<div>
|
||||
Tournaments
|
||||
</div>
|
||||
);
|
||||
};
|
||||
25
main-web/client/src/i18n.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import i18n from 'i18next';
|
||||
import { initReactI18next } from 'react-i18next';
|
||||
|
||||
import en from './locale/en.json';
|
||||
import ja from './locale/ja.json';
|
||||
|
||||
i18n.use(initReactI18next)
|
||||
.init({
|
||||
fallbackLng: 'ja',
|
||||
resources: {
|
||||
en: {
|
||||
translation: en
|
||||
},
|
||||
ja: {
|
||||
translation: ja
|
||||
}
|
||||
},
|
||||
debug: true,
|
||||
interpolation: {
|
||||
escapeValue: false
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
export default i18n;
|
||||
13
main-web/client/src/index.css
Normal file
@@ -0,0 +1,13 @@
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
||||
sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
||||
monospace;
|
||||
}
|
||||
23
main-web/client/src/index.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import './index.css';
|
||||
import App from './App';
|
||||
import * as serviceWorker from './serviceWorker';
|
||||
import { I18nextProvider } from 'react-i18next';
|
||||
import i18n from './i18n';
|
||||
|
||||
ReactDOM.render(
|
||||
(
|
||||
<React.StrictMode>
|
||||
<I18nextProvider i18n={i18n}>
|
||||
<App />
|
||||
</I18nextProvider>
|
||||
</React.StrictMode>
|
||||
),
|
||||
document.getElementById('root')
|
||||
);
|
||||
|
||||
// If you want your app to work offline and load faster, you can change
|
||||
// unregister() to register() below. Note this comes with some pitfalls.
|
||||
// Learn more about service workers: https://bit.ly/CRA-PWA
|
||||
serviceWorker.unregister();
|
||||
9
main-web/client/src/locale/en.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"use_character": "Character",
|
||||
"player_name": "Playername",
|
||||
"description": "Description",
|
||||
"archive": "Archive",
|
||||
"guide": "Guide",
|
||||
"about": "About",
|
||||
"qanda": "Q&A"
|
||||
}
|
||||
9
main-web/client/src/locale/ja.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"use_character": "使用キャラクター",
|
||||
"player_name": "プレイヤー名",
|
||||
"description": "紹介文",
|
||||
"archive": "Archive",
|
||||
"guide": "Guide",
|
||||
"about": "About",
|
||||
"qanda": "Q&A"
|
||||
}
|
||||
7
main-web/client/src/logo.svg
Normal file
@@ -0,0 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3">
|
||||
<g fill="#61DAFB">
|
||||
<path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/>
|
||||
<circle cx="420.9" cy="296.5" r="45.7"/>
|
||||
<path d="M520.5 78.1z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.6 KiB |
5
main-web/client/src/models/IArchiveItem.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface IArchiveItem {
|
||||
id: number;
|
||||
title: string;
|
||||
youtube_id: string;
|
||||
}
|
||||
5
main-web/client/src/models/IContactQuestion.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface IContactQuestion {
|
||||
id: number;
|
||||
question: string;
|
||||
answer: string;
|
||||
}
|
||||
6
main-web/client/src/models/IGuideItem.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface IGuideItem {
|
||||
id: number;
|
||||
title: string;
|
||||
description: string;
|
||||
youtube_id: string;
|
||||
}
|
||||
10
main-web/client/src/models/IPlayerInfo.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export interface IPlayerInfo {
|
||||
id: number;
|
||||
player_key: string;
|
||||
player_name: string;
|
||||
description: string;
|
||||
image: string;
|
||||
name_id: string;
|
||||
name: string;
|
||||
name_jp: string;
|
||||
}
|
||||
1
main-web/client/src/react-app-env.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/// <reference types="react-scripts" />
|
||||
149
main-web/client/src/serviceWorker.ts
Normal file
@@ -0,0 +1,149 @@
|
||||
// This optional code is used to register a service worker.
|
||||
// register() is not called by default.
|
||||
|
||||
// This lets the app load faster on subsequent visits in production, and gives
|
||||
// it offline capabilities. However, it also means that developers (and users)
|
||||
// will only see deployed updates on subsequent visits to a page, after all the
|
||||
// existing tabs open on the page have been closed, since previously cached
|
||||
// resources are updated in the background.
|
||||
|
||||
// To learn more about the benefits of this model and instructions on how to
|
||||
// opt-in, read https://bit.ly/CRA-PWA
|
||||
|
||||
const isLocalhost = Boolean(
|
||||
window.location.hostname === 'localhost' ||
|
||||
// [::1] is the IPv6 localhost address.
|
||||
window.location.hostname === '[::1]' ||
|
||||
// 127.0.0.0/8 are considered localhost for IPv4.
|
||||
window.location.hostname.match(
|
||||
/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
|
||||
)
|
||||
);
|
||||
|
||||
type Config = {
|
||||
onSuccess?: (registration: ServiceWorkerRegistration) => void;
|
||||
onUpdate?: (registration: ServiceWorkerRegistration) => void;
|
||||
};
|
||||
|
||||
export function register(config?: Config) {
|
||||
if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
|
||||
// The URL constructor is available in all browsers that support SW.
|
||||
const publicUrl = new URL(
|
||||
process.env.PUBLIC_URL,
|
||||
window.location.href
|
||||
);
|
||||
if (publicUrl.origin !== window.location.origin) {
|
||||
// Our service worker won't work if PUBLIC_URL is on a different origin
|
||||
// from what our page is served on. This might happen if a CDN is used to
|
||||
// serve assets; see https://github.com/facebook/create-react-app/issues/2374
|
||||
return;
|
||||
}
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
|
||||
|
||||
if (isLocalhost) {
|
||||
// This is running on localhost. Let's check if a service worker still exists or not.
|
||||
checkValidServiceWorker(swUrl, config);
|
||||
|
||||
// Add some additional logging to localhost, pointing developers to the
|
||||
// service worker/PWA documentation.
|
||||
navigator.serviceWorker.ready.then(() => {
|
||||
console.log(
|
||||
'This web app is being served cache-first by a service ' +
|
||||
'worker. To learn more, visit https://bit.ly/CRA-PWA'
|
||||
);
|
||||
});
|
||||
} else {
|
||||
// Is not localhost. Just register service worker
|
||||
registerValidSW(swUrl, config);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function registerValidSW(swUrl: string, config?: Config) {
|
||||
navigator.serviceWorker
|
||||
.register(swUrl)
|
||||
.then(registration => {
|
||||
registration.onupdatefound = () => {
|
||||
const installingWorker = registration.installing;
|
||||
if (installingWorker == null) {
|
||||
return;
|
||||
}
|
||||
installingWorker.onstatechange = () => {
|
||||
if (installingWorker.state === 'installed') {
|
||||
if (navigator.serviceWorker.controller) {
|
||||
// At this point, the updated precached content has been fetched,
|
||||
// but the previous service worker will still serve the older
|
||||
// content until all client tabs are closed.
|
||||
console.log(
|
||||
'New content is available and will be used when all ' +
|
||||
'tabs for this page are closed. See https://bit.ly/CRA-PWA.'
|
||||
);
|
||||
|
||||
// Execute callback
|
||||
if (config && config.onUpdate) {
|
||||
config.onUpdate(registration);
|
||||
}
|
||||
} else {
|
||||
// At this point, everything has been precached.
|
||||
// It's the perfect time to display a
|
||||
// "Content is cached for offline use." message.
|
||||
console.log('Content is cached for offline use.');
|
||||
|
||||
// Execute callback
|
||||
if (config && config.onSuccess) {
|
||||
config.onSuccess(registration);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error during service worker registration:', error);
|
||||
});
|
||||
}
|
||||
|
||||
function checkValidServiceWorker(swUrl: string, config?: Config) {
|
||||
// Check if the service worker can be found. If it can't reload the page.
|
||||
fetch(swUrl, {
|
||||
headers: { 'Service-Worker': 'script' }
|
||||
})
|
||||
.then(response => {
|
||||
// Ensure service worker exists, and that we really are getting a JS file.
|
||||
const contentType = response.headers.get('content-type');
|
||||
if (
|
||||
response.status === 404 ||
|
||||
(contentType != null && contentType.indexOf('javascript') === -1)
|
||||
) {
|
||||
// No service worker found. Probably a different app. Reload the page.
|
||||
navigator.serviceWorker.ready.then(registration => {
|
||||
registration.unregister().then(() => {
|
||||
window.location.reload();
|
||||
});
|
||||
});
|
||||
} else {
|
||||
// Service worker found. Proceed as normal.
|
||||
registerValidSW(swUrl, config);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
console.log(
|
||||
'No internet connection found. App is running in offline mode.'
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
export function unregister() {
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.ready
|
||||
.then(registration => {
|
||||
registration.unregister();
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error.message);
|
||||
});
|
||||
}
|
||||
}
|
||||
5
main-web/client/src/setupTests.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
||||
// allows you to do things like:
|
||||
// expect(element).toHaveTextContent(/react/i)
|
||||
// learn more: https://github.com/testing-library/jest-dom
|
||||
import '@testing-library/jest-dom/extend-expect';
|
||||
BIN
main-web/client/src/static/font/indieflower.ttf
Normal file
BIN
main-web/client/src/static/img/00_bluecap_1204.png
Normal file
|
After Width: | Height: | Size: 187 KiB |
BIN
main-web/client/src/static/img/00_redcap_1204.png
Normal file
|
After Width: | Height: | Size: 186 KiB |
BIN
main-web/client/src/static/img/01_sheep_vincent_1204.png
Normal file
|
After Width: | Height: | Size: 182 KiB |
BIN
main-web/client/src/static/img/01_vincent_1204.png
Normal file
|
After Width: | Height: | Size: 199 KiB |
BIN
main-web/client/src/static/img/02_katherine_1204.png
Normal file
|
After Width: | Height: | Size: 225 KiB |
BIN
main-web/client/src/static/img/03_catherine_1204.png
Normal file
|
After Width: | Height: | Size: 200 KiB |
BIN
main-web/client/src/static/img/04_rin_1204.png
Normal file
|
After Width: | Height: | Size: 212 KiB |
BIN
main-web/client/src/static/img/05_orlando_1204.png
Normal file
|
After Width: | Height: | Size: 213 KiB |
BIN
main-web/client/src/static/img/06_jonny_1204.png
Normal file
|
After Width: | Height: | Size: 209 KiB |
BIN
main-web/client/src/static/img/07_tobby_1204.png
Normal file
|
After Width: | Height: | Size: 210 KiB |
BIN
main-web/client/src/static/img/0801.png
Normal file
|
After Width: | Height: | Size: 455 KiB |
BIN
main-web/client/src/static/img/0802.png
Normal file
|
After Width: | Height: | Size: 461 KiB |
BIN
main-web/client/src/static/img/0808.png
Normal file
|
After Width: | Height: | Size: 457 KiB |
BIN
main-web/client/src/static/img/0809.png
Normal file
|
After Width: | Height: | Size: 448 KiB |
BIN
main-web/client/src/static/img/0815.png
Normal file
|
After Width: | Height: | Size: 454 KiB |
BIN
main-web/client/src/static/img/08_erika_1204.png
Normal file
|
After Width: | Height: | Size: 206 KiB |
BIN
main-web/client/src/static/img/09_master_1204.png
Normal file
|
After Width: | Height: | Size: 215 KiB |
BIN
main-web/client/src/static/img/13_joker_1204.png
Normal file
|
After Width: | Height: | Size: 126 KiB |
BIN
main-web/client/src/static/img/atlus_logo.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
main-web/client/src/static/img/background.png
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
main-web/client/src/static/img/bgbg.png
Normal file
|
After Width: | Height: | Size: 226 KiB |
BIN
main-web/client/src/static/img/bgimage.png
Normal file
|
After Width: | Height: | Size: 219 KiB |
BIN
main-web/client/src/static/img/bgimagenight.png
Normal file
|
After Width: | Height: | Size: 702 KiB |
BIN
main-web/client/src/static/img/buynow.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
main-web/client/src/static/img/cat_fb_logo.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
main-web/client/src/static/img/chalice.png
Normal file
|
After Width: | Height: | Size: 161 KiB |
BIN
main-web/client/src/static/img/faito_crab.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
main-web/client/src/static/img/for_switch.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
main-web/client/src/static/img/letterbox.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
main-web/client/src/static/img/playerbg.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
main-web/client/src/static/img/players.png
Normal file
|
After Width: | Height: | Size: 748 KiB |
BIN
main-web/client/src/static/img/rule.png
Normal file
|
After Width: | Height: | Size: 108 KiB |
BIN
main-web/client/src/static/img/scoreboard.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
main-web/client/src/static/img/straysheepcup0.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
main-web/client/src/static/img/title_sheep.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
main-web/client/src/static/img/twitch.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
main-web/client/src/static/img/twitter.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
main-web/client/src/static/img/youtube.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
521
main-web/client/src/web.module.scss
Normal file
@@ -0,0 +1,521 @@
|
||||
@font-face {
|
||||
font-family: 'IndieFlower';
|
||||
src: url('./static/font/indieflower.ttf') format('truetype'); }
|
||||
|
||||
.header {
|
||||
background-image: url('./static/img/bgbg.png');
|
||||
background-repeat: none;
|
||||
width: 100%;
|
||||
height: 460px;
|
||||
}
|
||||
.buynow {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
width: 235px;
|
||||
height: 99px;
|
||||
background-image: url('./static/img/buynow.png');
|
||||
z-index: 1;
|
||||
&> a {
|
||||
display:block;
|
||||
width: 235px;
|
||||
height: 99px;
|
||||
}
|
||||
&:hover {
|
||||
animation: bounce 1s;
|
||||
}
|
||||
}
|
||||
.background {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
background-image: url('./static/img/bgimage.png');
|
||||
background-repeat: none;
|
||||
width: 1366px;
|
||||
height: 401px;
|
||||
animation: upAndDown 10s linear infinite;
|
||||
transition: background-image 0.5s ease-in-out;
|
||||
&:hover {
|
||||
transition: background-image 0.5s ease-in-out;
|
||||
background-image: url('./static/img/bgimagenight.png');
|
||||
}
|
||||
}
|
||||
.logoHeader {
|
||||
position: absolute;
|
||||
top: -30px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
width: 577px;
|
||||
height: 401px;
|
||||
background-image: url('./static/img/cat_fb_logo.png');
|
||||
background-repeat: none;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.logoSwitch {
|
||||
position: absolute;
|
||||
top: 310px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
width: 415px;
|
||||
height: 64px;
|
||||
background-image: url('./static/img/faito_crab.png');
|
||||
background-repeat: none;
|
||||
z-index: 1;
|
||||
}
|
||||
.contents {
|
||||
flex-grow: 1;
|
||||
padding: 30px;
|
||||
}
|
||||
.main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
background-image: url('./static/img/background.png');
|
||||
background-repeat: none;
|
||||
color: white;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.footer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
padding: 20px;
|
||||
width: 100%;
|
||||
background-color: black;
|
||||
color: white;
|
||||
bottom: 0;
|
||||
}
|
||||
.footerText {
|
||||
float: left;
|
||||
display: block;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
& > p {
|
||||
margin: 5px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.twitch {
|
||||
float: right;
|
||||
width: 113px;
|
||||
height: 70px;
|
||||
background-image: url('./static/img/twitch.png');
|
||||
background-size: 142px 70px;
|
||||
margin: 0 20px;
|
||||
background-repeat: none;
|
||||
background-size: contain;
|
||||
&> a {
|
||||
display:block;
|
||||
width: 113px;
|
||||
height: 70px;
|
||||
}
|
||||
}
|
||||
.twitchHome {
|
||||
width: 113px;
|
||||
height: 70px;
|
||||
background-image: url('./static/img/twitch.png');
|
||||
background-size: 142px 70px;
|
||||
margin: auto;
|
||||
background-repeat: none;
|
||||
background-size: contain;
|
||||
&> a {
|
||||
display:block;
|
||||
width: 113px;
|
||||
height: 70px;
|
||||
}
|
||||
}
|
||||
.twitter {
|
||||
float: right;
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
margin: 0 20px;
|
||||
background-image: url('./static/img/twitter.png');
|
||||
background-size: contain;
|
||||
&> a {
|
||||
display:block;
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
}
|
||||
}
|
||||
.youtube {
|
||||
float: right;
|
||||
width: 100px;
|
||||
height: 70px;
|
||||
margin: 0 20px;
|
||||
background-image: url('./static/img/youtube.png');
|
||||
background-size: contain;
|
||||
&> a {
|
||||
display:block;
|
||||
width: 100px;
|
||||
height: 70px;
|
||||
}
|
||||
}
|
||||
|
||||
.waveContainer {
|
||||
position: absolute;
|
||||
top: 260px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
z-index: 0;
|
||||
}
|
||||
.waves {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
margin-bottom: -7px;
|
||||
|
||||
min-height: 100px;
|
||||
max-height: 200px;
|
||||
}
|
||||
.firstWave {
|
||||
animation: moveforever 25s cubic-bezier(.55, .5, .45, .5) infinite;
|
||||
animation-delay: -2s;
|
||||
animation-duration: 2s;
|
||||
}
|
||||
.secondWave {
|
||||
animation: moveforever 25s cubic-bezier(.55, .5, .45, .5) infinite;
|
||||
animation-delay: -4s;
|
||||
animation-duration: 5s;
|
||||
}
|
||||
@keyframes moveforever {
|
||||
0% {
|
||||
transform: translate3d(-90px, 0, 0);
|
||||
}
|
||||
100% {
|
||||
transform: translate3d(85px, 0, 0);
|
||||
}
|
||||
}
|
||||
@keyframes bounce {
|
||||
0%, 20%, 60%, 100% {
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
40% {
|
||||
-webkit-transform: translateY(-20px);
|
||||
transform: translateY(-20px);
|
||||
}
|
||||
|
||||
80% {
|
||||
-webkit-transform: translateY(-10px);
|
||||
transform: translateY(-10px);
|
||||
}
|
||||
}
|
||||
|
||||
.navigation {
|
||||
position: absolute;
|
||||
top: 400px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
&>ul {
|
||||
list-style-type: none;
|
||||
&>li {
|
||||
float: left;
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
&>a {
|
||||
background-color: black;
|
||||
width: 90px;
|
||||
height: 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-size: 16px;
|
||||
font-family: 'IndieFlower';
|
||||
color: white;
|
||||
&:hover {
|
||||
transform: rotate(-10deg);
|
||||
font-weight: bold;
|
||||
color: pink;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.characterBlock {
|
||||
position: relative;
|
||||
opacity: 0;
|
||||
width: 980px;
|
||||
height: 314px;
|
||||
margin: 20px auto;
|
||||
padding: 30px;
|
||||
background-image: url('./static/img/playerbg.png');
|
||||
background-repeat: none;
|
||||
font-family: 'M PLUS Rounded 1c';
|
||||
&:nth-child(odd) {
|
||||
animation: slideInFromLeft 1s forwards;
|
||||
}
|
||||
&:nth-child(even) {
|
||||
animation: slideInFromRight 1s forwards;
|
||||
}
|
||||
}
|
||||
@keyframes slideInFromLeft {
|
||||
0% {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
@keyframes slideInFromRight {
|
||||
0% {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
@keyframes upAndDown {
|
||||
0%,
|
||||
100% {
|
||||
transform: translateY(0);
|
||||
}
|
||||
50% {
|
||||
transform: translateY(-5%);
|
||||
}
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
.buynow {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin characterImage($url) {
|
||||
width: 240px;
|
||||
height: 240px;
|
||||
margin: 0 20px 0 0;
|
||||
background-image: url($url);
|
||||
background-size: contain;
|
||||
float: left;
|
||||
|
||||
}
|
||||
|
||||
.character-blue_cap {
|
||||
@include characterImage('./static/img/00_bluecap_1204.png');
|
||||
}
|
||||
.character-red_cap {
|
||||
@include characterImage('./static/img/00_redcap_1204.png');
|
||||
}
|
||||
.character-vincent_shirt {
|
||||
@include characterImage('./static/img/01_vincent_1204.png');
|
||||
}
|
||||
.character-vincent_sheep {
|
||||
@include characterImage('./static/img/01_sheep_vincent_1204.png');
|
||||
}
|
||||
.character-katherine {
|
||||
@include characterImage('./static/img/02_katherine_1204.png');
|
||||
}
|
||||
.character-catherine {
|
||||
@include characterImage('./static/img/03_catherine_1204.png');
|
||||
}
|
||||
.character-rin {
|
||||
@include characterImage('./static/img/04_rin_1204.png');
|
||||
}
|
||||
.character-orlando {
|
||||
@include characterImage('./static/img/05_orlando_1204.png');
|
||||
}
|
||||
.character-johny {
|
||||
@include characterImage('./static/img/06_jonny_1204.png');
|
||||
}
|
||||
.character-tobby {
|
||||
@include characterImage('./static/img/07_tobby_1204.png');
|
||||
}
|
||||
.character-erica {
|
||||
@include characterImage('./static/img/08_erika_1204.png');
|
||||
}
|
||||
.character-master {
|
||||
@include characterImage('./static/img/09_master_1204.png');
|
||||
}
|
||||
.character-joker {
|
||||
@include characterImage('./static/img/13_joker_1204.png');
|
||||
}
|
||||
|
||||
.titlePlayer {
|
||||
position: relative;
|
||||
display: flex;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.titlePlayerBlock {
|
||||
padding: 5px 10px;
|
||||
background-color: white;
|
||||
transform: rotate(-5deg);
|
||||
color: black;
|
||||
font-family: 'M PLUS Rounded 1c';
|
||||
}
|
||||
|
||||
.aboutNoticeBlock {
|
||||
position: relative;
|
||||
width: 980px;
|
||||
height: 800px;
|
||||
margin: 20px auto;
|
||||
padding: 50px;
|
||||
background-image: url('./static/img/playerbg.png');
|
||||
background-repeat: none;
|
||||
background-size: 980px 800px;
|
||||
font-family: 'M PLUS Rounded 1c';
|
||||
}
|
||||
|
||||
.sheepAbout {
|
||||
position: relative;
|
||||
width: 207px;
|
||||
height: 350px;
|
||||
float: left;
|
||||
margin-top: 70px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-image: url('./static/img/title_sheep.png');
|
||||
background-repeat: none;
|
||||
}
|
||||
.guideBody {
|
||||
position: relative;
|
||||
margin: 20px auto;
|
||||
width: 980px;
|
||||
}
|
||||
.centerVideo {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.aboutContactBox {
|
||||
position: relative;
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
margin: 20px;
|
||||
background-image: url('./static/img/letterbox.png');
|
||||
background-size: 128px 128px;
|
||||
background-repeat: none;
|
||||
& > a {
|
||||
display: block;
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
}
|
||||
}
|
||||
.contactBox {
|
||||
position: relative;
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
margin: 20px auto;
|
||||
background-image: url('./static/img/letterbox.png');
|
||||
background-size: 128px 128px;
|
||||
background-repeat: none;
|
||||
& > a {
|
||||
display: block;
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
}
|
||||
}
|
||||
|
||||
.mainBody {
|
||||
position: flex;
|
||||
margin: 20px auto;
|
||||
width: 980px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.chalice {
|
||||
width: 400px;
|
||||
height: 340px;
|
||||
margin: auto;
|
||||
background-image: url('./static/img/chalice.png');
|
||||
background-size: contain;
|
||||
background-repeat: none;
|
||||
}
|
||||
.players {
|
||||
width: 900px;
|
||||
height: 606px;
|
||||
margin: auto;
|
||||
background-image: url('./static/img/players.png');
|
||||
background-size: contain;
|
||||
background-repeat: none;
|
||||
}
|
||||
.scoreboardImage {
|
||||
width: 567px;
|
||||
height: 485px;
|
||||
margin: auto;
|
||||
background-image: url('./static/img/scoreboard.png');
|
||||
background-size: contain;
|
||||
background-repeat: none;
|
||||
}
|
||||
.titleImageStrayShip0 {
|
||||
width: 808px;
|
||||
height: 119px;
|
||||
margin: auto;
|
||||
background-image: url('./static/img/straysheepcup0.png');
|
||||
background-size: contain;
|
||||
background-repeat: none;
|
||||
}
|
||||
.rule {
|
||||
width: 900px;
|
||||
height: 637px;
|
||||
margin: auto;
|
||||
background-image: url('./static/img/rule.png');
|
||||
background-size: contain;
|
||||
background-repeat: none;
|
||||
}
|
||||
|
||||
.padding {
|
||||
width: 900px;
|
||||
height: 100px;
|
||||
margin: auto;
|
||||
}
|
||||
.players0801 {
|
||||
width: 899px;
|
||||
height: 696px;
|
||||
margin: auto;
|
||||
background-image: url('./static/img/0801.png');
|
||||
background-size: contain;
|
||||
background-repeat: none;
|
||||
}
|
||||
|
||||
.players0802 {
|
||||
width: 900px;
|
||||
height: 710px;
|
||||
margin: auto;
|
||||
background-image: url('./static/img/0802.png');
|
||||
background-size: contain;
|
||||
background-repeat: none;
|
||||
}
|
||||
.players0808 {
|
||||
width: 900px;
|
||||
height: 710px;
|
||||
margin: auto;
|
||||
background-image: url('./static/img/0808.png');
|
||||
background-size: contain;
|
||||
background-repeat: none;
|
||||
}
|
||||
.players0809 {
|
||||
width: 900px;
|
||||
height: 696px;
|
||||
margin: auto;
|
||||
background-image: url('./static/img/0809.png');
|
||||
background-size: contain;
|
||||
background-repeat: none;
|
||||
}
|
||||
.players0815 {
|
||||
width: 900px;
|
||||
height: 696px;
|
||||
margin: auto;
|
||||
background-image: url('./static/img/0815.png');
|
||||
background-size: contain;
|
||||
background-repeat: none;
|
||||
}
|
||||
25
main-web/client/tsconfig.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
"jsx": "react"
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
||||
40
main-web/client/tslint.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"defaultSeverity": "error",
|
||||
"extends": [
|
||||
"tslint:recommended",
|
||||
"tslint-react"
|
||||
],
|
||||
"jsRules": {},
|
||||
"rules": {
|
||||
"curly": [true, "ignore-same-line"],
|
||||
"typedef": [
|
||||
true,
|
||||
"call-signature",
|
||||
"arrow-call-signature",
|
||||
"parameter",
|
||||
"member-variable-declaration",
|
||||
"property-declaration"
|
||||
],
|
||||
"no-any": false,
|
||||
"quotemark": [true, "single"],
|
||||
"trailing-comma": false,
|
||||
"max-line-length": false,
|
||||
"ordered-imports": false,
|
||||
"object-literal-sort-keys": false,
|
||||
"member-ordering": false,
|
||||
"no-console": false,
|
||||
"align": false,
|
||||
"semicolon": [true, "always"],
|
||||
"whitespace": [true, "check-module"],
|
||||
"interface-over-type-literal": false,
|
||||
"member-access": false,
|
||||
"jsx-no-lambda": false,
|
||||
"jsx-no-multiline-js": false
|
||||
},
|
||||
"rulesDirectory": [],
|
||||
"linterOptions": {
|
||||
"exclude": [
|
||||
"src/serviceWorker.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||