Skip to content

Commit e30138e

Browse files
committed
finished Features.tsx and FeatureCard.tsx
1 parent c8fa222 commit e30138e

File tree

4 files changed

+44
-14
lines changed

4 files changed

+44
-14
lines changed

mlflow-site/src/app/components/FeatureCard.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
const FeatureCard = () => {
1+
const FeatureCard = ({ header, blurb }: {
2+
key: string,
3+
blurb: string,
4+
header: string
5+
}) => {
26
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}
810
</div>
911
);
1012
};

mlflow-site/src/app/components/Features.tsx

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,38 @@
11
import FeatureCard from "./FeatureCard";
22

33
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+
}
431
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>
936
</div>
1037
);
1138
};

mlflow-site/src/app/globals.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,13 @@ body {
160160
}
161161

162162
.featureCard {
163+
color: black;
163164
width: 100%;
164-
background-color: rgb(122, 144, 167);
165+
background-color: rgb(217, 225, 210);
165166
display: grid;
166167
grid-template-columns: 100%;
167168
grid-template-rows: min-content;
168-
text-align: center;
169+
text-align: left;
169170
}
170171

171172
.demo {

mlflow-site/src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ const geistMono = localFont({
1414
});
1515

1616
export const metadata: Metadata = {
17-
title: "Create Next App",
18-
description: "Generated by create next app",
17+
title: "MLflow.js",
18+
description: "MLflow.js",
1919
};
2020

2121
export default function RootLayout({

0 commit comments

Comments
 (0)