Skip to content

Commit 8b9682c

Browse files
cctdanielguibescos
andauthored
[xc-admin] setup frontend template (#480)
* add xc-admin-frontend template * add more placeholder stuffs * update placefolders * fix precommit * add package-lock.json * address comments * fix type * add package-lock.json * Fix CI (#483) * fix ci Co-authored-by: guibescos <[email protected]>
1 parent bab7517 commit 8b9682c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+25262
-11764
lines changed

xc-admin/package-lock.json

Lines changed: 23213 additions & 11764 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
.pnpm-debug.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.next
2+
node_modules
3+
build
4+
coverage
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": false,
5+
"singleQuote": true
6+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
```
12+
13+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
14+
15+
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
16+
17+
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
18+
19+
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
20+
21+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
22+
23+
## Learn More
24+
25+
To learn more about Next.js, take a look at the following resources:
26+
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29+
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
31+
32+
## Deploy on Vercel
33+
34+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35+
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
function Main() {
2+
return (
3+
<div className="pt-15 relative lg:pt-20">
4+
<div className="container z-10 flex flex-col items-center justify-between pt-32 lg:flex-row ">
5+
<div className="mb-10 w-full max-w-lg text-center lg:mb-0 lg:w-1/2 lg:max-w-none lg:text-left">
6+
<h1 className="h1 mb-3">Governance Dashboard</h1>
7+
</div>
8+
</div>
9+
</div>
10+
)
11+
}
12+
13+
export default Main
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import Link from 'next/link'
2+
import Discord from '../../images/icons/discord.inline.svg'
3+
import Github from '../../images/icons/github.inline.svg'
4+
import LinkedIn from '../../images/icons/linkedin.inline.svg'
5+
import Substack from '../../images/icons/substack.inline.svg'
6+
import Telegram from '../../images/icons/telegram.inline.svg'
7+
import Twitter from '../../images/icons/twitter.inline.svg'
8+
import Youtube from '../../images/icons/youtube.inline.svg'
9+
10+
const SocialLinks = () => {
11+
return (
12+
<div className="flex items-center">
13+
<Link href="https://twitter.com/PythNetwork">
14+
<a target="_blank" className="mr-6">
15+
<Twitter />
16+
</a>
17+
</Link>
18+
<Link href="https://discord.gg/invite/PythNetwork">
19+
<a target="_blank" className="mr-6">
20+
<Discord />
21+
</a>
22+
</Link>
23+
<Link href="https://t.me/Pyth_Network">
24+
<a target="_blank" className="mr-6">
25+
<Telegram />
26+
</a>
27+
</Link>
28+
<Link href="https://www.linkedin.com/company/pyth-network">
29+
<a target="_blank" className="mr-6">
30+
<LinkedIn />
31+
</a>
32+
</Link>
33+
<Link href="https://github.com/pyth-network">
34+
<a target="_blank" className="mr-6">
35+
<Github />
36+
</a>
37+
</Link>
38+
<Link href="https://pyth.substack.com">
39+
<a target="_blank" className="mr-6">
40+
<Substack />
41+
</a>
42+
</Link>
43+
<Link href="https://www.youtube.com/channel/UCjCkvPN9ohl0UDvldfn1neg">
44+
<a target="_blank" className="">
45+
<Youtube />
46+
</a>
47+
</Link>
48+
</div>
49+
)
50+
}
51+
52+
export default SocialLinks
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import Link from 'next/link'
2+
import SocialLinks from '../common/SocialLinks'
3+
4+
const Footer = () => {
5+
return (
6+
<footer>
7+
<div className="flex flex-col-reverse items-center justify-between px-4 pt-12 pb-4 sm:px-10 lg:flex-row lg:py-6">
8+
<span className="text-[10px] lg:basis-[280px]">
9+
© 2022 Pyth Data Association
10+
</span>
11+
<div className="py-10 lg:py-0">
12+
<Link href="https://pyth.network/">
13+
<a target="_blank">Pyth Network</a>
14+
</Link>{' '}
15+
</div>
16+
<SocialLinks />
17+
</div>
18+
</footer>
19+
)
20+
}
21+
22+
export default Footer

0 commit comments

Comments
 (0)