Save your cooking test results menu here! This is the original menu. Try cooking it at home too!!
i use AI for docs explanation
Save your cooking test results menu here! This is the original menu. Try cooking it at home too!!
i use AI for docs explanation
I made a bento box, this was because at that time I was hungry but didnāt know what to make, so because I was too lazy to cook I made a website where you have to solve the quiz to open the menu recipe! Initially I made this project in React, but because it was too difficult to create router-dom I moved the entire project to Svelte, here it was very, very difficult because the code in React was very long, when I moved it to Svelte there was a lot of code that only needed to be short even though the language was really similar, but in the end I succeeded! This is very fun! Let me know if you like it or want more!
this time itās all done! Iāve fixed the bug on the navbar and buttons!
I also added slightly longer instructions! then change some food states! Maybe thatās it for now, in the next ship Iāll add music and more complete recipes!
Log in to leave a comment
Iāve finished creating the 404 page not found section for the recipe page! so you can only see recipes that are already open!
Log in to leave a comment
I just added 10 more questions!
Now the question is about protein, Iāve also added it in 2 languages!
Log in to leave a comment
everything is ready, hopefully it works as expected! I really didnāt expect this to happen!
Log in to leave a comment
revealedMeal = {
name: { id: "Makanan Gosong", en: "Burnt Food" },
image: "/emp.png", // Pastikan ada gambarnya di folder static
id: "burnt"
};
This is what will be displayed if you answer all the questions wrong! so try to answer all of them correctly and see what menu you will get!
Here there are a total of 20 menus that you can get!! and only one super rare!
let me know if you get it!
Log in to leave a comment
this is what the recipe page will look like, maybe the image isnāt right hehe because looking for the image is quite tiring, also typing it even though this is a very very concise one
Each menu has its own status, such as rare, super rare, average and common! it depends on how lucky you are!
Log in to leave a comment
This will be part of the cooking test, you will only be asked simple questions, in the next devlog I will make a sample question page!
Log in to leave a comment
everything is almost finished, I forgot to say in the previous devlog about including a recipe menu here I have written very, very many menus, and the prices listed are just for fun, donāt take it seriously hehe
Log in to leave a comment
I made a menu section like this so if you want to add a recipe menu you have to cook! not but a cooking competition!! I plan to use the API from TheMealDB because it is free and easy to use
I also added logic so that the menu remains saved even if you exit the browser
const storedRecipes = browser ? JSON.parse(localStorage.getItem(ācookedRecipesā) || ā[]ā) : [];
export const cookedRecipes = writable(storedRecipes);
// Setiap kali store berubah, simpan ke localStorage
if (browser) {
cookedRecipes.subscribe((value) => {
localStorage.setItem(ācookedRecipesā, JSON.stringify(value));
});
}
Log in to leave a comment
Iām migrating a project from React to Svelte, because I feel more familiar with Svelte!
I moved it from React because I think DOM in React is quite difficult, whereas in Svelte to move pages you only need to use the folder name like this
<li>
<a href="/menu">{home[$language]}</a>
</li>
Log in to leave a comment
create menu data with menu.js to make it easier to see the menu
Log in to leave a comment
fixing the code to add dom itās been few hours, finally the page works again
Log in to leave a comment
i messed all omg
Log in to leave a comment
so here i still learn about combining loading and browser-route, i need to learn now and make some pages, actually menu pages
Log in to leave a comment
so i just add more features in here
i add language switcher and currency switcher
i add āstaff picksā section and FaQ question, change the font and give more pixel kitchen look
Log in to leave a comment
just make a cleaner code still thinking about navbar
Log in to leave a comment
cleaning the code(?) i just re-write the function
Log in to leave a comment
so i already made its background (made it on aseprite) and navbar
Log in to leave a comment