diff --git a/v1/lib/__tests__/build-files.test.js b/v1/lib/__tests__/build-files.test.js
index 2d08755879..2c1203179f 100644
--- a/v1/lib/__tests__/build-files.test.js
+++ b/v1/lib/__tests__/build-files.test.js
@@ -15,14 +15,11 @@ const shell = require('shelljs');
const CWD = process.cwd();
-const utils = require('../server/utils');
-
const loadConfig = require('../server/config');
const siteConfig = loadConfig(`${CWD}/website/siteConfig.js`);
const buildDir = `${CWD}/website/build`;
const docsDir = `${CWD}/docs`;
-const staticCSSDir = `${CWD}/website/static/css`;
let inputMarkdownFiles = [];
let inputAssetsFiles = [];
@@ -87,25 +84,6 @@ describe('Build files', () => {
});
});
- test('Concatenated CSS files', async () => {
- const inputFiles = await glob(`${staticCSSDir}/*.css`);
- const combinedCSSFile = `${buildDir}/${
- siteConfig.projectName
- }/css/main.css`;
- const fileContents = await Promise.all(
- [combinedCSSFile, ...inputFiles].map(file => fs.readFile(file, 'utf8')),
- );
-
- const [outputFileContent, ...inputFileContents] = fileContents;
- const minifiedCssFiles = await Promise.all(
- inputFileContents.map(utils.minifyCss),
- );
-
- minifiedCssFiles.forEach(fileContent => {
- expect(outputFileContent).toContain(fileContent);
- });
- });
-
test('Copied assets from /docs/assets', () => {
const metadata = outputAssetsFiles.map(file =>
filepath.create(file).basename(),
diff --git a/v1/website/pages/en/index.js b/v1/website/pages/en/index.js
index 66e790e093..1c5e151b21 100755
--- a/v1/website/pages/en/index.js
+++ b/v1/website/pages/en/index.js
@@ -14,54 +14,42 @@ const GridBlock = CompLibrary.GridBlock;
const Showcase = require(`${process.cwd()}/core/Showcase.js`);
const translate = require('../../server/translate.js').translate;
-class HomeSplash extends React.Component {
- render() {
- const {siteConfig, language} = this.props;
+function HomeSplash(props) {
+ const {siteConfig, language} = props;
- const Button = props => (
-
- );
-
- return (
-
-
-
-
-

-
-
-
- {siteConfig.title}
- {siteConfig.tagline}
-
-
-
-
-
-
-
-
-
-
-
+ return (
+
+
+
+
+ {siteConfig.title} makes it easy to maintain{' '}
+ Open Source{' '}
+ documentation websites.
+
+
- );
- }
+
+ );
}
class Index extends React.Component {
@@ -72,18 +60,18 @@ class Index extends React.Component {
return (
-
-
-
- We're working on{' '}
-
- Docusaurus 2
-
- , contribute to its roadmap by suggesting features or giving
- feedback{' '}
-
here!
-
+
+
+ We're working on{' '}
+
+ Docusaurus 2
+
+ , contribute to its roadmap by suggesting features or giving
+ feedback{' '}
+
here!
+
+
code {
font-weight: bold;
font-size: 24px;
padding: 48px;
+ margin: 0 auto;
text-align: center;
}
@@ -71,3 +72,101 @@ table td:first-child > code {
margin: 0 auto;
max-width: 768px;
}
+
+.index-hero {
+ background-color: #2b3137;
+ padding: 48px;
+}
+
+.index-hero-inner {
+ margin: 0 auto;
+ max-width: 1100px;
+ padding: 0 20px;
+}
+
+.index-hero-project-tagline {
+ color: #fff;
+ font-size: 64px;
+ margin: 0;
+}
+
+.index-hero-project-keywords {
+ color: $primaryColor;
+}
+
+@keyframes jackInTheBox {
+ from {
+ opacity: 0;
+ transform: scale(0.1) rotate(30deg);
+ transform-origin: center bottom;
+ }
+
+ 50% {
+ transform: rotate(-10deg);
+ }
+
+ 70% {
+ transform: rotate(3deg);
+ }
+
+ to {
+ opacity: 1;
+ transform: scale(1);
+ }
+}
+
+.index-hero-logo {
+ animation-duration: 2s;
+ animation-name: jackInTheBox;
+ float: right;
+ margin-top: 20px;
+ padding: 20px;
+}
+
+.index-ctas {
+ margin-top: 24px;
+}
+
+.index-ctas-get-started-button {
+ border-radius: 8px;
+ border-width: 2px;
+ color: #fff;
+ font-size: 24px;
+ font-weight: bold;
+ margin-right: 24px;
+ padding: 18px 36px;
+}
+
+.index-ctas-github-button {
+ vertical-align: sub;
+}
+
+@media only screen and (max-width: 768px) {
+ .index-hero {
+ padding-left: 20px;
+ padding-right: 20px;
+ }
+
+ .index-hero-inner {
+ padding: 0;
+ }
+
+ .index-hero-project-tagline {
+ font-size: 36px;
+ text-align: center;
+ }
+
+ .index-hero-logo {
+ display: block;
+ float: none;
+ margin: 0 auto;
+ }
+
+ .index-ctas {
+ text-align: center;
+ }
+
+ .index-ctas-github-button {
+ display: none;
+ }
+}