-
- Quick start - 5min ⏱️
-
+
diff --git a/src/pages/index.module.css b/src/pages/index.module.css
index c95a66c11e..567a488f66 100644
--- a/src/pages/index.module.css
+++ b/src/pages/index.module.css
@@ -5,10 +5,7 @@
.hero-banner {
padding: 4rem 0;
- text-align: center;
- position: relative;
- overflow: hidden;
- background-color: #bd5b00;
+ width: 100%;
}
@media screen and (max-width: 996px) {
@@ -22,3 +19,65 @@
align-items: center;
justify-content: center;
}
+
+.header-content {
+ padding-bottom: 4rem;
+ padding-top: 6rem;
+}
+
+@media (max-width: 767px) {
+ .header-content {
+ padding-bottom: 2rem;
+ }
+}
+
+.header-title {
+ flex: 0 0 56%;
+}
+
+@media (min-width: 1024px) {
+ .header-content-inner {
+ display: flex;
+ justify-content: space-between;
+ }
+
+ .header-right {
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-start;
+ flex: 0 0 370px;
+ min-height: 100%;
+ margin-left: 60px;
+ margin-top: 0;
+ position: relative;
+ max-width: 500px;
+ }
+
+ .copy {
+ padding: 2rem;
+ }
+}
+
+@font-face {
+ font-family: "DM Sans Serif";
+ src: url("/static/font/DMSerifDisplay-Regular.woff2") format("woff2");
+}
+
+h1 {
+ --ifm-h1-font-size: 4.5rem;
+
+ font-family: "DM Sans Serif", sans-serif;
+ color: var(--ifm-color-contrasting);
+ font-weight: normal;
+}
+
+h1 em {
+ color: #f98012;
+ font-style: normal;
+}
+
+@media (max-width: 1023px) {
+ h1 {
+ max-width: 600px;
+ }
+}
diff --git a/src/theme/ColorModeToggle/index.js b/src/theme/ColorModeToggle/index.js
new file mode 100644
index 0000000000..5539642e34
--- /dev/null
+++ b/src/theme/ColorModeToggle/index.js
@@ -0,0 +1,28 @@
+/**
+ * Copyright (c) Moodle Pty Ltd.
+ *
+ * Moodle is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Moodle is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Moodle. If not, see
.
+ */
+
+import React from 'react';
+import ColorModeToggle from '@theme-original/ColorModeToggle';
+import styles from './index.module.css';
+
+export default function ColorModeToggleWrapper(props) {
+ return (
+
+
+
+ );
+}
diff --git a/src/theme/ColorModeToggle/index.module.css b/src/theme/ColorModeToggle/index.module.css
new file mode 100644
index 0000000000..97095f31d0
--- /dev/null
+++ b/src/theme/ColorModeToggle/index.module.css
@@ -0,0 +1,5 @@
+.wrapper {
+ position: absolute;
+ right: calc(var(--ifm-menu-link-padding-horizontal) * 4);
+ float: right;
+}
diff --git a/static/font/DMSerifDisplay-Regular.woff2 b/static/font/DMSerifDisplay-Regular.woff2
new file mode 100644
index 0000000000..2c1056e31e
Binary files /dev/null and b/static/font/DMSerifDisplay-Regular.woff2 differ
diff --git a/static/font/OpenSans-Italic-VariableFont_wdth,wght.woff2 b/static/font/OpenSans-Italic-VariableFont_wdth,wght.woff2
new file mode 100644
index 0000000000..57fca025d7
Binary files /dev/null and b/static/font/OpenSans-Italic-VariableFont_wdth,wght.woff2 differ
diff --git a/static/font/OpenSans-VariableFont_wdth,wght.woff2 b/static/font/OpenSans-VariableFont_wdth,wght.woff2
new file mode 100644
index 0000000000..be7804afbb
Binary files /dev/null and b/static/font/OpenSans-VariableFont_wdth,wght.woff2 differ
diff --git a/static/img/Moodle.svg b/static/img/Moodle.svg
new file mode 100644
index 0000000000..47ceb3633b
--- /dev/null
+++ b/static/img/Moodle.svg
@@ -0,0 +1,33 @@
+
+
+
diff --git a/yarn.lock b/yarn.lock
index 7efc9946bc..b70516e7b4 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3149,6 +3149,11 @@
prop-types "^15.7.2"
react-is "^17.0.2"
+"@netlify/open-api@^2.8.0":
+ version "2.9.0"
+ resolved "https://registry.yarnpkg.com/@netlify/open-api/-/open-api-2.9.0.tgz#3fd18a95c06e7f11aad20b15c1e525accc86369f"
+ integrity sha512-XhGmVR8gldH9+3CzBg8C7aj7x/cThzlW/ob/o8ZAGMMJ7aVjs8WqzYpVsjdo4nulYi0zd0enlcuG9VwM1tsJyA==
+
"@nodelib/fs.scandir@2.1.5":
version "2.1.5"
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
@@ -9565,6 +9570,11 @@ lodash.bind@^4.1.4:
resolved "https://registry.yarnpkg.com/lodash.bind/-/lodash.bind-4.2.1.tgz#7ae3017e939622ac31b7d7d7dcb1b34db1690d35"
integrity sha1-euMBfpOWIqwxt9fX3LGzTbFpDTU=
+lodash.camelcase@^4.3.0:
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"
+ integrity sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==
+
lodash.curry@^4.0.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/lodash.curry/-/lodash.curry-4.1.1.tgz#248e36072ede906501d75966200a86dab8b23170"
@@ -9970,6 +9980,11 @@ methods@~1.1.2:
resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=
+micro-api-client@^3.3.0:
+ version "3.3.0"
+ resolved "https://registry.yarnpkg.com/micro-api-client/-/micro-api-client-3.3.0.tgz#52dd567d322f10faffe63d19d4feeac4e4ffd215"
+ integrity sha512-y0y6CUB9RLVsy3kfgayU28746QrNMpSm9O/AYGNsBgOkJr/X/Jk0VLGoO8Ude7Bpa8adywzF+MzXNZRFRsNPhg==
+
micromark@~2.11.0:
version "2.11.4"
resolved "https://registry.yarnpkg.com/micromark/-/micromark-2.11.4.tgz#d13436138eea826383e822449c9a5c50ee44665a"
@@ -10161,6 +10176,19 @@ netlify-plugin-cache@^1.0.3:
resolved "https://registry.yarnpkg.com/netlify-plugin-cache/-/netlify-plugin-cache-1.0.3.tgz#f60514e259dff2b3286b6d60b570bb1c81206794"
integrity sha512-CTOwNWrTOP59T6y6unxQNnp1WX702v2R/faR5peSH94ebrYfyY4zT5IsRcIiHKq57jXeyCrhy0GLuTN8ktzuQg==
+netlify@^11.0.1:
+ version "11.0.1"
+ resolved "https://registry.yarnpkg.com/netlify/-/netlify-11.0.1.tgz#ab2551001e3d2d845ac0c14c2138427c90a3935e"
+ integrity sha512-TkVuTvmhlAtvAdgqb+iA5wMehEHS5QcPOrULm1t809Q6KmZIhe+7b0+jwZSsDqgX3OWK/P3xgk/AU0ZbTv7ufw==
+ dependencies:
+ "@netlify/open-api" "^2.8.0"
+ lodash.camelcase "^4.3.0"
+ micro-api-client "^3.3.0"
+ node-fetch "^3.0.0"
+ omit.js "^2.0.2"
+ p-wait-for "^4.0.0"
+ qs "^6.9.6"
+
no-case@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d"
@@ -10188,6 +10216,15 @@ node-fetch@2.6.7:
dependencies:
whatwg-url "^5.0.0"
+node-fetch@^3.0.0:
+ version "3.2.5"
+ resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.2.5.tgz#7d31da657804db5185540ddac7ddd516a9a2bd26"
+ integrity sha512-u7zCHdJp8JXBwF09mMfo2CL6kp37TslDl1KP3hRGTlCInBtag+UO3LGVy+NF0VzvnL3PVMpA2hXh1EtECFnyhQ==
+ dependencies:
+ data-uri-to-buffer "^4.0.0"
+ fetch-blob "^3.1.4"
+ formdata-polyfill "^4.0.10"
+
node-fetch@^3.2.4:
version "3.2.4"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.2.4.tgz#3fbca2d8838111048232de54cb532bd3cf134947"
@@ -10381,6 +10418,11 @@ obuf@^1.0.0, obuf@^1.1.2:
resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e"
integrity sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==
+omit.js@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/omit.js/-/omit.js-2.0.2.tgz#dd9b8436fab947a5f3ff214cb2538631e313ec2f"
+ integrity sha512-hJmu9D+bNB40YpL9jYebQl4lsTW6yEHRTroJzNLqQJYHm7c+NQnJGfZmIWh8S3q3KoaxV1aLhV6B3+0N0/kyJg==
+
on-finished@2.4.1:
version "2.4.1"
resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f"
@@ -10541,6 +10583,11 @@ p-retry@^4.5.0:
"@types/retry" "^0.12.0"
retry "^0.13.1"
+p-timeout@^5.0.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-5.1.0.tgz#b3c691cf4415138ce2d9cfe071dba11f0fee085b"
+ integrity sha512-auFDyzzzGZZZdHz3BtET9VEz0SE/uMEAx7uWfGPucfzEwwe/xH0iVeZibQmANYE/hp9T2+UUZT5m+BKyrDp3Ew==
+
p-try@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3"
@@ -10551,6 +10598,13 @@ p-try@^2.0.0:
resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6"
integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==
+p-wait-for@^4.0.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/p-wait-for/-/p-wait-for-4.1.0.tgz#290f126f49bbd7c84e0cedccb342cd631aaa0f16"
+ integrity sha512-i8nE5q++9h8oaQHWltS1Tnnv4IoMDOlqN7C0KFG2OdbK0iFJIt6CROZ8wfBM+K4Pxqfnq4C4lkkpXqTEpB5DZw==
+ dependencies:
+ p-timeout "^5.0.0"
+
package-json@^6.3.0:
version "6.5.0"
resolved "https://registry.yarnpkg.com/package-json/-/package-json-6.5.0.tgz#6feedaca35e75725876d0b0e64974697fed145b0"
@@ -11216,7 +11270,7 @@ pure-color@^1.2.0:
resolved "https://registry.yarnpkg.com/pure-color/-/pure-color-1.3.0.tgz#1fe064fb0ac851f0de61320a8bf796836422f33e"
integrity sha1-H+Bk+wrIUfDeYTIKi/eWg2Qi8z4=
-qs@6.10.3:
+qs@6.10.3, qs@^6.9.6:
version "6.10.3"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.3.tgz#d6cde1b2ffca87b5aa57889816c5f81535e22e8e"
integrity sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==