From 18af5d265374ba002eff0a48d14d378ce557a205 Mon Sep 17 00:00:00 2001 From: Edward Lu <36934022+edlu77@users.noreply.github.com> Date: Fri, 28 Jun 2024 11:26:27 -0400 Subject: [PATCH] style: :art: CDE landing page styling updates (#484) * Update styling for smallest breakpoint * Update more breakpoints * Changes to large breakpoint * Clean up typography settings * Cleanup and finish adding breakpoints * Fix typo * Separate typography theming for create and landing pages * HRA footer updates --- .../components/header/header.component.scss | 29 +- .../visual-card/visual-card.component.scss | 56 ++-- .../landing-page/landing-page.component.html | 74 ++--- .../landing-page/landing-page.component.scss | 296 +++++++----------- .../landing-page.component.theme.scss | 18 ++ .../visualization.component.scss | 4 +- apps/cde-ui/src/assets/icons/social/email.svg | 12 +- .../src/assets/icons/social/email_large.svg | 9 + .../src/assets/icons/social/facebook.svg | 19 +- .../assets/icons/social/facebook_large.svg | 17 + .../src/assets/icons/social/instagram.svg | 15 +- .../assets/icons/social/instagram_large.svg | 11 + .../src/assets/icons/social/linkedin.svg | 12 +- .../assets/icons/social/linkedin_large.svg | 7 + apps/cde-ui/src/assets/icons/social/x.svg | 6 +- .../src/assets/icons/social/x_large.svg | 4 + .../src/assets/icons/social/youtube.svg | 15 +- .../src/assets/icons/social/youtube_large.svg | 5 + apps/cde-ui/src/assets/logo/cde_logo.svg | 22 +- apps/cde-ui/src/assets/logo/cifar.svg | 26 +- apps/cde-ui/src/assets/logo/iu.svg | 10 +- apps/cde-ui/src/assets/logo/nih.svg | 6 +- .../styles/_landing-page-typographies.scss | 47 +++ apps/cde-ui/src/styles/_material-theming.scss | 17 +- apps/cde-ui/src/styles/_typographies.scss | 3 + apps/cde-ui/src/styles/global/_fonts.scss | 2 +- .../src/styles/themable-sections/_main.scss | 2 + .../footer/src/lib/footer.component.html | 22 +- .../footer/src/lib/footer.component.scss | 122 +++++--- .../footer/src/lib/footer.component.ts | 28 +- 30 files changed, 543 insertions(+), 373 deletions(-) create mode 100644 apps/cde-ui/src/assets/icons/social/email_large.svg create mode 100644 apps/cde-ui/src/assets/icons/social/facebook_large.svg create mode 100644 apps/cde-ui/src/assets/icons/social/instagram_large.svg create mode 100644 apps/cde-ui/src/assets/icons/social/linkedin_large.svg create mode 100644 apps/cde-ui/src/assets/icons/social/x_large.svg create mode 100644 apps/cde-ui/src/assets/icons/social/youtube_large.svg create mode 100644 apps/cde-ui/src/styles/_landing-page-typographies.scss diff --git a/apps/cde-ui/src/app/components/header/header.component.scss b/apps/cde-ui/src/app/components/header/header.component.scss index 90026a06b..0eaa0e23b 100644 --- a/apps/cde-ui/src/app/components/header/header.component.scss +++ b/apps/cde-ui/src/app/components/header/header.component.scss @@ -5,7 +5,7 @@ --mat-text-button-hover-state-layer-opacity: 0; display: flex; - padding: 1rem 0.5rem; + padding: 1rem; align-items: center; gap: 0.25rem; @@ -52,8 +52,6 @@ } @media (min-width: 544px) { - padding: 1rem 1.5rem; - .help { --mdc-text-button-label-text-size: 0.875rem; line-height: 21px; @@ -63,18 +61,13 @@ } @media (min-width: 1012px) { - $logo-height: 3rem !important; - gap: 2rem; - padding: 1.5rem 3rem; - - img { - height: $logo-height; - } + $logo-height: 2.5rem; + gap: 1rem; + padding: 0.75rem 1rem; .hra-home, .cde-home { height: $logo-height; - border-radius: 0.5rem; img { height: $logo-height; @@ -97,7 +90,17 @@ } } - @media (min-width: 1280px) { - padding: 3rem 5rem; + @media (min-width: 1440px) { + $logo-height: 3rem; + padding: 0.5rem 1rem; + + .hra-home, + .cde-home { + height: $logo-height; + + img { + height: $logo-height; + } + } } } diff --git a/apps/cde-ui/src/app/components/visual-card/visual-card.component.scss b/apps/cde-ui/src/app/components/visual-card/visual-card.component.scss index eb50556c3..e64e2cf70 100644 --- a/apps/cde-ui/src/app/components/visual-card/visual-card.component.scss +++ b/apps/cde-ui/src/app/components/visual-card/visual-card.component.scss @@ -1,10 +1,11 @@ @use '../../../styles/cta' as cta; :host { - font-family: 'Metropolis'; display: flex; flex-wrap: wrap; gap: 2.5rem; + column-gap: 1.75rem; + justify-content: center; .visual-card { border-radius: 1rem; @@ -13,9 +14,11 @@ outline-offset: 0; cursor: pointer; display: flex; - width: 100%; flex-direction: column; - height: calc(100vw - 3rem); + justify-content: center; + font-family: Metropolis; + width: 17.5rem; + height: 17.5rem; &:hover { box-shadow: 0px 5px 1rem 5px rgba(32, 30, 61, 0.24); @@ -35,43 +38,50 @@ align-items: center; justify-content: center; margin: auto auto; - font-size: 11px; - letter-spacing: 0.2px; - font-weight: 500; + font-size: 0.75rem; + line-height: 1.125rem; } mat-icon { vertical-align: middle; - margin-left: 0.25rem; height: 1rem; width: 1rem; font-size: 1rem; + margin-left: 0.5rem; } } - @media (min-width: 430px) { + @media (min-width: 768px) { + justify-content: space-between; + } + + @media (min-width: 1012px) { .visual-card { - height: calc(100vw - 5rem) !important; + width: 24.5rem; + height: 24.5rem; + + .label { + font-size: 1rem; + line-height: 1.5rem; + } + + mat-icon { + height: 1.5rem; + width: 1.5rem; + font-size: 1.5rem; + margin-left: 0.75rem; + } } } - @media (min-width: 544px) { - gap: 3rem; + @media (min-width: 1280px) { + column-gap: 2rem; + } + @media (min-width: 1920px) { .visual-card { width: 30.5rem; - height: 30.5rem !important; - } - - .label { - font-size: 1.125rem !important; - } - - mat-icon { - height: 1.5rem !important; - width: 1.5rem !important; - font-size: 1.5rem !important; - margin-left: 0.75rem !important; + height: 30.5rem; } } } diff --git a/apps/cde-ui/src/app/pages/landing-page/landing-page.component.html b/apps/cde-ui/src/app/pages/landing-page/landing-page.component.html index 17052993c..148be8d4b 100644 --- a/apps/cde-ui/src/app/pages/landing-page/landing-page.component.html +++ b/apps/cde-ui/src/app/pages/landing-page/landing-page.component.html @@ -2,7 +2,7 @@
-

Create and Explore Cell Distance Visualizations

+

Create and explore cell distance visualizations

This website supports visualization and quantification of cells and cell-cell distance distributions in processed spatial molecular data. Resulting data and visualizations can be explored, downloaded, and can be @@ -14,40 +14,44 @@

-

Background Information: Constructing the Vasculature Common Coordinate Framework

-
-
-

- The vasculature is the human body's delivery system. It is also a cornerstone of medicine, helping surgeons - guide surgeries, pathologists diagnose disease, and serving as a landmark for medical practitioners of all - stripes. The Vasculature Common Coordinate Framework (VCCF) taps into this organic infrastructure in order to - map the cells in the body based on their proximity to nearby blood vessels. -

-