Commit f6a08e5e authored by Navodya Pasqual's avatar Navodya Pasqual

Card messages added

parent f7bf9a17
...@@ -166,8 +166,6 @@ function DigitalHuman() { ...@@ -166,8 +166,6 @@ function DigitalHuman() {
return <div> return <div>
<List.Item style={{ padding: '1rem' }}> <List.Item style={{ padding: '1rem' }}>
<List.Item.Meta <List.Item.Meta
avatar={<Avatar icon={AvatarSrc} />}
title={message.who}
description={renderCards(message.content.payload.fields.card.listValue.values)} description={renderCards(message.content.payload.fields.card.listValue.values)}
/> />
</List.Item> </List.Item>
...@@ -193,7 +191,7 @@ function DigitalHuman() { ...@@ -193,7 +191,7 @@ function DigitalHuman() {
</div> </div>
<div className='chat_footer'> <div className='chat_footer'>
<button className={cls} onClick={() => { setCls((cls) => (cls === "red" ? "green" : "red")); setIsListening(prevState => !prevState); }}> <button className={cls} onClick={() => { setCls((cls) => (cls === "red" ? "green" : "red")); setIsListening(prevState => !prevState); }}>
<FaMicrophone style={{color: 'black'}}/> <FaMicrophone style={{color: 'black'}}/>
</button> </button>
<input <input
placeholder="Send a message..." placeholder="Send a message..."
......
...@@ -6,7 +6,7 @@ const { Meta } = Card; ...@@ -6,7 +6,7 @@ const { Meta } = Card;
function CardComponent(props) { function CardComponent(props) {
return ( return (
<Card <Card
style={{ width: 300 }} style={{ width: 280, backgroundColor: 'aquamarine', boxShadow:'0.3px 0.3px 3px 3px rgba(127, 255, 212, 0.452)'}}
cover={ cover={
<img <img
alt={props.cardInfo.fields.description.stringValue} alt={props.cardInfo.fields.description.stringValue}
...@@ -14,11 +14,12 @@ function CardComponent(props) { ...@@ -14,11 +14,12 @@ function CardComponent(props) {
} }
actions={[ actions={[
<a target="_blank" rel="noopener noreferrer" href={props.cardInfo.fields.link.stringValue}> <a target="_blank" rel="noopener noreferrer" href={props.cardInfo.fields.link.stringValue}>
<Icon type="ellipsis" key="ellipsis" /> Watch Now
</a> </a>
]} ]}
> >
<Meta <Meta
style={{ backgroundColor: 'aquamarine' }}
title={props.cardInfo.fields.stack.stringValue} title={props.cardInfo.fields.stack.stringValue}
description={props.cardInfo.fields.description.stringValue} description={props.cardInfo.fields.description.stringValue}
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment