This commit is contained in:
Max Hunt 2020-05-16 22:09:56 +01:00
parent e1deefb4ae
commit 4263d9b7ba
5 changed files with 17 additions and 18 deletions

View File

@ -1,13 +0,0 @@
[debug] [2020-05-16T19:40:26.375Z] ----------------------------------------------------------------------
[debug] [2020-05-16T19:40:26.376Z] Command: /usr/local/bin/node /usr/local/bin/firebase deploy
[debug] [2020-05-16T19:40:26.377Z] CLI Version: 8.2.0
[debug] [2020-05-16T19:40:26.377Z] Platform: darwin
[debug] [2020-05-16T19:40:26.377Z] Node Version: v12.16.2
[debug] [2020-05-16T19:40:26.378Z] Time: Sat May 16 2020 20:40:26 GMT+0100 (British Summer Time)
[debug] [2020-05-16T19:40:26.378Z] ----------------------------------------------------------------------
[debug] [2020-05-16T19:40:26.378Z]
[debug] [2020-05-16T19:40:26.386Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2020-05-16T19:40:26.387Z] > authorizing via signed-in user
[debug] [2020-05-16T19:40:26.387Z] [iam] checking project project-gg-3b754 for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get","firebasehosting.sites.update"]
[debug] [2020-05-16T19:40:26.389Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/project-gg-3b754:testIamPermissions
{"permissions":["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get","firebasehosting.sites.update"]}

View File

@ -27,6 +27,8 @@ body {
max-width: 900px;
}
main {
min-height: 79.7vh;
/*padding-bottom: 200px;*/
@ -548,7 +550,7 @@ input:focus, textarea:focus, select:focus{
.product-page-info input {
margin-top: 20px;
height: 40px;
width: 500px;
width: 400px;
font-size: 15px;
padding-left: 10px;
margin-bottom: -10px;
@ -843,4 +845,14 @@ input:focus, textarea:focus, select:focus{
position: relative;
width: 100%;
height: 100%;
}
@media (prefers-color-scheme: dark) {
body, .page, main, .navbar {
background: #222222;
}
footer {
background: rgb(20, 20, 20);
box-shadow: none;
}
}

File diff suppressed because one or more lines are too long

View File

@ -139,7 +139,7 @@ function requestItem(){
const bMessage = document.getElementById('bMsg')
if (reqBtn.innerHTML == "Request!") {
if (firebase.auth().currentUser) {
reqBtn.setAttribute("style", "background: #87e5ff; width:300px;")
reqBtn.setAttribute("style", "background: #87e5ff; width:410px;")
reqBtn.innerHTML = "Send?"
bMessage.setAttribute('style', 'display: block;')
} else {
@ -162,7 +162,7 @@ function requestItem(){
.then(function(result){
console.log(result)
if (result.success == true) {
reqBtn.setAttribute("style", "background: #00DD00; width:520px; transition: 0.7s;")
reqBtn.setAttribute("style", "background: #00DD00; width:410px; transition: 0.7s;")
reqBtn.innerHTML = "Done! Go Home"
reqBtn.disabled = false
}

View File

@ -11,7 +11,7 @@
<p>Location: <%= item.location %></p>
<p>Quantity: <%= item.stock %></p>
<p>Price: £<%= item.price %></p>
<input id="bMsg" type="text" placeholder="Your message to the seller" value="Hi, I would like to purchse your item" style="display: none;">
<input id="bMsg" type="text" placeholder="Your message to the seller" value="Hi, I would like to purchase your item" style="display: none;">
<button onclick={requestItem()} id="req-btn">Request!</button>
</div>
</div>