From 01db768d726f7c84fc31567b167f48dc03b29f7b Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 18 Sep 2019 14:40:59 +0800 Subject: [PATCH 01/75] :zap: change header background --- src/components/header.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/header.tsx b/src/components/header.tsx index 47132f430..6ec7c3065 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -8,7 +8,6 @@ interface HeaderProps { const Header: React.FC = ({ siteTitle }) => (
From e7efda2643e05f5500df4b4ea8119ade4a58b718 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 18 Sep 2019 19:17:20 +0800 Subject: [PATCH 02/75] :zap: Add rc-footer --- package.json | 21 +++++++++++---------- src/components/layout.tsx | 16 +++++++++++----- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index a9e30fd4b..23d51ce40 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,14 @@ "url": "https://github.com/antvis/antvis.github.io/issues" }, "devDependencies": { + "@testing-library/jest-dom": "^4.1.0", + "@testing-library/react": "^9.1.4", + "@types/jest": "^24.0.18", + "@types/react": "^16.9.2", + "@types/react-dom": "^16.9.0", + "@types/react-helmet": "^5.0.10", + "babel-jest": "^24.9.0", + "babel-preset-gatsby": "^0.2.13", "gatsby": "^2.15.16", "gatsby-image": "^2.2.19", "gatsby-plugin-antd": "^2.0.2", @@ -29,21 +37,14 @@ "gatsby-plugin-typescript": "^2.1.8", "gatsby-source-filesystem": "^2.1.22", "gatsby-transformer-sharp": "^2.2.14", + "identity-obj-proxy": "^3.0.0", + "jest": "^24.9.0", "less": "^3.10.3", "prettier": "^1.18.2", + "rc-footer": "^0.1.0", "react": "^16.9.0", "react-dom": "^16.9.0", "react-helmet": "^5.2.1", - "@testing-library/jest-dom": "^4.1.0", - "@testing-library/react": "^9.1.4", - "@types/jest": "^24.0.18", - "@types/react": "^16.9.2", - "@types/react-dom": "^16.9.0", - "@types/react-helmet": "^5.0.10", - "babel-jest": "^24.9.0", - "babel-preset-gatsby": "^0.2.13", - "identity-obj-proxy": "^3.0.0", - "jest": "^24.9.0", "react-test-renderer": "^16.9.0", "ts-jest": "^24.1.0", "typescript": "^3.6.3" diff --git a/src/components/layout.tsx b/src/components/layout.tsx index 9bfcb48bd..8487e2ae1 100644 --- a/src/components/layout.tsx +++ b/src/components/layout.tsx @@ -7,6 +7,7 @@ import React from 'react'; import { useStaticQuery, graphql } from 'gatsby'; +import Footer from 'rc-footer'; import Header from './header'; import './layout.less'; @@ -38,11 +39,16 @@ const Layout: React.FC = ({ children }) => { }} >
{children}
-
- © {new Date().getFullYear()}, Built with - {` `} - Gatsby -
+