diff options
| author | sowgro <tpoke.ferrari@gmail.com> | 2025-03-21 23:11:37 -0400 | 
|---|---|---|
| committer | sowgro <tpoke.ferrari@gmail.com> | 2025-03-21 23:11:37 -0400 | 
| commit | 0ba69e502b89ed2d8fe51b3b8b40eb8fba5830e1 (patch) | |
| tree | 54c2d4a5940c505cc398338ca7980020f864c375 /ufund-ui/src/app | |
| parent | 35d7c971ed47718d4dc5738edb09d62cd780dac4 (diff) | |
| download | JellySolutions-0ba69e502b89ed2d8fe51b3b8b40eb8fba5830e1.tar.gz JellySolutions-0ba69e502b89ed2d8fe51b3b8b40eb8fba5830e1.tar.bz2 JellySolutions-0ba69e502b89ed2d8fe51b3b8b40eb8fba5830e1.zip  | |
start making some css
Diffstat (limited to '')
| -rw-r--r-- | ufund-ui/src/app/app.component.css | 19 | ||||
| -rw-r--r-- | ufund-ui/src/app/app.component.html | 19 | 
2 files changed, 34 insertions, 4 deletions
diff --git a/ufund-ui/src/app/app.component.css b/ufund-ui/src/app/app.component.css index e69de29..b2dfb87 100644 --- a/ufund-ui/src/app/app.component.css +++ b/ufund-ui/src/app/app.component.css @@ -0,0 +1,19 @@ +#header { +    display: flex; +    flex-direction: row; +    justify-content: space-between; +    border-bottom: black solid 1px; +    padding: 0 10px; +    background-color: #d9d9d9; + +    h1 { +        padding: 0; +        margin: 0; +    } + +    div { +        display: flex; +        align-items: center; +        gap: 10px; +    } +} diff --git a/ufund-ui/src/app/app.component.html b/ufund-ui/src/app/app.component.html index a490237..3058117 100644 --- a/ufund-ui/src/app/app.component.html +++ b/ufund-ui/src/app/app.component.html @@ -1,6 +1,17 @@ - -<h1>jelly solutions</h1> -<span>{{currentUser$ | async}}</span> <br> <button *ngIf="currentUser$.value != 'Logged out.'" (click)="reloadPage()"> Log Out</button> -<hr> +<div id="header"> +    <span> +        <a routerLink="/"> +            <h1>Jelly Solutions</h1> +        </a> +    </span> +    <div> +        <a routerLink="/dashboard">Dashboard</a> +        <a routerLink="/cupboard">Cupboard</a> +        <a routerLink="/basket">Basket</a> +        <span>{{currentUser$ | async}}</span> +        <button *ngIf="currentUser$.value != 'Logged out.'" onclick="location.href='/';"> Log Out</button> +        <button *ngIf="currentUser$.value == 'Logged out.'" routerLink="/login"> Log In</button> +    </div> +</div>  <router-outlet />  | 
