@stokr/components-library 3.0.55 → 3.0.56

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.
@@ -1,57 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Fragment } from "react";
3
- import PropTypes from "prop-types";
4
- import DOMPurify from "dompurify";
5
- import stdin_default$1 from "../Background/Background.js";
6
- import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
7
- import { Button } from "../Button/Button.styles.js";
8
- import { learnMoreCategoryPropTypes, learnMorePostPropTypes } from "./LearnMore.propTypes.js";
9
- import { ArticleWrapper, VideoCover, VideoPlay, VideoPlayIcon, VideoTitleRow, TitleText, CompleteWrapper, ContentText } from "./LearnMoreItem.styles.js";
10
- import { CompleteMarkContainer, CompleteMark } from "./LearnMore.shared.styles.js";
11
- const LearnMoreItem = ({ postItem, activeTabObject, onMarkComplete }) => /* @__PURE__ */ jsxs(ArticleWrapper, { postType: postItem.postType, children: [
12
- postItem.postType === "video" && /* @__PURE__ */ jsxs(Fragment, { children: [
13
- /* @__PURE__ */ jsx(VideoCover, { children: /* @__PURE__ */ jsx(stdin_default$1, { src: postItem.cover, children: /* @__PURE__ */ jsx(VideoPlay, { children: /* @__PURE__ */ jsx(VideoPlayIcon, {}) }) }) }),
14
- /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingRight: true, noPaddingBottom: true, children: /* @__PURE__ */ jsxs(VideoTitleRow, { children: [
15
- /* @__PURE__ */ jsx(TitleText, { postType: postItem.postType, children: /* @__PURE__ */ jsx("h3", { children: postItem.title }) }),
16
- /* @__PURE__ */ jsxs(CompleteWrapper, { children: [
17
- /* @__PURE__ */ jsx(
18
- Button,
19
- {
20
- primary: !activeTabObject.complete,
21
- secondary: activeTabObject.complete,
22
- onClick: () => onMarkComplete(activeTabObject.id),
23
- children: activeTabObject.complete ? "Watched" : "Mark as watched"
24
- }
25
- ),
26
- /* @__PURE__ */ jsx(CompleteMarkContainer, { large: true, inProgress: activeTabObject.inProgress, complete: activeTabObject.complete, children: /* @__PURE__ */ jsx(CompleteMark, {}) })
27
- ] })
28
- ] }) }),
29
- /* @__PURE__ */ jsx(ComponentWrapper, { children: /* @__PURE__ */ jsx(ContentText, { dangerouslySetInnerHTML: { __html: DOMPurify.sanitize(postItem.content ?? "") } }) })
30
- ] }),
31
- postItem.postType === "text" && /* @__PURE__ */ jsxs(Fragment, { children: [
32
- /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingRight: true, noPaddingBottom: true, children: /* @__PURE__ */ jsx(TitleText, { postType: postItem.postType, children: /* @__PURE__ */ jsx("h3", { children: postItem.title }) }) }),
33
- /* @__PURE__ */ jsx(ComponentWrapper, { children: /* @__PURE__ */ jsx(ContentText, { dangerouslySetInnerHTML: { __html: DOMPurify.sanitize(postItem.content ?? "") } }) }),
34
- /* @__PURE__ */ jsx(ComponentWrapper, { children: /* @__PURE__ */ jsxs(CompleteWrapper, { center: true, children: [
35
- /* @__PURE__ */ jsx(
36
- Button,
37
- {
38
- primary: !activeTabObject.complete,
39
- secondary: activeTabObject.complete,
40
- onClick: () => onMarkComplete(activeTabObject.id),
41
- children: activeTabObject.complete ? "Already Read" : "Mark as read"
42
- }
43
- ),
44
- /* @__PURE__ */ jsx(CompleteMarkContainer, { large: true, inProgress: activeTabObject.inProgress, complete: activeTabObject.complete, children: /* @__PURE__ */ jsx(CompleteMark, {}) })
45
- ] }) })
46
- ] })
47
- ] });
48
- LearnMoreItem.propTypes = {
49
- postItem: PropTypes.shape(learnMorePostPropTypes).isRequired,
50
- activeTabObject: PropTypes.shape(learnMoreCategoryPropTypes).isRequired,
51
- onMarkComplete: PropTypes.func.isRequired
52
- };
53
- var stdin_default = LearnMoreItem;
54
- export {
55
- LearnMoreItem,
56
- stdin_default as default
57
- };
@@ -1,234 +0,0 @@
1
- import styled, { css } from "styled-components";
2
- import { Text } from "../Text/Text.styles.js";
3
- import rwd from "../../styles/rwd.js";
4
- import { Button } from "../Button/Button.styles.js";
5
- import { Container, Content } from "../Background/Background.styles.js";
6
- import { CompleteMarkContainer } from "./LearnMore.shared.styles.js";
7
- import theme from "../../styles/theme.js";
8
- const ArticleWrapper = styled.div.withConfig({
9
- shouldForwardProp: (props) => !["postType"].includes(props)
10
- })`
11
- padding: 32px;
12
- position: relative;
13
-
14
- ${rwd.Medium`
15
- padding: 64px;
16
- `}
17
-
18
- ${rwd.XLarge`
19
- padding: 128px;
20
- `}
21
-
22
- ${(props) => props.postType === "text" && css`
23
- padding-right: 64px;
24
-
25
- ${rwd.Large`
26
- padding-right: 128px;
27
- `}
28
-
29
- ${rwd.XLarge`
30
- padding-right: 224px;
31
- `}
32
- `}
33
-
34
- &::before {
35
- content: '';
36
- position: absolute;
37
- width: 1px;
38
- background: ${() => theme.cGrey};
39
-
40
- ${(props) => props.postType === "video" && css`
41
- top: 32px;
42
- left: 48px;
43
- bottom: 0;
44
-
45
- ${rwd.Medium`
46
- top: 64px;
47
- left: 64px;
48
- `}
49
-
50
- ${rwd.Large`
51
- left: 96px;
52
- `}
53
-
54
- ${rwd.XLarge`
55
- top: 128px;
56
- left: 160px;
57
- `}
58
- `}
59
-
60
- ${(props) => props.postType === "text" && css`
61
- top: 0;
62
- right: 48px;
63
- bottom: 0;
64
-
65
- ${rwd.Medium`
66
- right: 32px;
67
- `}
68
-
69
- ${rwd.Large`
70
- right: 96px;
71
- `}
72
-
73
- ${rwd.XLarge`
74
- right: 192px;
75
- `}
76
- `}
77
- }
78
- `;
79
- const VideoTitleRow = styled.div`
80
- display: flex;
81
- flex-direction: column;
82
-
83
- ${rwd.XLarge`
84
- align-items: center;
85
- flex-direction: row;
86
- `}
87
- `;
88
- const VideoCover = styled.div`
89
- width: 100%;
90
-
91
- ${Container} {
92
- width: 100%;
93
- padding-top: 56.25%;
94
- }
95
-
96
- ${Content} {
97
- position: absolute;
98
- top: 50%;
99
- left: 50%;
100
- width: auto;
101
- transform: translateY(-50%) translateX(-50%);
102
- }
103
- `;
104
- const VideoPlay = styled.div`
105
- width: 48px;
106
- height: 48px;
107
- color: ${() => theme.cWhite};
108
- background: ${() => theme.cWarning};
109
- border-radius: 50%;
110
- display: flex;
111
- align-items: center;
112
- justify-content: center;
113
- transition: 0.3s background;
114
-
115
- &:hover {
116
- color: ${() => theme.cWhite};
117
- background: ${() => theme.cWarningDark};
118
- }
119
- `;
120
- const VideoPlayIcon = styled.i.attrs({
121
- className: "ion ion-md-play"
122
- })`
123
- font-size: 16px;
124
- `;
125
- const TitleText = styled(Text).withConfig({
126
- shouldForwardProp: (props) => !["postType"].includes(props)
127
- })`
128
- position: relative;
129
-
130
- &::before {
131
- content: '';
132
- position: absolute;
133
- width: 6px;
134
- background: ${() => theme.cPrimary};
135
- top: 0;
136
- bottom: 0;
137
-
138
- ${(props) => props.postType === "video" && css`
139
- transform: translateX(1px);
140
- left: -16px;
141
-
142
- ${rwd.Medium`
143
- left: -32px;
144
- `}
145
- `}
146
-
147
- ${(props) => props.postType === "text" && css`
148
- transform: translateX(-1px);
149
- right: -16px;
150
-
151
- ${rwd.Medium`
152
- right: -32px;
153
- `}
154
- `}
155
- }
156
- `;
157
- const CompleteWrapper = styled.div.withConfig({
158
- shouldForwardProp: (props) => !["center"].includes(props)
159
- })`
160
- display: flex;
161
- flex-shrink: 0;
162
- margin-left: auto;
163
- margin-top: 24px;
164
-
165
- ${(props) => props.center && `
166
- justify-content: center;
167
- `}
168
-
169
- ${rwd.XLarge`
170
- margin-top: 0;
171
- `}
172
-
173
- ${CompleteMarkContainer} {
174
- flex-shrink: 0;
175
- margin-left: 16px;
176
- }
177
-
178
- ${Button} {
179
- flex-shrink: 0;
180
- }
181
- `;
182
- const ContentText = styled(Text)`
183
- display: flex;
184
- flex-direction: column;
185
-
186
- h5 {
187
- font-size: 16px;
188
- letter-spacing: 0.4px;
189
- font-weight: 600;
190
- margin-bottom: 16px;
191
- }
192
-
193
- img {
194
- max-width: 100%;
195
- margin: 32px auto;
196
- }
197
-
198
- ul {
199
- list-style: none;
200
- padding: 0;
201
- margin: 0;
202
- }
203
-
204
- li {
205
- font-family: 'Open Sans';
206
- font-weight: 300;
207
- font-size: 16px;
208
- line-height: 1.5em;
209
- letter-spacing: 0.6px;
210
- padding-left: 12px;
211
- position: relative;
212
-
213
- ${rwd.XLarge`
214
- font-size: 20px;
215
- `}
216
-
217
- &::before {
218
- position: absolute;
219
- left: 0;
220
- content: '•';
221
- color: ${() => theme.cWarning};
222
- }
223
- }
224
- `;
225
- export {
226
- ArticleWrapper,
227
- CompleteWrapper,
228
- ContentText,
229
- TitleText,
230
- VideoCover,
231
- VideoPlay,
232
- VideoPlayIcon,
233
- VideoTitleRow
234
- };
@@ -1,138 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { PureComponent } from "react";
3
- import PropTypes from "prop-types";
4
- import { Collapse } from "react-collapse";
5
- import stdin_default$2 from "../TabsNav/TabsNav.js";
6
- import { Row, Column } from "../Grid/Grid.styles.js";
7
- import stdin_default$3 from "../Tabs/Tabs.js";
8
- import { Text } from "../Text/Text.styles.js";
9
- import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
10
- import stdin_default from "../LearnMoreCarousel/LearnMoreCarousel.js";
11
- import { LearnMoreSlide } from "../LearnMoreCarousel/LearnMoreCarousel.styles.js";
12
- import { getMedia } from "../../styles/rwd.js";
13
- import "../LearnMorePage/LearnMore.js";
14
- import { Container, TitleContainer, SidebarSubHeading, TabTitle, Arrow, TabNav, TabArrow } from "./LearnMore.styles.js";
15
- import stdin_default$1 from "./LearnMoreItem.js";
16
- import { Tab } from "../Tabs/Tabs.styles.js";
17
- import { learnMoreCategoryPropTypes, learnMorePostPropTypes } from "../LearnMorePage/LearnMore.propTypes.js";
18
- class LearnMoreSection extends PureComponent {
19
- state = {
20
- activeTab: 0,
21
- isMobile: false
22
- };
23
- componentDidMount() {
24
- const { categories } = this.props;
25
- if (categories?.[0]) {
26
- this.onTabChange(categories[0].id);
27
- }
28
- window.addEventListener("resize", this.onResize);
29
- this.onResizeTimeout();
30
- }
31
- componentWillUnmount() {
32
- window.removeEventListener("resize", this.onResize);
33
- }
34
- onTabChange = (tabId) => {
35
- this.setState({
36
- activeTab: tabId
37
- });
38
- };
39
- onResize = () => {
40
- clearTimeout(this.timeout);
41
- this.timeout = setTimeout(this.onResizeTimeout, 200);
42
- };
43
- onResizeTimeout = () => {
44
- this.setState({
45
- isMobile: this.checkIsMobile()
46
- });
47
- };
48
- checkIsMobile = () => !window.matchMedia(getMedia("Medium")).matches;
49
- getItemsForSubcategories = (subcategories) => {
50
- const { items } = this.props;
51
- return subcategories.map((subcategory) => items.find((item) => item.id === subcategory.id));
52
- };
53
- render() {
54
- const { categories } = this.props;
55
- const { activeTab, isMobile } = this.state;
56
- return isMobile ? /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(Row, { children: /* @__PURE__ */ jsxs(Column, { children: [
57
- /* @__PURE__ */ jsx(TitleContainer, { children: /* @__PURE__ */ jsxs(Text, { children: [
58
- /* @__PURE__ */ jsx(SidebarSubHeading, { children: "INVESTMENT OPPORTUNITIES" }),
59
- /* @__PURE__ */ jsx("h3", { children: "DISCOVER INVESTMENTS" })
60
- ] }) }),
61
- categories.map((category) => {
62
- const items = this.getItemsForSubcategories(category.subcategories);
63
- return /* @__PURE__ */ jsxs(ComponentWrapper, { noPadding: true, borderTop: true, children: [
64
- /* @__PURE__ */ jsxs(TabTitle, { onClick: () => this.onTabChange(category.id), children: [
65
- category.title,
66
- /* @__PURE__ */ jsx(Arrow, { isOpened: activeTab === category.id })
67
- ] }),
68
- /* @__PURE__ */ jsx(Collapse, { isOpened: activeTab === category.id, children: /* @__PURE__ */ jsx(stdin_default, { dots: true, isMobile: true, children: items?.map((item) => /* @__PURE__ */ jsx(LearnMoreSlide, { children: /* @__PURE__ */ jsx(
69
- stdin_default$1,
70
- {
71
- title: item.title,
72
- content: item.excerpt,
73
- coverSrc: item.cover,
74
- postType: item.postType,
75
- link: item.url,
76
- videoSrc: item.videoSrc,
77
- category: item.category
78
- },
79
- item.id
80
- ) }, item.id)) }) })
81
- ] }, category.id);
82
- })
83
- ] }) }) }) : /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsxs(Row, { children: [
84
- /* @__PURE__ */ jsxs(Column, { part: 5, style: { height: "auto" }, children: [
85
- /* @__PURE__ */ jsx(TitleContainer, { borderRight: true, borderBottom: true, children: /* @__PURE__ */ jsxs(Text, { responsiveFont: true, children: [
86
- /* @__PURE__ */ jsx(SidebarSubHeading, { children: "INVESTMENT OPPORTUNITIES" }),
87
- /* @__PURE__ */ jsx("h3", { children: "DISCOVER INVESTMENTS" })
88
- ] }) }),
89
- /* @__PURE__ */ jsx(stdin_default$2, { activeTab, children: categories?.map((category) => /* @__PURE__ */ jsxs(
90
- TabNav,
91
- {
92
- borderBottom: true,
93
- borderRight: true,
94
- isActive: activeTab === category.id,
95
- onClick: () => this.onTabChange(category.id),
96
- children: [
97
- /* @__PURE__ */ jsx(TabArrow, {}),
98
- category?.title
99
- ]
100
- },
101
- category.id
102
- )) }),
103
- /* @__PURE__ */ jsx(TitleContainer, { borderRight: true, children: /* @__PURE__ */ jsx(Text, {}) })
104
- ] }),
105
- /* @__PURE__ */ jsx(Column, { part: 11, children: /* @__PURE__ */ jsx(stdin_default$3, { activeTab, children: categories?.map((category) => {
106
- const items = this.getItemsForSubcategories(category.subcategories);
107
- return /* @__PURE__ */ jsx(Tab, { children: /* @__PURE__ */ jsxs(stdin_default, { arrows: true, dots: true, children: [
108
- items?.map((item) => /* @__PURE__ */ jsx(LearnMoreSlide, { children: /* @__PURE__ */ jsx(
109
- stdin_default$1,
110
- {
111
- title: item?.title,
112
- content: item?.excerpt,
113
- coverSrc: item?.cover,
114
- postType: item?.postType,
115
- link: item?.url,
116
- videoSrc: item?.videoSrc,
117
- category: item?.category
118
- },
119
- item?.id
120
- ) }, item?.id)),
121
- /* @__PURE__ */ jsx(LearnMoreSlide, {})
122
- ] }) }, category.id);
123
- }) }) })
124
- ] }) });
125
- }
126
- }
127
- LearnMoreSection.propTypes = {
128
- items: PropTypes.arrayOf(PropTypes.shape(learnMorePostPropTypes)).isRequired,
129
- categories: PropTypes.arrayOf(
130
- PropTypes.shape({
131
- ...learnMoreCategoryPropTypes,
132
- subcategories: PropTypes.arrayOf(PropTypes.shape(learnMoreCategoryPropTypes))
133
- })
134
- ).isRequired
135
- };
136
- export {
137
- LearnMoreSection
138
- };
@@ -1,147 +0,0 @@
1
- import styled, { css } from "styled-components";
2
- import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
3
- import { TabsWrapper, StyledTabs } from "../TabsNav/TabsNav.styles.js";
4
- const Container = styled.div`
5
- width: 100%;
6
- overflow: hidden;
7
-
8
- ${TabsWrapper} {
9
- padding: 0 !important;
10
- }
11
-
12
- ${StyledTabs} {
13
- border-bottom: none;
14
- }
15
- `;
16
- const TabNav = styled(ComponentWrapper).withConfig({
17
- shouldForwardProp: (props) => !["isActive"].includes(props)
18
- })`
19
- font-size: 11px;
20
- font-weight: 700;
21
- text-transform: uppercase;
22
- cursor: pointer;
23
-
24
- height: 104px;
25
- letter-spacing: 0.6px;
26
- line-height: 1.5;
27
- padding: 44px 64px !important;
28
-
29
- ${(props) => props.isActive && css`
30
- border-right: none !important;
31
-
32
- &::before {
33
- content: '';
34
- width: 8px;
35
- position: absolute;
36
- left: 0;
37
- top: 0;
38
- bottom: 0;
39
- background: ${props.theme.cWarning};
40
- }
41
- `}
42
- `;
43
- const TabArrow = styled.i.attrs({
44
- className: "ion ion-ios-arrow-forward"
45
- })`
46
- color: ${(props) => props.theme.cWarning};
47
- margin-right: 15px;
48
- `;
49
- styled.div`
50
- width: 100%;
51
-
52
- .slick-arrow {
53
- width: 64px;
54
- height: 48px;
55
- background: ${(props) => props.theme.cWarning};
56
- z-index: 10;
57
- transition: 0.3s ease background;
58
-
59
- &:hover,
60
- &:focus {
61
- background: ${(props) => props.theme.cWarningDark};
62
-
63
- &::before {
64
- color: ${(props) => props.theme.cWhite} !important;
65
- }
66
- }
67
- }
68
-
69
- .slick-arrow.slick-prev {
70
- top: auto;
71
- left: auto;
72
- bottom: 0;
73
- right: 64px;
74
- transform: translate(0);
75
- }
76
-
77
- .slick-arrow.slick-next {
78
- top: auto;
79
- left: auto;
80
- bottom: 0;
81
- right: 0;
82
- transform: translate(0);
83
- border-left: 1px solid ${(props) => props.theme.cWarningDark};
84
- }
85
-
86
- .slick-dots {
87
- width: auto;
88
- right: 164px;
89
- height: 36px;
90
- bottom: 0;
91
- }
92
- `;
93
- const TitleContainer = styled(ComponentWrapper)`
94
- height: 100%;
95
- display: flex;
96
- align-items: center;
97
- flex-grow: 1;
98
- `;
99
- const TabTitle = styled.div`
100
- padding: 42px 36px;
101
- display: flex;
102
- justify-content: space-between;
103
- font-weight: 700;
104
- text-transform: uppercase;
105
- position: relative;
106
- font-size: 11px;
107
- line-height: 20px;
108
- letter-spacing: 0.6px;
109
- `;
110
- const Arrow = styled.i.withConfig({
111
- shouldForwardProp: (props) => !["isOpened"].includes(props)
112
- }).attrs({
113
- className: "ion ion-ios-arrow-down"
114
- })`
115
- &&& {
116
- position: absolute;
117
- top: 50%;
118
- right: 32px;
119
- transition: 0.3s transform;
120
- transform: rotate(0);
121
- text-align: center;
122
- font-size: 16px;
123
- line-height: 16px;
124
- height: 16px;
125
- margin-top: -8px;
126
-
127
- ${(props) => props.isOpened && `
128
- transform: rotate(180deg);
129
- `}
130
- }
131
- `;
132
- const SidebarSubHeading = styled.div`
133
- font-size: 11px;
134
- line-height: 24px;
135
- letter-spacing: 2.1px;
136
- text-transform: uppercase;
137
- margin-bottom: 20px;
138
- `;
139
- export {
140
- Arrow,
141
- Container,
142
- SidebarSubHeading,
143
- TabArrow,
144
- TabNav,
145
- TabTitle,
146
- TitleContainer
147
- };
@@ -1,33 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import "react";
3
- import PropTypes from "prop-types";
4
- import { useNavigate } from "react-router-dom";
5
- import stdin_default$1 from "../Background/Background.js";
6
- import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
7
- import { Button } from "../Button/Button.styles.js";
8
- import { Container, Cover, Title, Content } from "./LearnMoreItem.styles.js";
9
- import { SidebarSubHeading } from "./LearnMore.styles.js";
10
- const LearnMoreItemSection = ({ title, content, link, coverSrc, category }) => {
11
- let navigate = useNavigate();
12
- return /* @__PURE__ */ jsxs(Container, { children: [
13
- /* @__PURE__ */ jsx(Cover, { children: /* @__PURE__ */ jsx(stdin_default$1, { src: coverSrc, investmentOpportunities: true }) }),
14
- /* @__PURE__ */ jsxs(ComponentWrapper, { noPaddingHorizontal: true, noPaddingBottom: true, children: [
15
- /* @__PURE__ */ jsx(SidebarSubHeading, { children: category }),
16
- /* @__PURE__ */ jsx(Title, { children: title })
17
- ] }),
18
- /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingHorizontal: true, noPaddingBottom: true, children: /* @__PURE__ */ jsx(Content, { children: content }) }),
19
- /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingHorizontal: true, noPaddingBottom: true, children: /* @__PURE__ */ jsx(Button, { onClick: () => navigate(link), children: title === "ARTID" || title === "INFINITE-FLEET" || title === "BLOCKSTREAM MINING" || title === "MAZZANTI AUTOMOBILI" ? "FULL DETAILS" : `I'M INTERESTED` }) })
20
- ] });
21
- };
22
- LearnMoreItemSection.propTypes = {
23
- title: PropTypes.string.isRequired,
24
- content: PropTypes.string.isRequired,
25
- link: PropTypes.string.isRequired,
26
- coverSrc: PropTypes.string.isRequired,
27
- postType: PropTypes.string.isRequired
28
- };
29
- var stdin_default = LearnMoreItemSection;
30
- export {
31
- LearnMoreItemSection,
32
- stdin_default as default
33
- };
@@ -1,60 +0,0 @@
1
- import styled from "styled-components";
2
- import { Link } from "react-router-dom";
3
- import { Container as Container$1, Content as Content$1 } from "../Background/Background.styles.js";
4
- const Container = styled.div`
5
- height: 100%;
6
- `;
7
- const Cover = styled.div`
8
- width: 100%;
9
-
10
- ${Container$1} {
11
- width: 100%;
12
- padding-top: 56.25%;
13
- }
14
-
15
- ${Content$1} {
16
- position: absolute;
17
- top: 50%;
18
- left: 50%;
19
- width: auto;
20
- transform: translateY(-50%) translateX(-50%);
21
- }
22
- `;
23
- styled(Link)`
24
- width: 48px;
25
- height: 48px;
26
- color: ${(props) => props.theme.cWhite};
27
- background: ${(props) => props.theme.cWarning};
28
- border-radius: 50%;
29
- display: flex;
30
- align-items: center;
31
- justify-content: center;
32
- transition: 0.3s background;
33
-
34
- &:hover {
35
- color: ${(props) => props.theme.cWhite};
36
- background: ${(props) => props.theme.cWarningDark};
37
- }
38
- `;
39
- styled.i.attrs({
40
- className: "ion ion-md-play"
41
- })`
42
- font-size: 16px;
43
- `;
44
- const Title = styled.div`
45
- font-size: 16px;
46
- font-weight: 600;
47
- `;
48
- const Content = styled.div`
49
- font-size: 16px;
50
- font-weight: 300;
51
- line-height: 1.5;
52
- letter-spacing: 0.6px;
53
- min-height: 100px;
54
- `;
55
- export {
56
- Container,
57
- Content,
58
- Cover,
59
- Title
60
- };