mirror of
https://github.com/adam-benyekkou/my_portfolio.git
synced 2026-01-15 20:20:09 +00:00
Solved conflict of style between PrimeNG and Tailwind, both work together now
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<p>header-contact-links works!</p>
|
||||
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { HeaderContactLinksComponent } from './header-contact-links.component';
|
||||
|
||||
describe('HeaderContactLinksComponent', () => {
|
||||
let component: HeaderContactLinksComponent;
|
||||
let fixture: ComponentFixture<HeaderContactLinksComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [HeaderContactLinksComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(HeaderContactLinksComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-header-contact-links',
|
||||
imports: [],
|
||||
templateUrl: './header-contact-links.component.html',
|
||||
styleUrl: './header-contact-links.component.css'
|
||||
})
|
||||
export class HeaderContactLinksComponent {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p class="!bg-red-500">Adam Logo</p>
|
||||
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { HeaderLogoComponent } from './header-logo.component';
|
||||
|
||||
describe('HeaderLogoComponent', () => {
|
||||
let component: HeaderLogoComponent;
|
||||
let fixture: ComponentFixture<HeaderLogoComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [HeaderLogoComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(HeaderLogoComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-header-logo',
|
||||
imports: [],
|
||||
templateUrl: './header-logo.component.html',
|
||||
styleUrl: './header-logo.component.css',
|
||||
})
|
||||
export class HeaderLogoComponent {}
|
||||
@@ -0,0 +1,20 @@
|
||||
<nav>
|
||||
<section>
|
||||
<p-button
|
||||
label="Neural Profile"
|
||||
(onClick)="onClick()"
|
||||
></p-button>
|
||||
<p-button
|
||||
label="Execute//Directory"
|
||||
(onClick)="onClick()"
|
||||
></p-button>
|
||||
<p-button
|
||||
label="Operative History"
|
||||
(onClick)="onClick()"
|
||||
></p-button>
|
||||
<p-button
|
||||
label="Transmission Link"
|
||||
(onClick)="onClick()"
|
||||
></p-button>
|
||||
</section>
|
||||
</nav>
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
|
||||
import { ButtonModule } from 'primeng/button';
|
||||
|
||||
@Component({
|
||||
selector: 'app-header-nav-links',
|
||||
imports: [ButtonModule],
|
||||
templateUrl: './header-nav-links.component.html',
|
||||
styleUrl: './header-nav-links.component.css'
|
||||
})
|
||||
export class HeaderNavLinksComponent {
|
||||
onClick(){
|
||||
console.log('click');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<p-button
|
||||
label="Switch Theme"
|
||||
></p-button>
|
||||
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { HeaderSwitchThemeButtonComponent } from './header-switch-theme-button.component';
|
||||
|
||||
describe('HeaderSwitchThemeButtonComponent', () => {
|
||||
let component: HeaderSwitchThemeButtonComponent;
|
||||
let fixture: ComponentFixture<HeaderSwitchThemeButtonComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [HeaderSwitchThemeButtonComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(HeaderSwitchThemeButtonComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { ButtonModule } from 'primeng/button';
|
||||
|
||||
@Component({
|
||||
selector: 'app-header-switch-theme-button',
|
||||
imports: [ButtonModule],
|
||||
templateUrl: './header-switch-theme-button.component.html',
|
||||
styleUrl: './header-switch-theme-button.component.css',
|
||||
})
|
||||
export class HeaderSwitchThemeButtonComponent {}
|
||||
@@ -0,0 +1 @@
|
||||
<p>header-text-animate-section works!</p>
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-header-text-animate-section',
|
||||
imports: [],
|
||||
templateUrl: './header-text-animate-section.component.html',
|
||||
styleUrl: './header-text-animate-section.component.css'
|
||||
})
|
||||
export class HeaderTextAnimateSectionComponent {
|
||||
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
<header>
|
||||
<p>header works!</p>
|
||||
<app-header-logo />
|
||||
<app-header-text-animate-section />
|
||||
<app-header-nav-links />
|
||||
<app-header-contact-links />
|
||||
</header>
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { HeaderNavLinksComponent } from '../../../features/header-display/header-nav-links/header-nav-links.component';
|
||||
import { HeaderLogoComponent } from '../../../features/header-display/header-logo/header-logo.component';
|
||||
import { HeaderContactLinksComponent } from '../../../features/header-display/header-contact-links/header-contact-links.component';
|
||||
import { HeaderTextAnimateSectionComponent } from '../../../features/header-display/header-text-animate-section/header-text-animate-section.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-header',
|
||||
imports: [],
|
||||
imports: [
|
||||
HeaderNavLinksComponent,
|
||||
HeaderLogoComponent,
|
||||
HeaderContactLinksComponent,
|
||||
HeaderTextAnimateSectionComponent,
|
||||
],
|
||||
templateUrl: './header.component.html',
|
||||
styleUrl: './header.component.css'
|
||||
styleUrl: './header.component.css',
|
||||
})
|
||||
export class HeaderComponent {
|
||||
|
||||
}
|
||||
export class HeaderComponent {}
|
||||
|
||||
Reference in New Issue
Block a user