@platformatic/ui-components 0.1.11 → 0.1.13
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.
- package/.github/workflows/ci.yml +26 -0
- package/dist/assets/index.133cf9fb.css +1 -0
- package/dist/assets/{index.03c3e650.js → index.97014e0d.js} +14 -14
- package/dist/index.html +2 -2
- package/dist/main.css +32 -11
- package/index.js +15 -1
- package/package.json +9 -2
- package/src/components/ApiSummary.jsx +2 -2
- package/src/components/Box.jsx +11 -0
- package/src/components/Box.module.css +3 -0
- package/src/components/FollowUs.jsx +35 -0
- package/src/components/FollowUs.module.css +11 -0
- package/src/components/FrontpageBackground.jsx +11 -0
- package/src/components/FrontpageBackground.module.css +10 -0
- package/src/components/List.jsx +20 -0
- package/src/components/List.module.css +11 -0
- package/src/components/ListElement.jsx +23 -0
- package/src/components/ListElement.module.css +23 -0
- package/src/components/Logo.jsx +76 -0
- package/src/components/PullRequest.jsx +54 -19
- package/src/components/PullRequest.module.css +17 -2
- package/src/components/Status.jsx +26 -0
- package/src/lib/utils.js +3 -0
- package/src/stories/BorderedBox.stories.jsx +11 -2
- package/src/stories/FollowUs.stories.jsx +14 -0
- package/src/stories/Frontpage.stories.jsx +42 -0
- package/src/stories/FrontpageBackground.stories.jsx +17 -0
- package/src/stories/HorizontalSeparator.stories.jsx +12 -0
- package/src/stories/List.stories.jsx +29 -0
- package/src/stories/ListElement.stories.jsx +15 -0
- package/src/stories/Logo.stories.jsx +14 -0
- package/src/stories/PullRequest.stories.jsx +31 -5
- package/src/stories/Status.stories.jsx +31 -0
- package/src/stories/{TesxtWithLabel.stories.jsx → TextWithLabel.stories.jsx} +0 -0
- package/vitest.config.js +1 -1
- package/dist/assets/index.2277ba1a.css +0 -1
- package/src/components/Api/Status.jsx +0 -20
- package/storybook-static/0.53758dff751ed2733218.manager.bundle.js +0 -2
- package/storybook-static/0.53758dff751ed2733218.manager.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/1.9d13fd5be5dcb92d80a6.manager.bundle.js +0 -1
- package/storybook-static/5.410945cbec993452eed2.manager.bundle.js +0 -2
- package/storybook-static/5.410945cbec993452eed2.manager.bundle.js.LICENSE.txt +0 -31
- package/storybook-static/6.9ef90ca53c7deb768ec6.manager.bundle.js +0 -1
- package/storybook-static/7.47a294f1c5761295c4cb.manager.bundle.js +0 -1
- package/storybook-static/8.35b89a87599812bb0515.manager.bundle.js +0 -2
- package/storybook-static/8.35b89a87599812bb0515.manager.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/9.d19ea1957ceb9893827c.manager.bundle.js +0 -1
- package/storybook-static/api-icon-closed.svg +0 -6
- package/storybook-static/api-icon.svg +0 -9
- package/storybook-static/assets/BorderedBox.stories.8d7654fe.css +0 -1
- package/storybook-static/assets/BorderedBox.stories.f9bbae3a.js +0 -26
- package/storybook-static/assets/BorderedBox.stories.f9bbae3a.js.map +0 -1
- package/storybook-static/assets/Button.7e305135.js +0 -2
- package/storybook-static/assets/Button.7e305135.js.map +0 -1
- package/storybook-static/assets/Button.bc1a867b.css +0 -1
- package/storybook-static/assets/Button.stories.8d745781.js +0 -42
- package/storybook-static/assets/Button.stories.8d745781.js.map +0 -1
- package/storybook-static/assets/Color-f953d088.a38b7cbd.js +0 -3
- package/storybook-static/assets/Color-f953d088.a38b7cbd.js.map +0 -1
- package/storybook-static/assets/GlobalScrollAreaStyles-8793ce4a.cf1537f5.js +0 -2
- package/storybook-static/assets/GlobalScrollAreaStyles-8793ce4a.cf1537f5.js.map +0 -1
- package/storybook-static/assets/Header.4fc7684b.css +0 -1
- package/storybook-static/assets/Header.cf6306b0.js +0 -2
- package/storybook-static/assets/Header.cf6306b0.js.map +0 -1
- package/storybook-static/assets/Header.stories.17ffb615.js +0 -26
- package/storybook-static/assets/Header.stories.17ffb615.js.map +0 -1
- package/storybook-static/assets/Introduction.stories.bc0afbca.js +0 -105
- package/storybook-static/assets/Introduction.stories.bc0afbca.js.map +0 -1
- package/storybook-static/assets/LoginButton.stories.10ae424d.js +0 -776
- package/storybook-static/assets/LoginButton.stories.10ae424d.js.map +0 -1
- package/storybook-static/assets/LoginButton.stories.edf744f1.css +0 -1
- package/storybook-static/assets/OverlayScrollbars-1355f44c.fce02603.js +0 -18
- package/storybook-static/assets/OverlayScrollbars-1355f44c.fce02603.js.map +0 -1
- package/storybook-static/assets/Page.stories.0913ba40.css +0 -1
- package/storybook-static/assets/Page.stories.76f6205c.js +0 -84
- package/storybook-static/assets/Page.stories.76f6205c.js.map +0 -1
- package/storybook-static/assets/Props.8d39388f.js +0 -187
- package/storybook-static/assets/Props.8d39388f.js.map +0 -1
- package/storybook-static/assets/WithTooltip-167e9982.ebb6fc8d.js +0 -11
- package/storybook-static/assets/WithTooltip-167e9982.ebb6fc8d.js.map +0 -1
- package/storybook-static/assets/client.177c4b3e.js +0 -2
- package/storybook-static/assets/client.177c4b3e.js.map +0 -1
- package/storybook-static/assets/code-brackets.9ef6443e.svg +0 -1
- package/storybook-static/assets/colors.ac9401f3.svg +0 -1
- package/storybook-static/assets/comments.f15a6837.svg +0 -1
- package/storybook-static/assets/config.3c15c657.js +0 -74
- package/storybook-static/assets/config.3c15c657.js.map +0 -1
- package/storybook-static/assets/config.be729574.js +0 -2
- package/storybook-static/assets/config.be729574.js.map +0 -1
- package/storybook-static/assets/direction.94a9917f.svg +0 -1
- package/storybook-static/assets/es.map.constructor.bc2f31bd.js +0 -2
- package/storybook-static/assets/es.map.constructor.bc2f31bd.js.map +0 -1
- package/storybook-static/assets/es.number.to-fixed.db152345.js +0 -2
- package/storybook-static/assets/es.number.to-fixed.db152345.js.map +0 -1
- package/storybook-static/assets/es.regexp.flags.ebae2243.js +0 -2
- package/storybook-static/assets/es.regexp.flags.ebae2243.js.map +0 -1
- package/storybook-static/assets/es.string.from-code-point.e6202842.js +0 -2
- package/storybook-static/assets/es.string.from-code-point.e6202842.js.map +0 -1
- package/storybook-static/assets/flow.275142c6.svg +0 -1
- package/storybook-static/assets/formatter-0d5cb0eb.aebafedb.js +0 -297
- package/storybook-static/assets/formatter-0d5cb0eb.aebafedb.js.map +0 -1
- package/storybook-static/assets/iframe.aab06436.js +0 -153
- package/storybook-static/assets/iframe.aab06436.js.map +0 -1
- package/storybook-static/assets/index.7df59845.js +0 -2
- package/storybook-static/assets/index.7df59845.js.map +0 -1
- package/storybook-static/assets/index.814c1dee.js +0 -9
- package/storybook-static/assets/index.814c1dee.js.map +0 -1
- package/storybook-static/assets/index.c7ae27b6.js +0 -25
- package/storybook-static/assets/index.c7ae27b6.js.map +0 -1
- package/storybook-static/assets/index.f76a1af3.js +0 -2
- package/storybook-static/assets/index.f76a1af3.js.map +0 -1
- package/storybook-static/assets/instrumenter.3eab649e.js +0 -4
- package/storybook-static/assets/instrumenter.3eab649e.js.map +0 -1
- package/storybook-static/assets/jsx-runtime.e2ea81d7.js +0 -18
- package/storybook-static/assets/jsx-runtime.e2ea81d7.js.map +0 -1
- package/storybook-static/assets/make-decorator.7fb2aeb9.js +0 -3
- package/storybook-static/assets/make-decorator.7fb2aeb9.js.map +0 -1
- package/storybook-static/assets/plugin.57148314.svg +0 -1
- package/storybook-static/assets/preview.0975d66e.js +0 -3
- package/storybook-static/assets/preview.0975d66e.js.map +0 -1
- package/storybook-static/assets/preview.38b4e44b.js +0 -14
- package/storybook-static/assets/preview.38b4e44b.js.map +0 -1
- package/storybook-static/assets/preview.4099ceae.js +0 -2
- package/storybook-static/assets/preview.4099ceae.js.map +0 -1
- package/storybook-static/assets/preview.43118df9.js +0 -26
- package/storybook-static/assets/preview.43118df9.js.map +0 -1
- package/storybook-static/assets/preview.4dfec941.js +0 -2
- package/storybook-static/assets/preview.4dfec941.js.map +0 -1
- package/storybook-static/assets/preview.b37e665b.js +0 -397
- package/storybook-static/assets/preview.b37e665b.js.map +0 -1
- package/storybook-static/assets/preview.b8ebcf81.css +0 -1
- package/storybook-static/assets/preview.cc910bd3.js +0 -2
- package/storybook-static/assets/preview.cc910bd3.js.map +0 -1
- package/storybook-static/assets/preview.f14efd1d.js +0 -3
- package/storybook-static/assets/preview.f14efd1d.js.map +0 -1
- package/storybook-static/assets/renderDocs.4312919d.js +0 -2
- package/storybook-static/assets/renderDocs.4312919d.js.map +0 -1
- package/storybook-static/assets/repo.fb4ece47.svg +0 -1
- package/storybook-static/assets/stackalt.2ad81543.svg +0 -1
- package/storybook-static/assets/string.6cc73134.js +0 -2
- package/storybook-static/assets/string.6cc73134.js.map +0 -1
- package/storybook-static/assets/syntaxhighlighter-b07b042a.04697fcf.js +0 -16
- package/storybook-static/assets/syntaxhighlighter-b07b042a.04697fcf.js.map +0 -1
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +0 -486
- package/storybook-static/index.html +0 -59
- package/storybook-static/main.1e2c996516b3b52674de.manager.bundle.js +0 -1
- package/storybook-static/project.json +0 -1
- package/storybook-static/runtime~main.904779a78e0adff8f659.manager.bundle.js +0 -1
- package/storybook-static/stories.json +0 -1
- package/storybook-static/vendors~main.ab297a8d7023057bddf0.manager.bundle.js +0 -2
- package/storybook-static/vendors~main.ab297a8d7023057bddf0.manager.bundle.js.LICENSE.txt +0 -107
- package/storybook-static/vite.svg +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react'
|
|
3
|
+
import FrontpageBackground from '../components/FrontpageBackground'
|
|
4
|
+
import TwoColumnsLayout from '../components/layouts/TwoColumnsLayout'
|
|
5
|
+
import Box from '../components/Box'
|
|
6
|
+
import GHLoginButton from '../components/GHLoginButton'
|
|
7
|
+
import Logo from '../components/Logo'
|
|
8
|
+
import List from '../components/List'
|
|
9
|
+
import ListElement from '../components/ListElement'
|
|
10
|
+
import HorizontalSeparator from '../components/HorizontalSeparator'
|
|
11
|
+
import FollowUs from '../components/FollowUs'
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
title: 'Platformatic/Frontpage'
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const Template = (args) =>
|
|
18
|
+
<FrontpageBackground>
|
|
19
|
+
|
|
20
|
+
<TwoColumnsLayout>
|
|
21
|
+
<Box>
|
|
22
|
+
<Logo width={80} />
|
|
23
|
+
<List title='platformatic'>
|
|
24
|
+
<ListElement title='Instant edge deploy' detail='Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed et dui facilisis, molestie urna sed, volutpat nibh.' />
|
|
25
|
+
<ListElement title='Collaborate with previews' detail='Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed et dui facilisis, molestie urna sed, volutpat nibh.' />
|
|
26
|
+
<ListElement title='Turn static to dynamic' detail='Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed et dui facilisis, molestie urna sed, volutpat nibh.' />
|
|
27
|
+
<ListElement title='Ship directly to the edge' detail='Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed et dui facilisis, molestie urna sed, volutpat nibh.' />
|
|
28
|
+
</List>
|
|
29
|
+
<HorizontalSeparator />
|
|
30
|
+
<FollowUs />
|
|
31
|
+
</Box>
|
|
32
|
+
<Box>
|
|
33
|
+
<p className='text-5xl text-main-green font-bold mt-24 mb-16'>Join the best backend teams</p>
|
|
34
|
+
<GHLoginButton />
|
|
35
|
+
<p className='text-white my-8 w-80'> by clicking continue, you agree to our <a href="javascript:alert('todo')">Terms of Service</a> and <a href="javascript:alert('todo')">Privacy policy.</a> </p>
|
|
36
|
+
<HorizontalSeparator />
|
|
37
|
+
</Box>
|
|
38
|
+
</TwoColumnsLayout>
|
|
39
|
+
</FrontpageBackground>
|
|
40
|
+
|
|
41
|
+
export const Frontpage = Template.bind({})
|
|
42
|
+
Frontpage.args = {}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import FrontpageBackground from '../components/FrontpageBackground'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Platformatic/FrontpageBackground',
|
|
6
|
+
component: FrontpageBackground
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const Template = (args) =>
|
|
10
|
+
<FrontpageBackground>
|
|
11
|
+
<div className='grid h-screen place-items-center'>
|
|
12
|
+
<p className='text-main-green text-4xl'>Frontpage Background</p>
|
|
13
|
+
</div>
|
|
14
|
+
</FrontpageBackground>
|
|
15
|
+
|
|
16
|
+
export const FrontpageBackgroundDefault = Template.bind({})
|
|
17
|
+
FrontpageBackgroundDefault.args = {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import HorizontalSeparator from '../components/HorizontalSeparator'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Platformatic/HorizontalSeparator',
|
|
6
|
+
component: HorizontalSeparator
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const Template = (args) => <HorizontalSeparator {...args} />
|
|
10
|
+
|
|
11
|
+
export const HorizontalSeparatorDefault = Template.bind({})
|
|
12
|
+
HorizontalSeparatorDefault.args = {}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import List from '../components/List'
|
|
3
|
+
import ListElement from '../components/ListElement'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Platformatic/List',
|
|
7
|
+
component: List
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const Template = (args) => <List {...args} />
|
|
11
|
+
export const ListWithNoElements = Template.bind({})
|
|
12
|
+
ListWithNoElements.args = {
|
|
13
|
+
title: 'List Title'
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const TemplateWithElements = (args) => (
|
|
17
|
+
<List {...args}>
|
|
18
|
+
<ListElement title='List Element 1' detail='Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed et dui facilisis, molestie urna sed, volutpat nibh.' />
|
|
19
|
+
<ListElement title='List Element 2' detail='Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed et dui facilisis, molestie urna sed, volutpat nibh.' />
|
|
20
|
+
</List>
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
export const ListWithElements = TemplateWithElements.bind({})
|
|
24
|
+
ListWithElements.args = {
|
|
25
|
+
title: 'List Title'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const ListWithElementsNoTitle = TemplateWithElements.bind({})
|
|
29
|
+
ListWithElementsNoTitle.args = {}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import ListElement from '../components/ListElement'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Platformatic/ListElement',
|
|
6
|
+
component: ListElement
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const Template = (args) => <ListElement {...args} />
|
|
10
|
+
|
|
11
|
+
export const ListElementFull = Template.bind({})
|
|
12
|
+
ListElementFull.args = {
|
|
13
|
+
title: 'List Element Title',
|
|
14
|
+
detail: 'Lorem Ipsum dolor sit amet consectetur adipiscing elit. Qui enim potest, nisi quis potest, negare'
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Logo from '../components/Logo'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Platformatic/Logo',
|
|
6
|
+
component: Logo
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const Template = (args) => <Logo {...args} />
|
|
10
|
+
export const LogoSmall = Template.bind({})
|
|
11
|
+
LogoSmall.args = {
|
|
12
|
+
width: 300,
|
|
13
|
+
heigth: 300
|
|
14
|
+
}
|
|
@@ -4,14 +4,13 @@ export default {
|
|
|
4
4
|
title: 'Platformatic/PullRequest',
|
|
5
5
|
component: PullRequest,
|
|
6
6
|
argTypes: {
|
|
7
|
-
color: { control: 'color' }
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
9
|
|
|
11
|
-
const Template = (args) => <PullRequest {...args}
|
|
10
|
+
const Template = (args) => <PullRequest {...args} />
|
|
12
11
|
|
|
13
|
-
export const
|
|
14
|
-
|
|
12
|
+
export const Available = Template.bind({})
|
|
13
|
+
Available.args = {
|
|
15
14
|
id: '88',
|
|
16
15
|
title: 'doc: host => hostname, binded to 0.0.0.0 to be more container friendly',
|
|
17
16
|
url: 'http://example.com',
|
|
@@ -19,5 +18,32 @@ Standard.args = {
|
|
|
19
18
|
sha: 'bgb3ffe3',
|
|
20
19
|
author: 'Foobar',
|
|
21
20
|
date: '2022-10-11'
|
|
22
|
-
}
|
|
21
|
+
},
|
|
22
|
+
status: 'available'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const Running = Template.bind({})
|
|
26
|
+
Running.args = {
|
|
27
|
+
id: '88',
|
|
28
|
+
title: 'doc: host => hostname, binded to 0.0.0.0 to be more container friendly',
|
|
29
|
+
url: 'http://example.com',
|
|
30
|
+
lastCommit: {
|
|
31
|
+
sha: 'bgb3ffe3',
|
|
32
|
+
author: 'Foobar',
|
|
33
|
+
date: '2022-10-11'
|
|
34
|
+
},
|
|
35
|
+
status: 'running'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const Unavailable = Template.bind({})
|
|
39
|
+
Unavailable.args = {
|
|
40
|
+
id: '88',
|
|
41
|
+
title: 'doc: host => hostname, binded to 0.0.0.0 to be more container friendly',
|
|
42
|
+
url: 'http://example.com',
|
|
43
|
+
lastCommit: {
|
|
44
|
+
sha: 'bgb3ffe3',
|
|
45
|
+
author: 'Foobar',
|
|
46
|
+
date: '2022-10-11'
|
|
47
|
+
},
|
|
48
|
+
status: 'unavailable'
|
|
23
49
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
import Status from '../components/Status'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Platformatic/Status',
|
|
6
|
+
component: Status,
|
|
7
|
+
argTypes: {}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const Template = (args) => <Status {...args} />
|
|
11
|
+
|
|
12
|
+
export const White = Template.bind({})
|
|
13
|
+
|
|
14
|
+
White.args = {
|
|
15
|
+
color: 'white',
|
|
16
|
+
status: 'available'
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const Green = Template.bind({})
|
|
20
|
+
|
|
21
|
+
Green.args = {
|
|
22
|
+
color: 'green',
|
|
23
|
+
status: 'online'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const Red = Template.bind({})
|
|
27
|
+
|
|
28
|
+
Red.args = {
|
|
29
|
+
color: 'red',
|
|
30
|
+
status: 'offline'
|
|
31
|
+
}
|
|
File without changes
|
package/vitest.config.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._input_1v03r_1{box-sizing:border-box;display:flex;height:2.5rem;width:100%;justify-content:space-between;border-radius:.375rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(33 250 144 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._input_1v03r_1>input:focus{outline:2px solid transparent;outline-offset:2px}._padded_650jz_1{padding:.625rem .5rem}._bordered_650jz_5{box-sizing:border-box;border-radius:.375rem;border-width:1px;border-style:solid}._bordered_1ece3_1{border-radius:.375rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));padding:.25rem .5rem;letter-spacing:.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._borderedBox_1fd0d_1{margin-bottom:1rem;flex:1 1 0%;row-gap:1rem;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(0 52 79 / var(--tw-bg-opacity));padding:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._stats-header_w45a1_1{display:flex;align-items:center;justify-content:space-between;font-weight:700}._stats-main-stat_w45a1_4{display:flex;align-items:center;justify-content:center;gap:1rem}._container_pqngl_1{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._label_pqngl_4{margin-right:.5rem;font-weight:100}._text_pqngl_7{font-weight:600}._main_172rv_1{display:flex;flex-direction:column;row-gap:1rem}._footer_kawbk_1{margin-left:2.25rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem .5rem .5rem 1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._main_1uwu5_1{display:flex;align-items:center;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._data_1uwu5_5{display:flex;width:100%;flex-direction:column}._status_1uwu5_9{justify-self:end}._tabbed-container_1r9tv_1{--tw-bg-opacity: 1;background-color:rgb(0 40 61 / var(--tw-bg-opacity))}._tabs-header_1r9tv_5{margin-bottom:1rem;display:flex;height:2rem;justify-content:flex-start;text-transform:uppercase;letter-spacing:.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._tabs-header_1r9tv_5:hover{cursor:pointer}._tab_1r9tv_1{margin-right:1rem;min-width:105px;text-align:center}._selected-tab_1r9tv_11{font-weight:700;--tw-text-opacity: 1;color:rgb(33 250 144 / var(--tw-text-opacity));text-decoration-line:underline;text-underline-offset:8px}._tabs-content_1r9tv_15{height:100vh}._container_s2cim_1{display:flex;flex-direction:column}._id_s2cim_4{font-size:1.25rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(33 250 144 / var(--tw-text-opacity))}._header_s2cim_7{margin-bottom:1rem;display:flex;align-items:center;-moz-column-gap:1rem;column-gap:1rem}._footer_s2cim_10{display:flex;align-items:center}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Montserrat}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%;margin-right:auto;margin-left:auto}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.m-3{margin:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mr-2{margin-right:.5rem}.mr-5{margin-right:1.25rem}.ml-4{margin-left:1rem}.mr-1{margin-right:.25rem}.flex{display:flex}.grid{display:grid}.contents{display:contents}.h-screen{height:100vh}.w-full{width:100%}.w-9{width:2.25rem}.grow{flex-grow:1}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-10{gap:2.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.border{border-width:1px}.border-error-red{--tw-border-opacity: 1;border-color:rgb(250 33 33 / var(--tw-border-opacity))}.border-main-green{--tw-border-opacity: 1;border-color:rgb(33 250 144 / var(--tw-border-opacity))}.px-4{padding-left:1rem;padding-right:1rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-2xl{font-size:1.5rem;line-height:2rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-semibold{font-weight:600}.font-bold{font-weight:700}.font-light{font-weight:300}.text-main-green{--tw-text-opacity: 1;color:rgb(33 250 144 / var(--tw-text-opacity))}.text-dark-green{--tw-text-opacity: 1;color:rgb(2 120 63 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-error-red{--tw-text-opacity: 1;color:rgb(250 33 33 / var(--tw-text-opacity))}@font-face{font-family:Montserrat;src:local("Montserrat"),url(./fonts/Montserrat/Montserrat-VariableFont_wght.ttf) format("truetype");font-weight:100 900}:root{--tw-bg-opacity: 1;background-color:rgb(0 40 61 / var(--tw-bg-opacity));font-family:Montserrat}a{--tw-text-opacity: 1;color:rgb(37 136 228 / var(--tw-text-opacity))}input{background-color:transparent}.hover\:cursor-pointer:hover{cursor:pointer}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
|
4
|
-
import { faCircle } from '@fortawesome/free-solid-svg-icons'
|
|
5
|
-
export default function ApiStatus (props) {
|
|
6
|
-
const { online } = props
|
|
7
|
-
const colorClass = online ? 'text-main-green' : 'text-error-red'
|
|
8
|
-
return (
|
|
9
|
-
<div className={colorClass}>
|
|
10
|
-
<FontAwesomeIcon icon={faCircle} size='2xs' className={`text-${colorClass} mr-1`} />
|
|
11
|
-
{online && (
|
|
12
|
-
'Online'
|
|
13
|
-
)}
|
|
14
|
-
|
|
15
|
-
{!online && (
|
|
16
|
-
'Offline'
|
|
17
|
-
)}
|
|
18
|
-
</div>
|
|
19
|
-
)
|
|
20
|
-
}
|