From 6e53942125714e2fad3ee322583bc0030348fac9 Mon Sep 17 00:00:00 2001 From: deme Date: Wed, 19 Apr 2023 08:52:53 -0300 Subject: [PATCH 1/8] [#771,signup][xs]: remove name field --- site/components/NewsletterForm.tsx | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/site/components/NewsletterForm.tsx b/site/components/NewsletterForm.tsx index c120541c..2a889daa 100644 --- a/site/components/NewsletterForm.tsx +++ b/site/components/NewsletterForm.tsx @@ -22,24 +22,7 @@ export default function NewsletterForm() { data-type="subscription" className="mt-3 sm:flex" > -
-
- - - - -
-
-
+
-
+
Date: Wed, 19 Apr 2023 09:48:30 -0300 Subject: [PATCH 2/8] [#773,navbar][xs]: remove GitHub link from nav links, comment out DL and Excel Viewer --- site/content/config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/site/content/config.js b/site/content/config.js index b37252aa..47041b2c 100644 --- a/site/content/config.js +++ b/site/content/config.js @@ -20,10 +20,9 @@ const config = { { name: "Components", href: "/docs/components" }, { name: "Learn", href: "/learn" }, { name: "Gallery", href: "/gallery" }, - { name: "Data Literate", href: "/data-literate" }, - { name: "DL Demo", href: "/data-literate/demo" }, - { name: "Excel Viewer", href: "/excel-viewer" }, - { name: "GitHub", href: "https://github.com/datopian/portal.js" }, + // { name: "Data Literate", href: "/data-literate" }, + // { name: "DL Demo", href: "/data-literate/demo" }, + // { name: "Excel Viewer", href: "/excel-viewer" }, ], footerLinks: [], nextSeo: { From e26ee8ea1ea99e57774cff401dd7b7a424615322 Mon Sep 17 00:00:00 2001 From: deme Date: Wed, 19 Apr 2023 10:01:09 -0300 Subject: [PATCH 3/8] [#773,website][xs]: fix datopian logo in dark mode --- site/components/Layout.tsx | 10 ++++++++-- site/public/images/datopian-dark-logotype.svg | 1 + site/public/images/datopian-light-logotype.svg | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 site/public/images/datopian-dark-logotype.svg create mode 100644 site/public/images/datopian-light-logotype.svg diff --git a/site/components/Layout.tsx b/site/components/Layout.tsx index 9d1b9195..3c95e1ad 100644 --- a/site/components/Layout.tsx +++ b/site/components/Layout.tsx @@ -1,5 +1,6 @@ import { siteConfig } from '@/config/siteConfig'; import { NextSeo } from 'next-seo'; +import { useTheme } from 'next-themes'; import Link from 'next/link'; import { useCallback, useEffect, useState } from 'react'; @@ -58,6 +59,7 @@ export default function Layout({ tableOfContents?; }) { // const { toc } = children.props; + const { theme, setTheme } = useTheme(); const currentSection = useTableOfContents(tableOfContents); @@ -87,14 +89,18 @@ export default function Layout({ > Built by{' '} Datopian Logo {/** TABLE OF CONTENTS */} - {tableOfContents.length > 0 && (siteConfig.tableOfContents) && ( + {tableOfContents.length > 0 && siteConfig.tableOfContents && (