diff --git a/src/Client/src/app/pages/resumes/editor/editor.component.css b/src/Client/src/app/pages/resumes/editor/editor.component.css index 7230e75..ec41f96 100644 --- a/src/Client/src/app/pages/resumes/editor/editor.component.css +++ b/src/Client/src/app/pages/resumes/editor/editor.component.css @@ -1,16 +1,20 @@ input, textarea { - border: none; + border: 1px solid #444; background-color: transparent; } +textarea { + resize: vertical; +} + h1 { margin: 0; font-size: 15px; } .paper { - width: 70vw; - aspect-ratio: 1 / 1.294; + width: 800px; + aspect-ratio: 17 / 22; background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); margin: auto; @@ -18,8 +22,18 @@ h1 { border: 1px solid #ddd; } +.spacer { + margin: 0 10px; +} + +.spacer-title { + display: flex; + margin: 10px 0; +} + .columns { columns: 2; + column-gap: 10px; } .resume-header { @@ -34,11 +48,59 @@ h1 { .resume-section { break-inside: avoid; background-color: #DDDDDD; - margin: 10px; + margin-bottom: 10px; } .resume-sub-section { border: 1px solid #666666; - margin: 5px; padding: 10px; +} + +.title-text { + margin: 0; + height: 20px; +} + +.header-left { + width: 50%; + display: flex; + flex-direction: column; + justify-content: flex-start; + align-items: flex-start; +} + +.header-right { + width: 50%; + display: flex; + flex-direction: column; + justify-content: flex-start; + align-items: flex-end; +} + +.header-location input{ + width: 80px; +} + +.Add { + position: relative; + float: right; + width: 20px; + height: 20px; + background-color: #0F0; + border: none; + bottom: 20px; +} + +.Del { + position: relative; + float: right; + width: 20px; + height: 20px; + background-color: #F00; + border: none; +} + +.flex-two-row { + display: flex; + flex: 1; } \ No newline at end of file diff --git a/src/Client/src/app/pages/resumes/editor/editor.component.html b/src/Client/src/app/pages/resumes/editor/editor.component.html index 954a35a..452ec4b 100644 --- a/src/Client/src/app/pages/resumes/editor/editor.component.html +++ b/src/Client/src/app/pages/resumes/editor/editor.component.html @@ -9,139 +9,160 @@
- -
- - - - - - - - -
+
+ +
+
+ + +
+ + + + +
+
+
+ + +
+
-
- -
- - @for(experience of resume.experiences; track experience.trackUUID ){ -
- - - - - - - - - - @if(!experience.stillEmployed){ - +
+ +
+

Experience

+ @for(experience of resume.experiences; track experience.trackUUID ){ + +
+ + + + + + + + + @if(!experience.stillEmployed){ + + } + + @for(bullet of experience.experienceBullets; track bullet.trackUUID){ +
+ + +
+ } +
+ } + +
+ + + @if(resume.military !== null){ +
+

Military

+ + +

Still Serving:

+ + @if (!resume.military.stillServing){ + } - - @for(bullet of experience.experienceBullets; track bullet.trackUUID){ -
- - + + @for(military of resume.military.militaryBullets; track military.trackUUID ){ +
+ + +
}
} -
- - - @if(resume.military !== null){ + +
- - -

Still Serving:

- - @if (!resume.military.stillServing){ - - } - - @for(military of resume.military.militaryBullets; track military.trackUUID ){ +

Education

+ @for(education of resume.educations; track education.trackUUID){ +
- - - + + + + + + + + + + @if (!education.stillStudying){ + + }
} + +
+ + +
+

Skills

+ @for(skill of resume.skills; track skill.trackUUID){ + +
+
+ +
+ +
+ } +
- } - - -
- - @for(education of resume.educations; track education.trackUUID){ -
- - - - - - - - - - - @if (!education.stillStudying){ - - } -
- } -
- - -
- - @for(skill of resume.skills; track skill.trackUUID){ -
- - - -
- } -
- -
- - @for(language of resume.languages; track language.trackUUID){ -
- - - -
- } -
- + +
+

Languages

+ @for(language of resume.languages; track language.trackUUID){ + +
+ + +
+ } + +
+ - -
- - @for(cert of resume.certifications; track cert.trackUUID){ -
- - - - -
- } -
- - -
- - @for(proj of resume.projects; track proj.trackUUID){ -
- - - - -
- } + +
+

Certifications

+ @for(cert of resume.certifications; track cert.trackUUID){ + +
+
+ + +
+ +
+ } + +
+ + +
+

Projects

+ @for(proj of resume.projects; track proj.trackUUID){ + +
+
+ + +
+ +
+ } + +
diff --git a/src/Client/src/app/pages/resumes/editor/editor.component.ts b/src/Client/src/app/pages/resumes/editor/editor.component.ts index 9b276d3..8a0cf7f 100644 --- a/src/Client/src/app/pages/resumes/editor/editor.component.ts +++ b/src/Client/src/app/pages/resumes/editor/editor.component.ts @@ -6,7 +6,6 @@ import { Title } from '@angular/platform-browser'; import { CommonModule } from '@angular/common'; import { Resume, ResumeCertification, ResumeEducation, ResumeExperience, ResumeExperienceBullet, ResumeLanguage, ResumeMilitary, ResumeMilitaryBullet, ResumeProject, ResumeSkill } from 'app/models/Resume'; import { Authentication } from 'app/services/Authentication'; -import { HomeComponent } from "app/pages/home/home.component"; @Component({ selector: 'main-resume-editor', @@ -21,13 +20,9 @@ export class ResumesEditorComponent { public ErrorMsg: string = ""; - constructor( private http: HttpClient, private router: Router, private route: ActivatedRoute, private title: Title, public auth: Authentication ) { + constructor( private http: HttpClient, private router: Router, private route: ActivatedRoute, private title: Title, public auth: Authentication ) { this.title.setTitle("Resume - Editor | BoredCareers"); - if (!auth.isLoggedIn){ - router.navigate(["/"]); - } this.route.queryParams.subscribe(params => { - const ResumeID = params['ResumeID'] ? +params['ResumeID'] : null; if (ResumeID !== null){ this.http.get("api/resume?ResumeID=" + ResumeID).subscribe({ @@ -44,6 +39,17 @@ export class ResumesEditorComponent { }); }; + async ngOnInit(){ + if (!this.auth.isLoggedIn){ + this.router.navigate(["/"]); + } + } + + // Pagnation // + //////////////////////////////// + + //////////////////////////////// + SubmitForm(resume: Resume){ resume.accountID = this.auth.loggedInUser.id; this.http.post("api/resume", resume).subscribe({