From 006e82253c6ebefcf643cfcea6f50f3c3c4631ed Mon Sep 17 00:00:00 2001 From: Manjila Singh Date: Tue, 18 Jun 2024 17:45:44 +0100 Subject: [PATCH] Updated home page --- src/components/HomepageFeatures/index.js | 151 +++++++++--------- .../HomepageFeatures/styles.module.css | 91 ++++++++--- 2 files changed, 147 insertions(+), 95 deletions(-) diff --git a/src/components/HomepageFeatures/index.js b/src/components/HomepageFeatures/index.js index c0dd6ea..6899cc0 100644 --- a/src/components/HomepageFeatures/index.js +++ b/src/components/HomepageFeatures/index.js @@ -1,6 +1,6 @@ import React from "react"; -import styles from "./styles.module.css"; import clsx from 'clsx'; +import styles from "./styles.module.css"; // import { library } from "@fortawesome/fontawesome-svg-core"; // import { fab } from "@fortawesome/free-brands-svg-icons"; @@ -14,29 +14,29 @@ const SponserList = [ name: "NOAA", logo: "https://ciroh.ua.edu/wp-content/uploads/2023/04/noaa-emblem-rgb-2022-1-150x150.png", link: "https://www.noaa.gov/", - width: "100", - height: "100", + width: "120", + height: "120", }, { name: "USGS", logo: "https://ciroh.ua.edu/wp-content/uploads/2023/04/USGS_logo_green-1.png", link: "https://www.usgs.gov/", - width: "190", - height: "100", + width: "150", + height: "60", }, { name: "2I2C", logo: "https://ciroh.ua.edu/wp-content/uploads/2023/04/2i2c_logo-150x150.png", link: "https://2i2c.org/", width: "120", - height: "110", + height: "120", }, { name: "Lynker", logo: "https://ciroh.ua.edu/wp-content/uploads/2023/04/Lynker-no-tag.png", link: "https://lynker.com/", - width: "240", - height: "90", + width: "150", + height: "50", }, ]; @@ -46,7 +46,7 @@ const MemberList = [ logo: "https://upload.wikimedia.org/wikipedia/commons/thumb/3/30/University_of_Utah_horizontal_logo.svg/1280px-University_of_Utah_horizontal_logo.svg.png", link: "https://www.civil.utah.edu/", width: "210", - height: "60", + height: "70", }, { @@ -328,31 +328,32 @@ export default function HomepageFeatures() { link="/docs/education/" /> -
-

CONTRIBUTE

+

CONTRIBUTE


+

We would like CIROH Consortium members to contribute to CIROH DocuHub. Please contribute by adding product/project documentation, tutorials, training data, or conference presentations. - The CIROH DocuHub repository provides a collaborative platform for sharing project's technical documentation.

Learn more about how you can contribute and access the CIROH DocuHub repository here: + The CIROH DocuHub repository provides a collaborative platform for sharing project's technical documentation.

Learn more about how you can contribute and access the CIROH DocuHub repository here:



- +
Contribute to CIROH DocuHub
- - {/* i want one container with two rows. first row has one column while second row has 2 columns */} +
@@ -361,25 +362,26 @@ export default function HomepageFeatures() {
Consortium Sponsers
-
-
+
+ -
+
- {SponserList[1].name} - + {SponserList[1].name} +
-
- - {SponserList[2].name} + + - @@ -394,73 +396,73 @@ export default function HomepageFeatures() {
-
-
+
+ -
+
-
-
+
+ -
+
-
-
+
+ -
+
-
-
+
+ -
+
-
-
+
+ -
+
-
-
+
+ -
+
{MemberList[11].name} @@ -477,83 +479,85 @@ export default function HomepageFeatures() {
-
-
+
+ -
+
-
-
+
+ -
+
-
-
+
+ -
+
-
-
+
+ - -
-
+
+ -
+
-
-
+
+ -
+ -
+
+
+ -
+
{PartnerList[13].name} @@ -565,24 +569,25 @@ export default function HomepageFeatures() {
- - -
+
- noaaImage + noaaImage
- awiImage + awiImage
cirohImage
+ +
+
); diff --git a/src/components/HomepageFeatures/styles.module.css b/src/components/HomepageFeatures/styles.module.css index eef7939..02a1c79 100644 --- a/src/components/HomepageFeatures/styles.module.css +++ b/src/components/HomepageFeatures/styles.module.css @@ -13,23 +13,25 @@ .imagecontainer{ display:block; margin:1.3rem auto; - height:auto; + height: auto; } +.sponserimage +{ + display:inline-block !important; + margin: 1.1rem auto; + /* height: auto; */ +} .heading{ - font-size: 2.1rem; - font-weight: 700; - color: #2d3748; - margin-bottom: 1rem; + font-size: calc(1.4rem + .6vw); + font-weight:bolder; + color: #2c3e50; + line-height: 1.2; padding-top: 4rem; - padding-bottom: 2rem; + padding-bottom: 1.2rem; text-align: center; } -@media (dark-theme= "dark") { - .logocontainer { - filter: invert(1); - } -} + [data-theme='dark'] .bgcontainer{ @@ -38,6 +40,7 @@ margin-top: 5%; width:100%; border-radius:17px; + } /* turn on invert filter for logo container when dark mode is on for docusauras */ @@ -50,11 +53,6 @@ border-radius: 20px; } -@media screen and (max-width: 996px) { - .heroBanner { - padding: 2rem; - } -} .buttons { display: flex; @@ -66,15 +64,52 @@ margin: auto 0; height: 100%; } +.row1{ + display: flex; + justify-content: space-between; + align-items: center; +} +.col1{ + width: 25%; +} +.col2{ + width: 50%; +} +.col3{ + width: 30%; +} +.col4{ + width:48%; + margin-bottom: calc(0.4rem + 1.5vw); +} - - @media screen and (max-width: 1440px) { - /* Styles for small devices */ +@media screen and (max-width: 1440px) { + /* Styles for small devices */ - .heroBanner { - padding: 3rem 4rem 3rem 4rem; - } + .heroBanner { + padding: 3rem 4rem 3rem 4rem; } +} + + + +@media screen and (max-width: 996px) { + .heroBanner { + padding: 2rem; + } + .row1 { + flex-wrap: wrap; /* Allows logos to wrap onto new lines */ + } + + .col1 { + width: 50%; /* Adjusts width for two logos per row */ + margin:0 auto; + } + .col2{ + width:35%; + margin:0 auto; + } +} @media screen and (max-width: 940px) { /* Styles for small devices */ @@ -89,4 +124,16 @@ .heroimage{ width:0px; } + .heroText,.h1{ + text-align: center; + } + } +@media screen and (max-width: 840px) { + /* Styles for small devices */ + + .col4{ + width:100%; + } + +} \ No newline at end of file