-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update about page on section video * add background on about * debug * add hero bar part 1 * finish about page
- Loading branch information
Showing
14 changed files
with
218 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,50 @@ | ||
import React from 'react'; | ||
import clsx from 'clsx'; | ||
|
||
import React from "react"; | ||
import clsx from "clsx"; | ||
import styles from "./styles.module.css"; | ||
import { | ||
Card, | ||
shorthands, | ||
makeStyles, | ||
Link, | ||
CardFooter, | ||
CardHeader, | ||
} from "@fluentui/react-components"; | ||
|
||
const useStyles = makeStyles({ | ||
card: { | ||
...shorthands.margin("auto"), | ||
width: "326px", | ||
height: "272px", | ||
maxWidth: "100%", | ||
maxHeight: "100%", | ||
}, | ||
}); | ||
/** | ||
* Component to render each Feature in HomepageFeatures list | ||
*/ | ||
export default function Feature({Svg, title, description, link}) { | ||
return ( | ||
<div className={clsx('col col--4')}> | ||
<a href={link} target="_blank"> | ||
<div className="text--center"> | ||
<img width="150px" height="150px" src={Svg} alt={title} /> | ||
</div> | ||
</a> | ||
<div className="text--center padding-horiz--md"> | ||
<h3>{title}</h3> | ||
<p>{description}</p> | ||
</div> | ||
export default function Feature({ Svg, title, description, link, content }) { | ||
const style = useStyles(); | ||
return ( | ||
<Card className={style.card}> | ||
<CardHeader | ||
header={ | ||
<img | ||
width="80px" | ||
height="80px" | ||
src={Svg} | ||
alt={title} | ||
/> | ||
} | ||
/> | ||
<div className={styles.cardContent}> | ||
<div className={styles.title}>{title}</div> | ||
<div className={styles.description}>{description}</div> | ||
</div> | ||
); | ||
} | ||
<CardFooter> | ||
<Link className={styles.link} href={link}> | ||
{content} ➔ | ||
</Link> | ||
</CardFooter> | ||
</Card> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,39 @@ | ||
.features { | ||
padding: 2rem; | ||
} | ||
|
||
.row { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 2rem 0; | ||
width: 100%; | ||
flex-flow: row; | ||
gap: 24px; | ||
} | ||
|
||
.title { | ||
font-size: 20px; | ||
font-weight: 600; | ||
} | ||
|
||
.description { | ||
font-size: 14px; | ||
font-weight: 400; | ||
} | ||
|
||
.cardContent { | ||
display: flex; | ||
row-gap: 10px; | ||
flex-flow: column; | ||
} | ||
|
||
.link { | ||
font-size: 16px; | ||
font-weight: 400; | ||
--colorBrandForegroundLink: #7160e8; | ||
} | ||
|
||
.featureSvg { | ||
height: 200px; | ||
width: 200px; | ||
@media screen and (max-width: 996px) { | ||
.row { | ||
flex-flow: column; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,57 @@ | ||
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 styles from './index.module.css'; | ||
import React from "react"; | ||
import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; | ||
import Layout from "@theme/Layout"; | ||
import HomepageFeatures from "@site/src/components/HomepageFeatures"; | ||
import useBaseUrl from "@docusaurus/useBaseUrl"; | ||
import { FluentProvider, Text, teamsLightTheme } from "@fluentui/react-components"; | ||
import styles from "./index.module.css"; | ||
|
||
function HomepageHeader() { | ||
const {siteConfig} = useDocusaurusContext(); | ||
return ( | ||
<header className={clsx('hero hero--primary', styles.heroBanner)}> | ||
<div className="container"> | ||
<h1 className="hero__title">{siteConfig.title}</h1> | ||
<iframe width="773" height="435" src="https://www.youtube.com/embed/9z3PiHSCcYs?si=F1yKpoiOQnzb4o-K" title="Azure Developer CLI: GitHub to cloud in minutes - Universe 2022" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen> | ||
</iframe> | ||
|
||
<p className="hero__subtitle">{siteConfig.tagline}</p> | ||
<div className={styles.buttons}> | ||
<Link | ||
className="button button--secondary button--lg" | ||
to="https://github.com/Azure/awesome-azd/issues/new?assignees=gkulin&labels=requested-contribution&template=%F0%9F%A4%94-submit-an-idea-for-a-template.md&title=%5BIdea%5D+%3Cyour-template-name%3E"> | ||
Request a Template 📫 | ||
</Link> | ||
<header className={styles.heroBanner}> | ||
<img | ||
src={useBaseUrl("/img/coverBackground.png")} | ||
className={styles.cover} | ||
onError={({ currentTarget }) => { | ||
currentTarget.style.display = "none"; | ||
}} | ||
alt="" | ||
/> | ||
<div className={styles.section}> | ||
<div className={styles.description}> | ||
<div className={styles.title}> | ||
Accelerate your journey to the cloud with azd | ||
</div> | ||
<div className={styles.content}> | ||
Azure Developer CLI (azd) is an open-source tool that accelerates | ||
your application’s journey from local development to Azure | ||
</div> | ||
</div> | ||
<div> | ||
<iframe | ||
className={styles.video} | ||
src="https://www.youtube.com/embed/9z3PiHSCcYs?si=F1yKpoiOQnzb4o-K" | ||
title="Azure Developer CLI: GitHub to cloud in minutes - Universe 2022" | ||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" | ||
allowFullScreen | ||
></iframe> | ||
</div> | ||
</div> | ||
</header> | ||
); | ||
} | ||
|
||
export default function Home() { | ||
const {siteConfig} = useDocusaurusContext(); | ||
const { siteConfig } = useDocusaurusContext(); | ||
return ( | ||
<Layout | ||
title={`Welcome to ${siteConfig.title}`} | ||
description="Description will go into a meta tag in <head />"> | ||
description="Description will go into a meta tag in <head />" | ||
> | ||
<HomepageHeader /> | ||
<main> | ||
<FluentProvider theme={teamsLightTheme}> | ||
<HomepageFeatures /> | ||
</main> | ||
</FluentProvider> | ||
</Layout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.