From 177e0747779a550dd317333e83982ac78a83ecc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Sat, 16 Jul 2022 13:11:33 -0500 Subject: [PATCH 01/26] add html structure for home page --- docs/main.html | 64 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/docs/main.html b/docs/main.html index 92f93b1613a0..db4b4d0fef53 100644 --- a/docs/main.html +++ b/docs/main.html @@ -2,4 +2,66 @@ lhn_content: 'homepage' --- - +

+ Welcome to Expensify Community! +

+ +

+ Find all the answers to all your Expensify questions, as well as support for user and admin questions from the Expensify Community. +

+ +

+ Which best describes how you use Expensify? +

+ +
+ +
+
+ +
+
+
Send money
+
Brief description of who would fall under this category.
+
+
+ +
+
+ +
+
+
Request money
+
Brief description of who would fall under this category.
+
+
+ +
+ +

+ Our most popular guides and tutorials +

+ +
+ +
+
+ +
+
+
Send money
+
Brief description of who would fall under this category.
+
+
+ +
+
+ +
+
+
Request money
+
Brief description of who would fall under this category.
+
+
+ +
From a7c26ca94a10f984dc3730820dd2fe3ddbccb30a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Sat, 16 Jul 2022 13:13:36 -0500 Subject: [PATCH 02/26] add icons --- docs/assets/images/concierge-avatar.svg | 5 +++++ docs/assets/images/shield.svg | 4 ++++ docs/assets/images/users.svg | 14 ++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 docs/assets/images/concierge-avatar.svg create mode 100644 docs/assets/images/shield.svg create mode 100644 docs/assets/images/users.svg diff --git a/docs/assets/images/concierge-avatar.svg b/docs/assets/images/concierge-avatar.svg new file mode 100644 index 000000000000..2372f3ea9183 --- /dev/null +++ b/docs/assets/images/concierge-avatar.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/assets/images/shield.svg b/docs/assets/images/shield.svg new file mode 100644 index 000000000000..cf0c301345b0 --- /dev/null +++ b/docs/assets/images/shield.svg @@ -0,0 +1,4 @@ + + + + diff --git a/docs/assets/images/users.svg b/docs/assets/images/users.svg new file mode 100644 index 000000000000..4263fec3cca6 --- /dev/null +++ b/docs/assets/images/users.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + From 3a966d2d9552daa01e2232fd4be7f50bae60b51e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Sat, 16 Jul 2022 13:18:38 -0500 Subject: [PATCH 03/26] add icons to home page and change color --- docs/assets/images/shield.svg | 6 +++--- docs/assets/images/users.svg | 12 ++++++------ docs/main.html | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/assets/images/shield.svg b/docs/assets/images/shield.svg index cf0c301345b0..9066e116c94c 100644 --- a/docs/assets/images/shield.svg +++ b/docs/assets/images/shield.svg @@ -1,4 +1,4 @@ - - - + + + diff --git a/docs/assets/images/users.svg b/docs/assets/images/users.svg index 4263fec3cca6..c7f34b284438 100644 --- a/docs/assets/images/users.svg +++ b/docs/assets/images/users.svg @@ -1,10 +1,10 @@ - + - - - - - + + + + + diff --git a/docs/main.html b/docs/main.html index db4b4d0fef53..48ae3b1032d7 100644 --- a/docs/main.html +++ b/docs/main.html @@ -18,7 +18,7 @@

- +
Send money
@@ -28,7 +28,7 @@

