Skip to content

Commit

Permalink
fixed landing images
Browse files Browse the repository at this point in the history
  • Loading branch information
WTanardi committed May 29, 2023
1 parent 43467fc commit 65c430a
Show file tree
Hide file tree
Showing 9 changed files with 654 additions and 38 deletions.
11 changes: 0 additions & 11 deletions .env.example

This file was deleted.

1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEXTAUTH_URL="https://pantry-pilot-2.vercel.app/"
31 changes: 20 additions & 11 deletions components/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
"use client";
import Link from "next/link";
import { useState, FC } from "react";
import Image from "next/image";
import Image, { StaticImageData } from "next/image";
import IngredientCard from "./IngredientCard";
import burger from "@/public/hero/burger.webp";
import bun from "@/public/hero/bun.webp";
import beef from "@/public/hero/beef.webp";
import lettuce from "@/public/hero/lettuce.webp";
import tomato from "@/public/hero/tomato.webp";
import onion from "@/public/hero/onion.webp";
import cheese from "@/public/hero/cheese.webp";
import egg from "@/public/hero/egg.webp";
import oliveOil from "@/public/hero/olive_oil.webp";
import ketchup from "@/public/hero/ketchup.webp";

declare namespace HeroTypes {
interface IngredientBoxProps {
src: string;
src: StaticImageData;
alt: string;
}

Expand Down Expand Up @@ -112,15 +121,15 @@ const ingData = {

const Hero = () => {
const ingredientImgPath = [
"/../public/hero/bun.webp",
"/../public/hero/beef.webp",
"/../public/hero/lettuce.webp",
"/../public/hero/tomato.webp",
"/../public/hero/onion.webp",
"/../public/hero/cheese.webp",
"/../public/hero/egg.webp",
"/../public/hero/olive_oil.webp",
"/../public/hero/ketchup.webp",
bun,
beef,
lettuce,
tomato,
onion,
cheese,
egg,
oliveOil,
ketchup,
];

const buttons = [
Expand Down
2 changes: 1 addition & 1 deletion components/IngredientCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";
import React, { FC, useState } from "react";
import Image from "next/image";
import Image, { StaticImageData } from "next/image";

interface IngredientProps {
name: string;
Expand Down
9 changes: 6 additions & 3 deletions components/ProductsServices.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
import Image from "next/image";
import rendang from "@/public/product/rendang.webp";
import spaghetti from "@/public/product/spaghetti.webp";
import foodBox from "@/public/product/foodbox.webp";

const ProductsServices = () => {
const products = [
{
path: "/../public/product/rendang.webp",
path: rendang,
title: "Local Recipes",
content:
"Experience the unique and delicious flavors of your with our collection of local recipes! Discover easy-to-follow recipes that will make mealtime a memorable experience for you and your loved ones.",
},
{
path: "/../public/product/spaghetti.webp",
path: spaghetti,
title: "International Recipes",
content:
"Explore the world through your taste buds with our collection of international recipes! From classNameic French cuisine to spicy Indian curries, discover new and exciting flavors that will take your taste buds on a culinary journey.",
},
{
path: "/../public/product/foodbox.webp",
path: foodBox,
title: "Food Order",
content:
"Try out new flavors from your favorite restaurants before cooking! Order from nearby restaurants and get delicious meals delivered straight to your door. Explore new cuisines with ease.",
Expand Down
Loading

1 comment on commit 65c430a

@vercel
Copy link

@vercel vercel bot commented on 65c430a May 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pantry-pilot-2 – ./

pantry-pilot-2.vercel.app
pantry-pilot-2-wtanardi.vercel.app
pantry-pilot-2-git-main-wtanardi.vercel.app

Please sign in to comment.