Add contact form

Fake API
Make Index resize to mobile better
Add error colour
This commit is contained in:
Michał Gdula 2024-04-26 13:50:21 +01:00
parent 8ab0957a85
commit 04adf38b46
11 changed files with 248 additions and 59 deletions

22
front/src/lib/APIDEV.js Normal file
View file

@ -0,0 +1,22 @@
import Items from '%/lib/testData.js';
export function getPopularToday() {
return Items;
}
export function getMenuItems() {
return [
{
name: "Main Menu",
items: Items,
},
{
name: "Breakfast",
items: [],
},
{
name: "Seasonal",
items: Items,
},
];
}

53
front/src/lib/testData.js Normal file
View file

@ -0,0 +1,53 @@
// "vegan", "fish", "nut", "spicy", "gluten"
let Items;
export default Items = [
{
name: "Bar of Soap",
price: 69.99,
labels: ["vegan", "spicy"],
},
{
name: "Sock",
price: 21,
labels: ["vegan", "fish", "nut", "spicy"],
},
{
name: "Brick",
price: 0,
labels: ["spicy"],
},
{
name: "Toast",
price: 4382749832743,
labels: ["gluten"],
},
{
name: "water",
price: 1,
labels: ["fish"],
},
{
name: "half eaten mouldy bread",
price: -9999,
labels: ["nut"],
},
// {
// name: "GwaGwa",
// price: "Priceless",
// labels: ["nut"],
// image: "/dab.jpg",
// },
{
name: "Hogermellon",
price: "1111",
labels: ["fish"],
image: "/wathog.jpg",
},
// {
// name: "Blue HOGGGGG",
// price: "ARUGH",
// labels: ["nut", "gluten", "spicy"],
// image: "/sonichog.jpg",
// },
];