-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*The background picture, Logo and some other features are added. *A layout is prepared so that it shall be used as template for the rest of the pages. ## Future Improvements *Make the navigation menu as multi-level responsive menu. *Make the Header sticky to top while scrolling down. Fixes #2
- Loading branch information
Showing
20 changed files
with
1,320 additions
and
5,559 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.45 KB
...ns-drop-down-list-menu-arrow-computer-5afb9d32be3ba5.9657372715264392187792.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,44 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> | ||
|
||
<title>SmartRover</title> | ||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" /> | ||
<link rel="stylesheet" type = "text/css" href="style.css"> | ||
</head> | ||
<body > | ||
<div class = "wrapper"> | ||
|
||
<nav class="main-nav"> | ||
<input type="checkbox" id="check" > | ||
<label for="check" class= "checkbtn"> | ||
<i class="fas fa-bars fa-2x"></i> | ||
</label> | ||
<div> | ||
<img src="/images/testLogo.png" alt=""> | ||
</div> | ||
|
||
<ul> | ||
<li><a class= "active" href= "#">Home</a></li> | ||
<li><a href= "Drive.html">Manual Control</a></li> | ||
<li><a href= "#">Mission</a></li> | ||
<li><a href= "#">Settings</a></li> | ||
</ul> | ||
</nav> | ||
<section> | ||
|
||
|
||
</section> | ||
|
||
</div> <!--wrapper ends--> | ||
|
||
</body> | ||
</html> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> | ||
<title>SmartRover - Home</title> | ||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" /> | ||
<link rel="stylesheet" type = "text/css" href="style.css"> | ||
</head> | ||
|
||
|
||
<body > | ||
<div class = "wrapper"> | ||
|
||
<nav class="main-nav"> | ||
|
||
<div> | ||
<img src="images/rover-logo.png" alt="SmartRover logo"> | ||
</div> | ||
<div class="menus"> | ||
<input type="checkbox" id="check" > | ||
<label for="check" class= "checkbtn"> | ||
<i class="fas fa-bars fa-2x"></i> | ||
</label> | ||
<ul> | ||
<li><a class= "active" href= "#">Home</a></li> | ||
<li><a href= "manual-control.html">Manual Control</a></li> | ||
<li><a href= "#">Mission</a></li> | ||
<li><a href= "#">Settings</a></li> | ||
<li><a href="#">Help</a></li> | ||
</ul> | ||
</div> | ||
|
||
|
||
</nav>j | ||
<section> | ||
|
||
|
||
</section> | ||
|
||
</div> <!--wrapper ends--> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,74 @@ | ||
const { app, BrowserWindow } = require('electron') | ||
const path = require('path') | ||
|
||
function createWindow () { | ||
const win = new BrowserWindow({ | ||
width: 800, | ||
height: 600, | ||
webPreferences: { | ||
preload: path.join(__dirname, 'preload.js') | ||
} | ||
}) | ||
|
||
win.loadFile('index.html') | ||
} | ||
|
||
app.whenReady().then(() => { | ||
createWindow() | ||
|
||
app.on('activate', () => { | ||
if (BrowserWindow.getAllWindows().length === 0) { | ||
createWindow() | ||
} | ||
}) | ||
}) | ||
|
||
app.on('window-all-closed', () => { | ||
if (process.platform !== 'darwin') { | ||
app.quit() | ||
} | ||
}) | ||
const { app, BrowserWindow, globalShortcut } = require('electron') | ||
|
||
const path = require('path') | ||
|
||
function createWindow () { | ||
const mainWindow = new BrowserWindow({ | ||
width: 1280, | ||
height: 960, | ||
icon: path.join(__dirname, 'images/favicon.ico'), | ||
webPreferences: { | ||
preload: path.join(__dirname, 'preload.js') | ||
} | ||
}) | ||
|
||
mainWindow.loadFile('index.html') | ||
|
||
/* Global shortcut for F5 to reload window */ | ||
globalShortcut.register('f5', function() { | ||
console.log('f5 is pressed') | ||
mainWindow.reload() | ||
}) | ||
|
||
globalShortcut.register('CommandOrControl+R', function() { | ||
console.log('CommandOrControl+R is pressed') | ||
mainWindow.reload() | ||
}) | ||
} | ||
|
||
|
||
app.whenReady().then(() => { | ||
createWindow() | ||
|
||
app.on('activate', () => { | ||
if (mainWindow.getAllWindows().length === 0) { | ||
createWindow() | ||
} | ||
}) | ||
}) | ||
|
||
app.on('window-all-closed', () => { | ||
if (process.platform !== 'darwin') { | ||
app.quit() | ||
} | ||
}) | ||
|
||
app.on('will-quit', () => { | ||
// Unregister a shortcut. | ||
globalShortcut.unregister('CommandOrControl+X') | ||
|
||
// Unregister all shortcuts. | ||
globalShortcut.unregisterAll() | ||
}) | ||
|
||
//For header position | ||
// When the user scrolls the page, execute myFunction | ||
/* | ||
mainWindow.onscroll= function() {myFunction()}; | ||
// Get the header | ||
const document= mainWindow.loadFile('manual-control.html') | ||
var header = document.getElementById(myHeader); | ||
// Get the offset position of the navbar | ||
var sticky = header.offsetTop; | ||
// Add the sticky class to the header when you reach its scroll position. Remove "sticky" when you leave the scroll position | ||
function myFunction() { | ||
if (mainWindow.pageYOffset > sticky) { | ||
header.classList.add("sticky"); | ||
} else { | ||
header.classList.remove("sticky"); | ||
} | ||
}*/ |
Oops, something went wrong.