DEV Community

a.infosecflavour
a.infosecflavour

Posted on

Foodz

This is a submission for the Wix Studio Challenge .

What I Built

Are you hungry? Up to try something new? Luxembourgish and Danish dishes have your back...I mean stomach! Now, a round of applause for Foodz!

Demo

Inside Foodz: https://gowonder1.wixstudio.io/foodz

Fine, I'll be a spoiler.

home

delivery

Development Journey

I used the onClick Javascript function to redirect to Online Order page (seen as "Delivery"). :

import wixLocation from 'wix-location'; 
import wixWindow from 'wix-window';



$w.onReady(function () {
    $w("#box4").onClick(() => {
        wixLocation.to("/online-ordering"); 
    });
}); 
Enter fullscreen mode Exit fullscreen mode

The almost same effect can be achieved by creating a link without using any code. This is how I implemented the redirect to Surprise box page. I mentioned almost, because if one does not use the JavaScript code above, the text (i.e Surprise box) is not clickable. Only the box itself is linked to the redirect page.

Wix eCommerce API and Wix Stores are at the center of the website. Wix Restaurant Orders and Wix Stores are the applications used from App Market.

I invite you to have a taste from these delicious cuisines. 🍽️

Top comments (2)

Collapse
 
willis profile image
creg • Edited

Love the idea! I’m such a foodie—I absolutely love discovering new, delicious dishes to try. Exploring flavors and indulging in good food has always been one of my favorite things. But right now, I’m at a point where I really need to Buy Ozempic Online and focus on losing some weight, because honestly, it’s getting a bit critical. It’s not just about how I look anymore—it’s more about how I feel and taking care of my health before things get out of hand. I’m trying to find that balance between enjoying food and making smarter choices. It’s a challenge for sure, but I’m motivated to turn things around and still find joy in eating, just in a more mindful way.

Collapse
 
ireda profile image
Irene

It sounds great! I think this is a good way to eat healthier, especially for busy people who don't have enough time for cooking.