Skip to content

Commit

Permalink
Update homepage and navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
osamajandali committed Sep 12, 2024
1 parent 9e05b8d commit ebed8a8
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 26 deletions.
8 changes: 6 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ const config = {
},
items: [
{
type: "docSidebar",
sidebarId: "tutorialSidebar",
to: "/intro",
position: "left",
label: "Documentation",
},
Expand All @@ -76,6 +75,11 @@ const config = {
position: "left",
label: "Plugins",
},
{
to: "/users/quick-start",
position: "left",
label: "Quick Start",
},
{
href: "https://github.com/Green-Software-Foundation/if",
position: "right",
Expand Down
56 changes: 32 additions & 24 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,42 +1,50 @@
import React from 'react';
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';
import Hackathon from '@site/src/components/Hackathon';
import React from "react";
import clsx from "clsx";
import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import Layout from "@theme/Layout";
import HomepageFeatures from "@site/src/components/HomepageFeatures";
import Hackathon from "@site/src/components/Hackathon";

import styles from './index.module.css';
import styles from "./index.module.css";

function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
return (
<header className={clsx('hero', styles.heroBanner)}>
<header className={clsx("hero", styles.heroBanner)}>
<div className="container">
<div className={styles.heroInner}>
<h1 className={clsx('hero__title', styles.heroTitle)}>{siteConfig.title}</h1>
<p className="hero__subtitle">Impact Framework is a way to compute and report the environmental impacts of software applications accurately. </p>
<div className={styles.heroVideo}>
<iframe width="560" height="315" src="https://www.youtube.com/embed/msk-55owTeM?si=VyZNWzFzAU4uEiD5" title="Introducing Impact Framework - opensource tool to measure software by the Green Software Foundation" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowFullScreen></iframe>
</div>
<h1 className={clsx("hero__title", styles.heroTitle)}>
{siteConfig.title}
</h1>
<p className="hero__subtitle">
The solution to opaque carbon reporting{" "}
</p>
<div className={styles.buttons}>
<Link
className="button button--primary button--md"
to="/intro"
>
Read The Docs
<Link className="button button--primary button--md" to="https://grnsft.org/if/become-a-watcher">
Become a watcher
</Link>
<Link
className="button button--primary button--md"
to="https://explorer.if.greensoftware.foundation/"
className="button button--secondary button--md"
to="/users/quick-start"
>
Explore IF Plugins
Quick start
</Link>
</div>

<div className={styles.heroVideo}>
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/msk-55owTeM?si=VyZNWzFzAU4uEiD5"
title="Introducing Impact Framework - opensource tool to measure software by the Green Software Foundation"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowFullScreen
></iframe>
</div>
</div>
</div>
</header >
</header>
);
}

Expand Down

0 comments on commit ebed8a8

Please sign in to comment.