Skip to content

Instantly share code, notes, and snippets.

@Klerith
Created December 20, 2025 16:55
Show Gist options
  • Select an option

  • Save Klerith/21dd499cd5ff35f052cde65f1d7b4972 to your computer and use it in GitHub Desktop.

Select an option

Save Klerith/21dd499cd5ff35f052cde65f1d7b4972 to your computer and use it in GitHub Desktop.
Partidos políticos iniciales
import type { PoliticalParty } from '../types';
import { generateUuid } from '../utils/generate-uuid';
const defaultParties = [
{
name: 'Partido Rojo',
color: 'rgba(220, 53, 69, 0.2)',
borderColor: 'rgb(220, 53, 69)',
votes: 42,
},
{
name: 'Partido Azul',
color: 'rgba(0, 123, 255, 0.2)',
borderColor: 'rgb(0, 123, 255)',
votes: 40,
},
{
name: 'Partido Verde',
color: 'rgba(40, 167, 69, 0.2)',
borderColor: 'rgb(40, 167, 69)',
votes: 28,
},
{
name: 'Partido Amarillo',
color: 'rgba(255, 193, 7, 0.2)',
borderColor: 'rgb(255, 193, 7)',
votes: 23,
},
{
name: 'Partido Naranja',
color: 'rgba(255, 152, 0, 0.2)',
borderColor: 'rgb(255, 152, 0)',
votes: 15,
},
];
export const createDefaultParties = (): PoliticalParty[] => {
return defaultParties.map((party) => ({
...party,
id: generateUuid(),
}));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment