Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
315 commits
Select commit Hold shift + click to select a range
ea96211
Finalised root colours.
madisonlowe Aug 2, 2022
777cf7b
added links to LinkedIn, need linktree
N-LEE-94 Aug 2, 2022
506a650
Co-committing
N-LEE-94 Aug 2, 2022
457eed7
Merge pull request #15 from SchoolOfCode/about-update
N-LEE-94 Aug 2, 2022
e391255
Merge pull request #14 from SchoolOfCode/roots
madisonlowe Aug 2, 2022
3fd99a6
Merge branch 'main' into netlify-fixes
codedresser Aug 2, 2022
1ec3e14
Merge pull request #16 from SchoolOfCode/netlify-fixes
codedresser Aug 2, 2022
899ce91
Updated button and globals.
madisonlowe Aug 2, 2022
ed314a6
Added heads for all the pages and extracted list logic into list items
fkit00 Aug 2, 2022
cb1f5ef
Merge pull request #18 from SchoolOfCode/most-up-to-date-results-page…
fkit00 Aug 2, 2022
04ea756
Merge pull request #17 from SchoolOfCode/buttonStyling
fkit00 Aug 2, 2022
fc4939d
uncommeted button
fkit00 Aug 2, 2022
67cf565
uncommeted button
fkit00 Aug 2, 2022
d027bfa
netlify fixes apostrophy and keys added
codedresser Aug 2, 2022
a42357f
Merge pull request #19 from SchoolOfCode/netlify-fixes-2
codedresser Aug 2, 2022
b4d2bd1
netlify fix of key prop on resultitem component
codedresser Aug 2, 2022
ba8eb35
Merge pull request #20 from SchoolOfCode/netlify-fixes-3
codedresser Aug 2, 2022
259f4f4
Updated NavBar styling.
madisonlowe Aug 2, 2022
2e64df3
Searchbar styled
N-LEE-94 Aug 2, 2022
035f980
Merge pull request #22 from SchoolOfCode/search-stlying
N-LEE-94 Aug 2, 2022
1eae2e1
Merge pull request #21 from SchoolOfCode/NavBarStyles
N-LEE-94 Aug 2, 2022
37ea603
added colouring for the allergen tags and rounded the card edges
fkit00 Aug 2, 2022
a88c665
closemenu
Gdarar Aug 2, 2022
e23ec44
adding padded
fkit00 Aug 2, 2022
b196f25
Styling for Navbar, BurgerMenu, page margin
N-LEE-94 Aug 2, 2022
19cba8d
Merge pull request #24 from SchoolOfCode/closemenu
N-LEE-94 Aug 3, 2022
b2ffec1
accessibility changes, such as aria labels and priority for screen re…
N-LEE-94 Aug 3, 2022
9f3dbda
added aria labels
N-LEE-94 Aug 3, 2022
3ec93be
Aria role labels added to index.js, h1 only for seasonal and other h1…
codedresser Aug 3, 2022
3be5a35
fixed dark mode
Gdarar Aug 3, 2022
849874d
text aligned
Gdarar Aug 3, 2022
bcef05f
fixed about page background, added gray to color variables
N-LEE-94 Aug 3, 2022
25df83b
Complete styling on card
multi-vit Aug 3, 2022
c4c5ae9
fixed about page background, added gray to color variables
N-LEE-94 Aug 3, 2022
72da339
fixed about page background, added gray to color variables
N-LEE-94 Aug 3, 2022
97a489b
Change container border to variable
multi-vit Aug 3, 2022
f5eee44
more button added to landingpage and working
codedresser Aug 3, 2022
02cfd86
fixed about page background, added gray to color variables
N-LEE-94 Aug 3, 2022
3c0b816
Merge pull request #25 from SchoolOfCode/card-component-re-styling
multi-vit Aug 3, 2022
37bf9eb
Fix Andy mistake
multi-vit Aug 3, 2022
da56b47
Merge pull request #26 from SchoolOfCode/centre-card-image
multi-vit Aug 4, 2022
f1494af
pushing filter aria label
N-LEE-94 Aug 4, 2022
9178cae
Merge pull request #27 from SchoolOfCode/accessibility-tweaks
multi-vit Aug 4, 2022
619ca4f
Merge branch 'main' into more-inseason-button
multi-vit Aug 4, 2022
e9dd100
Merge pull request #28 from SchoolOfCode/more-inseason-button
multi-vit Aug 4, 2022
a1fc298
Merge branch 'main' into styling-fix
multi-vit Aug 4, 2022
5e2b833
Merge pull request #29 from SchoolOfCode/styling-fix
multi-vit Aug 4, 2022
ac57604
random array placed correctly
Gdarar Aug 4, 2022
2a6a112
center the results items
fkit00 Aug 4, 2022
9f2dc20
Refactor img in card and sort random array on index page
multi-vit Aug 4, 2022
adf0a10
Added media query for button size.
madisonlowe Aug 4, 2022
c285b2e
Merge pull request #30 from SchoolOfCode/button-styling
madisonlowe Aug 4, 2022
7967a1c
Merge pull request #31 from SchoolOfCode/random-array-styling
multi-vit Aug 4, 2022
85daf30
text has been aligned
Gdarar Aug 4, 2022
1fe1a5f
Updated more button styling.
madisonlowe Aug 4, 2022
4df851e
added background color to search bar
Gdarar Aug 4, 2022
64d8ff6
literally just added linktree
fkit00 Aug 4, 2022
4b7de86
starting and failing axe testing
fkit00 Aug 4, 2022
e5fa994
Need to reassign footer - html tag no correct
fkit00 Aug 4, 2022
d18706c
Render correct image on card and fix alert displayed if search includ…
multi-vit Aug 5, 2022
8277364
Merge pull request #32 from SchoolOfCode/morebuttonstyling
multi-vit Aug 5, 2022
e28dc9c
Merge pull request #33 from SchoolOfCode/text-align
multi-vit Aug 5, 2022
8675431
Merge pull request #34 from SchoolOfCode/linktree
multi-vit Aug 5, 2022
c469440
Merge pull request #35 from SchoolOfCode/letter-validation
multi-vit Aug 5, 2022
7a32322
removed axe/react
fkit00 Aug 5, 2022
44cff8b
Merge branch 'main' into axe-testing-console-fixes
multi-vit Aug 5, 2022
ac8590f
Merge pull request #36 from SchoolOfCode/axe-testing-console-fixes
multi-vit Aug 5, 2022
5e52fd8
did a media query to add space to the top of the card
fkit00 Aug 5, 2022
4f85407
did a media query to add space to the top of the card
fkit00 Aug 5, 2022
29c0127
added link to h1 and fixed some css problems in the navbar
N-LEE-94 Aug 5, 2022
419963e
Handed image prop down to the button and displayed but not styled
codedresser Aug 5, 2022
b491eb3
Merge pull request #37 from SchoolOfCode/fixing-card-space-mobile
multi-vit Aug 5, 2022
4af8d2e
Merge branch 'main' into nav-title-link
multi-vit Aug 5, 2022
d21af58
Merge pull request #38 from SchoolOfCode/nav-title-link
multi-vit Aug 5, 2022
0974544
Added the temporary white veg burger icon
N-LEE-94 Aug 5, 2022
bfe6b6c
Move p line space styling to globals from card, so about page is also…
multi-vit Aug 5, 2022
4ef7b99
styling of link button - in progress...
codedresser Aug 5, 2022
c8dde2d
picture loading with button and sized and styled to wireframes
codedresser Aug 5, 2022
e1cca68
Begin e2e test with cypress
multi-vit Aug 5, 2022
a7af056
margin bottom for more in season button
codedresser Aug 5, 2022
c6c5f91
Merge pull request #39 from SchoolOfCode/line-spacing
multi-vit Aug 5, 2022
6289cce
Merge pull request #40 from SchoolOfCode/burger-menu-temp
multi-vit Aug 5, 2022
8f2ca21
Merge pull request #41 from SchoolOfCode/picture-button
multi-vit Aug 5, 2022
c6a07d8
Add router.query to useEffect dependency array to solve search not wo…
multi-vit Aug 7, 2022
47d1568
Solve link to current page doing nothing
multi-vit Aug 7, 2022
47240e4
Merge branches 'axe-testing' and 'main' of https://github.com/SchoolO…
multi-vit Aug 8, 2022
d4b24e9
Updated the burger menu to coloured on
N-LEE-94 Aug 8, 2022
3ce2c84
Merge branch 'burger-menu-close' of https://github.com/SchoolOfCode/f…
multi-vit Aug 8, 2022
bf3146f
Add recipe option to SearchBar and route to recipes page to show results
multi-vit Aug 8, 2022
8f5bdaf
working on credits page centering
fkit00 Aug 8, 2022
177a727
Did Css positioning for credits page, added media query for mobile view
N-LEE-94 Aug 8, 2022
d28c078
did some colour changes for red green colour blindness
fkit00 Aug 8, 2022
067b429
did some colour changes for red green colour blindness
fkit00 Aug 8, 2022
ad0b4be
Get ingredients array working
multi-vit Aug 8, 2022
9c57324
Combine quantities and ingredients in to one array and render
multi-vit Aug 8, 2022
c5022e0
Completed more Cypress tests.
madisonlowe Aug 8, 2022
a63ebb3
Merge pull request #49 from SchoolOfCode/burger-menu-close
madisonlowe Aug 9, 2022
b0bef8f
Merge pull request #48 from SchoolOfCode/router-investigation
madisonlowe Aug 9, 2022
79349a9
Merge branch 'main' into burger-icon-update
madisonlowe Aug 9, 2022
98b53e4
Merge pull request #46 from SchoolOfCode/button-acess
madisonlowe Aug 9, 2022
cfde96e
Merge pull request #43 from SchoolOfCode/recipe-function
madisonlowe Aug 9, 2022
3f73416
Merge pull request #47 from SchoolOfCode/burger-icon-update
madisonlowe Aug 9, 2022
44bbf52
working on credits
fkit00 Aug 9, 2022
7335b9d
added about to andys link chnages
fkit00 Aug 9, 2022
b7c0acb
Merge branch 'credits-page' of https://github.com/SchoolOfCode/final-…
fkit00 Aug 9, 2022
3190f00
changed link colors to be consistent in about and credits
N-LEE-94 Aug 9, 2022
b0493e1
Moved logic for recipe results to componentns and created recipe resu…
N-LEE-94 Aug 9, 2022
3a8064d
Added more tests.
madisonlowe Aug 9, 2022
989f2ee
Merge branch 'main' into credits-page
madisonlowe Aug 9, 2022
0451a7d
Merge pull request #45 from SchoolOfCode/credits-page
madisonlowe Aug 9, 2022
d7f1a49
Added more test code.
madisonlowe Aug 9, 2022
85ae243
Added comments for E2E test.
madisonlowe Aug 9, 2022
80491d0
nearly got recipes sorted
fkit00 Aug 9, 2022
e7bfdfe
nearly got recipes sorted
fkit00 Aug 9, 2022
62c2ddb
nearly got recipes sorted
fkit00 Aug 9, 2022
785d4b0
Merge pull request #50 from SchoolOfCode/recipe-component
fkit00 Aug 9, 2022
66512ad
Cypress full test started
codedresser Aug 9, 2022
0d83ccb
removed unused code
codedresser Aug 9, 2022
2519dfe
stlying for recipe cards, need to revisit ingredient style
N-LEE-94 Aug 9, 2022
77c5ce8
Merge pull request #51 from SchoolOfCode/recipe-card-styling
N-LEE-94 Aug 10, 2022
20d4a57
Merge branch 'main' into cypress-testing
madisonlowe Aug 10, 2022
307bf48
Merge pull request #44 from SchoolOfCode/cypress-testing
madisonlowe Aug 10, 2022
73daad5
added images back to the results page and made it so it reloads on r…
fkit00 Aug 10, 2022
484ed87
Added tweak that makes recipe buttons the same height
N-LEE-94 Aug 10, 2022
cc26fc9
added placeholder text to the search
fkit00 Aug 10, 2022
2e7fd93
redid the error messages
fkit00 Aug 10, 2022
5d61024
centered the about h2
N-LEE-94 Aug 10, 2022
0649fde
redid the error messages
fkit00 Aug 10, 2022
43b09b9
Merge pull request #52 from SchoolOfCode/styling
N-LEE-94 Aug 10, 2022
bb982dd
Update Card.js
N-LEE-94 Aug 10, 2022
f2284bd
Update ResultsItem.js
N-LEE-94 Aug 10, 2022
7fbff68
Merge pull request #53 from SchoolOfCode/bug-fixes
N-LEE-94 Aug 10, 2022
76d75fa
changing string empty check on strIngredient to a boolean value check…
fkit00 Aug 10, 2022
61c39dd
fixed the null on both routers- so in each if check to a boolean
fkit00 Aug 10, 2022
59aebbf
adjusting error message
N-LEE-94 Aug 10, 2022
99b9ba3
Merge branch 'main' into fixing-andys-recipe
fkit00 Aug 10, 2022
c1e6488
Merge pull request #54 from SchoolOfCode/fixing-andys-recipe
fkit00 Aug 10, 2022
0f0ad63
Co-authored-by: Nathan Lee <[email protected]>
Gdarar Aug 10, 2022
caac0a3
more acess testing and changed the search placeholder
fkit00 Aug 10, 2022
df1fbd0
favicon png added to public folder and linked to in index.js
codedresser Aug 10, 2022
9acaf07
Altered font to be appropriate to each h/p element and added stroke b…
N-LEE-94 Aug 10, 2022
11ef0cf
added the container styling to error message
N-LEE-94 Aug 10, 2022
807bfa2
added the container styling to error message
N-LEE-94 Aug 10, 2022
e7ee853
Merge pull request #55 from SchoolOfCode/favicon
madisonlowe Aug 10, 2022
f432bc1
Merge pull request #56 from SchoolOfCode/axe-console-testing-2
madisonlowe Aug 10, 2022
f2a7449
Updated Linktree link text.
madisonlowe Aug 10, 2022
616ed6d
Merge pull request #57 from SchoolOfCode/aboutlinksemantic
madisonlowe Aug 10, 2022
fe088f2
border for card are responsive
Gdarar Aug 10, 2022
81568ec
h1 done!
N-LEE-94 Aug 11, 2022
dc61eab
Merge branch 'main' into styling-error
N-LEE-94 Aug 11, 2022
e8d4a55
fixed case error for netlify deploy
N-LEE-94 Aug 11, 2022
0f87ec5
Merge branch 'styling-error' of https://github.com/SchoolOfCode/final…
N-LEE-94 Aug 11, 2022
1b55234
fixed case error for netlify deploy
N-LEE-94 Aug 11, 2022
eb9da79
Merge pull request #58 from SchoolOfCode/styling-error
N-LEE-94 Aug 11, 2022
cda6340
favicon placed on all pages and resolution improved for sharpness
codedresser Aug 11, 2022
cca22a9
had a clean up of the components - now its the pages
fkit00 Aug 11, 2022
2e54944
fixed button height on recipe button
N-LEE-94 Aug 11, 2022
269d3b8
deleted some unused imports/did some prettier formating/deleted some …
fkit00 Aug 11, 2022
55506f8
increased p font size by .5 and added backup fonts
N-LEE-94 Aug 11, 2022
fa75d1f
Further tests added to full e2e. Recipe stretch goal still to be tested
codedresser Aug 11, 2022
858663d
Merge pull request #60 from SchoolOfCode/last-minute-style-fix
madisonlowe Aug 11, 2022
235a0f8
Merge branch 'main' into favicon
madisonlowe Aug 11, 2022
f3cffd3
Merge pull request #61 from SchoolOfCode/cypress-testing
madisonlowe Aug 11, 2022
9147953
Merge pull request #59 from SchoolOfCode/favicon
madisonlowe Aug 11, 2022
4d009c6
Merge branch 'main' into operation-clean-up-front-end
madisonlowe Aug 11, 2022
8b45f50
Merge pull request #62 from SchoolOfCode/operation-clean-up-front-end
madisonlowe Aug 11, 2022
0aef2fc
Updated README roadmap.
madisonlowe Aug 11, 2022
3955df7
fixed font size for <a>s and padding on about page
N-LEE-94 Aug 11, 2022
fbda412
Merge pull request #64 from SchoolOfCode/aboutcredits-styling
N-LEE-94 Aug 11, 2022
f4ddaa5
Added directory structure.
madisonlowe Aug 11, 2022
e4f77f0
Updated README.
madisonlowe Aug 11, 2022
9c88770
fixed little issues with recipe button not changing on hover and repo…
N-LEE-94 Aug 11, 2022
808ad95
Merge pull request #65 from SchoolOfCode/styling-recipebutton-fix
N-LEE-94 Aug 11, 2022
af9b1dd
Merge pull request #63 from SchoolOfCode/madsReadmeEdit
madisonlowe Aug 12, 2022
f624194
Removed node_modules.
madisonlowe Aug 14, 2022
cfce761
Complete at least 1 unit test for each component
multi-vit Aug 14, 2022
66ee285
Tidy up
multi-vit Aug 15, 2022
0985042
Updated README
madisonlowe Aug 15, 2022
aaca174
Merge pull request #66 from SchoolOfCode/docEdits
madisonlowe Aug 15, 2022
9d08c36
Removed documentation.md
madisonlowe Aug 15, 2022
5f6cbb6
Fix cypress tests
multi-vit Aug 15, 2022
39cc268
Merge pull request #67 from SchoolOfCode/unit-testing
madisonlowe Aug 16, 2022
d59bd1d
Update README.md
madisonlowe Aug 20, 2022
f1786ef
Update README.md
madisonlowe Aug 20, 2022
00b5306
Add URL for new server
multi-vit Aug 30, 2022
45b2fd9
Merge pull request #68 from SchoolOfCode/server-migration
madisonlowe Sep 5, 2022
66c7e51
Updated button to a and div in button components.
madisonlowe Sep 9, 2022
473b410
Updated month lis to be clickable.
madisonlowe Sep 9, 2022
ed3a4bc
Merge pull request #69 from SchoolOfCode/clickableLis
fkit00 Sep 9, 2022
63395f9
i've done soemthing terrible
fkit00 Sep 9, 2022
5747653
Updated CSS.
madisonlowe Sep 9, 2022
5263c19
linked up madisons work on the backend to the front-end
fkit00 Sep 9, 2022
3d9b437
Merge pull request #70 from SchoolOfCode/allergenShizzle
multi-vit Sep 9, 2022
b6ee5ef
Bump next from 12.2.3 to 12.2.4 in /seasonal
dependabot[bot] Sep 9, 2022
1eb98dd
Merge pull request #71 from SchoolOfCode/dependabot/npm_and_yarn/seas…
multi-vit Sep 9, 2022
d84911a
Added autumn CSS variables.
madisonlowe Sep 9, 2022
cbddcd3
Add different themes for each season using context and local storage
multi-vit Sep 9, 2022
78b34b4
Update README.md
madisonlowe Sep 11, 2022
9ba5511
Added gif to root.
madisonlowe Sep 11, 2022
e027795
Added gif and updated markdown.
madisonlowe Sep 11, 2022
2c19102
Added Credits.
madisonlowe Sep 11, 2022
cadce70
Merge pull request #72 from SchoolOfCode/docEdits
madisonlowe Sep 11, 2022
72eec5a
Merge pull request #73 from SchoolOfCode/rootVars
fkit00 Sep 14, 2022
e154cf6
removed console.logs
fkit00 Sep 14, 2022
bf5be96
Merge pull request #74 from SchoolOfCode/console-log-clean-up
madisonlowe Sep 14, 2022
9765702
Updated to tested colours, added hover var.
madisonlowe Sep 14, 2022
e0aafa4
Merge pull request #75 from SchoolOfCode/colourVars
N-LEE-94 Sep 14, 2022
c202773
Update README.md
madisonlowe Sep 14, 2022
c6f5b5f
Updated submit button CSS.
madisonlowe Sep 15, 2022
4465d42
Added tag variables and tested.
madisonlowe Sep 15, 2022
88aba38
Centralised recipeButton text.
madisonlowe Sep 15, 2022
f4be5e2
Added recipe background variables.
madisonlowe Sep 15, 2022
9080698
Italicised ambiguous header.
madisonlowe Sep 15, 2022
c417232
Matched searchbar CSS across pages.
madisonlowe Sep 15, 2022
429ebff
Delete seasonalfavicon.png
madisonlowe Sep 15, 2022
1bb4df0
Updated placeholder favicon to match colours.
madisonlowe Sep 15, 2022
ce3dc53
Updated burgerMenu CSS to match wireframes.
madisonlowe Sep 15, 2022
4ea90f1
Added height to NavBar.
madisonlowe Sep 15, 2022
edefb90
Matched footer height in Home to NavBar.
madisonlowe Sep 15, 2022
e68dd2a
Bigger gap between SearchBar elements.
madisonlowe Sep 15, 2022
401a1e4
Text indent on SearchBar input placeholder.
madisonlowe Sep 15, 2022
b727f25
Standardised font sizes on About.
madisonlowe Sep 15, 2022
7f76b9e
Matched border-radius on all in SearchBar.
madisonlowe Sep 15, 2022
7e3c85e
Fixed vertical align.
madisonlowe Sep 15, 2022
cd49d51
Merge pull request #76 from SchoolOfCode/cssEdits
N-LEE-94 Sep 15, 2022
28fea51
CSS for BurgerMenu spacing.
madisonlowe Sep 15, 2022
63ea786
Update README.md
madisonlowe Sep 15, 2022
c843a55
Update README.md
madisonlowe Sep 17, 2022
3d9a92e
Updated credits page.
madisonlowe Oct 20, 2022
5539c44
Updated alignment.
madisonlowe Oct 21, 2022
292a035
Merge pull request #77 from SchoolOfCode/creditEdit
multi-vit Oct 21, 2022
6865f26
Fix credit page.
madisonlowe Oct 21, 2022
06c78e7
Merge pull request #78 from SchoolOfCode/cssFix
madisonlowe Oct 21, 2022
26c4c18
Added footer styling.
madisonlowe Oct 21, 2022
744102d
Merge pull request #79 from SchoolOfCode/creditsSearch
madisonlowe Oct 21, 2022
1c1c840
Add constant for API URL
multi-vit Nov 28, 2024
ecda780
Use API URL constant for fetching
multi-vit Nov 28, 2024
2551e50
Catch errors whilst fetching data in RandomFiveArray
multi-vit Nov 28, 2024
6a835ee
Remove comment
multi-vit Nov 28, 2024
599860f
Remove console logs
multi-vit Nov 28, 2024
3915dba
Run npm audit fix
multi-vit Nov 28, 2024
2b969b5
Force npm audit fix
multi-vit Nov 28, 2024
b071380
Fix burger menu not showing on smaller screens
multi-vit Nov 28, 2024
17cd7a2
Use padding-bottom on container instead of margin on child
multi-vit Nov 28, 2024
15cdcde
Fix cypress tests
multi-vit Nov 28, 2024
e99849a
Add node version file
multi-vit Nov 29, 2024
20ff6aa
Merge pull request #81 from SchoolOfCode/fix-api-url
multi-vit Nov 29, 2024
dd89050
Fix vulnerabilities by updating packages
multi-vit Jun 3, 2025
f85494b
Update API URL
multi-vit Jun 3, 2025
c68be28
Merge pull request #82 from SchoolOfCode/task/update-api-url
multi-vit Jun 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
180 changes: 178 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,178 @@
[![Open in Visual Studio Code](https://classroom.github.com/assets/open-in-vscode-c66648af7eb3fe8bc4f294546bfd86ef473780cde1dea487d3c4ff354943c9ae.svg)](https://classroom.github.com/online_ide?assignment_repo_id=8143652&assignment_repo_type=AssignmentRepo)
# final-project_front-end
# Seasonal

**_Seasonal_ is a web application made to help UK-based users make more informed choices about the produce they buy, by providing them information about the food that's currently in season, and what recipes they can make with it.**

**[Check out the deployed live app here!](https://seasonalfood.netlify.app)**

_Seasonal_ was created by six developers from the [School of Code](https://github.com/SchoolOfCode) over the course of four weeks, before being presented to other developers and industry professionals at a virtual exhibition-style Demo Day. This repository holds the front-end documentation for this project.

Our team - 12\*\* (Twelve Exponential) - consists of:

- Andy Johnson [@multi-vit](https://github.com/multi-vit)
- Fiona Kitchen [@fkit00](https://github.com/fkit00)
- Guiji Darar [@Gdarar](https://github.com/Gdarar)
- Madison Lowe [@madisonlowe](https://github.com/madisonlowe)
- Matthew Miller [@codedresser](https://github.com/codedresser)
- Nathan Lee [@N-LEE-94](https://github.com/N-LEE-94)

A recording of our presentation at Bootcamp 12.0 Demo Day can be [viewed here on Youtube](https://www.youtube.com/watch?v=Oit70HijLSY&feature=youtu.be).

To see the back-end for this project, you can follow this link to [the back-end repository](https://github.com/SchoolOfCode/final-project_back-end-12).

To find us on LinkedIn, Twitter, or other places on the web, you can check out [our team LinkTree](https://linktr.ee/twelve_exponential) too.

Thanks for stopping by!

---

## Table of Contents

- [Seasonal](#seasonal)
- [Table of Contents](#table-of-contents)
- [Project Description](#project-description)
- [Demonstration](#demonstration)
- [About](#about)
- [Accessibility](#accessibility)
- [Links](#links)
- [Getting Started](#getting-started)
- [Directory Structure](#directory-structure)
- [Roadmap](#roadmap)
- [Credits](#credits)

---

## Project Description

### Demonstration

![Recorded demonstration of the Seasonal App](./Seasonal-Demo.gif)

### About

Seasonal is our final project with the [School of Code](https://github.com/SchoolOfCode). In an agile team, over the course of a month, we researched, designed, and built the first iteration of our application. We're still working on the app today, and are currently implementing more stretch goals!

**The core aim of Seasonal is to make it easier and more accessible for users to find out what food is in season in the UK during any given month.**

Our research identitified a desire from users to make more enviromentally-concious choices. Shopping seasonally is a great way to do this. Shopping in season can reduce costs for shoppers and farmers, lessens the enviromental impact of meals (as it takes a lot more resources to grow or import out-of-season food), and can also introduce people to produce they might never have encountered otherwise. In order to make these choices easier, we also provide ways to search for recipes by seasonal ingredient, using TheMealDB API.

Users will be immediately provided with foods currently in season on the landing page. They can then navigate to more food currently in season, or can perform searches for different months, items and recipes. Through searching, they can see when different items are in season, and get information on cooking and growing those items, as well as on their ecological impact.

In the future, we hope to make our app more community-centric and include spaces for users to submit their own recipes. While the app doesn't yet have full coverage of produce avaliable, this is in the works for future iterations! For more details on what we intend on doing next with Seasonal, please refer to our project roadmap!

### Accessibility

Building an accessible app has been central to our design process. By designing and coding with acessibillity in mind, we are looking to be part of the postive change in making the internet more accesible and open to all.

We're currently using Lighthouse and Axe testing software for automated accessibility testing, and perform periodic manual screen reader testing too. We have really appreciated the feedback we've received from users, mentors, and other developers that's enabled us to learn, improve, and keep implementing more useful changes.

However, we're still learning and we're really open to feedback, so please get in touch with us if you spot a problem that compromises your experience of the app!

### Links

General links:

- [Back-end repository for this app.](https://github.com/SchoolOfCode/final-project_back-end-12)
- [YouTube recording of our presentation at Demo Day.](https://www.youtube.com/watch?v=Oit70HijLSY&feature=youtu.be)
- [Our team LinkTree.](https://linktr.ee/twelve_exponential)

Our team on GitHub:

- Andy Johnson [@multi-vit](https://github.com/multi-vit)
- Fiona Kitchen [@fkit00](https://github.com/fkit00)
- Guiji Darar [@Gdarar](https://github.com/Gdarar)
- Madison Lowe [@madisonlowe](https://github.com/madisonlowe)
- Matthew Miller [@codedresser](https://github.com/codedresser)
- Nathan Lee [@N-LEE-94](https://github.com/N-LEE-94)

---

## Getting Started

[Clone down](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/adding-and-cloning-repositories/cloning-and-forking-repositories-from-github-desktop) the folder from GitHub into your IDE.

Change in to the `seasonal` directory using:

```javascript
cd seasonal
```

Install dependencies using:

```javascript
npm i
```

Run the app locally using:

```javascript
npm run dev
```

The app can then be accessed using the URL [localhost:3000](http://localhost:3000) in any browser.

As the app's back-end is deployed, you shouldn't need to take any further steps in order to get the app up and running locally.

---

## Directory Structure

Our front-end - which is built using Next.js - is currently structured as follows:

```
-final-project_front-end-12
- seasonal
- components
- cypress
- e2e
- spec.cy.js
- pages
- public
- styles
- .gitignore
- cypress.config.js
- next.config.js
- package.json
- manifesto.md
- README.md
```

The `pages` directory contains the individual pages which are returned by our front-end, as Next.js provides some handing routing options which we decided would be quite useful in this project.

The `components` directory contains all of our component files.

The `styles` directory contains our styling, which is created using CSS modules. Inside this directoy, `globals.css` contains our root colour variables for the site's branding.

The `manifesto.md` file is a copy of our team manifesto, that we adhered to whilst building _Seasonal_.

The `cypress` directory contains our front-end integration and E2E tests.

---

## Roadmap

Goals completed since Demo Day:

- Add in colour scheme changing functionality, so that the website theme changes according to the season.
- Make all tags on our card components clickable and add new routes for those searches.
- Accessibility edits made to our button components.
- Colour theme reiterations and testing design options for accessibility and WCAG compliance.

Goals we're working towards:

- More cleanly integrate the recipe arm of our design. Users should be able to search for recipes, and receive seasonal suggestions. The API we are using to retrieve recipes returns irregular data, which might have to be addressed in a more robust way moving forward.
- Expand searchbar functionality with error handling and looking into fuzzy search.
- Integrate a maps API, to allow users to search for local farms, shops and growers near them.
- Integrate community-generated recipe submission functionality.
- Make further accessibility edits. Always actively ongoing!

---

## Credits

This app was developed by [Andy Johnson](https://github.com/multi-vit), [Fiona Kitchen](https://github.com/fkit00), [Guiji Darar](https://github.com/Gdarar), [Madison Lowe](https://github.com/madisonlowe), [Matthew Miller](https://github.com/codedresser), and [Nathan Lee](https://github.com/N-LEE-94).

We've had a lot of really great, insightful, and useful conversations with lots of different people - developers, designers, mentors, coaches, and users - that have helped us grow enormously and taught us a lot. We're grateful to everyone who's helped us (and who continues to help us!) along the journey.

We want to give some extra special thanks as well to [Eda Burns](https://github.com/smurfeda), [Josh Pattison](https://github.com/pattisoj), [Leigh Eastell](https://github.com/Leigh-Eastell), [Simon Partridge](https://github.com/simonpartridge86), [Simran Toor](https://github.com/simran-toor) and [Skandy Rattray](https://github.com/skandog) for their time, feedback and insights regarding our concepts, designs, and product iterations. They're a cracking bunch, and we hope you check them out too!

And thanks finally to the [School of Code](https://github.com/SchoolOfCode) too, for giving us our start on our development journeys, and helping to get more and different people into tech.
Binary file added Seasonal-Demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions manifesto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Manifesto

---

## Values

- Psychological safety is key!
- We value our breaks and respect our working boundaries
- There are no bad ideas
- Everyone has a voice
- Never code alone
- We celebrate as a team
- We want team ownership in every aspect of our project
- We honour the process rather than rushing to the end

---

## How will we handle conflict

We have a few methods for handling conflict:

1. First we have a cooling off period, and change what we’re working on
2. Depending on the severity of the conflict we approach it in a few ways - if it’s a non-emotive problem then we flip a coin
3. If tensions are running high then we break the tension with a DANCE OFF
4. The aim is to de-escalate the situation if tensions get too high

---

## How will we make decisions

- We will use dot voting / roman voting and coin flips
- We will use Trello to keep track of tasks and allocate work

---

## How will we communicate

- We will use daily retrospective and stand-ups to ensure frequent communication
- We have a group Slack channel for check-ins and sharing resources
- We will have 3 day sprints of management - so for three days one person will be in charge of our meetings, note keeping and Trellos
- We will make descriptive commits
- We will leave clear comments in our code
- We won’t code without discussing it first
3 changes: 3 additions & 0 deletions seasonal/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
32 changes: 32 additions & 0 deletions seasonal/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel
1 change: 1 addition & 0 deletions seasonal/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.0.0
34 changes: 34 additions & 0 deletions seasonal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.

[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.

The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
52 changes: 52 additions & 0 deletions seasonal/components/BurgerMenu.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import React, { useState } from "react";
import styles from "../styles/BurgerMenu.module.css";
import Image from "next/image";

export function BurgerMenu({ handleLinkClick }) {
const [dropdown, setDropdown] = useState(false);

function toggleDropdown() {
setDropdown((current) => !current);
}

return (
<>
<div className={styles.wrapper}>
<Image
src="/burgerIcon.png"
onClick={toggleDropdown}
alt="burger menu"
height={40}
width={40}
className={styles.menu}
data-cy="burger-menu"
/>
</div>
{dropdown && (
<div
className={styles.dropdown}
aria-label="dropdown menu for navigation"
data-cy="dropdown-menu"
>
<span className={styles.burgerOption}>
<a onClick={(e) => handleLinkClick(e, "/")}>Home</a>
</span>
<span className={styles.burgerOption}>
<a onClick={(e) => handleLinkClick(e, "/about")}>About</a>
</span>
<span className={styles.burgerOption}>
<a onClick={(e) => handleLinkClick(e, "/credits")}>Credits</a>
</span>
<Image
src="/close.png"
onClick={toggleDropdown}
alt="close menu"
height={20}
width={20}
className={styles.closeMenu}
/>
</div>
)}
</>
);
}
24 changes: 24 additions & 0 deletions seasonal/components/Button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from "react";
import styles from "../styles/Button.module.css";
import { useRouter } from "next/router";

export default function Button({ text, image }) {
const router = useRouter();

function handleClick() {
router.push({ pathname: "/item", query: { food: text, recipe: text } });
}

return (
<a className={styles.link} onClick={handleClick}>
<div className={styles.buttonbox}>
<img src={image} alt={text} className={styles.buttonimage} />
<div className={styles.button}>{text}</div>
</div>
</a>
);
}

// This is not technically a button, but acts as a button.
// See Trello and README for some of Fiona's notes on accessibility of a and button HTML.
// Will elaborate further at later time in README.
Loading