diff --git a/next.config.js b/next.config.js index e023744..f95e6f7 100644 --- a/next.config.js +++ b/next.config.js @@ -3,5 +3,13 @@ const { i18n } = require('./next-i18next.config'); module.exports = { reactStrictMode: true, - i18n + i18n, + webpack(config) { + config.resolve.fallback = { + ...config.resolve.fallback, + fs: false, + }; + + return config; + }, } diff --git a/package.json b/package.json index d91f4a2..65c1081 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "@emotion/styled": "^11.3.0", "arweave": "^1.10.17", "axios": "^0.22.0", + "fast-csv": "^4.3.6", "framer-motion": "^4.1.17", "graphql": "^15.6.1", "next": "11.1.2", diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 06c52d7..9cac895 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -1,4 +1,10 @@ { + "glossetaTitle": "Glosseta", + "glossetaNavbarButtonA11yText": "Takes you to the main search page", + "glossaryButton": "Glossary", + "searchButtonTitle": "Search", + "scrollToTheTopButton": "Click here to scroll to the top of the page", + "web3GlossaryHeading": "Web3 Glossary", "glossetaDescription": "Glosseta is an open-source glossary meant to help people explore and learn the terminology behind web3", @@ -10,10 +16,16 @@ "searchResultContentSourceDescription" : "The definition you see above is stored on the Arweave network which is a protocol for storing data permanently in a decentralized manner among network users who have storage to spare. As a result, this definition will live forever on the Arweave network.", "searchResultContentSourceTransactionLinkText" : "Click here to view the Arweave transaction for this definition", + "glossaryPageHeading" : "Glossary", + "somethingMissingHeading" : "Something missing?", + "twitterTermRequestDescription" : "If there's a specific term you were looking for but didn't see above, please let us know and we'll get it added. Give us a shout on ", + "glossaryTermFetchErrorHeading": "Error", + "glossaryTermFetchErrorText" : "Something went wrong trying to retrieve the glossary terms. Please refresh the page or try searching for an individual term. If the issue persists please reach out to us on ", + "opensInANewWindow" : "Opens in a new window", "twitter" : "Twitter", "or" : "or", - "gitHubIssueText": "open up a GitHub issue", + "gitHubIssueText" : "open up a GitHub issue", "unavailableSearchResultDescription" : "This term isn't in our knowledge base at the moment. If you think this is something we should have, please reach out to us on", "apiFetchErrorText" : "Something went wrong while trying to retrieve the definition. Please refresh the page or search for another term.", diff --git a/src/pages/components/layout/page/index.tsx b/src/pages/components/layout/page/index.tsx index f4804ff..c2c11fe 100644 --- a/src/pages/components/layout/page/index.tsx +++ b/src/pages/components/layout/page/index.tsx @@ -1,21 +1,25 @@ import React from "react"; import { Stack } from "@chakra-ui/react"; import Footer from "../../footer/footer"; +import Nav from "../../nav"; const PageLayout = ({ children }: { children?: object }): JSX.Element => { return ( - - {children} + <> +