diff --git a/.gitignore b/.gitignore index 65ac67b9..f65d00b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ yarn.lock package-lock.json -public/ + # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. diff --git a/package.json b/package.json index 6bfa9054..524f315e 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "license": "Apache 2.0", "dependencies": { "@chakra-ui/icons": "^2.1.1", + "@chakra-ui/next-js": "^2.2.0", "@chakra-ui/react": "^2.8.2", "@chakra-ui/system": "^2.6.2", "@emotion/react": "^11.13.3", diff --git a/public/cards/cubed-xarray.png b/public/cards/cubed-xarray.png index 29a1cb86..a5851d80 100644 Binary files a/public/cards/cubed-xarray.png and b/public/cards/cubed-xarray.png differ diff --git a/public/cards/cupy-tutorial.png b/public/cards/cupy-tutorial.png index a601570d..4211211a 100644 Binary files a/public/cards/cupy-tutorial.png and b/public/cards/cupy-tutorial.png differ diff --git a/public/cards/czi-eoss-grant-conclusion.png b/public/cards/czi-eoss-grant-conclusion.png index d589828c..5d827342 100644 Binary files a/public/cards/czi-eoss-grant-conclusion.png and b/public/cards/czi-eoss-grant-conclusion.png differ diff --git a/public/cards/flox.png b/public/cards/flox.png index 618302f7..e32f9169 100644 Binary files a/public/cards/flox.png and b/public/cards/flox.png differ diff --git a/public/cards/introducing-inference-data.png b/public/cards/introducing-inference-data.png index 292cbffb..35450571 100644 Binary files a/public/cards/introducing-inference-data.png and b/public/cards/introducing-inference-data.png differ diff --git a/public/cards/introducing-pint-xarray.png b/public/cards/introducing-pint-xarray.png index e8ec2d66..28fd2d13 100644 Binary files a/public/cards/introducing-pint-xarray.png and b/public/cards/introducing-pint-xarray.png differ diff --git a/public/cards/introducing-xradar.png b/public/cards/introducing-xradar.png index 1b3d8d67..c63ea3fa 100644 Binary files a/public/cards/introducing-xradar.png and b/public/cards/introducing-xradar.png differ diff --git a/public/cards/introducing-xwrf.png b/public/cards/introducing-xwrf.png index e5a28d30..b3995b1b 100644 Binary files a/public/cards/introducing-xwrf.png and b/public/cards/introducing-xwrf.png differ diff --git a/public/cards/multiple-groupers.png b/public/cards/multiple-groupers.png new file mode 100644 index 00000000..a8e5b14b Binary files /dev/null and b/public/cards/multiple-groupers.png differ diff --git a/public/cards/pangeo-ml-ecosystem-2023.png b/public/cards/pangeo-ml-ecosystem-2023.png index a571461f..01b04543 100644 Binary files a/public/cards/pangeo-ml-ecosystem-2023.png and b/public/cards/pangeo-ml-ecosystem-2023.png differ diff --git a/public/cards/siparcs-2022.png b/public/cards/siparcs-2022.png index c4c17fb9..b10f280e 100644 Binary files a/public/cards/siparcs-2022.png and b/public/cards/siparcs-2022.png differ diff --git a/public/cards/xarray-for-neurophysiology.png b/public/cards/xarray-for-neurophysiology.png index 6e9ac2ef..e08bee59 100644 Binary files a/public/cards/xarray-for-neurophysiology.png and b/public/cards/xarray-for-neurophysiology.png differ diff --git a/public/cards/xarray-kvikio.png b/public/cards/xarray-kvikio.png index 15e1d765..40ab4790 100644 Binary files a/public/cards/xarray-kvikio.png and b/public/cards/xarray-kvikio.png differ diff --git a/public/cards/xarray-tutorial.png b/public/cards/xarray-tutorial.png new file mode 100644 index 00000000..01e4c62d Binary files /dev/null and b/public/cards/xarray-tutorial.png differ diff --git a/src/components/layout.js b/src/components/layout.js index 9cfc00ac..cf94bc72 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -13,13 +13,22 @@ export const Layout = ({ url = 'https://xarray.dev', enableBanner = false, }) => { - const bannerTitle = 'Xarray’s 2024 User Survey is live now.' + const bannerTitle = "Xarray's 2024 User Survey is live now." const bannerDescription = '' const bannerChildren = ( Please take ~5 minutes to fill it out and help us improve Xarray. ) + + // Determine the base URL based on the environment + const baseUrl = process.env.NEXT_PUBLIC_VERCEL_URL + ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}` + : 'http://localhost:3000' + + // Construct the full card URL + const fullCardUrl = card.startsWith('http') ? card : `${baseUrl}${card}` + return ( <> @@ -27,11 +36,11 @@ export const Layout = ({ - + - + diff --git a/src/pages/blog/index.js b/src/pages/blog/index.js index b1b3acce..e28a3ffb 100644 --- a/src/pages/blog/index.js +++ b/src/pages/blog/index.js @@ -72,7 +72,7 @@ export default function Blog({ allPostsData }) { return ( { - const boxBackground = 'teal.100' const date = new Date(frontmatter.date) return ( - - - - - - - xarray.dev / blog - - + + + + + + xarray.dev / blog + + xarray logo + + + + + {frontmatter.title} + + - {'xarray + + + + {formatDate(date)} + + - - - {frontmatter.title} - - - - {formatDate(date)} - - - - - - - {frontmatter.authors.map((author) => { - return ( + + + + {frontmatter.authors.map((author) => ( - ) - })} - - + ))} + + + diff --git a/src/pages/dashboard.js b/src/pages/dashboard.js index c6d997a4..66068f5a 100644 --- a/src/pages/dashboard.js +++ b/src/pages/dashboard.js @@ -5,7 +5,7 @@ const DashboardPage = () => { return ( { return ( - +