1
1
import React from 'react' ;
2
2
import styles from './styles.module.css' ;
3
- import clsx from 'clsx' ;
4
3
import PropTypes from 'prop-types' ;
5
4
6
5
BenefitCard . propTypes = {
@@ -11,37 +10,25 @@ BenefitCard.propTypes = {
11
10
12
11
function BenefitCard ( { img, title, description} ) {
13
12
return (
14
- < div className = "col-1-5 mobile-col-1-1 " >
15
- < article className = { styles . benefitsPostItem } >
16
- < div className = { styles . benefitsPostItemRow } >
17
- < img src = { img } alt = "post-thumb" / >
18
- </ div >
19
- < div className = { styles . benefitsPostItemRow } >
20
- < h2 > { title } </ h2 >
21
- < p > { description } </ p >
22
- </ div >
23
- </ article >
13
+ < div className = "w-fit bg-white border border-gray-200 rounded-lg shadow-sm dark:bg-gray-800 dark:border-gray-700 " >
14
+ < img className = "rounded-t-lg p-3" src = { img } alt = { title } / >
15
+ < div className = "p-5" >
16
+ < h5 className = "mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white" >
17
+ { title }
18
+ </ h5 >
19
+ < p className = "mb-3 font-normal text-gray-700 dark:text-gray-400" >
20
+ { description }
21
+ </ p >
22
+ </ div >
24
23
</ div >
25
24
) ;
26
25
}
27
26
28
27
export function Benefit ( ) {
29
28
return (
30
29
< section className = { styles . benefits } >
31
- < div className = "container" >
32
- < div className = "row" >
33
- < div className = { clsx ( 'col-1-1' , styles . title ) } >
34
- < div >
35
- < span className = "goffMainTitle" > Why use feature flags?</ span >
36
- < br />
37
- < p >
38
- Feature flags is a modern software engineering technique that
39
- configure select functionality during runtime, without deploying
40
- new code.
41
- </ p >
42
- </ div >
43
- </ div >
44
- </ div >
30
+ < div className = { 'text-center mb-5' } >
31
+ < span className = "goffMainTitle" > The Benefits of Feature Flags</ span >
45
32
</ div >
46
33
< div className = "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-5 gap-2 px-3" >
47
34
< BenefitCard
0 commit comments