Nonprofit-Exchange-Hub / web-app

Nonprofit Circle (formerly Nonprofit Exchange Hub) A hub for the exchange of goods, information and connections for nonprofits of all sizes.
MIT License
29 stars 19 forks source link

added global context and started example with Banner #387

Closed EtoKruto closed 5 months ago

EtoKruto commented 10 months ago

Dev Summary

Mocks

Test Plan

repro steps:

  1. localhost:3000
  2. click X button expected:

Resources

EtoKruto commented 10 months ago

Create an global context for json text and an example for BannerSection as its the first page that comes up during testing but the rest of the text will be a large undertaking:

Template for changing text for particular page:

  1. Add section and text following the current example in /providers/MarketingTextProvider.tsx
  2. Add line import { useMarketingText } from './../providers/MarketingTextProvider';
  3. Add line const { banner } = useMarketingText(); after the the function declaration. Use a deconstructor for a cleaner consumption.
  4. Lastly, consume the text using the invocation of the section.subsection. Ex: {banner.mainHigh}