diff --git a/src/Client/src/app/pages/main/company/jobs/jobs.component.css b/src/Client/src/app/pages/main/company/jobs/jobs.component.css deleted file mode 100644 index 6044df9..0000000 --- a/src/Client/src/app/pages/main/company/jobs/jobs.component.css +++ /dev/null @@ -1,87 +0,0 @@ -button { - width: 150px; - border-radius: 5px; - margin: 10px; - text-align: center; - padding: 15px 0; - transition: .5s; - background-color: #0000; - border: 1px solid var(--Mistox-White); - color: var(--Mistox-White); - text-decoration: none; -} - - button:hover { - background-color: #00000044; - color: var(--Mistox-Light); - } - -.full-width { - display: block; - width: 100%; - column-count: 2; -} - -.tile-frame { - display: grid; - grid-template-columns: repeat(4, 1fr); - column-gap: 20px; - padding: 20px; - width: calc(100% - 40px); -} - -.tile{ - background-color: var(--Mistox-Dark); - color: var(--Mistox-White); - break-inside: avoid; - padding: 20px; - border-radius: 20px; - margin-bottom: 20px; -} - -.jobs-frame { - width: 100%; - background-color: #8888; - border-top: 2px solid black; -} - -.post-job-frame { - display: flex; - justify-content: center; - padding: 10px 0; -} - -.tile-title { - text-align: center; - border-bottom: 1px solid; -} - -.tile-title h1 { - font-size: 40px; - margin: 5px 0; -} - -.tile-title h2 { - font-size: 14px; -} - -.tile-split { - columns: 2; - text-align: center; - padding: 10px 0; -} - -.tile-split h1 { - margin: 0; -} - -.tile-button { - display: flex; - width: 100%; - justify-content: center; -} - -.post-job-frame button { - border-color: var(--Mistox-Black); - color: var(--Mistox-Black); -} \ No newline at end of file diff --git a/src/Client/src/app/pages/main/company/jobs/jobs.component.html b/src/Client/src/app/pages/main/company/jobs/jobs.component.html deleted file mode 100644 index db11b14..0000000 --- a/src/Client/src/app/pages/main/company/jobs/jobs.component.html +++ /dev/null @@ -1,23 +0,0 @@ -
- -
- -
-
-
-

{{ cur.title }}

-

{{ cur.jobType }}

-

Is Remote: {{ cur.remote }}

-

{{ cur.salaryMin }}

-

{{ cur.salaryMax }}

-

{{ cur.city }}

-

{{ cur.stateOrRegion }}

-

{{ cur.country }}

-

{{ cur.postalCode }}

-

Posted: {{ cur.createdTime }}

-

Modified: {{ cur.modifiedTime }}

-
- - -
-
\ No newline at end of file diff --git a/src/Client/src/app/pages/main/company/jobs/jobs.component.ts b/src/Client/src/app/pages/main/company/jobs/jobs.component.ts deleted file mode 100644 index d81f192..0000000 --- a/src/Client/src/app/pages/main/company/jobs/jobs.component.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Component } from '@angular/core'; -import { HttpClient } from '@angular/common/http'; -import { FormsModule } from '@angular/forms'; -import { Router, ActivatedRoute, RouterModule } from '@angular/router'; -import { Title } from '@angular/platform-browser'; -import { CommonModule } from '@angular/common'; -import { JobListing } from 'app/models/JobListing'; -import { Authentication } from 'app/services/Authentication'; - -@Component({ - selector: 'main-company-jobs', - templateUrl: './jobs.component.html', - styleUrls: [ './jobs.component.css' ], - imports: [ FormsModule, CommonModule, RouterModule ] -}) -export class CompanyJobsComponent { - - public MyJobListings: JobListing[] = []; - public ErrorMsg: string = ""; - - constructor( private http: HttpClient, private router: Router, private route: ActivatedRoute, private title: Title, public auth: Authentication ) { - this.title.setTitle("Company - Jobs | BoredCareers"); - - this.route.queryParams.subscribe(params => { - const companyID = params['CompanyID']; - if (companyID){ - http.get("api/joblisting/company?CompanyID=" + companyID).subscribe({ - next: data => { - this.MyJobListings = data; - }, - error: err => { - this.ErrorMsg = err.error; - } - }); - }else{ - router.navigate(["/company"]); - } - }); - }; - - RemoveJobListing( JobListingID: number ){ - this.http.delete("api/joblisting?JobListingID=" + JobListingID).subscribe({ - next: data => { - window.location.reload(); - }, - error: err => { - this.ErrorMsg = err.error; - } - }); - } - -} \ No newline at end of file