Skip to content

Commit

Permalink
Merge pull request #13 from MAlshaik/main
Browse files Browse the repository at this point in the history
Changes to home page + Editing page
  • Loading branch information
MAlshaik authored Feb 24, 2023
2 parents d11e789 + 1ef3dcb commit 9f7471d
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 24 deletions.
16 changes: 11 additions & 5 deletions Frontend/Home.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
{% load static%}

<!DOCTYPE html>
<html>
<head>
<link rel="icon" type="image/png" href="images/Logo-32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="images/Logo-16.png" sizes="16x16" />

<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
<link rel="stylesheet" href="home.css">
<title>Transcript-Home</title>
</head>
<body>
<div id="navbar">
<nav>
<img src="images/Logo.png" class="logo">
<img src="images/Extended-logo.png" class="logo">
<ul>
<li><a href="">About</a></li>
<li><a href="">Login</a></li>
<li><a href="">Sign-up</a></li>
<!-- <div class="login">
<li><a href="" id="login">Login</a></li>
<li><a href="" id="login">Sign-up</a></li>
</div> -->
<button>Login</button>
<button>Sign-up</button>
</ul>
</nav>
</div>
Expand Down
31 changes: 23 additions & 8 deletions Frontend/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,15 @@
}

nav .logo {
transform: translateY(-20%);
transform: translateY(-18%);
cursor: pointer;

}

nav ul{
flex: 1;
text-align: right;
display: inline-block;

}

Expand All @@ -108,22 +109,36 @@

}

nav ul li a#login {
text-decoration: none;
background: #00986f;
padding: 10px 40px;
display: inline-block;
color: #fff;
border-radius: 3px;

}

nav ul li a{
text-decoration: none;
color: white;
}


/* button{
background: #efefef;
height: 30px;
width: 60px;
border-radius: 20px;
border: 0;
outline: 0;

button{
background: #00986f;
background: #00986f;
padding: 10px 20px;
display: inline-block;
color: #fff;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
}

/*
button span {
display: block;
background: #999;
Expand Down
Binary file added Frontend/images/Extended-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Frontend/images/Logo-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Frontend/images/Logo-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 0 additions & 8 deletions Frontend/test.html

This file was deleted.

1 change: 1 addition & 0 deletions Frontend/upload-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ function uploadFile(name){
});
let data = new FormData(form); //FormData is an object to easily send form data
xhr.send(data); //sending form data
load();
}


9 changes: 6 additions & 3 deletions Frontend/video-editing.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<html>
<head>
<link rel="icon" type="image/png" href="images/Logo-32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="images/Logo-16.png" sizes="16x16" />

<link rel="stylesheet" href="video-editing.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/>

<title>Transcript-Editing</title>
</head>
<body>

Expand Down Expand Up @@ -45,9 +50,7 @@

<!-- Transcript -->
<div id = "transcript">
<p data-time="0">Testing for the length of the transcript container. </p>
<p data-time="5">This is the second line of the transcript.</p>
<p data-time="10">This is the third line of the transcript.</p>

</div>
<div class="transcript-controls">
<button id="save-transcript-button">Save</button>
Expand Down
2 changes: 2 additions & 0 deletions Frontend/video-editing.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
let transcriptArea = document.getElementById("transcript");
let transcriptHTML = ` `;

function load(){
fetch('assets/output.json')
.then(response => response.json())
.then(data => {
// Use the data object here
processData(data);
});
}

function processData(data) {

Expand Down

0 comments on commit 9f7471d

Please sign in to comment.