Skip to content

Commit 7c049c1

Browse files
committed
refactored Features and Demo to CSS from Tailwind
1 parent 07f18d1 commit 7c049c1

File tree

5 files changed

+42
-8
lines changed

5 files changed

+42
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const Demo = () => {
2222
);
2323
}
2424
return (
25-
<div className='demo text-black bg-white'>{demos}</div>
25+
<div className='demo'>{demos}</div>
2626
);
2727
};
2828

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const DemoCard = ({ header, blurb }: {
66
header: string
77
}) => {
88
return (
9-
<div className='demoCard gap-5 p-1 mb-2 text-center'>
9+
<div className='demoCard'>
1010
<Image
1111
src='https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExaW9tcWttZ3R0YTVpNWxwcGJ4M2YyZ2ExcmxlazN5N3JyenF0ajl4dCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/FqdGGgugkC4Xm/giphy.gif'
1212
alt=''
@@ -18,7 +18,7 @@ const DemoCard = ({ header, blurb }: {
1818
height: "auto",
1919
}}
2020
/>
21-
<div className='text-2xl'>{header}</div>
21+
<div className='demoCardHeader'>{header}</div>
2222
{blurb}
2323
</div>
2424
);

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

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

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

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

mlflow-site/src/app/globals.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,20 @@ body {
168168
width: 100%;
169169
display: grid;
170170
place-items: center;
171+
padding: 0.5rem;
172+
margin-bottom: 5rem;
173+
text-align: center;
174+
color: black;
175+
background-color: white;
176+
}
177+
178+
.featureHeader {
179+
font-size: 1.875rem;
180+
margin-bottom: 0.5rem;
181+
}
182+
183+
.featureLongBlurb {
184+
margin-bottom: 0.5rem;
171185
}
172186

173187
.featureCard {
@@ -177,6 +191,12 @@ body {
177191
display: grid;
178192
grid-template-columns: 100%;
179193
grid-template-rows: min-content;
194+
padding: 0.5rem;
195+
margin-bottom: 0.5rem;
196+
}
197+
198+
.featureCardHeader {
199+
font-size: 1.5rem;
180200
}
181201

182202
.demo {
@@ -186,6 +206,20 @@ body {
186206
display: grid;
187207
grid-template-columns: 100%;
188208
grid-template-rows: calc(100%/3) calc(100%/3) calc(100%/3);
209+
color: black;
210+
background-color: white;
211+
margin-bottom: 5rem;
212+
}
213+
214+
.demoCard {
215+
gap: 1.25rem;
216+
padding: 0.25rem;
217+
margin-bottom: 5rem;
218+
text-align: center;
219+
}
220+
221+
.demoCardHeader {
222+
font-size: 1.5rem;
189223
}
190224

191225
.demoSplit {

0 commit comments

Comments
 (0)