Skip to content

Commit

Permalink
Editing .env file and search bar
Browse files Browse the repository at this point in the history
Relates #58
  • Loading branch information
umarsalah committed Aug 5, 2021
1 parent b753cf1 commit d1a9045
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,9 @@ <h1 class="logo">Egy Film </h1>
<header class="landingPage">
<div class="mainContainer">
<div class="searchBox">

<input type="text" placeholder="looking for a movie ?" oninput="nameInput(this)" id="searchBar">
<i class="fas fa-search"></i>
<div id="suggestionsBar"></div>

<input type="text" placeholder="looking for a movie ?" oninput="nameInput(this)" class="search-bar" id="searchBar">
<div id="suggestionsBar"></div>

</div>
</div>
</header>
Expand Down
4 changes: 2 additions & 2 deletions public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
justify-content:center;
}
.searchBox {
width: 60%;
width: 85%;
position: relative;
}

Expand All @@ -103,7 +103,7 @@

.fa-search {
position:absolute;
top: 10%;
top: 7.5%;
transform: translateY(-50%);
right: 25px;
color: #fff;
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/search.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { XMLHttpRequest } = require('xmlhttprequest');
require('env2')('../.env');
require('env2')('.env');

const xhr = new XMLHttpRequest();

Expand Down
2 changes: 1 addition & 1 deletion src/handlers/trending.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { XMLHttpRequest } = require('xmlhttprequest');
require('env2')('../.env');
require('env2')('.env');

const xhr = new XMLHttpRequest();

Expand Down

0 comments on commit d1a9045

Please sign in to comment.