diff --git a/README.md b/README.md index 347b1478..14fcc74f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# **[Javaistic](https://javaistic.vercel.app/?utm_source=github&utm_medium=readme-header&utm_campaign=javaistic) ![Stars](https://badgen.net/github/stars/javaistic/javaistic) ![Release](https://badgen.net/github/release/javaistic/javaistic)** +# **[Javaistic](https://javaistic.vercel.app/?utm_source=github&utm_medium=readme-header&utm_campaign=javaistic) ![Stars](https://badgen.net/github/stars/javaistic/javaistic) ![Release](https://badgen.net/github/release/javaistic/javaistic) [![CodeQL](https://github.com/javaistic/javaistic/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/javaistic/javaistic/actions/workflows/codeql-analysis.yml)**
diff --git a/package.json b/package.json index 1bf8d18f..4c71d892 100644 --- a/package.json +++ b/package.json @@ -15,20 +15,20 @@ ], "dependencies": { "@badrap/bar-of-progress": "^0.1.2", - "@docsearch/react": "^1.0.0-alpha.14", - "@formspree/react": "^2.2.3", - "@juggle/resize-observer": "^3.2.0", + "@docsearch/react": "^1.0.0-alpha.28", + "@formspree/react": "^2.2.4", + "@juggle/resize-observer": "^3.3.1", "@mdx-js/loader": "^1.6.22", "@mdx-js/react": "^1.6.22", - "@next/bundle-analyzer": "^11.1.2", - "@next/mdx": "^11.1.2", + "@next/bundle-analyzer": "^12.0.1", + "@next/mdx": "^12.0.1", "@reach/rect": "^0.16.0", "@silvenon/remark-smartypants": "^1.0.0", "@sindresorhus/slugify": "^1.1.0", "@svgr/webpack": "^5.5.0", "@tailwindcss/jit": "^0.1.18", "@tailwindcss/typography": "^0.4.1", - "autoprefixer": "^10.3.4", + "autoprefixer": "^10.4.0", "babel-plugin-preval": "^5.0.0", "clsx": "^1.1.1", "dlv": "^1.1.3", @@ -36,31 +36,31 @@ "focus-visible": "^5.1.0", "framer-motion": "^4.1.17", "front-matter": "^4.0.2", - "glob": "^7.1.7", + "glob": "^7.2.0", "intersection-observer": "^0.12.0", "minimatch": "^3.0.4", - "next": "^11.1.2", - "postcss": "^8.3.6", + "next": "^12.0.1", + "postcss": "^8.3.11", "postcss-focus-visible": "^5.0.0", "postcss-import": "^14.0.2", "postcss-nested": "^5.0.6", - "prismjs": "^1.24.1", + "prismjs": "^1.25.0", "react": "^17.0.2", "react-dom": "^17.0.2", - "react-intersection-observer": "^8.29.0", + "react-intersection-observer": "^8.32.2", "redent": "^3.0.0", "simple-functional-loader": "^1.2.1", - "tailwindcss": "^2.2.9", + "tailwindcss": "^2.2.19", "tinytime": "^0.2.6", "unist-util-visit": "^2.0.3", - "webpack": "^5.0.0" + "webpack": "^5.61.0" }, "devDependencies": { - "@types/react": "^17.0.14", - "@typescript-eslint/eslint-plugin": "2.x", - "@typescript-eslint/parser": "2.x", + "@types/react": "^17.0.33", + "@typescript-eslint/eslint-plugin": "2.34.0", + "@typescript-eslint/parser": "2.34.0", "babel-eslint": "10.x", - "@babel/core":"^7.0.0", + "@babel/core":"^7.16.0", "eslint": "6.x", "eslint-config-react-app": "^5.2.1", "eslint-plugin-flowtype": "4.x", @@ -68,7 +68,7 @@ "eslint-plugin-jsx-a11y": "6.x", "eslint-plugin-react": "7.x", "eslint-plugin-react-hooks": "2.x", - "prettier": "^2.2.1", - "typescript": "^4.4.2" + "prettier": "^2.4.1", + "typescript": "^4.4.4" } } diff --git a/src/components/Tip.js b/src/components/Tip.js index e769500e..5c21fb5f 100644 --- a/src/components/Tip.js +++ b/src/components/Tip.js @@ -43,29 +43,23 @@ export function TipInfo({ children }) { return (
- + - +

{children}

diff --git a/src/components/home/Footer.js b/src/components/home/Footer.js index b9f44f86..06c3c944 100644 --- a/src/components/home/Footer.js +++ b/src/components/home/Footer.js @@ -6,6 +6,32 @@ import clsx from 'clsx' import Link from 'next/link' import styles from './Footer.module.css' +const GitHub = () => ( + + + +) + +const Twitter = () => ( + + + +) + const footerNav = { 'Getting started': { className: 'row-span-2', @@ -22,16 +48,16 @@ const footerNav = { { title: 'Java Docs', href: '/docs' }, { title: 'Java Programs', href: '/programs' }, { title: 'About', href: '/' }, - { title: 'Status', href: 'https://javaistic.betteruptime.com/' }, + { title: 'Contact', href: 'mailto:javaistic@gmail.com' }, ], }, Others: { className: 'row-span-2', items: [ { title: 'Brand', href: '/brand' }, + { title: 'Sponsors', href: '/sponsors' }, { title: 'Changelog', href: 'https://javaistic-changelog.vercel.app/' }, { title: 'Open Source', href: '/' }, - { title: 'Contact', href: 'mailto:javaistic@gmail.com' }, ], }, Community: { @@ -46,14 +72,14 @@ const footerNav = { export function Footer() { return ( -