Skip to content

Commit a18123a

Browse files
committed
more styling on the website, setting up the desktop view
1 parent afe39a7 commit a18123a

File tree

3 files changed

+96
-46
lines changed

3 files changed

+96
-46
lines changed
Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
1-
import Image from "next/image";
1+
import Image from 'next/image';
22

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-
/>
3+
const DemoCard = ({
4+
header,
5+
blurb,
6+
}: {
7+
key: string;
8+
blurb: string;
9+
header: string;
10+
}) => {
11+
return (
12+
<div className='demoCard'>
13+
<Image
14+
src='https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExaW9tcWttZ3R0YTVpNWxwcGJ4M2YyZ2ExcmxlazN5N3JyenF0ajl4dCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/FqdGGgugkC4Xm/giphy.gif'
15+
alt=''
16+
width={700}
17+
height={475}
18+
sizes='100vw'
19+
style={{
20+
width: '100%',
21+
height: 'auto',
22+
}}
23+
/>
24+
<div className='demoCardText'>
2125
<div className='demoCardHeader'>{header}</div>
22-
{blurb}
26+
<div className='demoCardInfo'>{blurb}</div>
2327
</div>
24-
);
25-
};
26-
27-
export default DemoCard;
28-
28+
</div>
29+
);
30+
};
31+
32+
export default DemoCard;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const Features = () => {
1313
'Feature 4',
1414
];
1515
const featureCardBlurbs = [
16-
'Feature Card Blurb 1. Feature Card Blurb 1. Feature Card Blurb 1. Feature Card Blurb 1. ',
16+
'Feature Card Blurb 1. Feature Card Blurb 1. Feature Card Blurb 1. Feature Card Blurb 1. Feature Card Blurb 1. Feature Card Blurb 1. Feature Card Blurb 1. Feature Card Blurb 1. ',
1717
'Feature Card Blurb 2. Feature Card Blurb 2. Feature Card Blurb 2. Feature Card Blurb 2. ',
1818
'Feature Card Blurb 3. Feature Card Blurb 3. Feature Card Blurb 3. Feature Card Blurb 3. ',
1919
'Feature Card Blurb 4. Feature Card Blurb 4. Feature Card Blurb 4. Feature Card Blurb 4. '
@@ -32,7 +32,7 @@ const Features = () => {
3232
<div className='features' id='features'>
3333
<div className='featureHeader'>{featureHeader}</div>
3434
<div className='featureLongBlurb'>{featureLongBlurb}</div>
35-
<div className=''>{cards}</div>
35+
<div className='featureCardsSection'>{cards}</div>
3636
</div>
3737
);
3838
};

mlflow-site/src/app/globals.css

Lines changed: 65 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ body {
2525
}
2626

2727
.wrapper {
28-
position:absolute;
28+
position: absolute;
2929
background: rgb(51, 51, 58);
3030
width: 100%;
3131
height: 100%;
3232
display: grid;
3333
grid-template-columns: 1fr 100vw 1fr;
3434
grid-template-rows: 1fr;
3535
overflow-y: auto;
36+
overflow-x: hidden;
3637
}
3738

3839
::-webkit-scrollbar {
39-
height: 10px;
40-
width: 10px;
40+
width: 0px;
4141
}
4242

