Skip to content

Commit

Permalink
added UI changes requested by Carla
Browse files Browse the repository at this point in the history
  • Loading branch information
nb03 committed Mar 17, 2022
1 parent b70dfb8 commit 16bebdd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
7 changes: 4 additions & 3 deletions chromeExtension/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ button {
border-radius: 5px;
text-align: center;
justify-content: center;
background-color: #f7fff7;
background-color:#4ecdc4;;
box-shadow: 0px 8px 15px rgba(0,0, 0, 0.1);
transition: all 0.3s ease 0s;
cursor: pointer;
}
input[type=button]:hover{
background-color:#4ecdc4;
background-color:#f7fff7;
box-shadow: 0px 15px 20px rgba(0,0, 0, 0.1);
transform: translateY(-2px);
}
Expand All @@ -99,7 +99,7 @@ button {
}

input[type=text] {
padding: 0;
padding: 100;
height: 20px;
position: relative;
left: 0;
Expand All @@ -109,4 +109,5 @@ button {
background-color: white;
box-shadow: 0px 8px 15px rgba(0,0, 0, 0.1);
font-size: 14px;
border-radius: 5px;
}
2 changes: 1 addition & 1 deletion chromeExtension/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1>Who Funds Your Feed</h1>
<p>Please enter your e-mail to enable sponsorship detection:</p>
<div class="flex-container">
<div class="flex-child textBox">
<input type="text" id="box" placeholder="[email protected]" name="inputText" value="" />
<input type="text" id="box" placeholder=" [email protected] " name="inputText" value="" />
</div>
<div class="flex-child submitButton">
<input type="button" id="submit" value="Submit" />
Expand Down
11 changes: 11 additions & 0 deletions chromeExtension/popup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
document.addEventListener('DOMContentLoaded', () => {
var y = document.getElementById("index_link");
y.addEventListener("click", openIndex);
});

function openIndex() {
userId = localStorage.getItem("userId");
baseUrl = "http://wfyf-app.s3-website-us-east-1.amazonaws.com/";
url = userId ? baseUrl + userId : baseUrl;
chrome.tabs.create({ active: true, url: url });
}

0 comments on commit 16bebdd

Please sign in to comment.