From 97ac5a4f3bc4ac60c221351bfef0e3c36b60e27c Mon Sep 17 00:00:00 2001 From: Joost De Cock Date: Tue, 1 Aug 2023 16:15:11 +0200 Subject: [PATCH] feat(org): more work on homepage --- sites/org/pages/index.mjs | 90 ++++++++++++++++++++----- sites/shared/config/tailwind-force.html | 3 +- sites/shared/i18n/homepage/en.yaml | 6 ++ 3 files changed, 81 insertions(+), 18 deletions(-) diff --git a/sites/org/pages/index.mjs b/sites/org/pages/index.mjs index 3b10fe6dfe3..4d5fb75dfd8 100644 --- a/sites/org/pages/index.mjs +++ b/sites/org/pages/index.mjs @@ -11,14 +11,37 @@ import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs' //import { PageLink } from 'shared/components/page-link.mjs' import { BareLayout } from 'site/components/layouts/bare.mjs' import { ForceAccountCheck } from 'shared/components/account/force-account-check.mjs' -import { OkIcon } from 'shared/components/icons.mjs' +import { + OkIcon, + DesignIcon, + ShowcaseIcon, + DocsIcon, + HelpIcon, + ChatIcon, +} from 'shared/components/icons.mjs' import { FreeSewingAnimation } from 'shared/components/animations/freesewing.mjs' import { HowDoesItWorkAnimation } from 'shared/components/animations/how-does-it-work.mjs' import { SignUp } from 'shared/components/susi/sign-up.mjs' import { PleaseSubscribe } from 'shared/components/patrons/please-subscribe.mjs' +import Link from 'next/link' const ns = nsMerge(pageNs, 'patrons', 'common', 'homepage', 'signup', 'errors', 'patrons') +const CardLink = ({ color = 'primary', href, title, text, icon }) => ( + +

+ {icon} + {title} +

+

{text}

+ +) + /* * Each page MUST be wrapped in the PageWrapper component. * You also MUST spread props.page into this wrapper component @@ -55,23 +78,13 @@ const HomePage = ({ page }) => {
-

Why bother?

+

{t('homepage:whyBother')}

    -
  • - Free of charge. -
  • -
  • - No ads. No tracking. No nonsense. -
  • -
  • - Store your measurements sets and patterns. -
  • -
  • - Personalize your user experience. -
  • -
  • - One-click account removal. -
  • + {[1, 2, 3, 4, 5].map((i) => ( +
  • + {t(`homepage:why${i}`)} +
  • + ))}
@@ -102,6 +115,49 @@ const HomePage = ({ page }) => { + +
+ } + text="Browse our collection of designs, and turn them into sewing patterns that are made-to-measure just for you." + /> + } + text="Get inspiration from the FreeSewing community, and see how others have applied their creativity to our designs." + /> + } + text="FreeSewing.org is unlike any sewing pattern website you know. Read this short guide to get the most our of our platform." + /> + } + text="Some of the questions that come up often when people discover our platform are answered here." + /> +
+ +
+
+ } + text="While we are all volunteers, we have a good track record of helping people. So don't be shy to reach out." + /> +
+
) } diff --git a/sites/shared/config/tailwind-force.html b/sites/shared/config/tailwind-force.html index 742e345c3fe..ab5340cdca2 100644 --- a/sites/shared/config/tailwind-force.html +++ b/sites/shared/config/tailwind-force.html @@ -129,5 +129,6 @@
- + + diff --git a/sites/shared/i18n/homepage/en.yaml b/sites/shared/i18n/homepage/en.yaml index ec2afec21df..0e849f676bd 100644 --- a/sites/shared/i18n/homepage/en.yaml +++ b/sites/shared/i18n/homepage/en.yaml @@ -13,4 +13,10 @@ whatNot5: In fact, that is how we got to where we are today. pickAnyDesign: Pick any design addASet: Add a set of measurements customizeYourPattern: Customize your pattern +whyBother: Why bother? +why1: Free of charge. +why2: No ads. No tracking. No nonsense. +why3: Store your measurements sets and patterns. +why4: Personalize your user experience. +why5: One-click account removal.