Skip to content

Commit 02ce69c

Browse files
authored
Merge pull request #99 from oslabs-beta/austin-CSS2
feat: added Winston prof pic, 3rd demo with MLflow screenshot, styling fixes
2 parents 3382ea0 + 8369b5a commit 02ce69c

File tree

7 files changed

+57
-24
lines changed

7 files changed

+57
-24
lines changed
323 KB
Loading
1.19 MB
Loading

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ const Demo = () => {
55
const demoCardHeaders = [
66
'Manage experiments',
77
'Complete workflow',
8+
'Visualize results in the MLflow UI'
89
];
910
const demoCardBlurbs = [
1011
'Create experiments with MLflow.js. Using built-in workflows, manage complex operations easily.',
1112
'Use MLflow.js to support a full ML project with TensorFlow.js. Log hyperparameters and key metrics during each training step. Evaluate model performance and register succesful models.',
13+
'Once the run completes, the MLflow UI provides powerful visualization tools to analyze experiments. Compare training and testing metrics across different runs to track performance patterns, or create custom charts that combine any logged hyperparameters and metrics to identify optimal model configurations'
1214
];
1315
const demoCardVideos = [
1416
'https://player.vimeo.com/video/1023585657',
Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Image from 'next/image';
2+
13
const DemoCard = ({
24
header,
35
blurb,
@@ -8,29 +10,48 @@ const DemoCard = ({
810
header: string;
911
video: string;
1012
}) => {
11-
return (
12-
<div className="demoCard">
13-
<div style={{ padding: '56.25% 0 0 0', position: 'relative' }}>
14-
<iframe
15-
src={video}
16-
style={{
17-
position: 'absolute',
18-
top: 0,
19-
left: 0,
20-
width: '100%',
21-
height: '100%',
22-
}}
23-
allow="autoplay; fullscreen; picture-in-picture"
24-
allowFullScreen
25-
title="Vimeo Video Player"
26-
/>
13+
if (video !== undefined) {
14+
return (
15+
<div className="demoCard">
16+
<div style={{ padding: '56.25% 0 0 0', position: 'relative'}}>
17+
<iframe
18+
className="vimeoPlayer"
19+
src={video}
20+
style={{
21+
position: 'absolute',
22+
top: 0,
23+
left: 0,
24+
width: '100%',
25+
height: '100%',
26+
}}
27+
allow="autoplay; fullscreen; picture-in-picture"
28+
allowFullScreen
29+
title="Vimeo Video Player"
30+
/>
31+
</div>
32+
<div className="demoCardText">
33+
<div className="demoCardHeader">{header}</div>
34+
<div className="demoCardInfo">{blurb}</div>
35+
</div>
2736
</div>
28-
<div className="demoCardText">
29-
<div className="demoCardHeader">{header}</div>
30-
<div className="demoCardInfo">{blurb}</div>
37+
);
38+
}
39+
else {
40+
return (
41+
<div className="demoCard" id="MLflow-ui-screenshot">
42+
<Image
43+
src={'/assets/mlflow-ui-screenshot-new.png'}
44+
width={1089}
45+
height={845}
46+
alt='MLflow UI'
47+
></Image>
48+
<div className="demoCardText">
49+
<div className="demoCardHeader">{header}</div>
50+
<div className="demoCardInfo">{blurb}</div>
51+
</div>
3152
</div>
32-
</div>
33-
);
53+
);
54+
};
3455
};
3556

3657
export default DemoCard;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const NavBar = () => {
88
<div className='navBarMlflow'>
99
<Image
1010
src={'/assets/MLflow-js-logo.png'}
11-
width={100}
12-
height={32}
11+
width={965}
12+
height={289}
1313
alt='G'
1414
className='mlflow-logo'
1515
/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const Team = () => {
3030
name: 'Winston Ludlam',
3131
github: 'https://github.com/winjolu/',
3232
linkedIn: 'https://www.linkedin.com/in/wjludlam/',
33-
pfp: '',
33+
pfp: '/assets/winstonpfp.png',
3434
},
3535
];
3636

mlflow-site/src/app/globals.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ body {
164164
grid-row: 3;
165165
width: 100%;
166166
height: 100%;
167+
text-align: center;
167168
}
168169

169170
.team {
@@ -309,6 +310,7 @@ body {
309310
@media (max-width: 1000px) {
310311
.demoCardText {
311312
margin-top: 0.8rem;
313+
margin-bottom: 4rem;
312314
}
313315
}
314316

@@ -327,6 +329,14 @@ body {
327329
grid-template-rows: min-content;
328330
}
329331

332+
.vimeoPlayer {
333+
margin-top: -35px;
334+
}
335+
336+
#MLflow-ui-screenshot {
337+
margin-bottom: 10rem;
338+
}
339+
330340
.teamHead {
331341
font-size: clamp(1.35rem, 5.9805vw, 2.376rem);
332342
}

0 commit comments

Comments
 (0)