bentobox banner

bentobox

20 devlogs
35h 25m 55s

Save your cooking test results menu here! This is the original menu. Try cooking it at home too!!

This project uses AI

i use AI for docs explanation

Demo Repository

Loading README...

codingShark

Shipped this project!

Hours: 35.43
Cookies: šŸŖ 633
Multiplier: 17.88 cookies/hr

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!

codingShark

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!

Attachment
Attachment
Attachment
0
codingShark

I’ve finished creating the 404 page not found section for the recipe page! so you can only see recipes that are already open!

Attachment
0
codingShark

I just added 10 more questions!
Now the question is about protein, I’ve also added it in 2 languages!

Attachment
0
codingShark

everything is ready, hopefully it works as expected! I really didn’t expect this to happen!

Attachment
0
codingShark
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!

Attachment
0
codingShark

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!

Attachment
0
codingShark

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!

Attachment
0
codingShark

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

Attachment
0
codingShark

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));
});
}

Attachment
0
codingShark

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>
Attachment
0
codingShark

create menu data with menu.js to make it easier to see the menu

Attachment
0
codingShark

fixing the code to add dom it’s been few hours, finally the page works again

Attachment
0
codingShark

i messed all omg

Attachment
0
codingShark

so here i still learn about combining loading and browser-route, i need to learn now and make some pages, actually menu pages

Attachment
0
codingShark

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

Attachment
0
codingShark

just make a cleaner code still thinking about navbar

Attachment
0
codingShark

fixing layout! add loading animation and some more

Attachment
1

Comments

codingShark
codingShark 3 months ago

going to fix the navbar soon! thank u @bgtulk!

codingShark

cleaning the code(?) i just re-write the function

Attachment
0
codingShark

soo i add some moree

Attachment
1

Comments

bgtulk
bgtulk 4 months ago

Looks good!, Maybe think something for the nav bar text because is lil hard to read.
Maybe make the nav bar like a Hanging sign from the top, will look good(my opinion)

codingShark

so i already made its background (made it on aseprite) and navbar

Attachment
0