From 83e0b53ea6d1f8b52dbcee4f93a060d5e535f2ef Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 6 Dec 2023 12:13:07 +0100 Subject: [PATCH] update content --- app/layout.tsx | 2 +- components/Footer.tsx | 27 +- components/Services.tsx | 52 +- next-env.d.ts | 1 + next.config.js | 3 - package.json | 3 +- pages/[pageId].tsx | 51 - pnpm-lock.yaml | 11873 ++++++++++++++++++++++++++++++++++++++ tsconfig.json | 3 +- yarn.lock | 10947 ----------------------------------- 10 files changed, 11894 insertions(+), 11068 deletions(-) delete mode 100644 pages/[pageId].tsx create mode 100644 pnpm-lock.yaml delete mode 100644 yarn.lock diff --git a/app/layout.tsx b/app/layout.tsx index 80a7726..2c8f94c 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,4 +1,4 @@ -import { Roboto } from '@next/font/google' +import { Roboto } from 'next/font/google' const roboto = Roboto({ weight: ['400', '700'], diff --git a/components/Footer.tsx b/components/Footer.tsx index cf251c7..8e06b39 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -1,11 +1,10 @@ import React from 'react' import Link from 'next/link' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faRss, faEnvelope, faBoxOpen } from '@fortawesome/free-solid-svg-icons' +import { faRss, faEnvelope } from '@fortawesome/free-solid-svg-icons' import { faGithub, - faMastodon, - faDiscord + faMastodon } from '@fortawesome/free-brands-svg-icons' export default function Footer() { @@ -44,11 +43,6 @@ export default function Footer() { - - Discord - - - RSS @@ -69,7 +63,7 @@ export default function Footer() {
  • - Cloud Hosting + Hosting
  • @@ -79,21 +73,6 @@ export default function Footer() { More
      -
    • - - Feature Ideas - -
    • -
    • - - Roadmap - -
    • -
    • - - Announcements - -
    • Blog diff --git a/components/Services.tsx b/components/Services.tsx index d29d23b..8583e6e 100644 --- a/components/Services.tsx +++ b/components/Services.tsx @@ -6,8 +6,7 @@ import { faCloud, faServer, faSearch, - faDatabase, - faShieldAlt + faDatabase } from '@fortawesome/free-solid-svg-icons' import Image from 'next/image' import Inveniordm from '../public/images/inveniordm.png' @@ -57,7 +56,7 @@ export default function Features() { Introducing Front Matter

      - Front Matter offers software development and hosting for the + Front Matter offers software development help with hosting for the scholarly community.

      @@ -116,7 +115,7 @@ export default function Features() { > invenioRDM - , research data management, persistent identifiers, and + , scholarly blogs, persistent identifiers, and metadata.

      @@ -216,11 +215,11 @@ export default function Features() { id='hosting' className='text-2xl font-extrabold text-gray-900 tracking-tight sm:text-3xl' > - Cloud Hosting + Hosting

      - Front Matter helps with setting up and maintaining cloud - infrastructure for scholarly services. + Front Matter helps with setting up and maintaining scholarly + infrastructure.

      @@ -230,21 +229,11 @@ export default function Features() {

      - Public Cloud Providers + Virtual Machines

      - Help with running scholarly infrastructure with cloud - providers Amazon AWS or{' '} - - Digital Ocean - - . + Help with running scholarly infrastructure on virtual machines.
      @@ -254,20 +243,20 @@ export default function Features() {

      - Kubernetes + Nomad

      Help with setting up and maintaining a{' '} - Kubernetes + Nomad {' '} - cluster. + cluster of Docker containers.
      @@ -290,22 +279,7 @@ export default function Features() { > Terraform {' '} - for managing cloud infrastructure. - - - -
      -
      -
      - -
      -

      - Security -

      -
      -
      - Help with implementing Security Best Practices - for cloud infrastructure. + for managing scholarly infrastructure.
      diff --git a/next-env.d.ts b/next-env.d.ts index 4f11a03..fd36f94 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,5 +1,6 @@ /// /// +/// // NOTE: This file should not be edited // see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/next.config.js b/next.config.js index 2d9ebd2..1843b1f 100644 --- a/next.config.js +++ b/next.config.js @@ -18,7 +18,4 @@ module.exports = withMDX({ }, // Append the default value with md extensions pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'], - experimental: { - appDir: true, - }, }) diff --git a/package.json b/package.json index 880e321..3c8b906 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homepageable", - "version": "0.4.0", + "version": "0.5.0", "private": true, "description": "From Matter homepage.", "author": "Martin Fenner ", @@ -24,7 +24,6 @@ "@headlessui/react": "^1.7.2", "@mdx-js/loader": "^2.1.5", "@mdx-js/react": "^2.1.5", - "@next/font": "^13.0.7", "@next/mdx": "^13.0.3", "@tailwindcss/aspect-ratio": "^0.4.2", "@tailwindcss/forms": "^0.5.3", diff --git a/pages/[pageId].tsx b/pages/[pageId].tsx deleted file mode 100644 index a6725b0..0000000 --- a/pages/[pageId].tsx +++ /dev/null @@ -1,51 +0,0 @@ -import React from 'react' -import Footer from '../components/Footer' - -export const getStaticProps = async (context) => { - const rawPageId = context.params.pageId as string - - try { - if (rawPageId === 'sitemap.xml' || rawPageId === 'robots.txt') { - return { - redirect: { - destination: `/api/${rawPageId}` - } - } - } - - const props = null - - return { props, revalidate: 10 } - } catch (err) { - // we don't want to publish the error version of this page, so - // let next.js know explicitly that incremental SSG failed - throw err - } -} - -export async function getStaticPaths() { - const siteMaps = [] - - const ret = { - paths: siteMaps.flatMap((siteMap) => - Object.keys(siteMap.canonicalPageMap).map((pageId) => ({ - params: { - pageId - } - })) - ), - // paths: [], - fallback: true - } - - console.log(ret.paths) - return ret -} - -export default function NotionDomainDynamicPage(props) { - return ( - <> -