Commit 93bb9745 authored by vtduong0912's avatar vtduong0912

update

parent ecf1ce08
<div class="tw-max-w-3xl tw-mx-auto"> <div class="tw-max-w-3xl tw-mx-auto">
<div class="tw-flex tw-flex-row tw-flex-wrap tw-mt-6"> <div class="tw-flex tw-flex-row tw-flex-wrap tw-mt-6">
<nz-card *ngFor="let job of jobList?.rows" class="tw-w-full tw-my-1 hover:tw-scale-105 tw-transition" [nzTitle]="job.title" [nzExtra]="companyLink"> <nz-card
<ng-template #companyLink> *ngFor="let job of jobList?.rows"
<a href="{{ job.company_url }}">{{ job.company_url }}</a> class="tw-w-full tw-my-1"
</ng-template> [nzTitle]="job.title"
<div class="tw-flex tw-flex-cols tw-flex-wrap tw-gap-3"> [nzExtra]="companyLink"
<div class="tw-pointer-events-auto tw-flex"> >
<nz-avatar class="tw-my-auto" nzSrc="{{ job.company_logo }}"></nz-avatar> <ng-template #companyLink>
</div> <a href="{{ job.company_url }}">{{ job.company_url }}</a>
<div> </ng-template>
<p>Created at: {{ job.created_at | date: 'dd/mm/YYYY'}}</p> <div class="tw-flex tw-flex-row tw-flex-wrap tw-gap-3">
<p>Company name: {{ job.company }}</p> <div class="tw-pointer-events-auto tw-flex">
<p>Location: {{ job.location }}</p> <nz-avatar
</div> class="tw-my-auto"
<div> nzSrc="{{ job.company_logo }}"
></nz-avatar>
</div>
</div>
</nz-card>
<div class="tw-w-full tw-grid tw-justify-items-center tw-my-3">
<nz-pagination (nzPageIndexChange)="onPageIndexChange($event)" [nzPageIndex]="pageIndex" [nzPageSize]="pageSize" [nzTotal]="jobList?.itemCount || 0 * 10">
</nz-pagination>
</div> </div>
</div> <div>
<p>Created at: {{ job.created_at | date : "dd/MM/YYYY" }}</p>
<p>Company name: {{ job.company }}</p>
<p>Location: {{ job.location }}</p>
</div>
<div class="tw-flex-grow tw-grid tw-justify-end ">
<button class="tw-h-10 tw-px-2 tw-border tw-rounded-lg hover:tw-bg-black hover:tw-text-white tw-transition">
Apply
</button>
</div>
</div>
</nz-card>
<div class="tw-w-full tw-grid tw-justify-items-center tw-my-3">
<nz-pagination
(nzPageIndexChange)="onPageIndexChange($event)"
[nzPageIndex]="pageIndex"
[nzPageSize]="pageSize"
[nzTotal]="jobList?.itemCount || 0 * 10"
>
</nz-pagination>
</div>
</div>
</div> </div>
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
<img src="https://yt3.googleusercontent.com/y4J_Fs5ksRlxx6_LzT1VKxVqH_T8Vyn_RN_YYgLJhuMzBS5qxTgm7NlEcMkQd3hgCpfWtYcEUg=s900-c-k-c0x00ffffff-no-rj" class="tw-border tw-rounded-full tw-w-10 tw-h-10 tw-mt-3 tw-float-left"> <img src="https://yt3.googleusercontent.com/y4J_Fs5ksRlxx6_LzT1VKxVqH_T8Vyn_RN_YYgLJhuMzBS5qxTgm7NlEcMkQd3hgCpfWtYcEUg=s900-c-k-c0x00ffffff-no-rj" class="tw-border tw-rounded-full tw-w-10 tw-h-10 tw-mt-3 tw-float-left">
</a> </a>
<ul nz-menu nzMode="horizontal"> <ul nz-menu nzMode="horizontal">
<li nz-menu-item>Home</li> <li nz-menu-item routerLink="/home" routerLinkActive="active">Home</li>
<li nz-menu-item routerLink="/jobs" routerLinkActive="active">Jobs</li>
<ng-container *ngIf="!isLoggedIn()"> <ng-container *ngIf="!isLoggedIn()">
<li nz-menu-item routerLink="/login" routerLinkActive="active">Login</li> <li nz-menu-item routerLink="/login" routerLinkActive="active">Login</li>
<li nz-menu-item>Register</li> <li nz-menu-item>Register</li>
...@@ -16,7 +17,7 @@ ...@@ -16,7 +17,7 @@
<ng-container *ngIf="isLoggedIn()"> <ng-container *ngIf="isLoggedIn()">
<div class="tw-flex-grow"> <div class="tw-flex-grow">
<div class="tw-grid tw-justify-items-end"> <div class="tw-grid tw-justify-items-end">
<img nz-dropdown nzTrigger="click" [nzDropdownMenu]="menu" src="https://avatars.githubusercontent.com/u/92918544?v=4" class="tw-border tw-rounded-full tw-w-10 tw-h-10 tw-mt-3 tw-float-left"> <img nz-dropdown nzTrigger="click" [nzDropdownMenu]="menu" src="https://avatars.githubusercontent.com/u/92918544?v=4" class="tw-border tw-rounded-full tw-w-10 tw-h-10 tw-mt-3 tw-float-left tw-cursor-pointer">
<nz-dropdown-menu #menu="nzDropdownMenu"> <nz-dropdown-menu #menu="nzDropdownMenu">
<ul nz-menu> <ul nz-menu>
<li nz-menu-item>Profile</li> <li nz-menu-item>Profile</li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment