|
1 | 1 | import clsx from 'clsx'; |
2 | 2 | import Heading from '@theme/Heading'; |
| 3 | +import Link from '@docusaurus/Link'; |
3 | 4 | import styles from './styles.module.css'; |
4 | 5 |
|
5 | 6 | const FeatureList = [ |
6 | 7 | { |
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'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' |
35 | 11 | }, |
36 | 12 | ]; |
37 | 13 |
|
38 | | -function Feature({Svg, title, description}) { |
| 14 | +function Feature({image, title, link}) { |
39 | 15 | 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> |
41 | 20 | <div className="text--center"> |
42 | | - <Svg className={styles.featureSvg} role="img" /> |
| 21 | + <Link to={link}> |
| 22 | + <img src={image} alt={title} /> |
| 23 | + </Link> |
43 | 24 | </div> |
| 25 | + </div> |
| 26 | + ); |
| 27 | +} |
| 28 | + |
| 29 | +function Video({title}) { |
| 30 | + return ( |
| 31 | + <div className={clsx('col col--12')}> |
44 | 32 | <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> |
47 | 43 | </div> |
48 | 44 | </div> |
49 | 45 | ); |
50 | 46 | } |
51 | 47 |
|
52 | 48 | export default function HomepageFeatures() { |
53 | 49 | 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> |
60 | 58 | </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 | + </> |
63 | 69 | ); |
64 | 70 | } |
0 commit comments