Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
Added a dashboard to index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
fyang151 committed Feb 2, 2024
1 parent c7df971 commit f12855d
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import dynamic from 'next/dynamic';
import { CircularProgress } from '@mui/material';
import DashboardContainer from '@/views/DashboardContainer';
import Header from '@/views/components/Header';
import styles from './style.module.css';

const MapsContainer = dynamic(() => import('@/views/MapsContainer'), {
Expand All @@ -23,11 +24,14 @@ const MapsContainer = dynamic(() => import('@/views/MapsContainer'), {

export default function Home() {
return (
<div className={styles.maincontainer}>
<MapsContainer />
<div className={styles.dashboardcontainer}>
<DashboardContainer/>
<>
<Header />
<div className={styles.maincontainer}>
<MapsContainer />
<div className={styles.dashboardcontainer}>
<DashboardContainer/>
</div>
</div>
</div>
</>
);
}
Binary file added public/SailbotLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions views/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import React from 'react';

function Header() {
return (
<header style={headerStyle}>
<img
src="SailbotLogo.png"
alt="Logo"
style={logoStyle}
/>
<h1 style={titleStyle}>UBC SAILBOT</h1>
</header>
)
}

const headerStyle = {
backgroundColor: '#26619c',
padding: '5px',
margin: '-10px',
marginBottom: '10px',
display: 'flex',
alignItems: 'center',
background: 'linear-gradient(to right, #26619c, #3498db)',
};

const logoStyle = {
width: '30px',
marginLeft: '50px',
};

const titleStyle = {
fontFamily: 'Verdana',
fontWeight: '14px',
color: 'white',
marginLeft: "20px",
fontSize: '30px',
letterSpacing: '2px',
}

export default Header

0 comments on commit f12855d

Please sign in to comment.