forked from git-ankit/MovieRecommender
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor branch, improve UI (two columns) and visibility #21
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
25f665a
Added genre tags in the email notifier
rishi2019194 5a9f3f4
Added genre tags in the email notifier
rishi2019194 02fdc51
refactor the code
rishi2019194 00ce515
refactor the code
rishi2019194 3841c9b
refactor the code
rishi2019194 ca2cdaf
Merge branch 'master' into email_notifier_genre
ananya173147 da1db46
pylint refactor, UI improve & code cleaning
ananya173147 eb209e1
heading placement fix
ananya173147 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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,177 +1,94 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="{{ url_for('static', filename='stylesheet.css') }}" | ||
/> | ||
<!-- Include stylesheets and scripts --> | ||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='stylesheet.css') }}"> | ||
<title>PopcornPicks🍿</title> | ||
<script src="{{ url_for('static', filename='script.js') }}"></script> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link | ||
rel="stylesheet" | ||
href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" | ||
/> | ||
<link | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
rel="stylesheet" | ||
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" | ||
crossorigin="anonymous" | ||
/> | ||
<script | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" | ||
crossorigin="anonymous" | ||
></script> | ||
<meta name="viewport" content="width device-width, initial-scale=1" /> | ||
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" /> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" /> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | ||
</head> | ||
|
||
<body> | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark topNavBar"> | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark topNavBar fixed-top"> | ||
<div class="container-fluid"> | ||
<a class="navbar-brand" href="#">PopcornPicks🍿</a> | ||
<button | ||
class="navbar-toggler" | ||
type="button" | ||
data-bs-toggle="collapse" | ||
data-bs-target="#navbarSupportedContent" | ||
aria-controls="navbarSupportedContent" | ||
aria-expanded="false" | ||
aria-label="Toggle navigation" | ||
> | ||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<!-- <div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
<div class="d-flex"> | ||
<a class="nav-link" href="#">Link</a> | ||
</div> | ||
</div> --> | ||
</div> | ||
</nav> | ||
<div class="heading1"> | ||
<div class="d-flex"> | ||
<h2>🎬Pick a Movie!🎬</h2> | ||
</div> | ||
<div class="d-flex"> | ||
<input | ||
class="form-control mr-sm-2" | ||
type="search" | ||
placeholder="Search for a Movie" | ||
aria-label="Search" | ||
id="searchBox" | ||
/> | ||
<div class="container" style="margin-top: 60px;"> | ||
<div class="heading1"> | ||
<!-- Heading for picking a movie --> | ||
<h2><center>🎬 Pick a Movie! 🎬</center></h2> | ||
</div> | ||
</div> | ||
|
||
<!-- <div style="width: 600px; margin: auto"> | ||
<h2>Please select movies for training</h2> | ||
<p style="width: 560px; margin: auto"> | ||
<label>Search Here</label> <input | ||
type="text" | ||
name="search" | ||
id="searchBox" | ||
/> | ||
</p> | ||
</div> --> | ||
<div style="width: 600px; margin: auto"> | ||
<h2>Selected movie :</h2> | ||
<ul class="list-group" id="selectedMovies"></ul> | ||
</div> | ||
<div style="width: 600px; margin: auto"> | ||
<input | ||
type="button" | ||
class="btn btn-primary" | ||
name="predict" | ||
id="predict" | ||
value="Predict" | ||
/> | ||
</div> | ||
<div style="width: 600px; margin: auto"> | ||
<h2>Predicted Movies</h2> | ||
<form class="recos" id="recos"> | ||
<ul class="list-group" id="predictedMovies"></ul> | ||
</form> | ||
</div> | ||
<div style="width: 600px; margin: auto"> | ||
<input | ||
type="button" | ||
class="btn btn-primary" | ||
name="feedback" | ||
data-toggle="modal" | ||
id="feedback" | ||
value="Give Feedback" | ||
data-target="#exampleModalCenter" | ||
/> | ||
<!--TODO Button trigger modal--> | ||
<button | ||
type="button" | ||
data-bs-toggle="modal" | ||
data-bs-target="#exampleModalCenter" | ||
> | ||
button | ||
</button> | ||
<div | ||
class="modal fade" | ||
id="exampleModalCenter" | ||
tabindex="-1" | ||
role="dialog" | ||
aria-labelledby="exampleModalCenterTitle" | ||
aria-hidden="true" | ||
> | ||
<div class="modal-dialog modal-dialog-centered" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title" id="exampleModalLongTitle"> | ||
Modal title | ||
</h5> | ||
<button | ||
type="button" | ||
class="close" | ||
data-bs-dismiss="modal" | ||
aria-label="Close" | ||
> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
|
||
<div class="row" style="margin-top: 25px;"> | ||
<div class="col-md-6"> | ||
<!-- Left Column (Selected Movie(s) and Search) --> | ||
<div class="row"> | ||
<div class="col-md-10"> | ||
<!-- Selected Movie(s) section --> | ||
<h2>Selected Movie(s):</h2> | ||
<input class="form-control mr-sm-2" type="search" placeholder="Search for a Movie" aria-label="Search" id="searchBox" /> | ||
<ul class="list-group" id="selectedMovies"></ul> | ||
</div> | ||
<div class="col-md-2"> | ||
<!-- Predict button --> | ||
<input type="button" class="btn btn-primary" name="predict" id="predict" value="Predict" style="margin-top: 47.5px;" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-1"> | ||
<!-- Empty column for spacing --> | ||
</div> | ||
<div class="col-md-5"> | ||
<!-- Right Column (Recommended Movies) --> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<!-- Recommended Movies section --> | ||
<h2>Recommended Movies:</h2> | ||
<form class="recos" id="recos"> | ||
<ul class="list-group" id="predictedMovies"></ul> | ||
</form> | ||
</div> | ||
<div class="modal-body">...</div> | ||
<div class="modal-footer"> | ||
<button | ||
type="button" | ||
class="btn btn-secondary" | ||
data-bs-dismiss="modal" | ||
> | ||
Close | ||
</button> | ||
<button type="button" class="btn btn-primary"> | ||
Save changes | ||
</button> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<!-- Feedback button (modal) --> | ||
<input type="button" class="btn btn-primary" name="feedback" data-toggle="modal" id="feedback" value="Give Feedback" data-target="#exampleModalCenter"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<input class="c-checkbox" type="checkbox" id="checkbox" /> | ||
<div id="dataCollected" style="width: 600px; margin: auto; display: none"> | ||
<h1>Thanks!! Your response was stored.</h1> | ||
<input | ||
type="button" | ||
id="refreshPage" | ||
class="btn btn-danger" | ||
name="refreshPage" | ||
value="Take another attempt" | ||
/> | ||
<div class="container" style="margin-top: 20px;"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<!-- Checkbox section --> | ||
<input class="c-checkbox" type="checkbox" id="checkbox" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="container" style="margin-top: 20px;"> | ||
<div class="row"> | ||
<div class="col-md-8"> | ||
<!-- Data collected section --> | ||
<div id="dataCollected" style="display: none;"> | ||
<h1>Thanks!! Your response was stored.</h1> | ||
<input type="button" id="refreshPage" class="btn btn-danger" name="refreshPage" value="Take another attempt" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<br /><br /><br /> | ||
</body> | ||
<script | ||
src="https://code.jquery.com/jquery-3.5.1.min.js" | ||
crossorigin="anonymous" | ||
></script> | ||
<script | ||
src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" | ||
crossorigin="anonymous" | ||
></script> | ||
<script src="https://code.jquery.com/jquery-3.5.1.min.js" crossorigin="anonymous"></script> | ||
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" crossorigin="anonymous"></script> | ||
<script src="{{ url_for('static', filename='script.js') }}"></script> | ||
</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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try using rem instead of px, instead of row, col (Table) use flexBox.
Don't add styles in HTML, define a class and move it to stylesheet.css