aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-page
diff options
context:
space:
mode:
Diffstat (limited to 'ufund-ui/src/app/components/need-page')
-rw-r--r--ufund-ui/src/app/components/need-page/need-page.component.css10
-rw-r--r--ufund-ui/src/app/components/need-page/need-page.component.html47
2 files changed, 35 insertions, 22 deletions
diff --git a/ufund-ui/src/app/components/need-page/need-page.component.css b/ufund-ui/src/app/components/need-page/need-page.component.css
index e69de29..a3a4014 100644
--- a/ufund-ui/src/app/components/need-page/need-page.component.css
+++ b/ufund-ui/src/app/components/need-page/need-page.component.css
@@ -0,0 +1,10 @@
+:host {
+ display: flex;
+ justify-content: center;
+}
+
+#box {
+ display: flex;
+ flex-direction: column;
+ width: 1000px;
+}
diff --git a/ufund-ui/src/app/components/need-page/need-page.component.html b/ufund-ui/src/app/components/need-page/need-page.component.html
index 004f9eb..a72167c 100644
--- a/ufund-ui/src/app/components/need-page/need-page.component.html
+++ b/ufund-ui/src/app/components/need-page/need-page.component.html
@@ -1,23 +1,26 @@
-<button routerLink="/dashboard">Back to dashboard</button>
-<h1>Viewing Need: {{need?.name}}</h1>
-<a>internal id: {{need?.id}}</a>
-<div style="display: flex; column-gap: 6px;">
- <h3>Looking for</h3>
- <h3><u>{{need?.type}}</u></h3>
- <h3>Donations.</h3>
-</div>
-<div *ngIf="need?.filterAttributes != null">
- <p>Tags:</p>
- <ul style="display: flex; column-gap: 24px;">
- <li *ngFor="let tag of need?.filterAttributes">
- <p>{{tag}}</p>
- </li>
- </ul>
-</div>
+<div id="box">
+ <h1>{{need?.name}}</h1>
+ <div>
+ <h3>Looking for <u>{{need?.type}}</u> Donations.</h3>
+ </div>
+ <div *ngIf="need?.filterAttributes">
+ <p>Tags:</p>
+ <ul style="display: flex; column-gap: 24px;">
+ <li *ngFor="let tag of need?.filterAttributes">
+ <p>{{tag}}</p>
+ </li>
+ </ul>
+ </div>
-<hr>
-<p>Location: {{need?.location}}</p>
-<p>Goal: {{need?.maxGoal}}</p>
-<p>Current: {{need?.current}}</p>
-<p>Urgent: {{need?.urgent}}</p>
-<p>This goal is <strong>{{(((need?.current ?? 0)*100) / (need?.maxGoal ?? 0)).toFixed(0)}}%</strong> complete!</p> \ No newline at end of file
+ <hr>
+ <p>Location: {{need?.location}}</p>
+ <p>Urgent: {{need?.urgent}}</p>
+ <span>{{need?.current}} / {{need?.maxGoal}}</span>
+ <progress [value]="need?.current" [max]="need?.maxGoal"></progress>
+ <span>This goal is <strong>{{(((need?.current ?? 0)*100) / (need?.maxGoal ?? 0)).toFixed(0)}}%</strong> complete!</span>
+ <div>
+ <button>Add to basket</button>
+ <button>Edit</button>
+ <button>Delete</button>
+ </div>
+</div>