-
-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing advertisements in the User end app
- Loading branch information
1 parent
d8b25e1
commit 6b79112
Showing
5 changed files
with
141 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/components/UserPortal/PromotedPost/PromotedPost.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
.cardActions { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
gap: 1px; | ||
} | ||
|
||
.cardActionBtn { | ||
background-color: rgba(0, 0, 0, 0); | ||
border: none; | ||
color: black; | ||
} | ||
|
||
.cardActionBtn:hover { | ||
background-color: ghostwhite; | ||
border: none; | ||
color: black !important; | ||
} | ||
|
||
.imageContainer { | ||
max-width: 100%; | ||
} | ||
|
||
.cardHeader { | ||
display: flex; | ||
flex-direction: row; | ||
gap: 10px; | ||
align-items: center; | ||
color: #50c878; | ||
} | ||
|
||
.creatorNameModal { | ||
display: flex; | ||
flex-direction: row; | ||
gap: 5px; | ||
align-items: center; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.modalActions { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
gap: 1px; | ||
margin: 5px 0px; | ||
} | ||
|
||
.textModal { | ||
margin-top: 10px; | ||
} | ||
|
||
.colorPrimary { | ||
background: #31bb6b; | ||
color: white; | ||
cursor: pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from 'react'; | ||
import { Card } from 'react-bootstrap'; | ||
import AccountCircleIcon from '@mui/icons-material/AccountCircle'; | ||
import styles from './PromotedPost.module.css'; | ||
import { toast } from 'react-toastify'; | ||
import { useTranslation } from 'react-i18next'; | ||
import StarPurple500Icon from '@mui/icons-material/StarPurple500'; | ||
interface InterfacePostCardProps { | ||
id: string; | ||
image: string; | ||
title: string; | ||
} | ||
export default function promotedPost( | ||
props: InterfacePostCardProps | ||
): JSX.Element { | ||
const { t } = useTranslation('translation', { | ||
keyPrefix: 'postCard', | ||
}); | ||
|
||
const userId = localStorage.getItem('userId'); | ||
return ( | ||
<> | ||
<Card className="my-3"> | ||
<Card.Header> | ||
<div className={`${styles.cardHeader}`}> | ||
<StarPurple500Icon /> | ||
{'Promoted Content'} | ||
</div> | ||
</Card.Header> | ||
<Card.Body> | ||
<Card.Title>{props.title}</Card.Title> | ||
<Card.Text>{props.title}</Card.Text> | ||
{props.image && ( | ||
<img src={props.image} className={styles.imageContainer} /> | ||
)} | ||
</Card.Body> | ||
</Card> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters