Skip to content

Commit

Permalink
TS174-AlteracaoRevisaoEmonitor (#236)
Browse files Browse the repository at this point in the history
* #235 - Changing apis card title to e-monitor

* #235 - Add letter spacing in wikilegis and audiences pages

* #235 - Removing spacing in wikilegis and audiences pages

* #235 - Leaving the wikilegis ranking table the same as the audiences table
  • Loading branch information
mlfaa authored Dec 14, 2021
1 parent 65802e5 commit 4fea6f5
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ NEXT_PUBLIC_GA_ID_TOKEN=UA-70690943-5
NEXT_PUBLIC_EDEMOCRACIA_BASE_URL=https://edemocracia.camara.leg.br
NEXT_PUBLIC_AUDIENCIAS_SITE_URL=https://edemocracia.camara.leg.br/audiencias/
NEXT_PUBLIC_WIKILEGIS_SITE_URL=https://edemocracia.camara.leg.br/wikilegis/
NEXT_PUBLIC_PARTICIPATION_SITE_URL=https://tes.edemocracia.camara.leg.br/participacao
NEXT_PUBLIC_PARTICIPATION_SITE_URL=https://tes.edemocracia.camara.leg.br/emonitor

# APP NEXTJS ROUTES
NEXT_PUBLIC_INITIAL_PAGE_URL=/
Expand Down
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ NEXT_PUBLIC_GA_ID_TOKEN=UA-70690943-3
NEXT_PUBLIC_EDEMOCRACIA_BASE_URL=https://edemocracia.camara.leg.br
NEXT_PUBLIC_AUDIENCIAS_SITE_URL=https://edemocracia.camara.leg.br/audiencias/
NEXT_PUBLIC_WIKILEGIS_SITE_URL=https://edemocracia.camara.leg.br/wikilegis/
NEXT_PUBLIC_PARTICIPATION_SITE_URL=https://edemocracia.camara.leg.br/participacao
NEXT_PUBLIC_PARTICIPATION_SITE_URL=https://edemocracia.camara.leg.br/emonitor

# APP NEXTJS ROUTES
NEXT_PUBLIC_INITIAL_PAGE_URL=/
Expand Down
2 changes: 1 addition & 1 deletion .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ NEXT_PUBLIC_GA_ID_TOKEN=UA-70690943-5
NEXT_PUBLIC_EDEMOCRACIA_BASE_URL=https://edemocracia.camara.leg.br
NEXT_PUBLIC_AUDIENCIAS_SITE_URL=https://edemocracia.camara.leg.br/audiencias/
NEXT_PUBLIC_WIKILEGIS_SITE_URL=https://edemocracia.camara.leg.br/wikilegis/
NEXT_PUBLIC_PARTICIPATION_SITE_URL=https://tes.edemocracia.camara.leg.br/participacao
NEXT_PUBLIC_PARTICIPATION_SITE_URL=https://tes.edemocracia.camara.leg.br/emonitor

# APP NEXTJS ROUTES
NEXT_PUBLIC_INITIAL_PAGE_URL=/
Expand Down
2 changes: 1 addition & 1 deletion src/components/Headers/SectionHeader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function SectionHeader(props) {
return (
<Box display="flex" flexFlow="wrap" justifyContent="space-between" alignItems="center">
<Box display="flex">
<Typography className={classes.typographyHeaderSection} component="div" variant="h2">
<Typography className={`${classes.typographyHeaderSection} ${classes.typography}`} component="div" variant="h2">
<Box fontWeight="fontWeightBold">
{title}
</Box>
Expand Down
8 changes: 4 additions & 4 deletions src/containers/Audiencias/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ function Audiencias(props) {
)}
</Grid>

<Grid item xs={12} className={classes.spacing}>
<Grid item xs={12} className={classes.spacing} style={{ padding: 0 }}>
<SectionHeader
classes={classes}
title={TEXTCONSTANTS.distributionOfParticipationSectionTexts.title}
Expand Down Expand Up @@ -729,7 +729,7 @@ function Audiencias(props) {
)}
</Grid>

<Grid item xs={12} className={classes.spacing}>
<Grid item xs={12} className={classes.spacing} style={{ padding: 0 }}>
<SectionHeader
classes={classes}
toolTipColor={customTheme.palette.audiencias.seabuckthorn}
Expand Down Expand Up @@ -781,7 +781,7 @@ function Audiencias(props) {
/>
</Grid>

<Grid item xs={12} className={classes.spacing}>
<Grid item xs={12} className={classes.spacing} style={{ padding: 0 }}>
<SubSectionHeader
style={{ marginTop: '0px' }}
title={TEXTCONSTANTS.usersSectionTexts.subSectionNewUsers.title}
Expand Down Expand Up @@ -813,7 +813,7 @@ function Audiencias(props) {
)}
</Grid>

<Grid item xs={12} className={classes.spacing}>
<Grid item xs={12} className={classes.spacing} style={{ padding: 0 }}>
<SubSectionHeader
title={
TEXTCONSTANTS.usersSectionTexts
Expand Down
4 changes: 4 additions & 0 deletions src/containers/Audiencias/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ export const useStyles = makeStyles((theme) => ({
toolTipIcon: {
color: theme.palette.audiencias.toolTip,
},
typography: {
fontFamily: 'Open Sans',
letterSpacing: '0.05em',
},
typographyHeaderSection: {
fontSize: '16px',
paddingBottom: '16px',
Expand Down
3 changes: 2 additions & 1 deletion src/containers/Wikilegis/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,9 @@ function Wikilegis(props) {
/>
</Grid>

<Grid item xs={12} className={classes.spacing}>
<Grid item xs={12} className={classes.spacing} style={{ padding: 0 }}>
<SubSectionHeader
style={{ marginTop: '0px' }}
title={TEXTCONSTANTS.usersSectionTexts.subSectionNewUsers.title}
toolTipText={TEXTCONSTANTS.usersSectionTexts.subSectionNewUsers.toolTip}
toolTipAriaLabel={TEXTCONSTANTS.usersSectionTexts.subSectionNewUsers.toolTipAriaLabel}
Expand Down
11 changes: 9 additions & 2 deletions src/containers/Wikilegis/settings/rankingSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,57 @@ export const rankingWikilegisColumns = [
name: 'Proposta Legilastiva',
selector: 'document.title',
sortable: true,
minWidth: '550px',
maxWidth: '500px',
fixedHeader: true,
cell: (row) => (
<a
href={`${process.env.NEXT_PUBLIC_EDEMOCRACIA_BASE_URL}${row.get_absolute_url}`}
target="_blank"
rel="noopener noreferrer"
style={{ color: '#ffffff', textDecoration: 'none' }}
style={{ color: '#ffffff' }}
>
{row.document.title}
</a>
),
},
{
name: 'Data de Abertura',
maxWidth: '80px',
selector: 'openning_date',
sortable: true,
cell: (row) => formatDate(row.openning_date),
},
{
name: 'Data de Encerramento',
selector: 'closing_date',
maxWidth: '80px',
sortable: true,
cell: (row) => formatDate(row.closing_date),
},
{
name: 'Participantes',
selector: 'participants_count',
maxWidth: '50px',
sortable: true,
center: true,
},
{
name: 'Opiniões',
selector: 'suggestions_count',
maxWidth: '50px',
sortable: true,
center: true,
},
{
name: 'Votos',
selector: 'vote_count',
maxWidth: '50px',
sortable: true,
center: true,
},
{
name: 'Parlamentar Responsável',
maxWidth: '150px',
selector: 'document.responsible.name',
sortable: true,
center: true,
Expand Down
4 changes: 4 additions & 0 deletions src/containers/Wikilegis/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ export const useStyles = makeStyles((theme) => ({
toolTipIcon: {
color: theme.palette.wikilegis.jade,
},
typography: {
fontFamily: 'Open Sans',
letterSpacing: '0.05em',
},
typographyHeaderSection: {
fontSize: '16px',
paddingBottom: '16px',
Expand Down
4 changes: 2 additions & 2 deletions src/pages/audiencias.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ function AudienciasPage({
function AudienciasHeader() {
return (
<Box className={classes.boxTitle}>
<Typography className={classes.typographyTitle} variant="h1" component="div">
<Typography className={`${classes.typography} ${classes.typographyTitle}`} variant="h1" component="div">
{TEXTCONSTANTS.pageTitle}
</Typography>
<div>
<Typography className={classes.typographyDescription} component="div" variant="h4">
<Typography className={`${classes.typography} ${classes.typographyDescription}`} component="div" variant="h4">
{TEXTCONSTANTS.pageSubTitle}
</Typography>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/wikilegis.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ function WikilegisPage({
function WikilegisHeader() {
return (
<Box className={classes.boxTitle}>
<Typography className={classes.typographyTitle} variant="h1" component="div">
<Typography className={`${classes.typography} ${classes.typographyTitle}`} variant="h1" component="div">
{TEXTCONSTANTS.pageTitle}
</Typography>
<div>
<Typography className={classes.typographyDescription} component="div" variant="h4">
<Typography className={`${classes.typography} ${classes.typographyDescription}`} component="div" variant="h4">
{TEXTCONSTANTS.pageSubTitle}
</Typography>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/settings/texts/ApisPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const apiCardsInfo = [
},
},
{
title: 'Painel da Participação',
title: 'E-Monitor',
infoText: 'Mostra o histórico de utilização de ferramentas na plataforma e-Democracia por meio de gráficos, totais e tabelas.',
toolColor: '#E438B4',
urls: {
Expand Down
4 changes: 4 additions & 0 deletions src/styles/pages/audienciasPageStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export const useStyles = makeStyles((theme) => ({
height: '100%',
maxWidth: '100%',
},
typography: {
fontFamily: 'Open Sans',
letterSpacing: '0.05em',
},
typographyTitle: {
fontSize: '20px',
fontWeight: 'bold',
Expand Down
4 changes: 4 additions & 0 deletions src/styles/pages/wikilegisPageStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ export const useStyles = makeStyles((theme) => ({
height: '100%',
maxWidth: '100%',
},
typography: {
fontFamily: 'Open Sans',
letterSpacing: '0.05em',
},
typographyTitle: {
fontSize: '20px',
fontWeight: 'bold',
Expand Down

0 comments on commit 4fea6f5

Please sign in to comment.