Skip to content

Commit

Permalink
Merge pull request #13 from acmucsd-projects/receipt-page
Browse files Browse the repository at this point in the history
Finished receipt webpage
  • Loading branch information
tirani427 authored Aug 16, 2024
2 parents 2e87075 + e6523fa commit ff7f562
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 2 deletions.
Binary file added pencil-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/pencil-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
178 changes: 178 additions & 0 deletions source/css/receipt.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
.display {
background-color: #f3e9ce;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: flex-start;
overflow-y: auto;
border-radius: 1em;
padding: 1.5em 1.25em;
margin: 1em 2em;
height: auto;
}

.pencil {
background: none;
border: none;
height: 25px;
width: 21px;
padding: 0em;
align-self: center;
}

#pencil-icon:hover{
box-shadow: rgb(109, 109, 109) 0 0 3px;
outline: none;
border-radius: 90% 50% 90% 10%;
}

#pencil-icon:focus:not(:focus-visible):not(.focus-visible) {
box-shadow: none;
outline: none;
}

#pencil-icon:focus {
box-shadow: rgb(97, 97, 97) 0 0 3px;
outline: none;
}

#pencil-icon:disabled {
border-color: rgba(27, 31, 35, 0.1);
color: rgba(255, 255, 255, 0.8);
cursor: default;
}

#pencil-icon:active {
background-color: rgb(188, 188, 188);
box-shadow: rgba(20, 70, 32, 0.2) 0 1px 0 inset;
}

#title-icon {
display: flex;
align-items: flex-end;
height: 35px;
width: auto;
}

#user-details {
display: flex;
flex-direction: column;
align-items: flex-start;
}

#user-details h1,
h2 {
white-space: nowrap;
align-self: start;
margin: 0;
padding: 0.2em 0.5em 0em;
}

#user-details h2 {
padding: 0em 0.5em;
margin: 0.5em;
width: auto;
font-weight: 400;
font-size: 1em;
}

#user-details ul {
text-align: left;
list-style-type: none;
white-space: nowrap;
padding: 1em;
margin: 0;
line-height: 2.5em;
font-size: 1.5em;
font-weight: 600;
height: 100%;
width: 5em;
}

.layout {
display: flex;
flex-direction: row;
justify-content: space-between;
align-self: center;
width: 90vw;
height: auto;
}

#user-details .price {
flex-shrink: 1;
text-align: right;
line-height: 2.5em;
font-weight: 400;
padding-left: 5em;
}

.img {
flex: 1 1 5em;
max-width: 100%;
height: auto;
max-height: 13em;
object-fit: contain;
display: block;
margin: 0.5em 0em;
border-radius: 10em;
}

.right-col {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: normal;
align-content: normal;
justify-content: normal;
max-width: 50vw;
max-height: 27.5em;
overflow: scroll;
}

#share-print-back {
display: flex;
flex-direction: column;
flex-grow: 0.75;
width: 27.5em;
height: auto;
flex-wrap: nowrap;
}

.share-print-back-text {
background-color: #7c9e57;
border: none;
border-radius: 7.5em;
flex: 1 1 5em;
width: 50vw;
max-width: 50vw;
max-height: 3em;
margin: 0.5em 0em;
font: optional;
font-size: 1.25em;
font-weight: 600;
}

.share-print-back-text:hover {
background-color: #719150;
}

.share-print-back-text:focus:not(:focus-visible):not(.focus-visible) {
box-shadow: none;
outline: none;
}

.share-print-back-text:focus {
box-shadow: rgb(102, 132, 72) 0 0 3px;
outline: none;
}

.share-print-back-text:disabled {
border-color: rgba(27, 31, 35, 0.1);
color: rgba(255, 255, 255, 0.8);
cursor: default;
}

.share-print-back-text:active {
background-color: rgb(102, 132, 72);
box-shadow: rgba(20, 70, 32, 0.2) 0 1px 0 inset;
}
65 changes: 63 additions & 2 deletions source/receipt.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta name="viewpoint" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./css/main.css">
<link rel="stylesheet" href="./css/receipt.css">
<title>Go Go Grocery!</title>
</head>

Expand All @@ -18,8 +19,68 @@ <h1>Go Go Grocery</h1>
</header>

<main>
<h1>WIREFRAME PAGE 8</h1>
<!--CODE FOR THE PRODUCT LIST - item | item image | description/nutrition fact-->
<div class="display">
<div id="user-details">
<div id="title-icon">
<h1>Username's Day Grocery Run</h1>
<button class="pencil" type="button">
<img class="pencil"id="pencil-icon" src="./assets/images/pencil-icon.png" alt="edit-list-name">
</button>
</div>
<h2>Created Month, Day Year</h2>
<div class="layout">
<ul id="item-list">
<li>Green Grapes </li>
<li>Oreo</li>
<li>Chicken Breast</li>
<li>Penne Pasta</li>
<li>1 Tomato</li>
<li>Bacon</li>
<li>Eggs</li>
<li>Milk</li>
</ul>
<ul class="price">
<li>$4.70</li>
<li>$5.98</li>
<li>$12.19</li>
<li>$1.18</li>
<li>$0.27</li>
<li>$3.44</li>
<li>$3.28</li>
<li>$3.78</li>
</ul>
<div class="right-col">
<img class="img" src="./assets/images/amazon-icon.png" alt="walmart-logo">
<img class="img" src="./assets/images/walmart-icon.png" alt="walmart-logo">
<img class="img" src="./assets/images/costco-icon.png" alt="walmart-logo">
<img class="img" src="./assets/images/grocery-outlet-icon.png" alt="walmart-logo">
<img class="img" src="./assets/images/traderjoes-icon.png" alt="walmart-logo">
<img class="img" src="./assets/images/ralphs-icon.png" alt="walmart-logo">
<img class="img" src="./assets/images/target-icon.png" alt="walmart-logo">
<img class="img" src="./assets/images/wholefoods-icon.png" alt="walmart-logo">
<img class="img" src="./assets/images/walmart-icon.png" alt="walmart-logo">
<img class="img" src="./assets/images/walmart-icon.png" alt="walmart-logo">
<img class="img" src="./assets/images/walmart-icon.png" alt="walmart-logo">
<img class="img" src="./assets/images/walmart-icon.png" alt="walmart-logo">
</div>
</div>
<div class="layout">
<ul>
<li>Subtotal</li>
<li>Total</li>
</ul>
<ul class="price">
<li>$34.82</li>
<li>$36.13</li>
</ul>
<div class="right-col" id="share-print-back">
<button class="share-print-back-text">Not Finished?</button>
<button class="share-print-back-text">Share List</button>
<button class="share-print-back-text">Print List</button>
</div>
</div>
</div>
</div>
</main>
</body>

Expand Down

0 comments on commit ff7f562

Please sign in to comment.