diff --git a/src/app/app.module.ts b/src/app/app.module.ts index d4d3106..434a145 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -7,13 +7,11 @@ import { TimezoneService } from './timezone/services/timezone.service'; import { AppRoutingModule } from './app-routing.module'; import { TimezoneListComponent } from './timezone/components/timezone-list/timezone-list.component'; import { FiveoclockComponent } from './fiveoclock/fiveoclock.component'; -import { TimezoneSingleComponent } from './timezone/components/timezone-single/timezone-single.component'; import { GoogleAnalyticsService } from './services/google-analytics.service'; @NgModule({ declarations: [ AppComponent, TimezoneListComponent, - TimezoneSingleComponent, FiveoclockComponent ], imports: [ diff --git a/src/app/timezone/components/timezone-single/timezone-single.component.html b/src/app/timezone/components/timezone-single/timezone-single.component.html deleted file mode 100644 index 3ad7258..0000000 --- a/src/app/timezone/components/timezone-single/timezone-single.component.html +++ /dev/null @@ -1,8 +0,0 @@ -
- -
-

{{timezone.name}}

-

{{timezone.time?.toFormat('tt')}}

-
-
-
\ No newline at end of file diff --git a/src/app/timezone/components/timezone-single/timezone-single.component.scss b/src/app/timezone/components/timezone-single/timezone-single.component.scss deleted file mode 100644 index 7cba226..0000000 --- a/src/app/timezone/components/timezone-single/timezone-single.component.scss +++ /dev/null @@ -1,46 +0,0 @@ -.container { - display:flex; - align-items: center; - flex-direction: column; - justify-content: center; - height: 100%; - width: 100%; - margin: 0; - padding: 0; -} - -@media (max-width: 350px) { - .timezone { - font-size: 1.0em; - } - - .time { - font-size: 0.5em - } -} - -@media (min-width:350px) and (max-width: 500px) { - .timezone { - font-size: 1.5em; - } - - .time { - font-size: 1.0em - } -} - -.timezone { - font-family: "Open Sans", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; - color: whitesmoke; - margin-bottom: 0; -} - -.time { - font-family: "Open Sans", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; - color: whitesmoke; - margin-top: 0; -} - -.background { - height: 100% -} \ No newline at end of file diff --git a/src/app/timezone/components/timezone-single/timezone-single.component.spec.ts b/src/app/timezone/components/timezone-single/timezone-single.component.spec.ts deleted file mode 100644 index d9c9468..0000000 --- a/src/app/timezone/components/timezone-single/timezone-single.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { TimezoneSingleComponent } from './timezone-single.component'; - -describe('TimezoneSingleComponent', () => { - let component: TimezoneSingleComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [ TimezoneSingleComponent ] - }) - .compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(TimezoneSingleComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/timezone/components/timezone-single/timezone-single.component.ts b/src/app/timezone/components/timezone-single/timezone-single.component.ts deleted file mode 100644 index 1a3d3f9..0000000 --- a/src/app/timezone/components/timezone-single/timezone-single.component.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { animate, state, style, transition, trigger } from '@angular/animations'; -import { Component, Input, OnInit } from '@angular/core'; -import { Timezone } from '../../models/timezone.model'; - -@Component({ - selector: 'app-timezone-single', - templateUrl: './timezone-single.component.html', - styleUrls: ['./timezone-single.component.scss'], - animations:[ - trigger('displayState',[ - state('show', style({ - opacity : 1 - })), - state('hide', style({ - opacity : 0 - })), - transition('show=>hide', animate('500ms ease-out')), - transition('hide=>show', animate('500ms ease-in')) - ]) - ] -}) -export class TimezoneSingleComponent implements OnInit { - - @Input() timezone: Timezone | undefined; - @Input() state: string = 'hide'; - - constructor(){} - - ngOnInit(): void { - } - -}