Skip to content

Commit

Permalink
Merge pull request #4 from yusakapon/feature_#2
Browse files Browse the repository at this point in the history
Feature #2 Frontend Demo Site
  • Loading branch information
yusakapon authored Jul 3, 2022
2 parents ce449a5 + 67990e5 commit dbd96be
Show file tree
Hide file tree
Showing 23 changed files with 13,863 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/viewer/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
32 changes: 32 additions & 0 deletions frontend/viewer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel
13 changes: 13 additions & 0 deletions frontend/viewer/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"printWidth": 120,
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"arrowParens": "avoid",
"endOfLine": "lf"
}
1 change: 1 addition & 0 deletions frontend/viewer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# xyzip Viewer Sample
11 changes: 11 additions & 0 deletions frontend/viewer/components/Card.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import styles from '../styles/Home.module.css';

export default function Card({ title, imgSrc, children }) {
return (
<div className={styles.card}>
<img className={styles.cardImg} src={imgSrc} />
<h3>{title}</h3>
<p>{children}</p>
</div>
);
}
Empty file.
20 changes: 20 additions & 0 deletions frontend/viewer/components/TheHeader.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// import Logo from './LogoTypeA.svg';
import styles from '../styles/Home.module.css';

export default function TheHeader({}) {
return (
<header>
<img className="logo" src="/img/logo.png" />
<style jsx>{`
header {
padding: 2rem 0 1rem;
text-align: center;
width: 100%;
}
.logo {
width: 132px;
}
`}</style>
</header>
);
}
6 changes: 6 additions & 0 deletions frontend/viewer/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
};

module.exports = nextConfig;
Loading

0 comments on commit dbd96be

Please sign in to comment.