Skip to content

Commit

Permalink
feat: Implementar função de compartilhamento de licitação para X ou f…
Browse files Browse the repository at this point in the history
…acebook
  • Loading branch information
m4rllon committed Aug 14, 2024
1 parent 39bcdc5 commit f013c4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
7 changes: 2 additions & 5 deletions frontend/src/pages/about-licitaBSB/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@
}

@media(max-width: 800px){
body{
background-color: #F9F9F9;
}
.mainContext{
display: flex;
justify-content: center;
Expand All @@ -147,7 +144,7 @@
margin-left: 5%;
margin-top: 1.5rem;
padding: 0;
background-color: #F9F9F9;
background-color: #fff;
}
.cardAboutContext {
display: flex;
Expand All @@ -162,7 +159,7 @@
border: 0;
margin: 0;
box-shadow: 0 0 transparent;
background-color: #F9F9F9;
background-color: #fff;

}

Expand Down
11 changes: 5 additions & 6 deletions frontend/src/pages/bidding-page/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import styles from './style.module.css';
import { Link, useParams } from 'react-router-dom';

import facebook from '../../../assets/facebook.svg';
import google from '../../../assets/google.svg';
import twitter from '../../../assets/twitter.svg';
import calendario from '../../../assets/calendario.svg';
import valor from '../../../assets/valor.svg';
Expand All @@ -20,6 +19,9 @@ export default function BiddingPage() {

const { licitData, maisLicitacoes } = useLoadData(parametros.id);

const urlFacebook = `https://www.facebook.com/sharer/sharer.php?u=https%3A//licitabsb.netlify.app/licitacoes/${parametros.id}`;
const urlX = `https://twitter.com/intent/tweet?text=https%3A//licitabsb.netlify.app/licitacoes/${parametros.id}`;

return (
<main className={styles.mainContainer}>
<div className={styles.biddingContainer}>
Expand All @@ -31,15 +33,12 @@ export default function BiddingPage() {
<span className={styles.subtitle}>{licitData.nome_orgao}</span>
</div>
<div className={styles.shareContainer}>
<a data-testid="role-link-id" href="">
<a data-testid="role-link-id" href={urlX}>
<img src={twitter} />
</a>
<a data-testid="role-link-id" href="">
<a data-testid="role-link-id" href={urlFacebook}>
<img src={facebook} />
</a>
<a data-testid="role-link-id" href="">
<img src={google} />
</a>
</div>
</div>
<div className={styles.biddingInfoContainer}>
Expand Down

0 comments on commit f013c4b

Please sign in to comment.