From 6faebab143d63529271446c0510832a3cd9cf304 Mon Sep 17 00:00:00 2001 From: frozenhelium Date: Tue, 23 Apr 2024 20:39:14 +0545 Subject: [PATCH] Improve styling of about page --- src/components/Navbar/index.tsx | 3 +- src/components/Page/index.tsx | 6 +- src/{assets => views/About}/about.png | Bin src/{assets => views/About}/homepage_bg.png | Bin src/views/About/i18n.json | 8 +- src/views/About/index.tsx | 86 ++++++++++++-------- src/views/About/styles.module.css | 54 +++++++----- 7 files changed, 94 insertions(+), 63 deletions(-) rename src/{assets => views/About}/about.png (100%) rename src/{assets => views/About}/homepage_bg.png (100%) diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index cf89e947..88dbef05 100644 --- a/src/components/Navbar/index.tsx +++ b/src/components/Navbar/index.tsx @@ -55,10 +55,9 @@ function Navbar(props: Props) { variant="tertiary" > - {/* // FIXME: Add About route */} {strings.appAbout} diff --git a/src/components/Page/index.tsx b/src/components/Page/index.tsx index 8ffdd6f9..0b4829fd 100644 --- a/src/components/Page/index.tsx +++ b/src/components/Page/index.tsx @@ -77,11 +77,7 @@ function Page(props: Props) { )} ref={elementRef} > - {beforeHeaderContent && ( - - {beforeHeaderContent} - - )} + {beforeHeaderContent && beforeHeaderContent} {isNotDefined(blockingContent) && showPageContainer && ( - -
-
-

{strings.aboutTheGoalTitile}

-

{strings.aboutGoalDescription}

-
-
+ title="AlertHub - About" + className={styles.about} + beforeHeaderContent={( +
+ + +
+ {strings.aboutGoalDescription} +
-
+
- - - + )} + mainSectionClassName={styles.pageContent} + >
{strings.aboutTheProblemDescription} @@ -42,34 +62,36 @@ export function Component() {
{strings.aboutProblemFactorsIncluding}
-
  • - {strings.aboutTheProblemHazardInformation} -
  • -
  • - {strings.aboutTheProblemOverlyComplicated} -
  • -
  • - {strings.aboutTheProblemActionableGuidance} -
  • -
  • - {strings.aboutTheProblemLimitedBroadcasting} -
  • +
      +
    • + {strings.aboutTheProblemHazardInformation} +
    • +
    • + {strings.aboutTheProblemOverlyComplicated} +
    • +
    • + {strings.aboutTheProblemActionableGuidance} +
    • +
    • + {strings.aboutTheProblemLimitedBroadcasting} +
    • +
    {strings.aboutTheSolutionDescription}
    {strings.aboutSolutionSteps}
    -
      +
      1. {strings.aboutSolutionStep1}
      2. {strings.aboutSolutionStep2}
      {strings.aboutDisclaimerDescription}
      diff --git a/src/views/About/styles.module.css b/src/views/About/styles.module.css index 0ee1c344..69d13950 100644 --- a/src/views/About/styles.module.css +++ b/src/views/About/styles.module.css @@ -1,28 +1,42 @@ -.about-page { - display: flex; - flex-direction: column; - gap: var(--go-ui-spacing-lg); - margin-bottom: 10; - background-image: url(src/assets/homepage_bg.png); - background-repeat: no-repeat; +.about { + .header-container { + position: relative; + background-image: url(src/assets/homepage_bg.png); + background-repeat: no-repeat; - .content { - display: flex; + .background-image { + position: absolute; + z-index: -1; + width: 100%; + height: 100%; + } + + .header-content-section { + height: 100%; + min-height: 30rem; + + .content { + display: flex; + align-items: center; - .text{ - color :white; - /* color: var(--go-ui-color-primary-white);*/ + .header { + color: var(--go-ui-color-white); + + .about-icon { + height: 20rem; + } + + .description { + font-size: var(--go-ui-font-size-xl); + } + } + } } } - .about-sub-heading { + .page-content { display: flex; flex-direction: column; - gap: var(--go-ui-spacing-md); - } - - .about-solution-list { - margin: 0; - padding: var(--go-ui-spacing-xs); + gap: var(--go-ui-spacing-2xl); } -} \ No newline at end of file +}