trepur_components 0.1.1 → 0.1.2
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/package.json +1 -2
- package/src/Components/Breadcrumbs/README.md +0 -1
- package/src/Components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +1 -92
- package/src/Components/BreadcrumbsBordered/README.md +0 -1
- package/src/Components/BreadcrumbsBordered/index.css +67 -0
- package/src/Components/Button/Button.stories.js +1 -1
- package/src/Components/Button/README.md +0 -1
- package/src/Components/Button/{Button.js → index.js} +1 -1
- package/src/Components/ButtonSlide/ButtonSlide.stories.js +1 -1
- package/src/Components/ButtonSlide/README.md +0 -1
- package/src/Components/ButtonSlide/{ButtonSlide.js → index.js} +1 -1
- package/src/Components/Card/Card.stories.js +1 -1
- package/src/Components/Card/README.md +0 -1
- package/src/Components/Card/{Card.js → index.js} +2 -2
- package/src/Components/CardImageLink/CardImageLink.stories.js +1 -1
- package/src/Components/CardImageLink/{CardImageLink.js → index.js} +0 -0
- package/src/Components/CardImageLinkList/CardImageLinkList.stories.js +1 -1
- package/src/Components/CardImageLinkList/{CardImageLinkList.js → index.js} +1 -1
- package/src/Components/CardList/CardList.stories.js +2 -2
- package/src/Components/CardList/README.md +0 -1
- package/src/Components/CardList/{CardList.js → index.js} +1 -1
- package/src/Components/Icon/Icon.stories.js +1 -1
- package/src/Components/Icon/README.md +0 -1
- package/src/Components/Icon/{Icon.js → index.js} +0 -0
- package/src/Components/Jumbotron/Jumbotron.stories.js +1 -1
- package/src/Components/Jumbotron/{Jumbotron.js → index.js} +1 -1
- package/src/Components/Nav/Nav.stories.js +89 -0
- package/src/Components/Nav/README.md +0 -0
- package/src/Components/{Nav.js → Nav/index.js} +2 -2
- package/src/Components/Profile/Profile.stories.js +39 -0
- package/src/Components/Profile/README.md +0 -0
- package/src/Components/{Profile.js → Profile/index.js} +0 -0
- package/src/Components/Search/README.md +0 -0
- package/src/Components/Search/Search.stories.js +58 -0
- package/src/Components/{Search.js → Search/index.js} +4 -4
- package/src/Components/SignedInLinks/README.md +0 -0
- package/src/Components/SignedInLinks/SignedInLinks.stories.js +39 -0
- package/src/Components/{SignedInLinks.js → SignedInLinks/index.js} +0 -0
- package/src/Components/SignedOutLinks/README.md +0 -0
- package/src/Components/SignedOutLinks/SignedOutLinks.stories.js +39 -0
- package/src/Components/SignedOutLinks/index.js +13 -0
- package/src/index.css +1 -64
- package/dist/App.css +0 -42
- package/dist/App.js +0 -24
- package/public/Logo.png +0 -0
- package/public/index.html +0 -10
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/public/user.jpeg +0 -0
- package/src/App.css +0 -42
- package/src/App.js +0 -23
- package/src/Components/SignedOutLinks.js +0 -11
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "trepur_components",
|
|
3
3
|
"description": "component lib",
|
|
4
4
|
"author": "trepur_ttenneb",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.2",
|
|
6
6
|
"private": false,
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/polyfill": "^7.12.1",
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"web-vitals": "^1.1.2"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
|
-
"start": "craco start",
|
|
23
22
|
"build": "rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files",
|
|
24
23
|
"test": "craco test",
|
|
25
24
|
"eject": "react-scripts eject",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hello this is an icon
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import Readme from './README.md'
|
|
3
3
|
import Breadcrumbs from './index'
|
|
4
|
-
import '
|
|
4
|
+
import './index.css';
|
|
5
5
|
|
|
6
6
|
const links = [
|
|
7
7
|
{
|
|
@@ -65,94 +65,3 @@ export const _Breadcrumbs = (args) => {
|
|
|
65
65
|
</Breadcrumbs>
|
|
66
66
|
)
|
|
67
67
|
}
|
|
68
|
-
|
|
69
|
-
// export const SecondaryButton = () => {
|
|
70
|
-
// return (
|
|
71
|
-
// <Button ctaText='I am a button'>
|
|
72
|
-
// </Button>
|
|
73
|
-
// )
|
|
74
|
-
// }
|
|
75
|
-
|
|
76
|
-
// export const WithIconRight = () => {
|
|
77
|
-
// return (
|
|
78
|
-
// <Button rightIcon='thumbs-up' ctaText='I am a button'>
|
|
79
|
-
// </Button>
|
|
80
|
-
// )
|
|
81
|
-
// }
|
|
82
|
-
|
|
83
|
-
// WithIconRight.story = {
|
|
84
|
-
// name: 'With Icon (right)',
|
|
85
|
-
// }
|
|
86
|
-
|
|
87
|
-
// export const WithIconLeft = () => {
|
|
88
|
-
// return (
|
|
89
|
-
// <Button leftIcon='sign-in' ctaText='I am a button'>
|
|
90
|
-
// </Button>
|
|
91
|
-
// )
|
|
92
|
-
// }
|
|
93
|
-
|
|
94
|
-
// WithIconLeft.story = {
|
|
95
|
-
// name: 'With Icon (left)',
|
|
96
|
-
// }
|
|
97
|
-
|
|
98
|
-
// export const WithBothIcons = () => {
|
|
99
|
-
// return (
|
|
100
|
-
// <Button leftIcon='star' rightIcon='star' ctaText='I am a button'>
|
|
101
|
-
// </Button>
|
|
102
|
-
// )
|
|
103
|
-
// }
|
|
104
|
-
|
|
105
|
-
// export const ButtonAsExternalLink = () => {
|
|
106
|
-
// return (
|
|
107
|
-
// <Button as='a-external' ctaText='I am a button'>
|
|
108
|
-
// </Button>
|
|
109
|
-
// )
|
|
110
|
-
// }
|
|
111
|
-
|
|
112
|
-
// ButtonAsExternalLink.story = {
|
|
113
|
-
// name: 'Button as external link',
|
|
114
|
-
// }
|
|
115
|
-
|
|
116
|
-
// export const ButtonAsSemanticHtmlButton = () => {
|
|
117
|
-
// return (
|
|
118
|
-
// <Button as='button' htmlType='button' ctaText='I am a button' url='/'>
|
|
119
|
-
// </Button>
|
|
120
|
-
// )
|
|
121
|
-
// }
|
|
122
|
-
|
|
123
|
-
// ButtonAsSemanticHtmlButton.story = {
|
|
124
|
-
// name: 'Button as semantic html button',
|
|
125
|
-
// }
|
|
126
|
-
|
|
127
|
-
// export const ButtonAsSemanticHtmlSubmitButton = () => {
|
|
128
|
-
// return (
|
|
129
|
-
// <Button as='button' htmlType='submit' ctaText='I am a button'>
|
|
130
|
-
// </Button>
|
|
131
|
-
// )
|
|
132
|
-
// }
|
|
133
|
-
|
|
134
|
-
// ButtonAsSemanticHtmlSubmitButton.story = {
|
|
135
|
-
// name: 'Button as semantic html submit button',
|
|
136
|
-
// }
|
|
137
|
-
|
|
138
|
-
// export const ButtonAsInternalLink = () => {
|
|
139
|
-
// return (
|
|
140
|
-
// <Button as='Link' ctaText='I am a button' url='/'>
|
|
141
|
-
// </Button>
|
|
142
|
-
// )
|
|
143
|
-
// }
|
|
144
|
-
|
|
145
|
-
// ButtonAsInternalLink.story = {
|
|
146
|
-
// name: 'Button as internal link',
|
|
147
|
-
// }
|
|
148
|
-
|
|
149
|
-
// export const WithOnClickMethod = () => {
|
|
150
|
-
// return (
|
|
151
|
-
// <Button ctaText='I am a button' onClick={action('button-click')}>
|
|
152
|
-
// </Button>
|
|
153
|
-
// )
|
|
154
|
-
// }
|
|
155
|
-
|
|
156
|
-
// WithOnClickMethod.story = {
|
|
157
|
-
// name: 'With onClick method',
|
|
158
|
-
// }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hello this is an icon
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css');
|
|
5
|
+
|
|
6
|
+
.right-arrow {
|
|
7
|
+
@apply w-0;
|
|
8
|
+
@apply h-0;
|
|
9
|
+
border-top: 17px solid transparent;
|
|
10
|
+
border-bottom: 17px solid transparent;
|
|
11
|
+
border-left: 15px solid theme('colors.brand-border');
|
|
12
|
+
@apply absolute;
|
|
13
|
+
right: -15px;
|
|
14
|
+
@apply top-0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.let-arrow {
|
|
18
|
+
@apply w-0;
|
|
19
|
+
@apply h-0;
|
|
20
|
+
border-top: 17px solid transparent;
|
|
21
|
+
border-bottom: 17px solid transparent;
|
|
22
|
+
border-left: 17px solid theme('colors.white');
|
|
23
|
+
@apply absolute;
|
|
24
|
+
left: 0px;
|
|
25
|
+
@apply top-0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.test-arrow {
|
|
29
|
+
@apply w-0;
|
|
30
|
+
@apply h-0;
|
|
31
|
+
border-top: 17px solid transparent;
|
|
32
|
+
border-bottom: 17px solid transparent;
|
|
33
|
+
border-left: 15px solid theme('colors.brand-border');
|
|
34
|
+
@apply absolute;
|
|
35
|
+
left: -8px;
|
|
36
|
+
bottom: -11px;
|
|
37
|
+
transform: rotate(48deg);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.test-arrow-top {
|
|
41
|
+
@apply w-0;
|
|
42
|
+
@apply h-0;
|
|
43
|
+
border-top: 15px solid theme('colors.brand-border');
|
|
44
|
+
border-bottom: 17px solid transparent;
|
|
45
|
+
border-left: 17px solid transparent;
|
|
46
|
+
@apply absolute;
|
|
47
|
+
left: -17px;
|
|
48
|
+
top: 0px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.voucherCode__btn {
|
|
52
|
+
@apply relative;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.voucherCode__btn:hover .right-arrow {
|
|
56
|
+
border-left-color: theme('colors.brand-primary');
|
|
57
|
+
}
|
|
58
|
+
.voucherCode__btn:hover .test-arrow {
|
|
59
|
+
border-left-color: theme('colors.brand-primary');
|
|
60
|
+
}
|
|
61
|
+
.voucherCode__btn:hover .test-arrow-top {
|
|
62
|
+
border-top-color: theme('colors.brand-primary');
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.voucherCode__code:focus {
|
|
66
|
+
@apply border-0;
|
|
67
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hello this is an icon
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hello this is an icon
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hello this is a card
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hello this is a card
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hello this is a button
|
|
File without changes
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Readme from './README.md'
|
|
3
|
+
import Nav from './index'
|
|
4
|
+
import '../../index.css';
|
|
5
|
+
|
|
6
|
+
const links = [
|
|
7
|
+
{ name: 'link 1', reference: '/' },
|
|
8
|
+
{ name: 'link 2', reference: '/'},
|
|
9
|
+
{ name: 'link n-1', reference: '/'},
|
|
10
|
+
{ name: 'link n', reference: '/'}
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
title: 'Components/Nav',
|
|
15
|
+
argTypes: {
|
|
16
|
+
|
|
17
|
+
},
|
|
18
|
+
decorators: [(story) => <div className={`p-4`}>{story()}</div>],
|
|
19
|
+
parameters: {
|
|
20
|
+
readme: {
|
|
21
|
+
sidebar: Readme,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const _Nav = (args) => {
|
|
27
|
+
return (
|
|
28
|
+
<Nav
|
|
29
|
+
links={links}
|
|
30
|
+
navPosition='1'
|
|
31
|
+
navClass="bg-brand-light-grey pb-4 pt-2"
|
|
32
|
+
navLinkClass='px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black'
|
|
33
|
+
logoClass='py-4'
|
|
34
|
+
/>
|
|
35
|
+
)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const NavWithSearch = () => {
|
|
39
|
+
return (
|
|
40
|
+
<Nav
|
|
41
|
+
links={links}
|
|
42
|
+
navPosition='1'
|
|
43
|
+
navClass="bg-brand-light-grey pb-4 pt-2"
|
|
44
|
+
navLinkClass='px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black'
|
|
45
|
+
logoClass='py-4'
|
|
46
|
+
showSearch
|
|
47
|
+
/>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const NavWithProfile = () => {
|
|
52
|
+
return (
|
|
53
|
+
<Nav
|
|
54
|
+
links={links}
|
|
55
|
+
navPosition='1'
|
|
56
|
+
navClass="bg-brand-light-grey pb-4 pt-2"
|
|
57
|
+
navLinkClass='px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black'
|
|
58
|
+
logoClass='py-4'
|
|
59
|
+
showProfile
|
|
60
|
+
/>
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export const NavWithSearchAndProfile = () => {
|
|
65
|
+
return (
|
|
66
|
+
<Nav
|
|
67
|
+
links={links}
|
|
68
|
+
navPosition='1'
|
|
69
|
+
navClass="bg-brand-light-grey pb-4 pt-2"
|
|
70
|
+
navLinkClass='px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black'
|
|
71
|
+
logoClass='py-4'
|
|
72
|
+
showProfile
|
|
73
|
+
showSearch
|
|
74
|
+
/>
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const NavAligned = () => {
|
|
79
|
+
return (
|
|
80
|
+
<Nav
|
|
81
|
+
links={links}
|
|
82
|
+
navPosition='1'
|
|
83
|
+
navClass="bg-brand-light-grey pb-4 pt-2"
|
|
84
|
+
navLinkClass='px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black'
|
|
85
|
+
logoClass='py-4'
|
|
86
|
+
alignNavAndLogo
|
|
87
|
+
/>
|
|
88
|
+
)
|
|
89
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Readme from './README.md'
|
|
3
|
+
import Profile from './index'
|
|
4
|
+
import '../../index.css';
|
|
5
|
+
|
|
6
|
+
const links = [
|
|
7
|
+
{
|
|
8
|
+
link: '/',
|
|
9
|
+
name: 'link 1'
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
link: '/',
|
|
13
|
+
name: 'link 2'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
link: '/',
|
|
17
|
+
name: 'Link 3'
|
|
18
|
+
},
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
title: 'Components/Breadcrumbs',
|
|
23
|
+
argTypes: {
|
|
24
|
+
|
|
25
|
+
},
|
|
26
|
+
decorators: [(story) => <div className={`p-4`}>{story()}</div>],
|
|
27
|
+
parameters: {
|
|
28
|
+
readme: {
|
|
29
|
+
sidebar: Readme,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const _Breadcrumbs = (args) => {
|
|
35
|
+
return (
|
|
36
|
+
<Profile>
|
|
37
|
+
</Profile>
|
|
38
|
+
)
|
|
39
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Readme from './README.md'
|
|
3
|
+
import Search from './index'
|
|
4
|
+
import '../../index.css';
|
|
5
|
+
import Icon from '../Icon/index'
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Components/Search',
|
|
9
|
+
argTypes: {
|
|
10
|
+
},
|
|
11
|
+
decorators: [(story) => <div className={`p-4`}>{story()}</div>],
|
|
12
|
+
parameters: {
|
|
13
|
+
readme: {
|
|
14
|
+
sidebar: Readme,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const _Search = (args) => {
|
|
20
|
+
return (
|
|
21
|
+
<Search>
|
|
22
|
+
</Search>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const SearchWithPlaceholder = (args) => {
|
|
27
|
+
return (
|
|
28
|
+
<Search
|
|
29
|
+
placeholder='Enter some search item'>
|
|
30
|
+
</Search>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const SearchWithLabel = (args) => {
|
|
35
|
+
return (
|
|
36
|
+
<Search
|
|
37
|
+
text='Label'>
|
|
38
|
+
</Search>
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const SearchWithIcon = (args) => {
|
|
43
|
+
return (
|
|
44
|
+
<Search
|
|
45
|
+
leftIcon = 'search'>
|
|
46
|
+
</Search>
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export const SearchWithAll = (args) => {
|
|
51
|
+
return (
|
|
52
|
+
<Search
|
|
53
|
+
text='Label'
|
|
54
|
+
leftIcon = 'search'
|
|
55
|
+
placeholder='Enter some search item'>
|
|
56
|
+
</Search>
|
|
57
|
+
)
|
|
58
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Icon from '
|
|
1
|
+
import Icon from '../Icon/index'
|
|
2
2
|
const Search = ({
|
|
3
3
|
className,
|
|
4
4
|
onChange,
|
|
@@ -14,9 +14,9 @@ const Search = ({
|
|
|
14
14
|
{/* <input className="ml-4 border-2 border-gray-300 bg-white h-10 px-5 pr-16 rounded-lg text-sm focus:outline-none" type="search" name="search" onChange={(e) => onChange(e.target.value)} placeholder={placeholder}/> */}
|
|
15
15
|
<label className="relative block">
|
|
16
16
|
<span className="sr-only">Search</span>
|
|
17
|
-
<span className="absolute inset-y-0 left-5 flex items-center pl-2">
|
|
18
|
-
{
|
|
19
|
-
</span>
|
|
17
|
+
{leftIcon && <span className="absolute inset-y-0 left-5 flex items-center pl-2">
|
|
18
|
+
{iconLeft}
|
|
19
|
+
</span>}
|
|
20
20
|
<input className="ml-4 pr-32 border-2 border-gray-300 h-10 px-5 placeholder:italic placeholder:text-gray-400 rounded-md py-2 pl-9 focus:outline-none focus:border-sky-500 focus:ring-sky-500 focus:ring-1" onChange={(e) => onChange(e.target.value)} placeholder={placeholder} type="text" name="search"/>
|
|
21
21
|
</label>
|
|
22
22
|
</div>
|
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Readme from './README.md'
|
|
3
|
+
import SignedInLinks from './index'
|
|
4
|
+
import '../../index.css';
|
|
5
|
+
|
|
6
|
+
const links = [
|
|
7
|
+
{
|
|
8
|
+
link: '/',
|
|
9
|
+
name: 'link 1'
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
link: '/',
|
|
13
|
+
name: 'link 2'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
link: '/',
|
|
17
|
+
name: 'Link 3'
|
|
18
|
+
},
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
title: 'Components/SignedInLinks',
|
|
23
|
+
argTypes: {
|
|
24
|
+
|
|
25
|
+
},
|
|
26
|
+
decorators: [(story) => <div className={`p-4`}>{story()}</div>],
|
|
27
|
+
parameters: {
|
|
28
|
+
readme: {
|
|
29
|
+
sidebar: Readme,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const _SignedInLinks = (args) => {
|
|
35
|
+
return (
|
|
36
|
+
<SignedInLinks links={links}>
|
|
37
|
+
</SignedInLinks>
|
|
38
|
+
)
|
|
39
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Readme from './README.md'
|
|
3
|
+
import SignedOutLinks from './index'
|
|
4
|
+
import '../../index.css';
|
|
5
|
+
|
|
6
|
+
const links = [
|
|
7
|
+
{
|
|
8
|
+
link: '/',
|
|
9
|
+
name: 'link 1'
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
link: '/',
|
|
13
|
+
name: 'link 2'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
link: '/',
|
|
17
|
+
name: 'Link 3'
|
|
18
|
+
},
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
title: 'Components/SignedOutLinks',
|
|
23
|
+
argTypes: {
|
|
24
|
+
|
|
25
|
+
},
|
|
26
|
+
decorators: [(story) => <div className={`p-4`}>{story()}</div>],
|
|
27
|
+
parameters: {
|
|
28
|
+
readme: {
|
|
29
|
+
sidebar: Readme,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const _SignedOutLinks = (args) => {
|
|
35
|
+
return (
|
|
36
|
+
<SignedOutLinks links={links}>
|
|
37
|
+
</SignedOutLinks>
|
|
38
|
+
)
|
|
39
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const SignedInLinks = ({links}) => {
|
|
2
|
+
return (
|
|
3
|
+
<div className='container flex'>
|
|
4
|
+
<ul className='list-none mx-auto flex flex-1'>
|
|
5
|
+
{links && links.map((link) => {
|
|
6
|
+
return <li className='flex px-4'><a className='flex-1' href={link.url}>{link.name}</a></li>
|
|
7
|
+
})}
|
|
8
|
+
</ul>
|
|
9
|
+
</div>
|
|
10
|
+
)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default SignedInLinks
|
package/src/index.css
CHANGED
|
@@ -1,67 +1,4 @@
|
|
|
1
1
|
@tailwind base;
|
|
2
2
|
@tailwind components;
|
|
3
3
|
@tailwind utilities;
|
|
4
|
-
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css');
|
|
5
|
-
|
|
6
|
-
.right-arrow {
|
|
7
|
-
@apply w-0;
|
|
8
|
-
@apply h-0;
|
|
9
|
-
border-top: 17px solid transparent;
|
|
10
|
-
border-bottom: 17px solid transparent;
|
|
11
|
-
border-left: 15px solid theme('colors.brand-border');
|
|
12
|
-
@apply absolute;
|
|
13
|
-
right: -15px;
|
|
14
|
-
@apply top-0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.let-arrow {
|
|
18
|
-
@apply w-0;
|
|
19
|
-
@apply h-0;
|
|
20
|
-
border-top: 17px solid transparent;
|
|
21
|
-
border-bottom: 17px solid transparent;
|
|
22
|
-
border-left: 17px solid theme('colors.white');
|
|
23
|
-
@apply absolute;
|
|
24
|
-
left: 0px;
|
|
25
|
-
@apply top-0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.test-arrow {
|
|
29
|
-
@apply w-0;
|
|
30
|
-
@apply h-0;
|
|
31
|
-
border-top: 17px solid transparent;
|
|
32
|
-
border-bottom: 17px solid transparent;
|
|
33
|
-
border-left: 15px solid theme('colors.brand-border');
|
|
34
|
-
@apply absolute;
|
|
35
|
-
left: -8px;
|
|
36
|
-
bottom: -11px;
|
|
37
|
-
transform: rotate(48deg);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.test-arrow-top {
|
|
41
|
-
@apply w-0;
|
|
42
|
-
@apply h-0;
|
|
43
|
-
border-top: 15px solid theme('colors.brand-border');
|
|
44
|
-
border-bottom: 17px solid transparent;
|
|
45
|
-
border-left: 17px solid transparent;
|
|
46
|
-
@apply absolute;
|
|
47
|
-
left: -17px;
|
|
48
|
-
top: 0px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.voucherCode__btn {
|
|
52
|
-
@apply relative;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.voucherCode__btn:hover .right-arrow {
|
|
56
|
-
border-left-color: theme('colors.brand-primary');
|
|
57
|
-
}
|
|
58
|
-
.voucherCode__btn:hover .test-arrow {
|
|
59
|
-
border-left-color: theme('colors.brand-primary');
|
|
60
|
-
}
|
|
61
|
-
.voucherCode__btn:hover .test-arrow-top {
|
|
62
|
-
border-top-color: theme('colors.brand-primary');
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.voucherCode__code:focus {
|
|
66
|
-
@apply border-0;
|
|
67
|
-
}
|
|
4
|
+
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css');
|
package/dist/App.css
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
.App {
|
|
2
|
-
text-align: center;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.App-logo {
|
|
6
|
-
height: 40vmin;
|
|
7
|
-
pointer-events: none;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
11
|
-
.App-logo {
|
|
12
|
-
animation: App-logo-spin infinite 20s linear;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.App-header {
|
|
17
|
-
background-color: #282c34;
|
|
18
|
-
min-height: 100vh;
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
font-size: calc(10px + 2vmin);
|
|
24
|
-
color: white;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.App-link {
|
|
28
|
-
color: #61dafb;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@keyframes App-logo-spin {
|
|
32
|
-
from {
|
|
33
|
-
transform: rotate(0deg);
|
|
34
|
-
}
|
|
35
|
-
to {
|
|
36
|
-
transform: rotate(360deg);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
react-calendar__tile--now {
|
|
41
|
-
background: #31A3DD !important;
|
|
42
|
-
}
|
package/dist/App.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
require("./App.css");
|
|
9
|
-
|
|
10
|
-
function App() {
|
|
11
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
12
|
-
className: "App"
|
|
13
|
-
}, /*#__PURE__*/React.createElement("header", {
|
|
14
|
-
className: "App-header"
|
|
15
|
-
}, /*#__PURE__*/React.createElement("p", null, "Edit ", /*#__PURE__*/React.createElement("code", null, "src/App.js"), " and save to reload."), /*#__PURE__*/React.createElement("a", {
|
|
16
|
-
className: "App-link",
|
|
17
|
-
href: "https://reactjs.org",
|
|
18
|
-
target: "_blank",
|
|
19
|
-
rel: "noopener noreferrer"
|
|
20
|
-
}, "Learn React")));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
var _default = App;
|
|
24
|
-
exports.default = _default;
|
package/public/Logo.png
DELETED
|
Binary file
|
package/public/index.html
DELETED
package/public/manifest.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"short_name": "React App",
|
|
3
|
-
"name": "Create React App Sample",
|
|
4
|
-
"icons": [
|
|
5
|
-
{
|
|
6
|
-
"src": "favicon.ico",
|
|
7
|
-
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
-
"type": "image/x-icon"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "logo192.png",
|
|
12
|
-
"type": "image/png",
|
|
13
|
-
"sizes": "192x192"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"src": "logo512.png",
|
|
17
|
-
"type": "image/png",
|
|
18
|
-
"sizes": "512x512"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"start_url": ".",
|
|
22
|
-
"display": "standalone",
|
|
23
|
-
"theme_color": "#000000",
|
|
24
|
-
"background_color": "#ffffff"
|
|
25
|
-
}
|
package/public/robots.txt
DELETED
package/public/user.jpeg
DELETED
|
Binary file
|
package/src/App.css
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
.App {
|
|
2
|
-
text-align: center;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.App-logo {
|
|
6
|
-
height: 40vmin;
|
|
7
|
-
pointer-events: none;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
11
|
-
.App-logo {
|
|
12
|
-
animation: App-logo-spin infinite 20s linear;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.App-header {
|
|
17
|
-
background-color: #282c34;
|
|
18
|
-
min-height: 100vh;
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
font-size: calc(10px + 2vmin);
|
|
24
|
-
color: white;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.App-link {
|
|
28
|
-
color: #61dafb;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@keyframes App-logo-spin {
|
|
32
|
-
from {
|
|
33
|
-
transform: rotate(0deg);
|
|
34
|
-
}
|
|
35
|
-
to {
|
|
36
|
-
transform: rotate(360deg);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
react-calendar__tile--now {
|
|
41
|
-
background: #31A3DD !important;
|
|
42
|
-
}
|
package/src/App.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import './App.css';
|
|
2
|
-
|
|
3
|
-
function App() {
|
|
4
|
-
return (
|
|
5
|
-
<div className="App">
|
|
6
|
-
<header className="App-header">
|
|
7
|
-
<p>
|
|
8
|
-
Edit <code>src/App.js</code> and save to reload.
|
|
9
|
-
</p>
|
|
10
|
-
<a
|
|
11
|
-
className="App-link"
|
|
12
|
-
href="https://reactjs.org"
|
|
13
|
-
target="_blank"
|
|
14
|
-
rel="noopener noreferrer"
|
|
15
|
-
>
|
|
16
|
-
Learn React
|
|
17
|
-
</a>
|
|
18
|
-
</header>
|
|
19
|
-
</div>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export default App;
|