Skip to content

Commit dff4db2

Browse files
authored
Merge pull request #206 from openid/interop/website-update
updated interop website homepage
2 parents 7a61404 + 4b98d9b commit dff4db2

File tree

4 files changed

+84
-42
lines changed

4 files changed

+84
-42
lines changed
Lines changed: 47 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,70 @@
11
import clsx from 'clsx';
22
import Heading from '@theme/Heading';
3+
import Link from '@docusaurus/Link';
34
import styles from './styles.module.css';
45

56
const FeatureList = [
67
{
7-
title: 'Easy to Use',
8-
Svg: require('@site/static/img/openid.png').default,
9-
description: (
10-
<>
11-
Docusaurus was designed from the ground up to be easily installed and
12-
used to get your website up and running quickly.
13-
</>
14-
),
15-
},
16-
{
17-
title: 'Focus on What Matters',
18-
Svg: require('@site/static/img/openid.png').default,
19-
description: (
20-
<>
21-
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
22-
ahead and move your docs into the <code>docs</code> directory.
23-
</>
24-
),
25-
},
26-
{
27-
title: 'Powered by React',
28-
Svg: require('@site/static/img/openid.png').default,
29-
description: (
30-
<>
31-
Extend or customize your website layout by reusing React. Docusaurus can
32-
be extended while reusing the same header and footer.
33-
</>
34-
),
8+
title: 'Architecture',
9+
image: '/img/architecture.png',
10+
link: '/docs/intro'
3511
},
3612
];
3713

38-
function Feature({Svg, title, description}) {
14+
function Feature({image, title, link}) {
3915
return (
40-
<div className={clsx('col col--4')}>
16+
<div className={clsx('col col--12')}>
17+
<div className="text--center padding-horiz--md">
18+
<Heading as="h1">{title}</Heading>
19+
</div>
4120
<div className="text--center">
42-
<Svg className={styles.featureSvg} role="img" />
21+
<Link to={link}>
22+
<img src={image} alt={title} />
23+
</Link>
4324
</div>
25+
</div>
26+
);
27+
}
28+
29+
function Video({title}) {
30+
return (
31+
<div className={clsx('col col--12')}>
4432
<div className="text--center padding-horiz--md">
45-
<Heading as="h3">{title}</Heading>
46-
<p>{description}</p>
33+
<Heading as="h1">{title}</Heading>
34+
</div>
35+
<div className={`text--center ${styles.lg}`}>
36+
<iframe width="800px" height="450px" src="https://www.youtube.com/embed/OtwEUeYDwBo?si=rDcpicU6m9QpAjD9" title="AuthZEN video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
37+
</div>
38+
<div className={`text--center ${styles.md}`}>
39+
<iframe width="560px" height="315px" src="https://www.youtube.com/embed/OtwEUeYDwBo?si=rDcpicU6m9QpAjD9" title="AuthZEN video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
40+
</div>
41+
<div className={`text--center ${styles.sm}`}>
42+
<iframe src="https://www.youtube.com/embed/OtwEUeYDwBo?si=rDcpicU6m9QpAjD9" title="AuthZEN video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
4743
</div>
4844
</div>
4945
);
5046
}
5147

5248
export default function HomepageFeatures() {
5349
return (
54-
<section className={styles.features}>
55-
<div className="container">
56-
<div className="row">
57-
{FeatureList.map((props, idx) => (
58-
<Feature key={idx} {...props} />
59-
))}
50+
<>
51+
<section className={styles.features}>
52+
<div className="container">
53+
<div className="row">
54+
{FeatureList.map((props, idx) => (
55+
<Feature key={idx} {...props} />
56+
))}
57+
</div>
6058
</div>
61-
</div>
62-
</section>
59+
</section>
60+
61+
<section className={styles.features}>
62+
<div className="container">
63+
<div className="row">
64+
<Video title="Intro video" />
65+
</div>
66+
</div>
67+
</section>
68+
</>
6369
);
6470
}

interop/authzen-interop-website/src/components/HomepageFeatures/styles.module.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,39 @@
99
height: 200px;
1010
width: 200px;
1111
}
12+
13+
@media screen and (min-width: 1024px) {
14+
.lg {
15+
display: block;
16+
}
17+
}
18+
19+
@media screen and (max-width: 1023px) {
20+
.lg {
21+
display: none;
22+
}
23+
}
24+
25+
@media screen and (min-width: 768px) and (max-width: 1023px) {
26+
.md {
27+
display: block;
28+
}
29+
}
30+
31+
@media screen and (min-width: 1024px), (max-width: 767px) {
32+
.md {
33+
display: none;
34+
}
35+
}
36+
37+
@media screen and (max-width: 767px) {
38+
.sm {
39+
display: block;
40+
}
41+
}
42+
43+
@media screen and (min-width: 768px) {
44+
.sm {
45+
display: none;
46+
}
47+
}

interop/authzen-interop-website/src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function Home() {
3636
description={siteConfig.tagline}>
3737
<HomepageHeader />
3838
<main>
39-
{/* <HomepageFeatures /> */}
39+
<HomepageFeatures />
4040
</main>
4141
</Layout>
4242
);
316 KB
Loading

0 commit comments

Comments
 (0)