4343
/* Track */
@@ -47,12 +47,12 @@ body {
4747

4848
/* Handle */
4949
::-webkit-scrollbar-thumb {
50-
background: #3c3c3c;
50+
background: #5c5c5c;
5151
}
5252

5353
/* Handle on hover */
5454
::-webkit-scrollbar-thumb:hover {
55-
background: #1b1b1b;
55+
background: #515151;
5656
}
5757

5858
.mobileWrapper {
@@ -62,10 +62,22 @@ body {
6262
grid-column: 2;
6363
grid-row: 1;
6464
display: grid;
65-
grid-template-columns: 0.7rem 1.3rem 1fr 1.3rem 0.7rem;
65+
grid-template-columns:
66+
1vw clamp(1.3rem, 6vw, 8vw) 1fr clamp(1.3rem, 6vw, 8vw)
67+
1vw;
6668
grid-template-rows: 1.3rem min-content 1fr min-content 1.3rem;
6769
}
6870

71+
@media (min-width: 1000px) {
72+
::-webkit-scrollbar {
73+
width: 10px;
74+
}
75+
76+
.mobileWrapper {
77+
grid-template-columns: 1vw 8vw 1fr calc(8vw + 10px) calc(1vw + 10px);
78+
}
79+
}
80+
6981
.navBar {
7082
grid-column: 2/5;
7183
grid-row: 2;
@@ -83,9 +95,11 @@ body {
8395
width: 100%;
8496
height: 100%;
8597
display: grid;
86-
grid-template-columns: repeat(calc(100%/5), 5);
98+
grid-template-columns: repeat(calc(100% / 5), 5);
8799
grid-template-rows: 100%;
88100
align-items: center;
101+
justify-content: right;
102+
column-gap: 2.8vw;
89103
}
90104

91105
.navBarLinksFeatures {
@@ -117,12 +131,12 @@ body {
117131
}
118132

119133
.bigHeadline {
120-
font-size: clamp(1.7rem, 6.531vw, 3rem);
134+
font-size: clamp(1.7rem, 6.531vw, 6.25rem);
121135
font-family: Newsreader;
122136
}
123137

124138
.headLineText {
125-
font-size: clamp(1rem, 4.43vw, 1.76rem);
139+
font-size: clamp(1.1rem, 4.873vw, 2.25rem);
126140
}
127141

128142
.mobileInnerWrapper {
@@ -152,8 +166,8 @@ body {
152166

153167
.homeButton {
154168
padding: clamp(0.1875rem, 0.830625vw, 0.328125rem);
155-
padding-left: clamp(0.375rem, 1.66125vw, .65625rem);
156-
padding-right: clamp(0.375rem, 1.66125vw, .65625rem);
169+
padding-left: clamp(0.375rem, 1.66125vw, 0.65625rem);
170+
padding-right: clamp(0.375rem, 1.66125vw, 0.65625rem);
157171
border-radius: clamp(0.3125rem, 1.384375vw, 0.546875rem);
158172
font-size: clamp(0.8rem, 3.544vw, 1.05rem);
159173
margin-right: 8px;
@@ -178,18 +192,19 @@ body {
178192
display: grid;
179193
place-items: center;
180194
padding: 0.5rem;
181-
margin-bottom: 5rem;
195+
margin-bottom: 4rem;
182196
text-align: center;
183197
color: black;
184198
background-color: white;
185199
}
186200

187201
.featureHeader {
188-
font-size: 1.875rem;
202+
font-size: clamp(1.3rem, 5.759vw, 3rem);
189203
margin-bottom: 0.5rem;
190204
}
191205

192206
.featureLongBlurb {
207+
font-size: clamp(1rem, 4.43vw, 1.7rem);
193208
margin-bottom: 0.5rem;
194209
}
195210

@@ -205,7 +220,19 @@ body {
205220
}
206221

207222
.featureCardHeader {
208-
font-size: 1.5rem;
223+
font-size: clamp(1.3rem, 5.316vw, 1.5rem);
224+
}
225+
226+
@media (min-width: 1000px) {
227+
.featureCardsSection {
228+
display: grid;
229+
grid-template-columns: 50% 50%;
230+
column-gap: 10px;
231+
}
232+
233+
.featureCard {
234+
text-align: left;
235+
}
209236
}
210237

211238
.demo {
@@ -214,10 +241,10 @@ body {
214241
width: 100%;
215242
display: grid;
216243
grid-template-columns: 100%;
217-
grid-template-rows: calc(100%/3) calc(100%/3) calc(100%/3);
244+
grid-template-rows: calc(100% / 3) calc(100% / 3) calc(100% / 3);
218245
color: black;
219246
background-color: white;
220-
margin-bottom: 5rem;
247+
margin-bottom: 3rem;
221248
}
222249

223250
.demoCard {
@@ -227,8 +254,27 @@ body {
227254
text-align: center;
228255
}
229256

257+
@media (min-width: 1000px) {
258+
.demoCard {
259+
display: grid;
260+
grid-template-columns: 50% 50%;
261+
column-gap: 10px;
262+
text-align: left;
263+
}
264+
}
265+
266+
@media (max-width: 1000px) {
267+
.demoCardText {
268+
margin-top: 0.8rem;
269+
}
270+
}
271+
230272
.demoCardHeader {
231-
font-size: 1.5rem;
273+
font-size: clamp(1.3rem, 5.759vw, 2rem);
274+
}
275+
276+
.demoCardInfo {
277+
font-size: clamp(1rem, 4vw, 1.25rem);
232278
}
233279

234280
.demoSplit {
@@ -256,7 +302,7 @@ body {
256302
justify-content: center;
257303
align-items: center;
258304
font-size: clamp(1rem, 4.43vw, 1.3rem);
259-
padding: clamp(.22rem, 1.1927vw,0.35rem);
305+
padding: clamp(0.22rem, 1.1927vw, 0.35rem);
260306
margin-left: 0.2rem;
261307
margin-right: 0.2rem;
262308
background-color: rgb(217, 225, 210);
@@ -279,4 +325,4 @@ body {
279325

280326
.teamCardLink2 {
281327
grid-column: 3;
282-
}
328+
}

0 commit comments

Comments
 (0)