Skip to content

Commit

Permalink
Update about page (#234)
Browse files Browse the repository at this point in the history
* update about page on section video

* add background on about

* debug

* add hero bar part 1

* finish about page
  • Loading branch information
hemarina authored Oct 27, 2023
1 parent 3ef9234 commit 12b6ed9
Show file tree
Hide file tree
Showing 14 changed files with 218 additions and 85 deletions.
62 changes: 45 additions & 17 deletions website/src/components/Feature.js
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>
);
}
56 changes: 28 additions & 28 deletions website/src/components/HomepageFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,36 @@ import Feature from '@site/src/components/Feature';
*/
const FeatureList = [
{
title: 'Discover Templates',
Svg: 'img/home-discover.svg',
link: "/",
description: (
<>
Explore the <a href="https://github.com/azure/">azd-templates</a> topic on GitHub <b>or</b> check out the <a href="/awesome-azd">Gallery</a> to find templates using richer filters and search capability.
</>
),
title: "Discover Templates",
Svg: "img/home-discover.png",
link: "https://azure.github.io/awesome-azd/",
description:
"View our gallery of community-contributed and Microsoft-authored templates.",
content: "View templates",
},
{
title: 'Create Your Own',
Svg: 'img/home-create.svg',
title: "Learn more about azd",
Svg: "img/home-learn.png",
link: "https://aka.ms/azd",
description:
"Read our documentation for more information about azd and its features.",
content: "View docs",
},
{
title: "Create your own template",
Svg: "img/home-create.png",
link: "https://learn.microsoft.com/azure/developer/azure-developer-cli/make-azd-compatible?pivots=azd-create",
description: (
<>
Have an existing project that you want to migrate, to use azd templates? <a href="https://learn.microsoft.com/azure/developer/azure-developer-cli/make-azd-compatible?pivots=azd-convert"> Convert a sample </a> <b>or</b> <a href="https://learn.microsoft.com/azure/developer/azure-developer-cli/make-azd-compatible?pivots=azd-create">create a new template!</a>
</>
),
description:
"Learn how to build a template with step-by-step instructions.",
content: "Try learn module",
},
{
title: 'Contribute To Gallery',
Svg: 'img/home-contribute.svg',
link: "https://github.com/Azure/awesome-azd/issues/new/choose",
description: (
<>
Consider sharing your template in our <a href="/awesome-azd">Gallery</a> to help the community. Just <a href="https://github.com/Azure/awesome-azd/issues/new/choose">fill in the issue </a> and we'll do the rest!
</>
),
title: "Contribute to the Gallery",
Svg: "img/home-contribute.png",
link: "https://azure.github.io/awesome-azd/docs/intro",
description:
"After making your azd template, consider adding it to our gallery to share with fellow azd-developers.",
content: "View contributor guide",
},
];

Expand All @@ -50,14 +52,12 @@ const FeatureList = [
*/
export default function HomepageFeatures() {
return (
<section className={styles.features}>
<div className="container">
<div className="row">
<div className={styles.features}>
<div className={styles.row}>
{FeatureList.map((props, idx) => (
<Feature key={idx} {...props} />
))}
</div>
</div>
</section>
</div>
);
}
38 changes: 33 additions & 5 deletions website/src/components/styles.module.css
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;
}
}
65 changes: 39 additions & 26 deletions website/src/pages/about/index.js
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>
);
}
62 changes: 55 additions & 7 deletions website/src/pages/about/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,65 @@
*/

.heroBanner {
padding: 4rem 0;
text-align: center;
position: relative;
padding: 2rem;
display: inline-block;
overflow: hidden;
background-color: #245e94;
color:#245e94;
position: relative;
width: 100%;
background-color: white;
}

.cover {
pointer-events: none;
position: absolute;
height: calc(100% - 4rem);
width: calc(100% - 4rem);
border-radius: 20px;
}

.video {
width: 38rem;
height: 21rem;
}

.section {
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 4rem;
gap: 2rem;
}

.description {
max-width: 34rem;
flex: 1;
display: flex;
justify-content: center;
align-items: start;
flex-flow: column;
}

.description .title {
font-size: 40px;
font-weight: 500;
}

.description .content {
font-size: 24px;
font-weight: 500;
}

[data-theme="dark"] .heroBanner {
background-color: black;
}

@media screen and (max-width: 996px) {
.heroBanner {
padding: 2rem;
.section {
flex-direction: column;
}
.video {
width: 100%;
}
}

Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
margin: 0px 25px;
}

@media screen and (max-width: 960px) {
@media screen and (max-width: 996px) {
.filterAndCard {
flex-direction: column;
}
Expand Down
Binary file added website/static/img/home-contribute.png
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 website/static/img/home-create.png
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 website/static/img/home-discover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion website/static/img/home-discover.svg

This file was deleted.

Binary file added website/static/img/home-learn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed website/static/img/home-screen.png
Binary file not shown.
17 changes: 17 additions & 0 deletions website/static/templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -1113,5 +1113,22 @@
"msft",
"new"
]
},
{
"title": "Next.js 13 on Container Apps",
"description": "A blueprint for getting a Next.js 13 app running on Azure Container Apps with CDN and Application Insights.",
"preview": "./templates/images/nextjs-aca.png",
"website": "https://github.com/CMeeg",
"author": "Chris Meagher",
"source": "https://github.com/CMeeg/nextjs-aca",
"tags": [
"typescript",
"reactjs",
"nodejs",
"bicep",
"aca",
"azurecdn",
"appinsights"
]
}
]
Binary file added website/static/templates/images/nextjs-aca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 12b6ed9

Please sign in to comment.