Added recipes images
BIN
public/spirits/americano clásico.jpg
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
public/spirits/americano.jpg
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
public/spirits/aperol spritz.jpg
Normal file
|
After Width: | Height: | Size: 80 KiB |
BIN
public/spirits/baileys con café.jpg
Normal file
|
After Width: | Height: | Size: 78 KiB |
BIN
public/spirits/bloody mary.jpg
Normal file
|
After Width: | Height: | Size: 71 KiB |
BIN
public/spirits/boulevardier.jpg
Normal file
|
After Width: | Height: | Size: 79 KiB |
BIN
public/spirits/carajillo.jpg
Normal file
|
After Width: | Height: | Size: 78 KiB |
BIN
public/spirits/cardinale.jpg
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/spirits/cosmopolitan.jpg
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
public/spirits/cuba libre.jpg
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
public/spirits/daiquiri.jpg
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
public/spirits/dark and stormy.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
public/spirits/espresso martini.jpg
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
public/spirits/gin fizz.jpg
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
public/spirits/gin tonic.jpg
Normal file
|
After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 1.4 MiB |
BIN
public/spirits/kingston negroni.jpg
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
public/spirits/margarita.jpg
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
public/spirits/martini.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
public/spirits/mi-to.jpg
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
public/spirits/mojito.jpg
Normal file
|
After Width: | Height: | Size: 102 KiB |
BIN
public/spirits/moscow mule.jpg
Normal file
|
After Width: | Height: | Size: 79 KiB |
BIN
public/spirits/negroni del contadino.jpg
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
public/spirits/negroni.jpg
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
public/spirits/old fashioned.jpg
Normal file
|
After Width: | Height: | Size: 106 KiB |
BIN
public/spirits/paloma.jpg
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
public/spirits/pi a colada.jpg
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
public/spirits/piña colada.jpg
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
public/spirits/tequila sunrise.jpg
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
public/spirits/tinto de verano.jpg
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
public/spirits/vermut preparado.jpg
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
public/spirits/whisky sour.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
public/spirits/white negroni.jpg
Normal file
|
After Width: | Height: | Size: 114 KiB |
BIN
public/spirits/white russian.jpg
Normal file
|
After Width: | Height: | Size: 63 KiB |
946
src/data.json
@@ -5,8 +5,8 @@ let recipesData = [];
|
|||||||
|
|
||||||
async function loadData() {
|
async function loadData() {
|
||||||
try {
|
try {
|
||||||
spiritsData = data.spirits;
|
spiritsData = data.spirits.sort((a, b) => a.name > b.name);
|
||||||
recipesData = data.recipes;
|
recipesData = data.recipes.sort((a, b) => a.name > b.name);
|
||||||
renderSpirits();
|
renderSpirits();
|
||||||
enableButtonsLogic();
|
enableButtonsLogic();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -241,7 +241,7 @@ function renderRecipes(recipes) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="recipe-img">
|
<div class="recipe-img">
|
||||||
<img
|
<img
|
||||||
src="/public/spirits/${recipe.name?.toLowerCase()}.png"
|
src="/public/spirits/${recipe.name?.toLowerCase()}.jpg"
|
||||||
alt=""
|
alt=""
|
||||||
onerror="this.onerror=null; this.src='/public/spirits/default.png';"
|
onerror="this.onerror=null; this.src='/public/spirits/default.png';"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ h1 {
|
|||||||
font-family: "Fredoka", sans-serif;
|
font-family: "Fredoka", sans-serif;
|
||||||
font-size: 4.5rem;
|
font-size: 4.5rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: var(--cognac);
|
color: var(--deep-red);
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
letter-spacing: -0.02em;
|
letter-spacing: -0.02em;
|
||||||
text-shadow:
|
text-shadow:
|
||||||
@@ -375,6 +375,7 @@ h2 {
|
|||||||
width: 30%;
|
width: 30%;
|
||||||
min-width: 30%;
|
min-width: 30%;
|
||||||
max-width: 30%;
|
max-width: 30%;
|
||||||
|
margin-left: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.recipe-img img {
|
.recipe-img img {
|
||||||
@@ -415,7 +416,7 @@ h2 {
|
|||||||
width: 120px;
|
width: 120px;
|
||||||
padding: 0.2rem 0.3rem;
|
padding: 0.2rem 0.3rem;
|
||||||
font-family: "Fredoka", sans-serif;
|
font-family: "Fredoka", sans-serif;
|
||||||
font-size: 0.5rem;
|
font-size: 0.8rem;
|
||||||
background: linear-gradient(135deg, var(--deep-red) 0%, var(--cognac) 100%);
|
background: linear-gradient(135deg, var(--deep-red) 0%, var(--cognac) 100%);
|
||||||
color: white;
|
color: white;
|
||||||
border: none;
|
border: none;
|
||||||
|
|||||||