Skip to content

Commit bdad7a2

Browse files
committed
navbar set up and some of home
1 parent d3c4995 commit bdad7a2

File tree

12 files changed

+52
-22
lines changed

12 files changed

+52
-22
lines changed
7.69 KB
Loading
14.2 KB
Loading

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const Demo = () => {
22
return (
3-
<div className='demo'>
3+
<div className='demo' id='demo'>
44
<div className='demoSplit'>
55
<div>Img 1</div>
66
<div>Demo 1</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import FeatureCard from "./FeatureCard";
22

33
const Features = () => {
44
return (
5-
<div className='features'>
5+
<div className='features' id='features'>
66
<div>MLOps in Javascript, made simple.</div>
77
<div>Long blurb</div>
88
<FeatureCard/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Button from './Button';
22

33
const Headline = () => {
44
return (
5-
<div className='home'>
5+
<div className='home' id='headline'>
66
<div className='bigHeadline'>MLOps workflow for Javascript</div>
77
<div>Harness MLflow&apos;s MLOps functionality for your Javascript application with MLflow.js</div>
88
<Button />

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

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,56 @@
1-
import Image from 'next/image'
1+
'use client';
2+
3+
import Image from 'next/image';
4+
import githubLogo from '../assets/GithubLogo.png';
5+
import linkedInLogo from '../assets/LinkedInLogo.png';
26

37
const NavBar = () => {
48
return (
59
<div className='navBar'>
610
<div className='navBarMlflow'>MLflow.js</div>
711
<div className='navBarLinks'>
8-
<div>Home</div>
9-
<div className='navBarLinksFeatures'>Features</div>
10-
<div className='navBarLinksDemo'>Demo</div>
11-
<div className='navBarLinksTeam'>Team</div>
12+
<button
13+
onClick={() => {
14+
const element = document.getElementById('headline');
15+
element?.scrollIntoView({ behavior: 'smooth' });
16+
}}
17+
>
18+
Home
19+
</button>
20+
<button
21+
onClick={() => {
22+
const element = document.getElementById('features');
23+
element?.scrollIntoView({ behavior: 'smooth' });
24+
}}
25+
>
26+
Features
27+
</button>
28+
<button
29+
onClick={() => {
30+
const element = document.getElementById('demo');
31+
element?.scrollIntoView({ behavior: 'smooth' });
32+
}}
33+
className='navBarLinksDemo'
34+
>
35+
Demo
36+
</button>
37+
<button
38+
onClick={() => {
39+
const element = document.getElementById('team');
40+
element?.scrollIntoView({ behavior: 'smooth' });
41+
}}
42+
className='navBarLinksTeam'
43+
>
44+
Team
45+
</button>
1246
<a
1347
href='https://github.com/oslabs-beta/mlflow-js'
1448
className='navBarLinksGithub'
1549
>
16-
{/* <img src='../../assets/Github_logo.png' alt='G'></img> */}
17-
<Image
18-
src='/assets/Github_logo.png'
19-
width={50}
20-
height={50}
21-
alt='M'
22-
/>
50+
<Image src={githubLogo} width={24} height={24} alt='G' />
2351
</a>
2452
<a href='' className='navBarLinksLinkedIn'>
25-
L
53+
<Image src={linkedInLogo} width={24} height={24} alt='L' />
2654
</a>
2755
</div>
2856
</div>

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
];
3131

3232
return (
33-
<div className='team'>
33+
<div className='team' id='team'>
3434
<div className='centered'>Meet the team</div>
3535
<div className='teamCards'>
3636
{teamArray.map((member, index) => (

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import imageNotFound from '../../assets/imageNotFound.jpg'
1+
// import imageNotFound from '/../..//assets/imageNotFound.jpg'
22

33
interface TeamCardProps {
44
name: string;
@@ -14,7 +14,7 @@ const TeamCard: React.FC<TeamCardProps> = ({
1414
return (
1515
<div className='teamcard'>
1616
{/* <div style={{ backgroundImage: 'url(../../assets/imageNotFound.jpg)' }} className='teamCardImg'></div> */}
17-
<img src={imageNotFound} alt='Miss'></img>
17+
{/* <img src={imageNotFound} alt='Miss'></img> */}
1818
{/* <img src={require('../../assets/imageNotFound.jpg')} alt="Test"></img> */}
1919
<div>{name}</div>
2020
<div>

mlflow-site/src/app/globals.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,10 @@ body {
8383
grid-row: 2;
8484
width: 100%;
8585
height: 100%;
86-
background-color: #7e7e7e;
86+
/* background-color: #7e7e7e; */
8787
display: grid;
8888
grid-template-columns: auto auto;
8989
grid-template-rows: 100%;
90-
/* text-align: center; */
9190
}
9291

9392
.navBarLinks {
@@ -125,6 +124,8 @@ body {
125124
color: rgb(66, 107, 31);
126125
font-size: 1.2rem;
127126
font-family: Newsreader;
127+
display: flex;
128+
align-items: center;
128129
}
129130

130131
.bigHeadline {
@@ -153,10 +154,11 @@ body {
153154
}
154155

155156
.home {
157+
margin-top: 0.3rem;
156158
grid-column: 2/5;
157159
grid-row: 3;
158160
width: 100%;
159-
background-color: rgb(102, 102, 54);
161+
/* background-color: rgb(102, 102, 54); */
160162
}
161163

162164
.button {

0 commit comments

Comments
 (0)