diff options
| author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-04-05 23:26:23 -0400 | 
|---|---|---|
| committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-04-05 23:26:23 -0400 | 
| commit | 0fa67503787b0080c6d398a4d8239eeb469ac107 (patch) | |
| tree | cdab898c9357a4abf4dad4b7509694e06a2e145f /ufund-ui/src/app/components/need-page | |
| parent | 1d4073c04aac11226fa3394ba84a745ed427d1cd (diff) | |
| parent | 95798c2b81da7f950850a6bb3c5be28e0323d5ba (diff) | |
| download | JellySolutions-0fa67503787b0080c6d398a4d8239eeb469ac107.tar.gz JellySolutions-0fa67503787b0080c6d398a4d8239eeb469ac107.tar.bz2 JellySolutions-0fa67503787b0080c6d398a4d8239eeb469ac107.zip  | |
Merge remote-tracking branch 'origin/main'
Diffstat (limited to 'ufund-ui/src/app/components/need-page')
| -rw-r--r-- | ufund-ui/src/app/components/need-page/need-page.component.css | 31 | ||||
| -rw-r--r-- | ufund-ui/src/app/components/need-page/need-page.component.html | 38 | 
2 files changed, 25 insertions, 44 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 f1b7f1f..6ca1350 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 @@ -4,11 +4,13 @@  }  #box { +    /*padding-top: 7.5%;*/      display: flex;      flex-direction: column;      width: 800px;      justify-content: start;      gap: 10px; +    padding: 0 10px;  }  .needName { @@ -22,32 +24,19 @@      /*margin-bottom: 20px;*/  } -.split { -    display: flex; -    flex-direction: row; -    justify-content: space-between; - - -    .left { -        display: flex; -        flex-direction: column; -        width : 50%; -    } - -    .right { -        display: flex; -        flex-direction: column; -        align-items: end; -    } -}  .need-image { -    width: 400px; -    height: auto; +    width: calc(100% + 40px); +    height: 40%; +    /*position: absolute;*/ +    left: 22.5%;      aspect-ratio: 16/9;      object-fit: cover; +    mask-image: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,.2) 80%, rgba(255,255,255,.1) 90%, transparent 100%);      border-radius: 10px; -    box-shadow: rgb(0, 40, 70) 0 0 50px; +    margin-left: -20px; +    margin-right: -20px; +    margin-bottom: -80px;  }  .urgent { 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 ff5990f..2629346 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,5 +1,6 @@  <div id="box">      @if (need) { +        <img *ngIf="need.image" alt="Need image" class="need-image" [src]="need.image"/>          <h1>{{need.name}}</h1>          <span class="needType">{{need.type}} GOAL</span>          <p>{{need.description}}</p> @@ -8,35 +9,26 @@              <span>This goal is <strong>{{(((need.current)*100) / (need.maxGoal)).toFixed(0)}}%</strong> complete!</span>          </div> +        <span><strong>Target Goal:</strong> {{(need.type === GoalType.MONETARY) ? "$" : ""}}{{need.maxGoal}}</span> -        <div class="split"> -          <div class="left"> -            <span><strong>Target Goal:</strong> {{(need.type === GoalType.MONETARY) ? "$" : ""}}{{need.maxGoal}}</span> +        <span><strong>Amount Currently Collected:</strong> {{need.type.toString() == 'MONETARY' ? '$' : ''}}{{need.current}}</span> -            <span><strong>Amount Currently Collected:</strong> {{need.type.toString() == 'MONETARY' ? '$' : ''}}{{need.current}}</span> +        <span><strong>Location:</strong> {{need.location}}</span> -            <span><strong>Location:</strong> {{need.location}}</span> +        <span><strong>Urgency: </strong> +            <span *ngIf="!need.urgent">Not urgent</span> +            <span *ngIf="need.urgent" class="urgent">URGENT</span> +        </span> -                <span><strong>Urgency: </strong> -                    <span *ngIf="!need.urgent">Not urgent</span> -                    <span *ngIf="need.urgent" class="urgent">URGENT</span> -                </span> - -            <div *ngIf="need.filterAttributes?.length"> -                    <strong>Tags:</strong> -                    <ul style="display: flex; column-gap: 24px;"> -                        <li *ngFor="let tag of need?.filterAttributes"> -                            <p>{{tag}}</p> -                        </li> -                    </ul> -                </div> -            </div> -            <div class="right"> -              <img *ngIf="need.image" alt="Need image" class="need-image" [src]="need.image"/> -            </div> +        <div *ngIf="need.filterAttributes?.length"> +            <strong>Tags:</strong> +            <ul style="display: flex; column-gap: 24px;"> +                <li *ngFor="let tag of need?.filterAttributes"> +                    <p>{{tag}}</p> +                </li> +            </ul>          </div> -          <div class="actionArea">              <button *ngIf="usersService.isHelper()" (click)="add(need)" [disabled]="usersService.inBasket(usersService.getBasket() | async, need)">                  <span class="icon">{{usersService.inBasket(usersService.getBasket() | async, need)? "check": "add" }}</span>Add To Basket  | 
