File tree Expand file tree Collapse file tree 10 files changed +138
-435
lines changed Expand file tree Collapse file tree 10 files changed +138
-435
lines changed Original file line number Diff line number Diff line change 18
18
19
19
# misc
20
20
.DS_Store
21
+ .. /.DS_Store
21
22
* .pem
22
23
23
24
# debug
Original file line number Diff line number Diff line change 1
1
/** @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
+ } ;
3
12
4
13
export default nextConfig ;
Original file line number Diff line number Diff line change
1
+ import DemoCard from "./DemoCard" ;
2
+
1
3
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
+ }
2
24
return (
3
- < div className = 'demo' id = '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' id = 'demo' > { demos } </ div >
17
26
) ;
18
27
} ;
19
28
Original file line number Diff line number Diff line change
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' >
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 = 'demoCardHeader' > { header } </ div >
22
+ { blurb }
23
+ </ div >
24
+ ) ;
25
+ } ;
26
+
27
+ export default DemoCard ;
28
+
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
7
< div className = 'featureCard' >
4
- < div > FeatureCard1 hello how are you doing?</ div >
5
- < div > FeatureCard2</ div >
6
- < div > FeatureCard3</ div >
7
- < div > FeatureCard4</ div >
8
+ < div className = 'featureCardHeader' > { 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
32
< div className = 'features' id = 'features' >
6
- < div > MLOps in Javascript, made simple. </ div >
7
- < div > Long blurb </ div >
8
- < FeatureCard / >
33
+ < div className = 'featureHeader' > { featureHeader } </ div >
34
+ < div className = 'featureLongBlurb' > { featureLongBlurb } </ div >
35
+ < div className = '' > { cards } </ div >
9
36
</ div >
10
37
) ;
11
38
} ;
Original file line number Diff line number Diff line change @@ -175,28 +175,60 @@ body {
175
175
grid-column : 2 / 5 ;
176
176
grid-row : 3 ;
177
177
width : 100% ;
178
- background-color : rgb (176 , 47 , 107 );
179
178
display : grid;
180
179
place-items : center;
180
+ padding : 0.5rem ;
181
+ margin-bottom : 5rem ;
182
+ text-align : center;
183
+ color : black;
184
+ background-color : white;
185
+ }
186
+
187
+ .featureHeader {
188
+ font-size : 1.875rem ;
189
+ margin-bottom : 0.5rem ;
190
+ }
191
+
192
+ .featureLongBlurb {
193
+ margin-bottom : 0.5rem ;
181
194
}
182
195
183
196
.featureCard {
197
+ color : black;
184
198
width : 100% ;
185
- background-color : rgb (122 , 144 , 167 );
199
+ background-color : rgb (217 , 225 , 210 );
186
200
display : grid;
187
201
grid-template-columns : 100% ;
188
202
grid-template-rows : min-content;
189
- text-align : center;
203
+ padding : 0.5rem ;
204
+ margin-bottom : 0.5rem ;
205
+ }
206
+
207
+ .featureCardHeader {
208
+ font-size : 1.5rem ;
190
209
}
191
210
192
211
.demo {
193
212
grid-column : 2 / 5 ;
194
213
grid-row : 3 ;
195
214
width : 100% ;
196
- background-color : rgb (47 , 176 , 101 );
197
215
display : grid;
198
216
grid-template-columns : 100% ;
199
217
grid-template-rows : calc (100% / 3 ) calc (100% / 3 ) calc (100% / 3 );
218
+ color : black;
219
+ background-color : white;
220
+ margin-bottom : 5rem ;
221
+ }
222
+
223
+ .demoCard {
224
+ gap : 1.25rem ;
225
+ padding : 0.25rem ;
226
+ margin-bottom : 5rem ;
227
+ text-align : center;
228
+ }
229
+
230
+ .demoCardHeader {
231
+ font-size : 1.5rem ;
200
232
}
201
233
202
234
.demoSplit {
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ const geistMono = localFont({
15
15
} ) ;
16
16
17
17
export const metadata : Metadata = {
18
- title : "Create Next App " ,
19
- description : "Generated by create next app " ,
18
+ title : "MLflow.js " ,
19
+ description : "MLflow.js " ,
20
20
} ;
21
21
22
22
export const viewport : Viewport = {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ node_modules/
3
3
4
4
# Misc
5
5
.DS_Store
6
+ .. /.DS_Store
6
7
7
8
# Python / MLflow specific
8
9
.venv /
You can’t perform that action at this time.
0 commit comments