Fix the number per page

This commit is contained in:
2025-10-15 17:04:56 -07:00
parent 0f557a5bc7
commit 9ee4a83759
3 changed files with 58 additions and 49 deletions
@@ -124,6 +124,9 @@ button {
} }
.jobs-per-page { .jobs-per-page {
position: absolute;
bottom: 100px;
right: 0;
display: flex; display: flex;
justify-content: end; justify-content: end;
padding: 20px; padding: 20px;
@@ -1,5 +1,7 @@
<!-- Filter Bar --> <div class="tile-frame">
<div class="top-bar">
<!-- Filter -->
<div class="tile">
<div class="top-bar-sub"> <div class="top-bar-sub">
<div> <div>
<h1>Country</h1> <h1>Country</h1>
@@ -32,7 +34,11 @@
<div> <div>
<h1>Job Type</h1> <h1>Job Type</h1>
</div> </div>
<input name="CountryCode" [(ngModel)]="currentFilter.JobType" type="text" /> <select name="JobType" [(ngModel)]="currentFilter.JobType" type="text">
@for(cur of jobTypeOptions; track cur){
<option [value]="cur">{{cur}}</option>
}
</select>
</div> </div>
<div class="top-bar-sub"> <div class="top-bar-sub">
<div> <div>
@@ -59,7 +65,6 @@
</div> </div>
<!-- Avaliable Jobs --> <!-- Avaliable Jobs -->
<div class="tile-frame">
@for (cur of JobListingPage; track cur.id){ @for (cur of JobListingPage; track cur.id){
<div class="tile"> <div class="tile">
<div class="tile-title"> <div class="tile-title">
@@ -19,6 +19,7 @@ export class JobsComponent {
public distanceOptions = [10, 25, 50, 100]; public distanceOptions = [10, 25, 50, 100];
public itemsPerPageOptions = [10, 25, 50, 100]; public itemsPerPageOptions = [10, 25, 50, 100];
public countryOptions: string[] = []; public countryOptions: string[] = [];
public jobTypeOptions: string[] = ["", "Full-time", "Part-time", "Contract", "Temporary", "Internship"];
public currentFilter: JobFilter; public currentFilter: JobFilter;
public JobListingPage: JobListing[] = []; public JobListingPage: JobListing[] = [];