From df6c0e01bbdbd7835ed24a85f4b2fa49e00b297e Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Thu, 30 Jan 2020 11:24:31 +0100 Subject: [PATCH] footer links --- README.md | 14 +++++++++++--- src/components/CategoryEntry.js | 5 ++--- src/components/Footer.js | 16 ++++++++++++++++ src/components/FooterLink.js | 13 +++++++++++++ src/components/Navbar.js | 2 +- src/utils/methods.js | 5 +++++ 6 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 src/components/FooterLink.js diff --git a/README.md b/README.md index 550b8d5..9020cc1 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Free meal planner for cooks short on ideas! (like me …) ## Supports - Web ✓ -- Progressive Web App +- Progressive Web App ✓ - Mobile ## Technical Stack @@ -80,10 +80,18 @@ Free meal planner for cooks short on ideas! (like me …) - List of meals by categories - Search by name: you're looking for a recipe? Ours are easy to make and yummy! +### Features in v.0.2 + +- Progressive Web App +- User Interface Enhancement + ## TO DO - put a preloader -- route bad request to notFOund (exple: /categories/string, when search results is null) +- redirect after failed fetch request: (history.push('/path'), or write handleFetchResponse function) + - https://stackoverflow.com/questions/45089386/what-is-the-best-way-to-redirect-a-page-using-react-router + - https://www.henriksommerfeld.se/error-handling-with-fetch/ - Use ErrorBoundaries component ? - add sidenav on mobile -- contact form +- accounts v2 +- contact form (with validation) diff --git a/src/components/CategoryEntry.js b/src/components/CategoryEntry.js index 6c383af..8224bfb 100644 --- a/src/components/CategoryEntry.js +++ b/src/components/CategoryEntry.js @@ -19,16 +19,15 @@ const CategoryEntry = props => {
{strCategory} - {/* {strCategory} */}

{strCategory}

-

{strCategoryDescription}

+ {/*

{strCategoryDescription}

*/}
diff --git a/src/components/Footer.js b/src/components/Footer.js index 3cb4e33..e2593a5 100644 --- a/src/components/Footer.js +++ b/src/components/Footer.js @@ -1,10 +1,26 @@ import React from "react"; import { CopyrightText } from "./CopyrightText"; import { GitHubLink } from "./GitHubLink"; +import { FooterLink } from "./FooterLink"; export const Footer = () => { + const links = ["categories", "random"]; + return (