Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature cards to the home page #197

Merged
merged 8 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"react-dom": "^18.2.0",
"react-markdown": "^9.0.1",
"react-player": "^2.16.0",
"react-responsive-carousel": "^3.2.23",
"s": "^1.0.0",
"update": "^0.7.4"
},
Expand Down
64 changes: 58 additions & 6 deletions src/components/HomepageFeatures/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import React from "react";
import clsx from 'clsx';
import styles from "./styles.module.css";
import { Carousel } from 'react-responsive-carousel';
import 'react-responsive-carousel/lib/styles/carousel.min.css';

// import { library } from "@fortawesome/fontawesome-svg-core";
// import { fab } from "@fortawesome/free-brands-svg-icons";

Expand Down Expand Up @@ -294,7 +297,7 @@ const Member = ({ idx, name,logo,link,width,height }) => (
);

const Card = ({ title, image, description, link }) => (
<div className="col col--4 " style={{ display: 'flex', marginBottom: "20px"}}>
<div className="col col--4" style={{ display: 'flex', marginBottom: "20px"}}>
<div className="card" style={{ flex: '1' }}>
<div className="card__image" style={{ textAlign: 'center' }}>
<img
Expand All @@ -319,12 +322,21 @@ const Card = ({ title, image, description, link }) => (
</div>
);


export default function HomepageFeatures() {
return (
<section className={styles.homepageContainer}>
<div className="container" >
<div className="row">
<Carousel
showThumbs={false}
autoPlay={true}
useKeyboardArrows={true}
emulateTouch={true}
interval={4000}
infiniteLoop
showStatus={false}
showIndicators={true}
>
<div className="row">
<Card
title="Documentation"
image="img/documentation.png"
Expand All @@ -342,10 +354,50 @@ export default function HomepageFeatures() {
image="img/tutorial.png"
description="Elevate your expertise through our training programs. Delve into our tutorials and educational resources, covering topics such as the NextGen framework, Data Science model, and more."
link="/docs/education/"
/>
</div>
<div className="row">
<Card
title="NextGen In A Box"
image="img/NGIAB-logo.jpg"
description="Utilize NextGen In A Box (NGIAB) to locally run NextGen framework. Choose specific regions or basins for analysis, control input data, and modify confiurations, all within a containerized environment."
link="/docs/products/community-nextgen/nextgeninaboxDocker"
/>
<Card
title="AWS"
image="img/aws-logo.jpg"
description="Leverage the power of CIROH AWS Account to elevate your hydrological research. Get access to enterprise-level AWS cloud platform, and utilize AWS computing resources and scalable storage for your research."
link="/docs/services/cloudservices/aws"
/>
<Card
title="Google Cloud"
image="img/google-cloud.jpg"
description="Explore different services and tools offered by CIROH Google Cloud. Learn how to access Google Cloud Platform (GCP) and leverage its resources for your research and projects."
link="/docs/services/cloudservices/google cloud"
/>
</div>
<div className="row">


</div>
<Card
title="CIROH JupyterHub"
image="img/jupyterhub.jpg"
description="Access cloud-based JupyterHub environment on Google Cloud tailored for hydrological research. Leverage computing power with both CPU and GPU capabilities for advanced computational needs."
link="/docs/services/cloudservices/CIROH JupyterHub"
/>
<Card
title="Pantarhei"
image="img/pantarhei-logo.jpg"
description="Access Pantarhei, a high-performance computing (HPC) cluster, to run computationally intensive hydrological models. Utilize Pantarhei to perform large-scale simulations and data processing tasks."
link="/docs/services/on-prem/Pantarhei"
/>
<Card
title="CIROH Portal"
image="img/ciroh-logo.jpg"
description="This portal enhances collaboration and innovation by providing access to interactive web apps, datasets, and learning modules, supporting CIROH and NOAA NWM researchers in advancing hydrological science."
link="/docs/products/tethysportal"
/>
</div>
</Carousel>
</div>
<div className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
Expand Down Expand Up @@ -621,4 +673,4 @@ export default function HomepageFeatures() {
</div>
</section>
);
}
}
Binary file added static/img/NGIAB-logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/aws-logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/ciroh-logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/google-cloud.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/hpc-logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/jupyterhub.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/pantarhei-logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading