hds-web 1.9.0 → 1.9.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
CHANGED
@@ -1,12 +1,16 @@
|
|
1
|
-
|
1
|
+
import React from "react"
|
2
|
+
import { HDSColor } from "../../../foundation/ColorPalette"
|
3
|
+
import { Typography } from "../../../foundation/Typography"
|
4
|
+
import {Badges} from "../../BadgesCaption"
|
5
|
+
export default function ImageBadgeCard (card){
|
2
6
|
|
3
7
|
return(
|
4
8
|
<>
|
5
9
|
<div className={`${HDSColor(card.cardBg)}bg-neutral-0 max-w-[700px] min-h-[245px] rounded-3xl p-8`}>
|
6
|
-
<div className='flex flex-row
|
10
|
+
<div className='flex flex-col tb:flex-row justify-between gap-4'>
|
7
11
|
|
8
12
|
|
9
|
-
<div className='max-w-[400px]'>
|
13
|
+
<div className='tb:max-w-[400px]'>
|
10
14
|
|
11
15
|
<Badges
|
12
16
|
color={card.badge.color}
|
@@ -16,8 +20,8 @@ return(
|
|
16
20
|
<Typography textStyle='h4' className='mt-2 text-neutral-1000'>{card.title}</Typography>
|
17
21
|
<Typography textStyle='sub2' className='mt-2 text-neutral-600'>{card.subTitle}</Typography>
|
18
22
|
</div>
|
19
|
-
<div>
|
20
|
-
<img src={card.imageUrl} alt={card.title} className='max-w-[290px] max-h-[181px]' />
|
23
|
+
<div className="flex justify-center">
|
24
|
+
<img src={card.imageUrl} alt={card.title} className='tb:max-w-[290px] tb:max-h-[181px]' />
|
21
25
|
|
22
26
|
</div>
|
23
27
|
</div>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
export {default as TalkCard} from './talkCard';
|
2
2
|
export {default as TalkCard2} from './talkcard2';
|
3
3
|
export {default as IconCard} from './iconCard';
|
4
|
-
export {default as ImageCard} from './imageCard';
|
4
|
+
export {default as ImageCard} from './imageCard';
|
5
|
+
export {default as ImageBadgeCard} from './imageBadgeCard';
|
package/src/styles/tailwind.css
CHANGED
@@ -9920,6 +9920,10 @@ select{
|
|
9920
9920
|
max-height: 25.25rem;
|
9921
9921
|
}
|
9922
9922
|
|
9923
|
+
.tb\:max-h-\[181px\]{
|
9924
|
+
max-height: 181px;
|
9925
|
+
}
|
9926
|
+
|
9923
9927
|
.tb\:w-1\/2{
|
9924
9928
|
width: 50%;
|
9925
9929
|
}
|
@@ -9978,6 +9982,10 @@ select{
|
|
9978
9982
|
max-width: 530px;
|
9979
9983
|
}
|
9980
9984
|
|
9985
|
+
.tb\:max-w-\[400px\]{
|
9986
|
+
max-width: 400px;
|
9987
|
+
}
|
9988
|
+
|
9981
9989
|
.tb\:snap-always{
|
9982
9990
|
scroll-snap-stop: always;
|
9983
9991
|
}
|