@accelbyte/sdk 0.1.1-alpha.57 → 0.1.1-alpha.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +8 -1
  3. package/dist/index.browser.es.js +782 -328
  4. package/dist/index.browser.es.js.map +1 -1
  5. package/dist/index.d.ts +5956 -3990
  6. package/dist/index.node.es.js +783 -329
  7. package/dist/index.node.es.js.map +1 -1
  8. package/dist/index.node.js +807 -329
  9. package/dist/index.node.js.map +1 -1
  10. package/examples/next/.env.example +7 -0
  11. package/examples/next/README.md +34 -0
  12. package/examples/next/package.json +24 -0
  13. package/examples/next/pages/_app.tsx +12 -0
  14. package/examples/next/pages/_document.tsx +19 -0
  15. package/examples/next/pages/api/hello.ts +10 -0
  16. package/examples/next/pages/index.tsx +108 -0
  17. package/examples/next/public/favicon.ico +0 -0
  18. package/examples/next/public/next.svg +1 -0
  19. package/examples/next/public/thirteen.svg +1 -0
  20. package/examples/next/public/vercel.svg +1 -0
  21. package/examples/next/styles/Home.module.css +274 -0
  22. package/examples/next/styles/globals.css +112 -0
  23. package/examples/next/yarn.lock +381 -0
  24. package/examples/node/.env.example +7 -0
  25. package/examples/node/index.mjs +51 -0
  26. package/examples/node/package.json +14 -0
  27. package/examples/node/yarn.lock +158 -0
  28. package/examples/vite/.env.example +5 -0
  29. package/examples/vite/index.html +13 -0
  30. package/examples/vite/package.json +26 -0
  31. package/examples/vite/public/vite.svg +1 -0
  32. package/examples/vite/src/App.css +43 -0
  33. package/examples/vite/src/App.tsx +64 -0
  34. package/examples/vite/src/Sdk.ts +38 -0
  35. package/examples/vite/src/assets/react.svg +1 -0
  36. package/examples/vite/src/index.css +75 -0
  37. package/examples/vite/src/main.tsx +15 -0
  38. package/examples/vite/src/vite-env.d.ts +1 -0
  39. package/examples/vite/yarn.lock +851 -0
  40. package/package.json +2 -2
