Skip to content

Commit

Permalink
[REF] run prettier and add link on README
Browse files Browse the repository at this point in the history
  • Loading branch information
pasculorente committed May 29, 2024
1 parent b5f3d1b commit aecc3f3
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 50 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

> aka Secret Santa
Accede a [Amigo Invisible](https://pasculorente.github.io/amigo-invisible/) para generar el sorteo.

## (Español) Como participar

Crea un fichero CSV como el siguiente
Expand All @@ -10,12 +12,12 @@ Crea un fichero CSV como el siguiente
| ----- | ------ | ----------- | ----- | ----- |
| jonh | Jonh | mary | joe | john2 |
| mary | Mary | jonh | jonh2 | bob |
| jonh2 | Jonh D | jonh | mary | joe |
| jonh2 | Jonh D | jonh | mary | joe |
| joe | Joe | | jonh | mary |

Las dos primeras columnas son obligatorias e indican el nombre y código de cada participante.
El resto de columnas expresan las exclusiones (parejas, hermanos) y el histórico de cada uno.
Así no se repite Amigos Invisibles 2 o 3 años consecutivos.
Así no se repite Amigos Invisibles 2 o 3 años consecutivos.

## (English) How to play

Expand All @@ -25,10 +27,9 @@ Create a CSV file like the following
| ----- | ------ | -------- | ----- | ----- |
| jonh | Jonh | mary | joe | john2 |
| mary | Mary | jonh | jonh2 | bob |
| jonh2 | Jonh D | jonh | mary | joe |
| jonh2 | Jonh D | jonh | mary | joe |
| joe | Joe | | jonh | mary |

The first 2 columns are mandatory and provide the names and the codes for the participants.
The rest of the columns express the fixed exclusions (siblings, couples, etc) as well as the
historic series for each one. This avoids repeating Secret Santa 2 or 3 years in a row.

4 changes: 2 additions & 2 deletions src/app/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
justify-content: end;
}

.combinations-table-container {
.combinations-table-container {
text-align: center;
justify-content: center;
}

.font-size-small {
font-size: small;
}
}
5 changes: 4 additions & 1 deletion src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ function App() {
onChange={load}
/>
<Button
style={{ marginLeft: '1rem', marginBottom: "0" }}
style={{
marginLeft: '1rem',
marginBottom: '0',
}}
variant="outline-info"
size="sm"
onClick={handleShow}
Expand Down
87 changes: 44 additions & 43 deletions src/app/help.tsx
Original file line number Diff line number Diff line change
@@ -1,48 +1,49 @@
import { Table } from "react-bootstrap"
import { Table } from 'react-bootstrap'

function ExampleTable() {
return <Table>
<thead>
<tr>
<th>key</th>
<th>name</th>
<th>excluded</th>
<th>2022</th>
<th>2023</th>
</tr>
</thead>
<tbody>
<tr>
<td>jonh</td>
<td>Jonh</td>
<td>mary</td>
<td>joe</td>
<td>john2</td>
</tr>
<tr>
<td>mary</td>
<td>Mary</td>
<td>jonh</td>
<td>jonh2</td>
<td>bob</td>
</tr>
<tr>
<td>jonh2</td>
<td>Jonh D</td>
<td>jonh</td>
<td>mary</td>
<td>joe</td>
</tr>
<tr>
<td>joe</td>
<td>Joe</td>
<td></td>
<td>jonh</td>
<td>mary</td>
</tr>
</tbody>

</Table>
return (
<Table>
<thead>
<tr>
<th>key</th>
<th>name</th>
<th>excluded</th>
<th>2022</th>
<th>2023</th>
</tr>
</thead>
<tbody>
<tr>
<td>jonh</td>
<td>Jonh</td>
<td>mary</td>
<td>joe</td>
<td>john2</td>
</tr>
<tr>
<td>mary</td>
<td>Mary</td>
<td>jonh</td>
<td>jonh2</td>
<td>bob</td>
</tr>
<tr>
<td>jonh2</td>
<td>Jonh D</td>
<td>jonh</td>
<td>mary</td>
<td>joe</td>
</tr>
<tr>
<td>joe</td>
<td>Joe</td>
<td></td>
<td>jonh</td>
<td>mary</td>
</tr>
</tbody>
</Table>
)
}
export function FileFormat(
props: { lang?: 'en' | 'es' } = { lang: 'es' }
Expand Down

0 comments on commit aecc3f3

Please sign in to comment.