import { CommonModule } from "@angular/common";
import { Component } from "@angular/core";

import { CertificationsComponent } from "../certifications/certifications.component";
import { Logos } from "../config/Logos";
import { Socials } from "../config/Socials";
import { JobComponent } from "../job/job.component";
import { LogoComponent } from "../logo/logo.component";
import { SocialComponent } from "../social/social.component";
import { StatsComponent } from "../stats/stats.component";
import { TestimonialsComponent } from "../testimonials/testimonials.component";
import { TimelineComponent } from "../timeline/timeline.component";

/**
 *
 */
@Component({
  selector: "app-home",
  standalone: true,
  imports: [
    CommonModule,
    SocialComponent,
    JobComponent,
    LogoComponent,
    TimelineComponent,
    TestimonialsComponent,
    CertificationsComponent,
    StatsComponent
  ],
  templateUrl: "./home.component.html",
  styleUrl: "./home.component.css"
})
export class HomeComponent {
  public socials = Socials;
  public logos = Logos;
  public view: "resume" | "testimonials" | "certifications" | "stats" =
    "resume";

  /**
   * @param {string} view The view to load.
   */
  changeView(view: typeof this.view) {
    this.view = view;
  }
}
