File tree Expand file tree Collapse file tree 4 files changed +44
-14
lines changed Expand file tree Collapse file tree 4 files changed +44
-14
lines changed Original file line number Diff line number Diff line change 1
- const FeatureCard = ( ) => {
1
+ const FeatureCard = ( { header, blurb } : {
2
+ key : string ,
3
+ blurb : string ,
4
+ header : string
5
+ } ) => {
2
6
return (
3
- < div className = 'featureCard' >
4
- < div > FeatureCard1 hello how are you doing?</ div >
5
- < div > FeatureCard2</ div >
6
- < div > FeatureCard3</ div >
7
- < div > FeatureCard4</ div >
7
+ < div className = 'featureCard gap-5 p-1 mb-2' >
8
+ < div className = 'text-2xl' > { header } </ div >
9
+ { blurb }
8
10
</ div >
9
11
) ;
10
12
} ;
Original file line number Diff line number Diff line change 1
1
import FeatureCard from "./FeatureCard" ;
2
2
3
3
const Features = ( ) => {
4
+ const featureHeader = 'MLOps in Javascript, made simple.' ;
5
+ const featureLongBlurb = `
6
+ Longer blurb about MLFlow.js\'s feature set. Longer blurb about MLFlow.js\'s feature set. Longer blurb about MLFlow.js\'s feature set. Longer blurb about MLFlow.js\'s feature set. Longer blurb about MLFlow.js\'s feature set. Longer blurb about MLFlow.js\'s feature set.
7
+ ` ;
8
+ const cards = [ ] ;
9
+ const featureCardHeaders = [
10
+ 'Feature 1' ,
11
+ 'Feature 2' ,
12
+ 'Feature 3' ,
13
+ 'Feature 4' ,
14
+ ] ;
15
+ const featureCardBlurbs = [
16
+ 'Feature Card Blurb 1. Feature Card Blurb 1. Feature Card Blurb 1. Feature Card Blurb 1. ' ,
17
+ 'Feature Card Blurb 2. Feature Card Blurb 2. Feature Card Blurb 2. Feature Card Blurb 2. ' ,
18
+ 'Feature Card Blurb 3. Feature Card Blurb 3. Feature Card Blurb 3. Feature Card Blurb 3. ' ,
19
+ 'Feature Card Blurb 4. Feature Card Blurb 4. Feature Card Blurb 4. Feature Card Blurb 4. '
20
+
21
+ ] ;
22
+ for ( let i = 0 ; i < 4 ; i ++ ) {
23
+ cards . push (
24
+ < FeatureCard
25
+ key = { `featureCard${ i } ` }
26
+ header = { featureCardHeaders [ i ] }
27
+ blurb = { featureCardBlurbs [ i ] }
28
+ />
29
+ ) ;
30
+ }
4
31
return (
5
- < div className = 'features' >
6
- < div > MLOps in Javascript, made simple. </ div >
7
- < div > Long blurb </ div >
8
- < FeatureCard / >
32
+ < div className = 'features p-2 ' >
33
+ < div className = 'text-5xl mb-2' > { featureHeader } </ div >
34
+ < div className = 'mb-2' > { featureLongBlurb } </ div >
35
+ < div className = '' > { cards } </ div >
9
36
</ div >
10
37
) ;
11
38
} ;
Original file line number Diff line number Diff line change @@ -160,12 +160,13 @@ body {
160
160
}
161
161
162
162
.featureCard {
163
+ color : black;
163
164
width : 100% ;
164
- background-color : rgb (122 , 144 , 167 );
165
+ background-color : rgb (217 , 225 , 210 );
165
166
display : grid;
166
167
grid-template-columns : 100% ;
167
168
grid-template-rows : min-content;
168
- text-align : center ;
169
+ text-align : left ;
169
170
}
170
171
171
172
.demo {
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ const geistMono = localFont({
14
14
} ) ;
15
15
16
16
export const metadata : Metadata = {
17
- title : "Create Next App " ,
18
- description : "Generated by create next app " ,
17
+ title : "MLflow.js " ,
18
+ description : "MLflow.js " ,
19
19
} ;
20
20
21
21
export default function RootLayout ( {
You can’t perform that action at this time.
0 commit comments