Skip to content

Commit

Permalink
Merge pull request #1 from Chefies/feat/image-change
Browse files Browse the repository at this point in the history
Feat/image change and download link
  • Loading branch information
rorre authored Jun 20, 2024
2 parents 04d9b5e + 12f36d7 commit 30cb43d
Show file tree
Hide file tree
Showing 18 changed files with 58 additions and 23 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!doctype html>
<html lang="en">
<html class="scroll-smooth" lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/chefies.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>Chefies</title>
</head>
<body>
<div id="root"></div>
Expand Down
Binary file added public/chefies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/edit-password.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/edit-profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/get-suggestions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/logout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/register.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/save-recipes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/take-photo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/unavailable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/verify-ingredients.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/what-ingredients.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 24 additions & 5 deletions src/components/Features.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { useState } from "react";
import phoneImage from "../assets/phone.png";
import takePhotoImage from "../assets/take-photo.png";
import verifyIngredientsImage from "../assets/verify-ingredients.png";
import getSuggestionsImage from "../assets/get-suggestions.png";
import saveRecipesImage from "../assets/save-recipes.png";
import Step from "./Step";
import { LuChevronLeftCircle, LuChevronRightCircle } from "react-icons/lu";

Expand All @@ -15,20 +18,36 @@ function Features() {

{currentIdx == 0 && (
<Step
image={phoneImage}
image={takePhotoImage}
description="Take a picture of your ingredients"
/>
)}

{currentIdx == 1 && (
<Step
image={phoneImage}
description="Find healthy recipes for available ingredients"
image={verifyIngredientsImage}
description="Verify detected ingredients"
className={currentIdx == 1 ? "opacity-100" : "opacity-0"}
/>
)}

{currentIdx == 2 && (
<Step
image={getSuggestionsImage}
description="Find healthy recipes for available ingredients"
className={currentIdx == 2 ? "opacity-100" : "opacity-0"}
/>
)}

{currentIdx == 3 && (
<Step
image={saveRecipesImage}
description="Save interesting recipes"
className={currentIdx == 3 ? "opacity-100" : "opacity-0"}
/>
)}

<button onClick={() => setIdx(Math.min(currentIdx + 1, 1))}>
<button onClick={() => setIdx(Math.min(currentIdx + 1, 3))}>
<LuChevronRightCircle className="w-12 h-12" />
</button>
</div>
Expand Down
17 changes: 11 additions & 6 deletions src/components/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { IoMdDownload } from "react-icons/io";
import phoneImage from "../assets/phone.png";
import { IoLogoAndroid } from "react-icons/io";
import phoneImage from "../assets/what-ingredients.png";

function Hero() {
return (
<div className="flex md:flex-row-reverse flex-col justify-center gap-16 mx-auto">
<div className="p-4 drop-shadow-xl mx-auto">
<img src={phoneImage} className="h-[60vh]" />
<img src={phoneImage} alt="Hai Chef, what ingredients do you have today?" className="h-[60vh]" />
</div>

<div className="flex flex-col md:justify-center md:text-end uppercase gap-4 max-w-lg">
Expand All @@ -15,9 +15,14 @@ function Hero() {
healthy recipes with the ingredients you have, we got it covered!
</p>
<p>Powered by AI.</p>
<button className="bg-primary text-white px-16 py-4 w-fit rounded-2xl ml-auto uppercase flex gap-2 items-center justify-center">
<IoMdDownload className="w-6 h-6" />
<p className="pt-1 font-bold">Download</p>
<button
className="bg-primary text-white px-16 py-4 w-fit rounded-2xl ml-auto uppercase flex gap-2 items-center justify-center"
onClick={() => {
window.open("https://sendgb.com/jEgcfze9BtC", "_blank")
}}
>
<IoLogoAndroid className="w-6 h-6" />
<p className="pt-1 font-bold">Download APK</p>
</button>
</div>
</div>
Expand Down
29 changes: 20 additions & 9 deletions src/components/Screenshots.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
import Step from "./Step";
import phoneImage from "../assets/phone.png";
import splashImage from "../assets/splash.png";
import loginImage from "../assets/login.png";
import registerImage from "../assets/register.png";
import takePhotoImage from "../assets/take-photo.png";
import verifyImage from "../assets/verify-ingredients.png";
import suggestionImage from "../assets/get-suggestions.png";
import unavailableImage from "../assets/unavailable.png";
import settingsImage from "../assets/settings.png";
import editProfileImage from "../assets/edit-profile.png"
import editPassword from "../assets/edit-password.png";

function Screenshots() {
return (
<div className="flex flex-col gap-8 items-center">
<h2 className="text-4xl uppercase text-center font-bold">Screenshots</h2>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 w-full gap-4 container place-items-center">
<Step image={phoneImage} />
<Step image={phoneImage} />
<Step image={phoneImage} />
<Step image={phoneImage} />
<Step image={phoneImage} />
<Step image={phoneImage} />
<Step image={phoneImage} />
<Step image={phoneImage} />
<Step image={splashImage} />
<Step image={loginImage} />
<Step image={registerImage} />
<Step image={takePhotoImage} />
<Step image={verifyImage} />
<Step image={suggestionImage} />
<Step image={unavailableImage} />
<Step image={settingsImage} />
<Step image={editProfileImage} />
<Step image={editPassword} />
</div>
</div>
);
Expand Down

0 comments on commit 30cb43d

Please sign in to comment.