@@ -0,0 +1,7 @@
1
+ # To use this file, copy this as `.env` file, then replace the values.
2
+
3
+ NEXT_SDK_BASE_URL=${NEXT_SDK_BASE_URL}
4
+ NEXT_SDK_REDIRECT_URI=${NEXT_SDK_REDIRECT_URI}
5
+ NEXT_SDK_CLIENT_ID=${NEXT_SDK_CLIENT_ID}
6
+ NEXT_SDK_NAMESPACE=${NEXT_SDK_NAMESPACE}
7
+ NEXT_SDK_ACCESS_TOKEN=${NEXT_SDK_ACCESS_TOKEN}
@@ -0,0 +1,34 @@
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
+ ## Learn More
22
+
23
+ To learn more about Next.js, take a look at the following resources:
24
+
25
+ - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26
+ - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27
+
28
+ You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
29
+
30
+ ## Deploy on Vercel
31
+
32
+ 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.
33
+
34
+ Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "next",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "scripts": {
6
+ "dev": "next dev",
7
+ "build": "next build",
8
+ "start": "next start",
9
+ "lint": "next lint",
10
+ "link:start": "yarn link @accelbyte/sdk",
11
+ "link:stop": "yarn unlink @accelbyte/sdk && yarn install --force"
12
+ },
13
+ "dependencies": {
14
+ "@accelbyte/sdk": "0.1.1-alpha.57",
15
+ "@next/font": "13.0.7",
16
+ "@types/node": "18.11.17",
17
+ "@types/react": "18.0.26",
18
+ "@types/react-dom": "18.0.9",
19
+ "next": "13.0.7",
20
+ "react": "18.2.0",
21
+ "react-dom": "18.2.0",
22
+ "typescript": "4.9.4"
23
+ }
24
+ }
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Copyright (c) 2018-2022 AccelByte Inc. All Rights Reserved
3
+ * This is licensed software from AccelByte Inc, for limitations
4
+ * and restrictions contact your company contract manager.
5
+ */
6
+ import '../styles/globals.css'
7
+ import React from 'react'
8
+ import type { AppProps } from 'next/app'
9
+
10
+ export default function App({ Component, pageProps }: AppProps) {
11
+ return <Component {...pageProps} />
12
+ }
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright (c) 2018-2022 AccelByte Inc. All Rights Reserved
3
+ * This is licensed software from AccelByte Inc, for limitations
4
+ * and restrictions contact your company contract manager.
5
+ */
6
+ import React from 'react'
7
+ import { Html, Head, Main, NextScript } from 'next/document'
8
+
9
+ export default function Document() {
10
+ return (
11
+ <Html lang="en">
12
+ <Head />
13
+ <body>
14
+ <Main />
15
+ <NextScript />
16
+ </body>
17
+ </Html>
18
+ )
19
+ }
@@ -0,0 +1,10 @@
1
+ // Next.js API route support: https://nextjs.org/docs/api-routes/introduction
2
+ import type { NextApiRequest, NextApiResponse } from 'next'
3
+
4
+ type Data = {
5
+ name: string
6
+ }
7
+
8
+ export default function handler(req: NextApiRequest, res: NextApiResponse<Data>) {
9
+ res.status(200).json({ name: 'John Doe' })
10
+ }
@@ -0,0 +1,108 @@
1
+ /*
2
+ * Copyright (c) 2018-2022 AccelByte Inc. All Rights Reserved
3
+ * This is licensed software from AccelByte Inc, for limitations
4
+ * and restrictions contact your company contract manager.
5
+ */
6
+ import React from 'react'
7
+ import { GetServerSideProps, InferGetServerSidePropsType } from 'next'
8
+ import Head from 'next/head'
9
+ import Image from 'next/image'
10
+ import styles from '../styles/Home.module.css'
11
+
12
+ import { Accelbyte, CurrencyInfo, DiscoveryConfigData, ItemInfo, ItemPagingSlicedResult, NamespaceInfo } from '@accelbyte/sdk'
13
+
14
+ const SDK_CONFIG = {
15
+ baseURL: process.env.NEXT_SDK_BASE_URL || '',
16
+ clientId: process.env.NEXT_SDK_CLIENT_ID || '',
17
+ namespace: process.env.NEXT_SDK_NAMESPACE || '',
18
+ redirectURI: process.env.NEXT_SDK_REDIRECT_URI || ''
19
+ }
20
+
21
+ const sdk = Accelbyte.SDK({
22
+ options: SDK_CONFIG,
23
+ config: {
24
+ headers: {
25
+ Authorization: `Bearer ${process.env.NEXT_SDK_ACCESS_TOKEN}`
26
+ }
27
+ }
28
+ })
29
+
30
+ interface TestSdkReturnType {
31
+ loginURL: string
32
+ listDiscoveryConfigs: DiscoveryConfigData | undefined
33
+ listOfCurrencies: CurrencyInfo[] | undefined
34
+ listOfItems: ItemPagingSlicedResult | undefined
35
+ listOfNamespaces: NamespaceInfo[] | undefined
36
+ }
37
+
38
+ export const getServerSideProps: GetServerSideProps<{ data: TestSdkReturnType }> = async () => {
39
+ const [listDiscoveryConfigs, listOfCurrencies, listOfItems, listOfNamespaces] = await Promise.all([
40
+ sdk.AccelbyteConfig.PublicTemplate().getDiscoveryTemplateConfigs(),
41
+
42
+ sdk.Platform.Currency().getCurrencies(),
43
+ sdk.Platform.Item().fetchItemsByCriteria({}),
44
+
45
+ // These require authentication and we can't use it right away.
46
+ // Ensure that you have set `NEXT_SDK_ACCESS_TOKEN` in the `.env` file.
47
+ sdk.Basic.Namespace().getNamespaces()
48
+ ])
49
+
50
+ return {
51
+ props: {
52
+ data: {
53
+ loginURL: sdk.IAM.UserAuthorization().createLoginURL(),
54
+ listDiscoveryConfigs: listDiscoveryConfigs.response?.data,
55
+ listOfCurrencies: listOfCurrencies.response?.data,
56
+ listOfItems: listOfItems.response?.data,
57
+ listOfNamespaces: listOfNamespaces.response?.data
58
+ }
59
+ }
60
+ }
61
+ }
62
+
63
+ // Page.
64
+ export default function Home({ data }: InferGetServerSidePropsType<typeof getServerSideProps>) {
65
+ return (
66
+ <>
67
+ <Head>
68
+ <title>Create Next App</title>
69
+ <meta name="description" content="Generated by create next app" />
70
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
71
+ <link rel="icon" href="/favicon.ico" />
72
+ </Head>
73
+ <main className={styles.main}>
74
+ <div className={styles.description}>
75
+ <p>
76
+ Get started by editing&nbsp;
77
+ <code className={styles.code}>pages/index.tsx</code>
78
+ </p>
79
+ <div>
80
+ <a
81
+ href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
82
+ target="_blank"
83
+ rel="noopener noreferrer">
84
+ By <Image src="/vercel.svg" alt="Vercel Logo" className={styles.vercelLogo} width={100} height={24} priority />
85
+ </a>
86
+ </div>
87
+ </div>
88
+
89
+ <div className={styles.responses}>
90
+ {Object.keys(data).map(key => (
91
+ <Collapsible key={key} json={data[key as keyof TestSdkReturnType]} title={key} />
92
+ ))}
93
+ </div>
94
+ </main>
95
+ </>
96
+ )
97
+ }
98
+
99
+ // composing components.
100
+ function Collapsible(props: { title: string; json: any }) {
101
+ return (
102
+ <details>
103
+ <summary>{props.title}</summary>
104
+
105
+ <pre>{JSON.stringify(props.json, null, 2)}</pre>
106
+ </details>
107
+ )
108
+ }
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="40" height="31" fill="none"><g opacity=".9"><path fill="url(#a)" d="M13 .4v29.3H7V6.3h-.2L0 10.5V5L7.2.4H13Z"/><path fill="url(#b)" d="M28.8 30.1c-2.2 0-4-.3-5.7-1-1.7-.8-3-1.8-4-3.1a7.7 7.7 0 0 1-1.4-4.6h6.2c0 .8.3 1.4.7 2 .4.5 1 .9 1.7 1.2.7.3 1.6.4 2.5.4 1 0 1.7-.2 2.5-.5.7-.3 1.3-.8 1.7-1.4.4-.6.6-1.2.6-2s-.2-1.5-.7-2.1c-.4-.6-1-1-1.8-1.4-.8-.4-1.8-.5-2.9-.5h-2.7v-4.6h2.7a6 6 0 0 0 2.5-.5 4 4 0 0 0 1.7-1.3c.4-.6.6-1.3.6-2a3.5 3.5 0 0 0-2-3.3 5.6 5.6 0 0 0-4.5 0 4 4 0 0 0-1.7 1.2c-.4.6-.6 1.2-.6 2h-6c0-1.7.6-3.2 1.5-4.5 1-1.3 2.2-2.3 3.8-3C25 .4 26.8 0 28.8 0s3.8.4 5.3 1.1c1.5.7 2.7 1.7 3.6 3a7.2 7.2 0 0 1 1.2 4.2c0 1.6-.5 3-1.5 4a7 7 0 0 1-4 2.2v.2c2.2.3 3.8 1 5 2.2a6.4 6.4 0 0 1 1.6 4.6c0 1.7-.5 3.1-1.4 4.4a9.7 9.7 0 0 1-4 3.1c-1.7.8-3.7 1.1-5.8 1.1Z"/></g><defs><linearGradient id="a" x1="20" x2="20" y1="0" y2="30.1" gradientUnits="userSpaceOnUse"><stop/><stop offset="1" stop-color="#3D3D3D"/></linearGradient><linearGradient id="b" x1="20" x2="20" y1="0" y2="30.1" gradientUnits="userSpaceOnUse"><stop/><stop offset="1" stop-color="#3D3D3D"/></linearGradient></defs></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 283 64"><path fill="black" d="M141 16c-11 0-19 7-19 18s9 18 20 18c7 0 13-3 16-7l-7-5c-2 3-6 4-9 4-5 0-9-3-10-7h28v-3c0-11-8-18-19-18zm-9 15c1-4 4-7 9-7s8 3 9 7h-18zm117-15c-11 0-19 7-19 18s9 18 20 18c6 0 12-3 16-7l-8-5c-2 3-5 4-8 4-5 0-9-3-11-7h28l1-3c0-11-8-18-19-18zm-10 15c2-4 5-7 10-7s8 3 9 7h-19zm-39 3c0 6 4 10 10 10 4 0 7-2 9-5l8 5c-3 5-9 8-17 8-11 0-19-7-19-18s8-18 19-18c8 0 14 3 17 8l-8 5c-2-3-5-5-9-5-6 0-10 4-10 10zm83-29v46h-9V5h9zM37 0l37 64H0L37 0zm92 5-27 48L74 5h10l18 30 17-30h10zm59 12v10l-3-1c-6 0-10 4-10 10v15h-9V17h9v9c0-5 6-9 13-9z"/></svg>
@@ -0,0 +1,274 @@
1
+ /*
2
+ * Copyright (c) 2018-2022 AccelByte Inc. All Rights Reserved
3
+ * This is licensed software from AccelByte Inc, for limitations
4
+ * and restrictions contact your company contract manager.
5
+ */
6
+ .main {
7
+ display: flex;
8
+ flex-direction: column;
9
+ justify-content: space-between;
10
+ align-items: center;
11
+ min-height: 100vh;
12
+ }
13
+
14
+ .description {
15
+ display: inherit;
16
+ justify-content: inherit;
17
+ align-items: inherit;
18
+ font-size: 0.85rem;
19
+ max-width: var(--max-width);
20
+ width: 100%;
21
+ z-index: 2;
22
+ font-family: var(--font-mono);
23
+ }
24
+
25
+ .description a {
26
+ display: flex;
27
+ justify-content: center;
28
+ align-items: center;
29
+ gap: 0.5rem;
30
+ }
31
+
32
+ .description p {
33
+ position: relative;
34
+ margin: 0;
35
+ padding: 1rem;
36
+ background-color: rgba(var(--callout-rgb), 0.5);
37
+ border: 1px solid rgba(var(--callout-border-rgb), 0.3);
38
+ border-radius: var(--border-radius);
39
+ }
40
+
41
+ .code {
42
+ font-weight: 700;
43
+ font-family: var(--font-mono);
44
+ }
45
+
46
+ .grid {
47
+ display: grid;
48
+ grid-template-columns: repeat(4, minmax(25%, auto));
49
+ width: var(--max-width);
50
+ max-width: 100%;
51
+ }
52
+
53
+ .card {
54
+ padding: 1rem 1.2rem;
55
+ border-radius: var(--border-radius);
56
+ background: rgba(var(--card-rgb), 0);
57
+ border: 1px solid rgba(var(--card-border-rgb), 0);
58
+ transition: background 200ms, border 200ms;
59
+ }
60
+
61
+ .card span {
62
+ display: inline-block;
63
+ transition: transform 200ms;
64
+ }
65
+
66
+ .card h2 {
67
+ font-weight: 600;
68
+ margin-bottom: 0.7rem;
69
+ }
70
+
71
+ .card p {
72
+ margin: 0;
73
+ opacity: 0.6;
74
+ font-size: 0.9rem;
75
+ line-height: 1.5;
76
+ max-width: 30ch;
77
+ }
78
+
79
+ .center {
80
+ display: flex;
81
+ justify-content: center;
82
+ align-items: center;
83
+ position: relative;
84
+ padding: 4rem 0;
85
+ }
86
+
87
+ .center::before {
88
+ background: var(--secondary-glow);
89
+ border-radius: 50%;
90
+ width: 480px;
91
+ height: 360px;
92
+ margin-left: -400px;
93
+ }
94
+
95
+ .center::after {
96
+ background: var(--primary-glow);
97
+ width: 240px;
98
+ height: 180px;
99
+ z-index: -1;
100
+ }
101
+
102
+ .center::before,
103
+ .center::after {
104
+ content: '';
105
+ left: 50%;
106
+ position: absolute;
107
+ filter: blur(45px);
108
+ transform: translateZ(0);
109
+ }
110
+
111
+ .logo,
112
+ .thirteen {
113
+ position: relative;
114
+ }
115
+
116
+ .thirteen {
117
+ display: flex;
118
+ justify-content: center;
119
+ align-items: center;
120
+ width: 75px;
121
+ height: 75px;
122
+ padding: 25px 10px;
123
+ margin-left: 16px;
124
+ transform: translateZ(0);
125
+ border-radius: var(--border-radius);
126
+ overflow: hidden;
127
+ box-shadow: 0px 2px 8px -1px #0000001a;
128
+ }
129
+
130
+ .thirteen::before,
131
+ .thirteen::after {
132
+ content: '';
133
+ position: absolute;
134
+ z-index: -1;
135
+ }
136
+
137
+ /* Conic Gradient Animation */
138
+ .thirteen::before {
139
+ animation: 6s rotate linear infinite;
140
+ width: 200%;
141
+ height: 200%;
142
+ background: var(--tile-border);
143
+ }
144
+
145
+ /* Inner Square */
146
+ .thirteen::after {
147
+ inset: 0;
148
+ padding: 1px;
149
+ border-radius: var(--border-radius);
150
+ background: linear-gradient(to bottom right, rgba(var(--tile-start-rgb), 1), rgba(var(--tile-end-rgb), 1));
151
+ background-clip: content-box;
152
+ }
153
+
154
+ /* Enable hover only on non-touch devices */
155
+ @media (hover: hover) and (pointer: fine) {
156
+ .card:hover {
157
+ background: rgba(var(--card-rgb), 0.1);
158
+ border: 1px solid rgba(var(--card-border-rgb), 0.15);
159
+ }
160
+
161
+ .card:hover span {
162
+ transform: translateX(4px);
163
+ }
164
+ }
165
+
166
+ @media (prefers-reduced-motion) {
167
+ .thirteen::before {
168
+ animation: none;
169
+ }
170
+
171
+ .card:hover span {
172
+ transform: none;
173
+ }
174
+ }
175
+
176
+ /* Mobile */
177
+ @media (max-width: 700px) {
178
+ .content {
179
+ padding: 4rem;
180
+ }
181
+
182
+ .grid {
183
+ grid-template-columns: 1fr;
184
+ margin-bottom: 120px;
185
+ max-width: 320px;
186
+ text-align: center;
187
+ }
188
+
189
+ .card {
190
+ padding: 1rem 2.5rem;
191
+ }
192
+
193
+ .card h2 {
194
+ margin-bottom: 0.5rem;
195
+ }
196
+
197
+ .center {
198
+ padding: 8rem 0 6rem;
199
+ }
200
+
201
+ .center::before {
202
+ transform: none;
203
+ height: 300px;
204
+ }
205
+
206
+ .description {
207
+ font-size: 0.8rem;
208
+ }
209
+
210
+ .description a {
211
+ padding: 1rem;
212
+ }
213
+
214
+ .description p,
215
+ .description div {
216
+ display: flex;
217
+ justify-content: center;
218
+ position: fixed;
219
+ width: 100%;
220
+ }
221
+
222
+ .description p {
223
+ align-items: center;
224
+ inset: 0 0 auto;
225
+ padding: 2rem 1rem 1.4rem;
226
+ border-radius: 0;
227
+ border: none;
228
+ border-bottom: 1px solid rgba(var(--callout-border-rgb), 0.25);
229
+ background: linear-gradient(to bottom, rgba(var(--background-start-rgb), 1), rgba(var(--callout-rgb), 0.5));
230
+ background-clip: padding-box;
231
+ backdrop-filter: blur(24px);
232
+ }
233
+
234
+ .description div {
235
+ align-items: flex-end;
236
+ pointer-events: none;
237
+ inset: auto 0 0;
238
+ padding: 2rem;
239
+ height: 200px;
240
+ background: linear-gradient(to bottom, transparent 0%, rgb(var(--background-end-rgb)) 40%);
241
+ z-index: 1;
242
+ }
243
+ }
244
+
245
+ /* Tablet and Smaller Desktop */
246
+ @media (min-width: 701px) and (max-width: 1120px) {
247
+ .grid {
248
+ grid-template-columns: repeat(2, 50%);
249
+ }
250
+ }
251
+
252
+ @media (prefers-color-scheme: dark) {
253
+ .vercelLogo {
254
+ filter: invert(1);
255
+ }
256
+
257
+ .logo,
258
+ .thirteen img {
259
+ filter: invert(1) drop-shadow(0 0 0.3rem #ffffff70);
260
+ }
261
+ }
262
+
263
+ @keyframes rotate {
264
+ from {
265
+ transform: rotate(360deg);
266
+ }
267
+ to {
268
+ transform: rotate(0deg);
269
+ }
270
+ }
271
+
272
+ .responses {
273
+ width: 100%;
274
+ }
@@ -0,0 +1,112 @@
1
+ /*
2
+ * Copyright (c) 2018-2022 AccelByte Inc. All Rights Reserved
3
+ * This is licensed software from AccelByte Inc, for limitations
4
+ * and restrictions contact your company contract manager.
5
+ */
6
+ :root {
7
+ --max-width: 1100px;
8
+ --border-radius: 12px;
9
+ --font-mono: ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono',
10
+ 'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace', 'Source Code Pro',
11
+ 'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace;
12
+
13
+ --foreground-rgb: 0, 0, 0;
14
+ --background-start-rgb: 214, 219, 220;
15
+ --background-end-rgb: 255, 255, 255;
16
+
17
+ --primary-glow: conic-gradient(
18
+ from 180deg at 50% 50%,
19
+ #16abff33 0deg,
20
+ #0885ff33 55deg,
21
+ #54d6ff33 120deg,
22
+ #0071ff33 160deg,
23
+ transparent 360deg
24
+ );
25
+ --secondary-glow: radial-gradient(
26
+ rgba(255, 255, 255, 1),
27
+ rgba(255, 255, 255, 0)
28
+ );
29
+
30
+ --tile-start-rgb: 239, 245, 249;
31
+ --tile-end-rgb: 228, 232, 233;
32
+ --tile-border: conic-gradient(
33
+ #00000080,
34
+ #00000040,
35
+ #00000030,
36
+ #00000020,
37
+ #00000010,
38
+ #00000010,
39
+ #00000080
40
+ );
41
+
42
+ --callout-rgb: 238, 240, 241;
43
+ --callout-border-rgb: 172, 175, 176;
44
+ --card-rgb: 180, 185, 188;
45
+ --card-border-rgb: 131, 134, 135;
46
+ }
47
+
48
+ @media (prefers-color-scheme: dark) {
49
+ :root {
50
+ --foreground-rgb: 255, 255, 255;
51
+ --background-start-rgb: 0, 0, 0;
52
+ --background-end-rgb: 0, 0, 0;
53
+
54
+ --primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
55
+ --secondary-glow: linear-gradient(
56
+ to bottom right,
57
+ rgba(1, 65, 255, 0),
58
+ rgba(1, 65, 255, 0),
59
+ rgba(1, 65, 255, 0.3)
60
+ );
61
+
62
+ --tile-start-rgb: 2, 13, 46;
63
+ --tile-end-rgb: 2, 5, 19;
64
+ --tile-border: conic-gradient(
65
+ #ffffff80,
66
+ #ffffff40,
67
+ #ffffff30,
68
+ #ffffff20,
69
+ #ffffff10,
70
+ #ffffff10,
71
+ #ffffff80
72
+ );
73
+
74
+ --callout-rgb: 20, 20, 20;
75
+ --callout-border-rgb: 108, 108, 108;
76
+ --card-rgb: 100, 100, 100;
77
+ --card-border-rgb: 200, 200, 200;
78
+ }
79
+ }
80
+
81
+ * {
82
+ box-sizing: border-box;
83
+ padding: 0;
84
+ margin: 0;
85
+ }
86
+
87
+ html,
88
+ body {
89
+ max-width: 100vw;
90
+ overflow-x: hidden;
91
+ }
92
+
93
+ body {
94
+ color: rbg(--foreground-rgb);
95
+ background: linear-gradient(
96
+ to bottom,
97
+ transparent,
98
+ rgb(var(--background-end-rgb))
99
+ )
100
+ rgb(var(--background-start-rgb));
101
+ }
102
+
103
+ a {
104
+ color: inherit;
105
+ text-decoration: none;
106
+ }
107
+
108
+ @media (prefers-color-scheme: dark) {
109
+ html {
110
+ color-scheme: dark;
111
+ }
112
+ }