1- import React from 'react' ;
2- import clsx from 'clsx' ;
3- import Tooltip from 'rc-tooltip' ;
4- import 'rc-tooltip/assets/bootstrap.css'
5- import styles from './styles.module.scss' ;
6-
1+ import React from "react" ;
2+ import clsx from "clsx" ;
3+ import Tooltip from "rc-tooltip" ;
4+ import "rc-tooltip/assets/bootstrap.css" ;
5+ import styles from "./styles.module.scss" ;
76
87enum docType {
9- Documentation = ' doc' ,
10- Interactive = ' interactive' ,
11- Video = ' video' ,
8+ Documentation = " doc" ,
9+ Interactive = " interactive" ,
10+ Video = " video" ,
1211}
1312
14- type FeatureItem = {
13+ export type FeatureItem = {
1514 title : string ;
1615 module : string ;
1716 Svg ?: string ; // React.ComponentType<React.ComponentProps<'svg'>>;
@@ -22,141 +21,118 @@ type FeatureItem = {
2221
2322const FeatureList : FeatureItem [ ] = [
2423 {
25- title : 'Build and Test Code' ,
26- module : 'ci' ,
27- Svg : '/img/icon_ci.svg' ,
28- description : (
29- < >
30- Create a CI build pipeline.
31- </ >
32- ) ,
24+ title : "Build and Test Code" ,
25+ module : "ci" ,
26+ Svg : "/img/icon_ci.svg" ,
27+ description : < > Create a CI build pipeline.</ > ,
3328 type : [ docType . Documentation ] ,
3429 //type: [docType.Documentation, docType.Interactive, docType.Video],
35- link : ' /tutorials/build-code' ,
30+ link : " /tutorials/build-code" ,
3631 } ,
3732 {
38- title : 'Deploy Services' ,
39- module : 'cd' ,
40- Svg : '/img/icon_cd.svg' ,
41- description : (
42- < >
43- Create a CD deployment pipeline.
44- </ >
45- ) ,
33+ title : "Deploy Services" ,
34+ module : "cd" ,
35+ Svg : "/img/icon_cd.svg" ,
36+ description : < > Create a CD deployment pipeline.</ > ,
4637 type : [ docType . Documentation ] ,
47- link : ' /tutorials/deploy-services' ,
38+ link : " /tutorials/deploy-services" ,
4839 } ,
4940 {
50- title : 'Manage Feature Flags' ,
51- module : 'ff' ,
52- Svg : '/img/icon_ff.svg' ,
53- description : (
54- < >
55- Roll out new features progressively.
56- </ >
57- ) ,
41+ title : "Manage Feature Flags" ,
42+ module : "ff" ,
43+ Svg : "/img/icon_ff.svg" ,
44+ description : < > Roll out new features progressively.</ > ,
5845 type : [ docType . Documentation ] ,
59- link : ' /tutorials/manage-feature-flags' ,
46+ link : " /tutorials/manage-feature-flags" ,
6047 } ,
6148 {
62- title : 'Manage Cloud Costs' ,
63- module : 'ccm' ,
64- Svg : '/img/icon_ccm.svg' ,
65- description : (
66- < >
67- Achieve cost transparency and cut costs.
68- </ >
69- ) ,
49+ title : "Manage Cloud Costs" ,
50+ module : "ccm" ,
51+ Svg : "/img/icon_ccm.svg" ,
52+ description : < > Achieve cost transparency and cut costs.</ > ,
7053 type : [ docType . Documentation ] ,
71- link : ' /tutorials/manage-cloud-costs' ,
54+ link : " /tutorials/manage-cloud-costs" ,
7255 } ,
7356 {
74- title : 'Manage Service Reliability' ,
75- module : 'srm' ,
76- Svg : '/img/icon_srm.svg' ,
77- description : (
78- < >
79- Monitor SLOs, track error budgets, debug code errors.
80- </ >
81- ) ,
57+ title : "Manage Service Reliability" ,
58+ module : "srm" ,
59+ Svg : "/img/icon_srm.svg" ,
60+ description : < > Monitor SLOs, track error budgets, debug code errors.</ > ,
8261 type : [ docType . Documentation ] ,
83- link : ' /tutorials/manage-service-reliability' ,
62+ link : " /tutorials/manage-service-reliability" ,
8463 } ,
8564 {
86- title : 'Orchestrate Security Tests' ,
87- module : 'sto' ,
88- Svg : '/img/icon_sto.svg' ,
89- description : (
90- < >
91- Scan code, containers and apps.
92- </ >
93- ) ,
65+ title : "Orchestrate Security Tests" ,
66+ module : "sto" ,
67+ Svg : "/img/icon_sto.svg" ,
68+ description : < > Scan code, containers and apps.</ > ,
9469 type : [ docType . Documentation ] ,
95- link : ' /tutorials/orchestrate-security-tests' ,
70+ link : " /tutorials/orchestrate-security-tests" ,
9671 } ,
9772 {
98- title : 'Run Chaos Experiments' ,
99- module : 'ce' ,
100- Svg : '/img/icon_ce.svg' ,
101- description : (
102- < >
103- Ensure app and infrastructure resilience.
104- </ >
105- ) ,
73+ title : "Run Chaos Experiments" ,
74+ module : "ce" ,
75+ Svg : "/img/icon_ce.svg" ,
76+ description : < > Ensure app and infrastructure resilience.</ > ,
10677 type : [ docType . Documentation ] ,
107- link : ' /tutorials/run-chaos-experiments' ,
78+ link : " /tutorials/run-chaos-experiments" ,
10879 } ,
10980 {
110- title : ' Administer Harness Platform' ,
111- module : ' platform' ,
112- Svg : ' /img/logo.svg' ,
81+ title : " Administer Harness Platform" ,
82+ module : " platform" ,
83+ Svg : " /img/logo.svg" ,
11384 description : (
11485 < >
115- Install a Kubernetes or Docker delegate, Onboard with Terraform Provider.
86+ Install a Kubernetes or Docker delegate, Onboard with Terraform
87+ Provider.
11688 </ >
11789 ) ,
11890 type : [ docType . Documentation ] ,
119- link : ' /tutorials/platform' ,
91+ link : " /tutorials/platform" ,
12092 } ,
12193] ;
12294
123- function Feature ( { title, Svg, description, type, module, link} : FeatureItem ) {
95+ function Feature ( { title, Svg, description, type, module, link } : FeatureItem ) {
12496 return (
125- < div className = { clsx ( styles . getStartItem , styles [ module ] ) } >
126- < div className = "text--center" >
127- { /* <Svg className={styles.featureSvg} role="img" /> */ }
128- < img src = { Svg } className = { styles . featureSvg } alt = { title } />
129- </ div >
130- < div className = { clsx ( 'text--center padding-horiz--md' , styles . titleAndDesc ) } >
131- < a href = { link } >
97+ < a href = { link } >
98+ < div className = { clsx ( styles . getStartItem , styles [ module ] ) } >
99+ < div className = "text--center" >
100+ { /* <Svg className={styles.featureSvg} role="img" /> */ }
101+ < img src = { Svg } className = { styles . featureSvg } alt = { title } />
102+ </ div >
103+ < div
104+ className = { clsx (
105+ "text--center padding-horiz--md" ,
106+ styles . titleAndDesc
107+ ) }
108+ >
132109 < h3 > { title } </ h3 >
133110 < p > { description } </ p >
134- </ a >
135- </ div >
136- < div >
137- < ul className = { styles . docTypes } >
138- { type . map ( ( props , idx ) => (
139- < li >
140- < Tooltip placement = "top" overlay = { props } >
141- < img src = { `/img/icon_doctype_${ props } .svg` } alt = { props } />
142- </ Tooltip >
143- </ li >
144- ) ) }
145-
146- </ ul >
111+ </ div >
112+ < div >
113+ < ul className = { styles . docTypes } >
114+ { type . map ( ( props , idx ) => (
115+ < li >
116+ < Tooltip placement = "top" overlay = { props } >
117+ < img src = { `/img/icon_doctype_${ props } .svg` } alt = { props } />
118+ </ Tooltip >
119+ </ li >
120+ ) ) }
121+ </ ul >
122+ </ div >
147123 </ div >
148- </ div >
124+ </ a >
149125 ) ;
150126}
151127
152128export default function HomepageFeatures ( ) : JSX . Element {
153129 return (
154130 < section className = { styles . features } >
155- { < h2 > Get Started with Tutorials</ h2 > }
131+ { < h2 > Get Started with Tutorials</ h2 > }
156132 < div className = { styles . getStart } >
157- { FeatureList . map ( ( props , idx ) => (
158- < Feature key = { idx } { ...props } />
159- ) ) }
133+ { FeatureList . map ( ( props , idx ) => (
134+ < Feature key = { idx } { ...props } />
135+ ) ) }
160136 </ div >
161137 </ section >
162138 ) ;
0 commit comments