Skip to content

Commit 72e6aeb

Browse files
committed
finished Demo and DemoCard
1 parent e30138e commit 72e6aeb

File tree

6 files changed

+64
-21
lines changed

6 files changed

+64
-21
lines changed

mlflow-site/next.config.mjs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
2+
const nextConfig = {
3+
images: {
4+
remotePatterns: [
5+
{
6+
protocol: 'https',
7+
hostname: 'i.giphy.com'
8+
},
9+
],
10+
},
11+
};
312

413
export default nextConfig;

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

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
1+
import DemoCard from "./DemoCard";
2+
13
const Demo = () => {
4+
const demos = [];
5+
const demoCardHeaders = [
6+
'Demo 1',
7+
'Demo 2',
8+
'Demo 3'
9+
];
10+
const demoCardBlurbs = [
11+
'Description for what\'s happening in Demo 1. This block of text will contain all the info needed to understand the demo.',
12+
'Description for what\'s happening in Demo 2. This block of text will contain all the info needed to understand the demo.',
13+
'Description for what\'s happening in Demo 3. This block of text will contain all the info needed to understand the demo.'
14+
];
15+
for (let i = 0; i < 3; i++) {
16+
demos.push(
17+
<DemoCard
18+
key={`demoCard${i}`}
19+
header={demoCardHeaders[i]}
20+
blurb={demoCardBlurbs[i]}
21+
/>
22+
);
23+
}
224
return (
3-
<div className='demo'>
4-
<div className='demoSplit'>
5-
<div>Img 1</div>
6-
<div>Demo 1</div>
7-
</div>
8-
<div className='demoSplit'>
9-
<div>Demo 2</div>
10-
<div>Img 2</div>
11-
</div>
12-
<div className='demoSplit'>
13-
<div>Img 3</div>
14-
<div>Demo 3</div>
15-
</div>
16-
</div>
25+
<div className='demo text-black bg-white'>{demos}</div>
1726
);
1827
};
1928

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import Image from "next/image";
2+
3+
const DemoCard = ({ header, blurb }: {
4+
key: string,
5+
blurb: string,
6+
header: string
7+
}) => {
8+
return (
9+
<div className='demoCard gap-5 p-1 mb-2 text-center'>
10+
<Image
11+
src='https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExaW9tcWttZ3R0YTVpNWxwcGJ4M2YyZ2ExcmxlazN5N3JyenF0ajl4dCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/FqdGGgugkC4Xm/giphy.gif'
12+
alt=''
13+
width={700}
14+
height={475}
15+
sizes="100vw"
16+
style={{
17+
width: "100%",
18+
height: "auto",
19+
}}
20+
/>
21+
<div className='text-2xl'>{header}</div>
22+
{blurb}
23+
</div>
24+
);
25+
};
26+
27+
export default DemoCard;
28+

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const FeatureCard = ({ header, blurb }: {
44
header: string
55
}) => {
66
return (
7-
<div className='featureCard gap-5 p-1 mb-2'>
7+
<div className='featureCard p-1 mb-2'>
88
<div className='text-2xl'>{header}</div>
99
{blurb}
1010
</div>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ const Features = () => {
2929
);
3030
}
3131
return (
32-
<div className='features p-2'>
33-
<div className='text-5xl mb-2'>{featureHeader}</div>
32+
<div className='features p-2 mb-20 text-center text-black bg-white'>
33+
<div className='text-3xl mb-2'>{featureHeader}</div>
3434
<div className='mb-2'>{featureLongBlurb}</div>
3535
<div className=''>{cards}</div>
3636
</div>

mlflow-site/src/app/globals.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ body {
154154
grid-column: 2/5;
155155
grid-row: 3;
156156
width: 100%;
157-
background-color: rgb(176, 47, 107);
158157
display: grid;
159158
place-items: center;
160159
}
@@ -166,14 +165,12 @@ body {
166165
display: grid;
167166
grid-template-columns: 100%;
168167
grid-template-rows: min-content;
169-
text-align: left;
170168
}
171169

172170
.demo {
173171
grid-column: 2/5;
174172
grid-row: 3;
175173
width: 100%;
176-
background-color: rgb(47, 176, 101);
177174
display: grid;
178175
grid-template-columns: 100%;
179176
grid-template-rows: calc(100%/3) calc(100%/3) calc(100%/3);

0 commit comments

Comments
 (0)