From d1a9045fc1fdab63e959fc2de2cd5c1cbdc63159 Mon Sep 17 00:00:00 2001 From: umar Date: Thu, 5 Aug 2021 08:46:28 +0300 Subject: [PATCH] Editing .env file and search bar Relates #58 --- public/index.html | 5 ----- public/style.css | 4 ++-- src/handlers/search.js | 2 +- src/handlers/trending.js | 2 +- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/public/index.html b/public/index.html index 50c8497..02897ce 100644 --- a/public/index.html +++ b/public/index.html @@ -31,14 +31,9 @@

Egy Film

diff --git a/public/style.css b/public/style.css index 645d251..2700ea9 100644 --- a/public/style.css +++ b/public/style.css @@ -84,7 +84,7 @@ justify-content:center; } .searchBox { - width: 60%; + width: 85%; position: relative; } @@ -103,7 +103,7 @@ .fa-search { position:absolute; - top: 10%; + top: 7.5%; transform: translateY(-50%); right: 25px; color: #fff; diff --git a/src/handlers/search.js b/src/handlers/search.js index 2c9b6f8..ff316e6 100644 --- a/src/handlers/search.js +++ b/src/handlers/search.js @@ -1,5 +1,5 @@ const { XMLHttpRequest } = require('xmlhttprequest'); -require('env2')('../.env'); +require('env2')('.env'); const xhr = new XMLHttpRequest(); diff --git a/src/handlers/trending.js b/src/handlers/trending.js index 8c25a77..ade6554 100644 --- a/src/handlers/trending.js +++ b/src/handlers/trending.js @@ -1,5 +1,5 @@ const { XMLHttpRequest } = require('xmlhttprequest'); -require('env2')('../.env'); +require('env2')('.env'); const xhr = new XMLHttpRequest();