oddsgate-ds 1.0.58 → 1.0.59
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/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/BlogCard/BlogCard.theme.ts +0 -13
- package/src/components/molecules/EventsCard/EventsCard.component.tsx +6 -6
- package/src/components/molecules/EventsCard/EventsCard.theme.ts +10 -6
- package/src/components/molecules/NewsCard/NewsCard.theme.ts +12 -21
package/package.json
CHANGED
|
@@ -18,19 +18,6 @@ export const StyledBlogCard = styled(Card) <IBlogCard>`
|
|
|
18
18
|
z-index: 10;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
& picture{
|
|
22
|
-
&:before{
|
|
23
|
-
content: '';
|
|
24
|
-
position: absolute;
|
|
25
|
-
top: 0;
|
|
26
|
-
left: 0;
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%;
|
|
29
|
-
background: rgba(0,0,0,0.5);
|
|
30
|
-
z-index: 1;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
21
|
& figcaption{
|
|
35
22
|
|
|
36
23
|
}
|
|
@@ -20,21 +20,21 @@ const EventsCard = ({
|
|
|
20
20
|
<StyledEventsCard
|
|
21
21
|
variant={variant}
|
|
22
22
|
imageElement={
|
|
23
|
-
<ImageWrapper aspectRatioHeight={
|
|
23
|
+
<ImageWrapper aspectRatioHeight={100}>{imageElement}</ImageWrapper>
|
|
24
24
|
}
|
|
25
25
|
>
|
|
26
|
-
{category && <Chip variant='
|
|
27
|
-
<Heading tag={'
|
|
26
|
+
{category && <Chip variant='dark' className='mb-5'>{category}</Chip>}
|
|
27
|
+
<Heading tag={'span'} size={'h4'} className={'fw-bold textEllipsis'}>
|
|
28
28
|
{title}
|
|
29
29
|
</Heading>
|
|
30
30
|
{date && (
|
|
31
|
-
<
|
|
31
|
+
<Heading tag={'span'} size={'h5'} className={'mt-3'}>
|
|
32
32
|
{date}
|
|
33
|
-
</
|
|
33
|
+
</Heading>
|
|
34
34
|
)}
|
|
35
35
|
|
|
36
36
|
{linkElement}
|
|
37
|
-
</StyledEventsCard>
|
|
37
|
+
</StyledEventsCard >
|
|
38
38
|
)
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -3,23 +3,27 @@ import styled, { css } from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
import Card from '../Card/Card.component';
|
|
5
5
|
import { IEventsCard } from './EventsCard.interface';
|
|
6
|
-
import { StyledChip } from '@/components/atoms/Chip/Chip.theme';
|
|
7
6
|
|
|
8
7
|
export const StyledEventsCard = styled(Card) <IEventsCard>`
|
|
9
|
-
padding:
|
|
10
|
-
|
|
8
|
+
padding: 8px;
|
|
9
|
+
border-radius: 1.6rem;
|
|
10
|
+
transition: all 0.3s;
|
|
11
11
|
|
|
12
12
|
picture{
|
|
13
|
-
border-radius:
|
|
13
|
+
border-radius: 100%;
|
|
14
14
|
}
|
|
15
15
|
& figcaption{
|
|
16
|
-
|
|
16
|
+
color: ${colors.third10};
|
|
17
|
+
padding:0;
|
|
18
|
+
margin-top: 1rem;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
|
|
20
22
|
&:hover{
|
|
21
|
-
|
|
23
|
+
background-color: ${colors.third10};
|
|
22
24
|
|
|
25
|
+
& figcaption{
|
|
26
|
+
color: ${colors.secondary50};
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
`;
|
|
@@ -6,15 +6,21 @@ import { INewsCard } from './NewsCard.interface';
|
|
|
6
6
|
import { StyledChip } from '@/components/atoms/Chip/Chip.theme';
|
|
7
7
|
|
|
8
8
|
export const StyledNewsCard = styled(Card) <INewsCard>`
|
|
9
|
-
padding:
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
padding: 1rem;
|
|
10
|
+
color: ${colors.secondary50};
|
|
11
|
+
background-color: ${colors.third10};
|
|
12
|
+
border-radius: ${radius.sm};
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
${StyledChip}{
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 2rem;
|
|
18
|
+
left: 2rem;
|
|
19
|
+
z-index: 10;
|
|
15
20
|
}
|
|
21
|
+
|
|
16
22
|
& figcaption{
|
|
17
|
-
|
|
23
|
+
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
|
|
@@ -23,20 +29,5 @@ export const StyledNewsCard = styled(Card) <INewsCard>`
|
|
|
23
29
|
|
|
24
30
|
}
|
|
25
31
|
}
|
|
26
|
-
|
|
27
|
-
@media only screen and (min-width: ${responsiveMedia}) {
|
|
28
|
-
display: flex;
|
|
29
|
-
|
|
30
|
-
& picture{
|
|
31
|
-
width: 30%;
|
|
32
|
-
order: 2;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
& figcaption{
|
|
36
|
-
width: 70%;
|
|
37
|
-
padding: 3rem 5rem;
|
|
38
|
-
order: 1;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
32
|
`;
|
|
42
33
|
|