- +
Request money
From eea4fbf3324dd39d8875e6a196a8830491a8e98a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Sat, 16 Jul 2022 13:31:18 -0500 Subject: [PATCH 04/26] add styles to homepage --- docs/_sass/_main.scss | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/_sass/_main.scss b/docs/_sass/_main.scss index 6b3e7d8ae696..aeaa15766c77 100644 --- a/docs/_sass/_main.scss +++ b/docs/_sass/_main.scss @@ -371,6 +371,22 @@ textarea { } } +.homepage { + h1 { + text-align: center; + padding-bottom: 20px; + } + h2 { + padding-bottom: 24px; + } + p { + margin-bottom: 40px; + } + .cards-group { + padding-bottom: 32px; + } +} + .coming-soon { overflow: hidden; From fa4f9e6876b4e9ec4fb6502f018c56bb68f8e51b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Sat, 16 Jul 2022 13:34:12 -0500 Subject: [PATCH 05/26] restructure html in homepage --- docs/main.html | 104 +++++++++++++++++++++++++++---------------------- 1 file changed, 58 insertions(+), 46 deletions(-) diff --git a/docs/main.html b/docs/main.html index 48ae3b1032d7..8147308e592a 100644 --- a/docs/main.html +++ b/docs/main.html @@ -2,66 +2,78 @@ lhn_content: 'homepage' --- -

- Welcome to Expensify Community! -

+
-

- Find all the answers to all your Expensify questions, as well as support for user and admin questions from the Expensify Community. -

+

+ Welcome to Expensify Community! +

-

- Which best describes how you use Expensify? -

+

+ Find all the answers to all your Expensify questions, as well as support for user and admin questions from the + Expensify Community. +

-
+

+ Which best describes how you use Expensify? +

-
-
- -
-
-
Send money
-
Brief description of who would fall under this category.
-
-
+
-
-
- +
+
+ +
+
+
Send money
+
Brief description of who would fall under this category.
+
-
-
Request money
-
Brief description of who would fall under this category.
+ +
+
+ +
+
+
Request money
+
Brief description of who would fall under this category.
+
-
-
+
-

- Our most popular guides and tutorials -

+

+ Our most popular guides and tutorials +

-
+
-
-
- +
+
+
Getting started
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur hendrerit euismod dui.
+
-
-
Send money
-
Brief description of who would fall under this category.
+ +
+
+
Getting started
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur hendrerit euismod dui.
+
-
-
-
- +
+
+
Getting started
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur hendrerit euismod dui.
+
-
-
Request money
-
Brief description of who would fall under this category.
+ +
+
+
Getting started
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur hendrerit euismod dui.
+
-
-
+
+
\ No newline at end of file From f935943b0f0bdb8e46b7de430ea7f7bd7a466060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Tue, 19 Jul 2022 14:58:22 -0500 Subject: [PATCH 06/26] set color and border styles to cards in main page --- docs/_sass/_colors.scss | 1 + docs/_sass/_main.scss | 25 ++++++++++++++++++++----- docs/main.html | 4 ++-- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/docs/_sass/_colors.scss b/docs/_sass/_colors.scss index d21afc515591..bf4e46b61e7b 100644 --- a/docs/_sass/_colors.scss +++ b/docs/_sass/_colors.scss @@ -5,3 +5,4 @@ $color-gray1: #FAFAFA; $color-gray2: #ECECEC; $color-gray3: #C6C9CA; $color-white: #FFFFFF; +$color-green: #07d973; diff --git a/docs/_sass/_main.scss b/docs/_sass/_main.scss index aeaa15766c77..7e366cf2189a 100644 --- a/docs/_sass/_main.scss +++ b/docs/_sass/_main.scss @@ -67,7 +67,7 @@ hr { display: inline-block; width: 24px; height: 2px; - margin: 0 0 15px; + margin: 0 0 16px; } strong { @@ -331,22 +331,36 @@ textarea { .card { display: flex; flex-wrap: nowrap; - border-radius: 15px; + border-radius: 16px; border: 1px solid $color-gray2; padding: 28px; font-weight: bold; cursor: pointer; + &.send-money { + border-color: $color-blue; + border-width: 1.5px; + } + + &.request-money { + border-color: $color-green; + border-width: 1.5px; + } + .left-icon { display: flex; align-items: center; - padding-right: 15px; + padding-right: 28px; + + img { + width: 32px; + } } .right-icon { display: flex; align-items: center; - padding-left: 15px; + padding-left: 16px; } .body { @@ -357,7 +371,8 @@ textarea { } .description { - margin-top: 15px; + margin-top: 16px; + font-weight: normal; } } diff --git a/docs/main.html b/docs/main.html index 8147308e592a..f05ca6238c4e 100644 --- a/docs/main.html +++ b/docs/main.html @@ -19,7 +19,7 @@

-
+
@@ -29,7 +29,7 @@

-
+
From 00e585551bd4f007dff84a19ca10c50fdbe2872e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Tue, 19 Jul 2022 16:22:37 -0500 Subject: [PATCH 07/26] center the content area for bigger screens --- docs/_sass/_main.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/_sass/_main.scss b/docs/_sass/_main.scss index 7e366cf2189a..ef27432ed9c6 100644 --- a/docs/_sass/_main.scss +++ b/docs/_sass/_main.scss @@ -247,6 +247,13 @@ textarea { padding: 52px 68px; box-sizing: border-box; + @media screen and (min-width: 1600px) { + /* Center content area for bigger screens */ + margin-left: calc(420px + (100vw - 1000px - 420px)/2); + padding: 52px 0; + max-width: 1000px; + } + @media screen and (max-width: 1024px) { margin-left: 320px; } From 8a9d1d7098fde2afeb40152f0f3bf66260520ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Wed, 20 Jul 2022 15:17:25 -0500 Subject: [PATCH 08/26] fix title for main page --- docs/_sass/_main.scss | 8 ++++++-- docs/main.html | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/_sass/_main.scss b/docs/_sass/_main.scss index ef27432ed9c6..2d62fa522635 100644 --- a/docs/_sass/_main.scss +++ b/docs/_sass/_main.scss @@ -395,14 +395,18 @@ textarea { .homepage { h1 { - text-align: center; padding-bottom: 20px; + + @media screen and (max-width: 800px) { + margin-top: 0; + padding-top: 8px; + } } h2 { padding-bottom: 24px; } p { - margin-bottom: 40px; + margin-bottom: 20px; } .cards-group { padding-bottom: 32px; diff --git a/docs/main.html b/docs/main.html index f05ca6238c4e..91a1593e8d80 100644 --- a/docs/main.html +++ b/docs/main.html @@ -5,7 +5,7 @@

- Welcome to Expensify Community! + Welcome to Expensify Help!

From f4ddf53b120ff96cc9946ed1ba3c7af87b7223cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Wed, 20 Jul 2022 15:20:54 -0500 Subject: [PATCH 09/26] fix margin for title h1 --- docs/_sass/_main.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/_sass/_main.scss b/docs/_sass/_main.scss index 2d62fa522635..6f3f2805f0af 100644 --- a/docs/_sass/_main.scss +++ b/docs/_sass/_main.scss @@ -98,6 +98,13 @@ h6 { font-family: "GTAmericaExp-Regular"; font-weight: bold; padding-bottom: 12px; +} + +h2, +h3, +h4, +h5, +h6 { margin-top: 20px; } From 3f20e81838ebbd118185c635120d0e5d6964150a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Tue, 26 Jul 2022 14:36:42 -0500 Subject: [PATCH 10/26] fix selected home link --- docs/_includes/home-lhn.html | 2 +- docs/_sass/_main.scss | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/docs/_includes/home-lhn.html b/docs/_includes/home-lhn.html index 4d165f97091e..7b131c1e5d9c 100644 --- a/docs/_includes/home-lhn.html +++ b/docs/_includes/home-lhn.html @@ -1,6 +1,6 @@

  • - +
  • - +
diff --git a/docs/_includes/request-money-lhn.html b/docs/_includes/request-money-lhn.html index b5f459b80bcc..ebe2d76722a7 100644 --- a/docs/_includes/request-money-lhn.html +++ b/docs/_includes/request-money-lhn.html @@ -3,10 +3,10 @@
  • - + Send money +
  • Request money
  • diff --git a/docs/_includes/send-money-lhn.html b/docs/_includes/send-money-lhn.html index 4638c2ad8fb3..bf51dfd9d999 100644 --- a/docs/_includes/send-money-lhn.html +++ b/docs/_includes/send-money-lhn.html @@ -15,9 +15,9 @@
  • - + Request money +
  • From d89c7f6110542c7b55084810bf9e6256e4ea1a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Wed, 3 Aug 2022 13:55:35 -0500 Subject: [PATCH 21/26] change navigateToHome with anchor with href --- docs/_includes/request-money-lhn.html | 2 +- docs/_includes/send-money-lhn.html | 2 +- docs/assets/js/main.js | 9 --------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/docs/_includes/request-money-lhn.html b/docs/_includes/request-money-lhn.html index ebe2d76722a7..bed3e3c3f891 100644 --- a/docs/_includes/request-money-lhn.html +++ b/docs/_includes/request-money-lhn.html @@ -1,6 +1,6 @@
    • diff --git a/docs/_includes/send-money-lhn.html b/docs/_includes/send-money-lhn.html index bf51dfd9d999..37c6262827ad 100644 --- a/docs/_includes/send-money-lhn.html +++ b/docs/_includes/send-money-lhn.html @@ -1,6 +1,6 @@
      • - + Send money
      • - + Request money
      From 57cc4a81b31921e1ea3ed6c723b1819ef9f36a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Tue, 9 Aug 2022 15:15:53 -0500 Subject: [PATCH 25/26] move event listeners and tocbot.init to DOMContentLoaded event --- docs/assets/js/main.js | 66 ++++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/docs/assets/js/main.js b/docs/assets/js/main.js index 59f618842193..c7418d2dc0a5 100644 --- a/docs/assets/js/main.js +++ b/docs/assets/js/main.js @@ -31,45 +31,47 @@ function navigateBack() { setTimeout(toggleHeaderMenu, 250); } -if (window.tocbot) { - window.tocbot.init({ +window.addEventListener('DOMContentLoaded', () => { + if (window.tocbot) { + window.tocbot.init({ // Where to render the table of contents. - tocSelector: '.article-toc', + tocSelector: '.article-toc', - // Where to grab the headings to build the table of contents. - contentSelector: '.article-toc-content', + // Where to grab the headings to build the table of contents. + contentSelector: '.article-toc-content', - // Disable the collapsible functionality of the library by - // setting the maximum number of heading levels (6) - collapseDepth: 6, + // Disable the collapsible functionality of the library by + // setting the maximum number of heading levels (6) + collapseDepth: 6, - // Main class to add to lists. - listClass: 'lhn-items', + // Main class to add to lists. + listClass: 'lhn-items', - // Main class to add to links. - linkClass: 'link', + // Main class to add to links. + linkClass: 'link', - // Class to add to active links, - // the link corresponding to the top most heading on the page. - activeLinkClass: 'selected-article', + // Class to add to active links, + // the link corresponding to the top most heading on the page. + activeLinkClass: 'selected-article', - // Headings offset between the headings and the top of the document (requires scrollSmooth enabled) - headingsOffset: 80, - scrollSmoothOffset: -80, - scrollSmooth: true, + // Headings offset between the headings and the top of the document (requires scrollSmooth enabled) + headingsOffset: 80, + scrollSmoothOffset: -80, + scrollSmooth: true, - // onclick function to apply to all links in toc. will be called with - // the event as the first parameter, and this can be used to stop, - // propagation, prevent default or perform action - onClick() { - toggleHeaderMenu(); - }, - }); -} + // onclick function to apply to all links in toc. will be called with + // the event as the first parameter, and this can be used to stop, + // propagation, prevent default or perform action + onClick() { + toggleHeaderMenu(); + }, + }); + } -document.getElementById('header-button').addEventListener('click', toggleHeaderMenu); + document.getElementById('header-button').addEventListener('click', toggleHeaderMenu); -const backButton = document.getElementById('back-button'); -if (backButton) { - backButton.addEventListener('click', navigateBack); -} + const backButton = document.getElementById('back-button'); + if (backButton) { + backButton.addEventListener('click', navigateBack); + } +}); From 1a0f9bcd4654207549d1e5c1779440b6e852261c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Tue, 9 Aug 2022 15:19:34 -0500 Subject: [PATCH 26/26] add comment to back button --- docs/assets/js/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/assets/js/main.js b/docs/assets/js/main.js index c7418d2dc0a5..efa68a6b1e7f 100644 --- a/docs/assets/js/main.js +++ b/docs/assets/js/main.js @@ -70,6 +70,7 @@ window.addEventListener('DOMContentLoaded', () => { document.getElementById('header-button').addEventListener('click', toggleHeaderMenu); + // Back button doesn't exist on all the pages const backButton = document.getElementById('back-button'); if (backButton) { backButton.addEventListener('click', navigateBack);