Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature index #6

Merged
merged 4 commits into from
Nov 23, 2020
Merged

Feature index #6

merged 4 commits into from
Nov 23, 2020

Conversation

cristianbgp
Copy link
Contributor

Reclaim index page
Move current index to /congresistas/:identifier

@cristianbgp cristianbgp self-assigned this Nov 22, 2020
Comment on lines 23 to 30
<a>
<Text color={Color.Neutral800} weight={TextWeight.Bold}>
votabien
<Text color={Color.Primary} weight={TextWeight.Bold}>
.pe
</Text>
</Text>
</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<a>
<Text color={Color.Neutral800} weight={TextWeight.Bold}>
votabien
<Text color={Color.Primary} weight={TextWeight.Bold}>
.pe
</Text>
</Text>
</a>
<Text as="a" color={Color.Neutral800} weight={TextWeight.Bold}>
votabien
<Text color={Color.Primary} weight={TextWeight.Bold}>
.pe
</Text>
</Text>

Comment on lines +8 to +12
<img
src={politicalParty.logo}
className="w-12 h-12 bg-neutral-200 rounded-md"
alt={`Logo ${politicalParty.nombre}`}
/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same about using the Avatar component here

/>
<div className="flex flex-col ml-4">
<Link href="/">
<a className="text-primary-base">{titleize(politicalParty.nombre)}</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<a className="text-primary-base">{titleize(politicalParty.nombre)}</a>
<Text as=”a” color={Color.Primary}>{titleize(politicalParty.nombre)}</Text>

export default function PoliticalParties({ politicalParties }) {
return (
<div className="mt-16">
<h2 className="text-3xl font-extrabold">Partidos Políticos</h2>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use Text here?

<Link href="/">
<a className="text-primary-base">{titleize(politicalParty.nombre)}</a>
</Link>
<span className="text-neutral-400">23 candidatos</span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use Text here?

@cristianbgp cristianbgp merged commit 55d938a into main Nov 23, 2020
@lavaldi
Copy link
Contributor

lavaldi commented Nov 24, 2020

Part of #8 and #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants