├── src ├── assets │ └── .gitkeep ├── app │ ├── pages │ │ ├── add │ │ │ ├── add.component.css │ │ │ ├── add.component.html │ │ │ ├── add.component.ts │ │ │ └── add.component.spec.ts │ │ ├── signup │ │ │ ├── signup.component.css │ │ │ ├── signup.component.html │ │ │ ├── signup.component.ts │ │ │ └── signup.component.spec.ts │ │ ├── home │ │ │ ├── home.component.html │ │ │ ├── home.component.css │ │ │ ├── home.component.ts │ │ │ └── home.component.spec.ts │ │ ├── login │ │ │ ├── login.component.ts │ │ │ ├── login.component.spec.ts │ │ │ ├── login.component.html │ │ │ └── login.component.css │ │ └── details │ │ │ ├── details.component.spec.ts │ │ │ ├── details.component.ts │ │ │ ├── details.component.css │ │ │ └── details.component.html │ ├── services │ │ ├── ui │ │ │ ├── ui.service.ts │ │ │ └── ui.service.spec.ts │ │ └── weather │ │ │ ├── weather.service.spec.ts │ │ │ └── weather.service.ts │ ├── ui │ │ ├── add-card │ │ │ ├── add-card.component.ts │ │ │ ├── add-card.component.spec.ts │ │ │ ├── add-card.component.css │ │ │ └── add-card.component.html │ │ └── weather-card │ │ │ ├── weather-card.component.spec.ts │ │ │ ├── weather-card.component.ts │ │ │ ├── weather-card.component.css │ │ │ └── weather-card.component.html │ ├── app.component.ts │ ├── app-routing.module.ts │ ├── app.component.spec.ts │ ├── app.module.ts │ ├── app.component.html │ └── app.component.css ├── favicon.ico ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── tsconfig.app.json ├── tslint.json ├── styles.css ├── index.html ├── tsconfig.spec.json ├── browserslist ├── main.ts ├── test.ts ├── karma.conf.js └── polyfills.ts ├── e2e ├── src │ ├── app.po.ts │ └── app.e2e-spec.ts ├── tsconfig.e2e.json └── protractor.conf.js ├── .editorconfig ├── tsconfig.json ├── .gitignore ├── README.md ├── package.json ├── tslint.json ├── angular.json └── LICENSE /src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/pages/add/add.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/pages/signup/signup.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/pages/add/add.component.html: -------------------------------------------------------------------------------- 1 |

2 | add works! 3 |

4 | -------------------------------------------------------------------------------- /src/app/pages/signup/signup.component.html: -------------------------------------------------------------------------------- 1 |

2 | signup works! 3 |

4 | -------------------------------------------------------------------------------- /src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/weatherapp/HEAD/src/favicon.ico -------------------------------------------------------------------------------- /src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /src/app/pages/home/home.component.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "es2015", 6 | "types": [] 7 | }, 8 | "exclude": [ 9 | "src/test.ts", 10 | "**/*.spec.ts" 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getParagraphText() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/app/pages/home/home.component.css: -------------------------------------------------------------------------------- 1 | /*Home Layout*/ 2 | .main__container { 3 | display: grid; 4 | grid-template-columns: repeat(3, 1fr); 5 | grid-template-rows: repeat(auto-fill, 1fr); 6 | align-items: center; 7 | justify-items: center; 8 | height: 100%; 9 | } 10 | -------------------------------------------------------------------------------- /e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /src/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tslint.json", 3 | "rules": { 4 | "directive-selector": [ 5 | true, 6 | "attribute", 7 | "app", 8 | "camelCase" 9 | ], 10 | "component-selector": [ 11 | true, 12 | "element", 13 | "app", 14 | "kebab-case" 15 | ] 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | body { 3 | font-family: sans-serif; 4 | margin: 0; 5 | padding: 0; 6 | height: 100vh; 7 | width: 100vw; 8 | } 9 | 10 | @keyframes fadein { 11 | from { 12 | opacity: 0; 13 | } 14 | to { 15 | opacity: 1; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/app/pages/add/add.component.ts: -------------------------------------------------------------------------------- 1 | import {Component, OnInit} from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-add', 5 | templateUrl: './add.component.html', 6 | styleUrls: ['./add.component.css'] 7 | }) 8 | export class AddComponent implements OnInit { 9 | 10 | constructor() { 11 | } 12 | 13 | ngOnInit() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/app/pages/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import {Component, OnInit} from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html', 6 | styleUrls: ['./home.component.css'] 7 | }) 8 | export class HomeComponent implements OnInit { 9 | 10 | constructor() { 11 | } 12 | 13 | ngOnInit() { 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Minimus 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /e2e/src/app.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import { AppPage } from './app.po'; 2 | 3 | describe('workspace-project App', () => { 4 | let page: AppPage; 5 | 6 | beforeEach(() => { 7 | page = new AppPage(); 8 | }); 9 | 10 | it('should display welcome message', () => { 11 | page.navigateTo(); 12 | expect(page.getParagraphText()).toEqual('Welcome to app!'); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /src/app/pages/signup/signup.component.ts: -------------------------------------------------------------------------------- 1 | import {Component, OnInit} from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-signup', 5 | templateUrl: './signup.component.html', 6 | styleUrls: ['./signup.component.css'] 7 | }) 8 | export class SignupComponent implements OnInit { 9 | 10 | constructor() { 11 | } 12 | 13 | ngOnInit() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "module": "commonjs", 6 | "types": [ 7 | "jasmine", 8 | "node" 9 | ] 10 | }, 11 | "files": [ 12 | "test.ts", 13 | "polyfills.ts" 14 | ], 15 | "include": [ 16 | "**/*.spec.ts", 17 | "**/*.d.ts" 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /src/app/pages/login/login.component.ts: -------------------------------------------------------------------------------- 1 | import {Component, OnInit} from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-login', 5 | templateUrl: './login.component.html', 6 | styleUrls: ['./login.component.css'] 7 | }) 8 | export class LoginComponent implements OnInit { 9 | 10 | constructor() { 11 | } 12 | 13 | ngOnInit() { 14 | } 15 | 16 | login() { 17 | 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/browserslist: -------------------------------------------------------------------------------- 1 | # This file is currently used by autoprefixer to adjust CSS to support the below specified browsers 2 | # For additional information regarding the format and rule options, please see: 3 | # https://github.com/browserslist/browserslist#queries 4 | # For IE 9-11 support, please uncomment the last line of the file and adjust as needed 5 | > 0.5% 6 | last 2 versions 7 | Firefox ESR 8 | not dead 9 | # IE 9-11 -------------------------------------------------------------------------------- /src/app/services/ui/ui.service.ts: -------------------------------------------------------------------------------- 1 | import {Injectable} from '@angular/core'; 2 | import {BehaviorSubject} from 'rxjs'; 3 | 4 | @Injectable() 5 | export class UiService { 6 | 7 | darkModeState: BehaviorSubject; 8 | 9 | constructor() { 10 | // TODO: if the user is signed in get the default value from Firebase 11 | this.darkModeState = new BehaviorSubject(false); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import {enableProdMode} from '@angular/core'; 2 | import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; 3 | 4 | import {AppModule} from './app/app.module'; 5 | import {environment} from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.log(err)); 13 | -------------------------------------------------------------------------------- /src/app/services/ui/ui.service.spec.ts: -------------------------------------------------------------------------------- 1 | import {inject, TestBed} from '@angular/core/testing'; 2 | 3 | import {UiService} from './ui.service'; 4 | 5 | describe('UiService', () => { 6 | beforeEach(() => { 7 | TestBed.configureTestingModule({ 8 | providers: [UiService] 9 | }); 10 | }); 11 | 12 | it('should be created', inject([UiService], (service: UiService) => { 13 | expect(service).toBeTruthy(); 14 | })); 15 | }); 16 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "baseUrl": "./", 5 | "outDir": "./dist/out-tsc", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "moduleResolution": "node", 9 | "emitDecoratorMetadata": true, 10 | "experimentalDecorators": true, 11 | "target": "es5", 12 | "typeRoots": [ 13 | "node_modules/@types" 14 | ], 15 | "lib": [ 16 | "es2017", 17 | "dom" 18 | ] 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/app/services/weather/weather.service.spec.ts: -------------------------------------------------------------------------------- 1 | import {inject, TestBed} from '@angular/core/testing'; 2 | 3 | import {WeatherService} from './weather.service'; 4 | 5 | describe('WeatherService', () => { 6 | beforeEach(() => { 7 | TestBed.configureTestingModule({ 8 | providers: [WeatherService] 9 | }); 10 | }); 11 | 12 | it('should be created', inject([WeatherService], (service: WeatherService) => { 13 | expect(service).toBeTruthy(); 14 | })); 15 | }); 16 | -------------------------------------------------------------------------------- /src/app/ui/add-card/add-card.component.ts: -------------------------------------------------------------------------------- 1 | import {Component, OnInit} from '@angular/core'; 2 | import {UiService} from '../../services/ui/ui.service'; 3 | 4 | @Component({ 5 | selector: 'app-add-card', 6 | templateUrl: './add-card.component.html', 7 | styleUrls: ['./add-card.component.css'] 8 | }) 9 | export class AddCardComponent implements OnInit { 10 | 11 | darkMode: boolean; 12 | 13 | constructor(public ui: UiService) { 14 | } 15 | 16 | ngOnInit() { 17 | this.ui.darkModeState.subscribe((isDark) => { 18 | this.darkMode = isDark; 19 | }); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | 8 | # dependencies 9 | /node_modules 10 | 11 | # IDEs and editors 12 | /.idea 13 | .project 14 | .classpath 15 | .c9/ 16 | *.launch 17 | .settings/ 18 | *.sublime-workspace 19 | 20 | # IDE - VSCode 21 | .vscode/* 22 | !.vscode/settings.json 23 | !.vscode/tasks.json 24 | !.vscode/launch.json 25 | !.vscode/extensions.json 26 | 27 | # misc 28 | /.sass-cache 29 | /connect.lock 30 | /coverage 31 | /libpeerconnection.log 32 | npm-debug.log 33 | yarn-error.log 34 | testem.log 35 | /typings 36 | 37 | # System Files 38 | .DS_Store 39 | Thumbs.db 40 | -------------------------------------------------------------------------------- /src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/zone-testing'; 4 | import {getTestBed} from '@angular/core/testing'; 5 | import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing'; 6 | 7 | declare const require: any; 8 | 9 | // First, initialize the Angular testing environment. 10 | getTestBed().initTestEnvironment( 11 | BrowserDynamicTestingModule, 12 | platformBrowserDynamicTesting() 13 | ); 14 | // Then we find all the tests. 15 | const context = require.context('./', true, /\.spec\.ts$/); 16 | // And load the modules. 17 | context.keys().map(context); 18 | -------------------------------------------------------------------------------- /src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // This file can be replaced during build by using the `fileReplacements` array. 2 | // `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`. 3 | // The list of file replacements can be found in `angular.json`. 4 | 5 | export const environment = { 6 | production: false 7 | }; 8 | 9 | /* 10 | * In development mode, to ignore zone related error stack frames such as 11 | * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can 12 | * import the following file, but please comment it out in production mode 13 | * because it will have performance impact when throw error 14 | */ 15 | // import 'zone.js/dist/zone-error'; // Included with Angular CLI. 16 | -------------------------------------------------------------------------------- /src/app/pages/add/add.component.spec.ts: -------------------------------------------------------------------------------- 1 | import {async, ComponentFixture, TestBed} from '@angular/core/testing'; 2 | 3 | import {AddComponent} from './add.component'; 4 | 5 | describe('AddComponent', () => { 6 | let component: AddComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [AddComponent] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(AddComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /src/app/pages/home/home.component.spec.ts: -------------------------------------------------------------------------------- 1 | import {async, ComponentFixture, TestBed} from '@angular/core/testing'; 2 | 3 | import {HomeComponent} from './home.component'; 4 | 5 | describe('HomeComponent', () => { 6 | let component: HomeComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [HomeComponent] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(HomeComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /src/app/pages/login/login.component.spec.ts: -------------------------------------------------------------------------------- 1 | import {async, ComponentFixture, TestBed} from '@angular/core/testing'; 2 | 3 | import {LoginComponent} from './login.component'; 4 | 5 | describe('LoginComponent', () => { 6 | let component: LoginComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [LoginComponent] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(LoginComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import {Component, OnInit} from '@angular/core'; 2 | import {UiService} from './services/ui/ui.service'; 3 | 4 | @Component({ 5 | selector: 'app-root', 6 | templateUrl: './app.component.html', 7 | styleUrls: ['./app.component.css'] 8 | }) 9 | export class AppComponent implements OnInit { 10 | showMenu = false; 11 | darkModeActive: boolean; 12 | 13 | constructor(public ui: UiService) { 14 | 15 | } 16 | 17 | ngOnInit() { 18 | this.ui.darkModeState.subscribe((value) => { 19 | this.darkModeActive = value; 20 | }); 21 | } 22 | 23 | toggleMenu() { 24 | this.showMenu = !this.showMenu; 25 | } 26 | 27 | modeToggleSwitch() { 28 | this.ui.darkModeState.next(!this.darkModeActive); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/app/pages/signup/signup.component.spec.ts: -------------------------------------------------------------------------------- 1 | import {async, ComponentFixture, TestBed} from '@angular/core/testing'; 2 | 3 | import {SignupComponent} from './signup.component'; 4 | 5 | describe('SignupComponent', () => { 6 | let component: SignupComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [SignupComponent] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(SignupComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /src/app/pages/details/details.component.spec.ts: -------------------------------------------------------------------------------- 1 | import {async, ComponentFixture, TestBed} from '@angular/core/testing'; 2 | 3 | import {DetailsComponent} from './details.component'; 4 | 5 | describe('DetailsComponent', () => { 6 | let component: DetailsComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [DetailsComponent] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(DetailsComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /src/app/ui/add-card/add-card.component.spec.ts: -------------------------------------------------------------------------------- 1 | import {async, ComponentFixture, TestBed} from '@angular/core/testing'; 2 | 3 | import {AddCardComponent} from './add-card.component'; 4 | 5 | describe('AddCardComponent', () => { 6 | let component: AddCardComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [AddCardComponent] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(AddCardComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /src/app/ui/weather-card/weather-card.component.spec.ts: -------------------------------------------------------------------------------- 1 | import {async, ComponentFixture, TestBed} from '@angular/core/testing'; 2 | 3 | import {WeatherCardComponent} from './weather-card.component'; 4 | 5 | describe('WeatherCardComponent', () => { 6 | let component: WeatherCardComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [WeatherCardComponent] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(WeatherCardComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /e2e/protractor.conf.js: -------------------------------------------------------------------------------- 1 | // Protractor configuration file, see link for more information 2 | // https://github.com/angular/protractor/blob/master/lib/config.ts 3 | 4 | const { SpecReporter } = require('jasmine-spec-reporter'); 5 | 6 | exports.config = { 7 | allScriptsTimeout: 11000, 8 | specs: [ 9 | './src/**/*.e2e-spec.ts' 10 | ], 11 | capabilities: { 12 | 'browserName': 'chrome' 13 | }, 14 | directConnect: true, 15 | baseUrl: 'http://localhost:4200/', 16 | framework: 'jasmine', 17 | jasmineNodeOpts: { 18 | showColors: true, 19 | defaultTimeoutInterval: 30000, 20 | print: function() {} 21 | }, 22 | onPrepare() { 23 | require('ts-node').register({ 24 | project: require('path').join(__dirname, './tsconfig.e2e.json') 25 | }); 26 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); 27 | } 28 | }; -------------------------------------------------------------------------------- /src/app/pages/login/login.component.html: -------------------------------------------------------------------------------- 1 |
2 | 20 |
21 | -------------------------------------------------------------------------------- /src/app/app-routing.module.ts: -------------------------------------------------------------------------------- 1 | import {NgModule} from '@angular/core'; 2 | import {RouterModule, Routes} from '@angular/router'; 3 | import {HomeComponent} from './pages/home/home.component'; 4 | import {DetailsComponent} from './pages/details/details.component'; 5 | import {AddComponent} from './pages/add/add.component'; 6 | import {LoginComponent} from './pages/login/login.component'; 7 | import {SignupComponent} from './pages/signup/signup.component'; 8 | 9 | const routes: Routes = [ 10 | {path: '', component: HomeComponent}, 11 | {path: 'details/:city', component: DetailsComponent}, 12 | {path: 'add', component: AddComponent}, 13 | {path: 'login', component: LoginComponent}, 14 | {path: 'signup', component: SignupComponent}, 15 | ]; 16 | 17 | @NgModule({ 18 | imports: [RouterModule.forRoot(routes)], 19 | exports: [RouterModule] 20 | }) 21 | export class AppRoutingModule { 22 | } 23 | -------------------------------------------------------------------------------- /src/app/ui/add-card/add-card.component.css: -------------------------------------------------------------------------------- 1 | .add__card { 2 | background-color: #ffffff; 3 | box-shadow: 0 0 2rem rgba(0, 0, 255, 0.1); 4 | display: grid; 5 | grid-template-columns: 1fr; 6 | grid-template-rows: 1fr 1fr; 7 | padding: 2rem; 8 | margin: 2rem; 9 | width: 19rem; 10 | height: 30rem; 11 | justify-items: center; 12 | cursor: pointer; 13 | border-radius: 1.75rem; 14 | animation: fadein 1.25s ease-in-out 0ms 1; 15 | color: #443282; 16 | } 17 | 18 | .add__card-dark { 19 | background: linear-gradient(to bottom, #711B86, #00057A); 20 | color: white; 21 | } 22 | 23 | .card__title { 24 | text-transform: uppercase; 25 | letter-spacing: 0.1rem; 26 | } 27 | 28 | .city__illustration { 29 | width: 20rem; 30 | } 31 | 32 | .body__container { 33 | align-self: end; 34 | display: flex; 35 | justify-content: space-between; 36 | align-items: center; 37 | flex-flow: column; 38 | } 39 | 40 | .add__icon { 41 | width: 10rem; 42 | margin-bottom: 1.15rem; 43 | } 44 | -------------------------------------------------------------------------------- /src/karma.conf.js: -------------------------------------------------------------------------------- 1 | // Karma configuration file, see link for more information 2 | // https://karma-runner.github.io/1.0/config/configuration-file.html 3 | 4 | module.exports = function (config) { 5 | config.set({ 6 | basePath: '', 7 | frameworks: ['jasmine', '@angular-devkit/build-angular'], 8 | plugins: [ 9 | require('karma-jasmine'), 10 | require('karma-chrome-launcher'), 11 | require('karma-jasmine-html-reporter'), 12 | require('karma-coverage-istanbul-reporter'), 13 | require('@angular-devkit/build-angular/plugins/karma') 14 | ], 15 | client: { 16 | clearContext: false // leave Jasmine Spec Runner output visible in browser 17 | }, 18 | coverageIstanbulReporter: { 19 | dir: require('path').join(__dirname, '../coverage'), 20 | reports: ['html', 'lcovonly'], 21 | fixWebpackSourcePaths: true 22 | }, 23 | reporters: ['progress', 'kjhtml'], 24 | port: 9876, 25 | colors: true, 26 | logLevel: config.LOG_INFO, 27 | autoWatch: true, 28 | browsers: ['Chrome'], 29 | singleRun: false 30 | }); 31 | }; -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Minimus 2 | 3 | This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.0.0. 4 | 5 | ## Development server 6 | 7 | Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. 8 | 9 | ## Code scaffolding 10 | 11 | Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. 12 | 13 | ## Build 14 | 15 | Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. 16 | 17 | ## Running unit tests 18 | 19 | Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). 20 | 21 | ## Running end-to-end tests 22 | 23 | Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). 24 | 25 | ## Further help 26 | 27 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 28 | -------------------------------------------------------------------------------- /src/app/app.component.spec.ts: -------------------------------------------------------------------------------- 1 | import {async, TestBed} from '@angular/core/testing'; 2 | import {RouterTestingModule} from '@angular/router/testing'; 3 | import {AppComponent} from './app.component'; 4 | 5 | describe('AppComponent', () => { 6 | beforeEach(async(() => { 7 | TestBed.configureTestingModule({ 8 | imports: [ 9 | RouterTestingModule 10 | ], 11 | declarations: [ 12 | AppComponent 13 | ], 14 | }).compileComponents(); 15 | })); 16 | it('should create the app', async(() => { 17 | const fixture = TestBed.createComponent(AppComponent); 18 | const app = fixture.debugElement.componentInstance; 19 | expect(app).toBeTruthy(); 20 | })); 21 | it(`should have as title 'app'`, async(() => { 22 | const fixture = TestBed.createComponent(AppComponent); 23 | const app = fixture.debugElement.componentInstance; 24 | expect(app.title).toEqual('app'); 25 | })); 26 | it('should render title in a h1 tag', async(() => { 27 | const fixture = TestBed.createComponent(AppComponent); 28 | fixture.detectChanges(); 29 | const compiled = fixture.debugElement.nativeElement; 30 | expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!'); 31 | })); 32 | }); 33 | -------------------------------------------------------------------------------- /src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import {BrowserModule} from '@angular/platform-browser'; 2 | import {NgModule} from '@angular/core'; 3 | 4 | import {AppRoutingModule} from './app-routing.module'; 5 | import {AppComponent} from './app.component'; 6 | 7 | import {HomeComponent} from './pages/home/home.component'; 8 | import {DetailsComponent} from './pages/details/details.component'; 9 | import {WeatherService} from './services/weather/weather.service'; 10 | import {HttpClientModule} from '@angular/common/http'; 11 | import {WeatherCardComponent} from './ui/weather-card/weather-card.component'; 12 | import {AddCardComponent} from './ui/add-card/add-card.component'; 13 | import {AddComponent} from './pages/add/add.component'; 14 | import {LoginComponent} from './pages/login/login.component'; 15 | import {SignupComponent} from './pages/signup/signup.component'; 16 | import {UiService} from './services/ui/ui.service'; 17 | 18 | @NgModule({ 19 | declarations: [ 20 | AppComponent, 21 | HomeComponent, 22 | DetailsComponent, 23 | WeatherCardComponent, 24 | AddCardComponent, 25 | AddComponent, 26 | LoginComponent, 27 | SignupComponent, 28 | AddCardComponent 29 | ], 30 | imports: [ 31 | BrowserModule, 32 | AppRoutingModule, 33 | HttpClientModule, 34 | ], 35 | providers: [ 36 | WeatherService, 37 | UiService 38 | ], 39 | bootstrap: [AppComponent] 40 | }) 41 | export class AppModule { 42 | } 43 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "minimus", 3 | "version": "1.0.0", 4 | "author": "Hamed Baatour", 5 | "scripts": { 6 | "ng": "ng", 7 | "start": "ng serve", 8 | "build": "ng build", 9 | "test": "ng test", 10 | "lint": "ng lint", 11 | "e2e": "ng e2e" 12 | }, 13 | "private": true, 14 | "dependencies": { 15 | "@angular/animations": "^6.0.0", 16 | "@angular/common": "^6.0.0", 17 | "@angular/compiler": "^6.0.0", 18 | "@angular/core": "^6.0.0", 19 | "@angular/forms": "^6.0.0", 20 | "@angular/http": "^6.0.0", 21 | "@angular/platform-browser": "^6.0.0", 22 | "@angular/platform-browser-dynamic": "^6.0.0", 23 | "@angular/router": "^6.0.0", 24 | "core-js": "^2.5.4", 25 | "rxjs": "^6.0.0", 26 | "zone.js": "^0.8.26" 27 | }, 28 | "devDependencies": { 29 | "@angular/compiler-cli": "^6.0.0", 30 | "@angular-devkit/build-angular": "~0.6.0", 31 | "typescript": "~2.7.2", 32 | "@angular/cli": "~6.0.0", 33 | "@angular/language-service": "^6.0.0", 34 | "@types/jasmine": "~2.8.6", 35 | "@types/jasminewd2": "~2.0.3", 36 | "@types/node": "~8.9.4", 37 | "codelyzer": "~4.2.1", 38 | "jasmine-core": "~2.99.1", 39 | "jasmine-spec-reporter": "~4.2.1", 40 | "karma": "~1.7.1", 41 | "karma-chrome-launcher": "~2.2.0", 42 | "karma-coverage-istanbul-reporter": "~1.4.2", 43 | "karma-jasmine": "~1.1.1", 44 | "karma-jasmine-html-reporter": "^0.2.2", 45 | "protractor": "~5.3.0", 46 | "ts-node": "~5.0.1", 47 | "tslint": "~5.9.1" 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/app/ui/weather-card/weather-card.component.ts: -------------------------------------------------------------------------------- 1 | import {Component, OnDestroy, OnInit} from '@angular/core'; 2 | import {Router} from '@angular/router'; 3 | import {WeatherService} from '../../services/weather/weather.service'; 4 | import {UiService} from '../../services/ui/ui.service'; 5 | 6 | @Component({ 7 | selector: 'app-weather-card', 8 | templateUrl: './weather-card.component.html', 9 | styleUrls: ['./weather-card.component.css'] 10 | }) 11 | export class WeatherCardComponent implements OnInit, OnDestroy { 12 | 13 | condition: string; 14 | currentTemp: number; 15 | maxTemp: number; 16 | minTemp: number; 17 | darkMode: boolean; 18 | 19 | constructor(public weather: WeatherService, 20 | public router: Router, 21 | public ui: UiService) { 22 | } 23 | 24 | ngOnInit() { 25 | this.ui.darkModeState.subscribe((isDark) => { 26 | this.darkMode = isDark; 27 | }); 28 | 29 | this.weather.getWeatherState('Paris') 30 | .subscribe((data: string) => { 31 | this.condition = data; 32 | }); 33 | 34 | this.weather.getCurrentTemp('Paris').subscribe((data: number) => { 35 | this.currentTemp = data; 36 | }); 37 | this.weather.getMinTemp('Paris').subscribe((data: number) => { 38 | this.minTemp = data; 39 | }); 40 | this.weather.getMaxTemp('Paris').subscribe((data: number) => { 41 | this.maxTemp = data; 42 | }); 43 | } 44 | 45 | ngOnDestroy() { 46 | 47 | } 48 | 49 | openDetails() { 50 | this.router.navigateByUrl('/details/paris'); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /src/app/pages/login/login.component.css: -------------------------------------------------------------------------------- 1 | .main__container { 2 | background-color: #0c1066; 3 | height: 100vh; 4 | width: 100vw; 5 | display: flex; 6 | justify-content: center; 7 | align-items: center; 8 | overflow: hidden; 9 | } 10 | 11 | .login-card { 12 | display: flex; 13 | background-color: #ffffff; 14 | border-radius: 10px; 15 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); 16 | width: 85%; 17 | height: 80%; 18 | } 19 | 20 | .login-welcome-screen { 21 | border-top-left-radius: 10px; 22 | border-bottom-left-radius: 10px; 23 | display: flex; 24 | justify-content: center; 25 | align-items: center; 26 | flex: 5 5; 27 | background: linear-gradient(#42A8F2, #7611f9); 28 | } 29 | 30 | .login-content { 31 | flex: 3 3; 32 | display: flex; 33 | flex-flow: column; 34 | justify-content: center; 35 | align-items: center; 36 | } 37 | 38 | .login-form { 39 | display: flex; 40 | flex-flow: column; 41 | width: 80%; 42 | } 43 | 44 | .login__illustration { 45 | height: 80%; 46 | width: 80%; 47 | } 48 | 49 | .login-welcome-text { 50 | color: #39437a; 51 | letter-spacing: 0.03rem; 52 | margin-bottom: 6rem; 53 | animation-duration: 2s; 54 | } 55 | 56 | .login-input { 57 | margin: 0.75rem 0; 58 | padding: 1rem; 59 | border-radius: 2rem; 60 | outline: none; 61 | border: none; 62 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.05); 63 | animation-duration: 2s; 64 | } 65 | 66 | .login-btn { 67 | background: linear-gradient(#4fffa1, #4ff0ff); 68 | padding: 1rem; 69 | border-radius: 2rem; 70 | outline: none; 71 | border: none; 72 | color: white; 73 | font-size: 1.1rem; 74 | cursor: pointer; 75 | margin-top: 1rem; 76 | animation-duration: 2s; 77 | } 78 | 79 | .login-btn:hover { 80 | background: linear-gradient(to right, #e21649, #ffb600); 81 | } 82 | 83 | .login-input::placeholder { 84 | color: #39437a; 85 | font-size: 0.9rem; 86 | } 87 | 88 | .signup-notice { 89 | margin-top: 1rem; 90 | display: flex; 91 | font-size: 0.8rem; 92 | } 93 | 94 | .signup-link { 95 | text-decoration: none; 96 | color: #ff3a82; 97 | } 98 | -------------------------------------------------------------------------------- /src/app/ui/weather-card/weather-card.component.css: -------------------------------------------------------------------------------- 1 | /* 2 | ==================== 3 | Weather Card Styling 4 | ==================== 5 | */ 6 | .weather__card { 7 | display: grid; 8 | grid-template-columns: 1fr; 9 | grid-template-rows: 1fr 1fr 1fr; 10 | box-shadow: 0 0 2rem rgba(0, 0, 255, 0.1); 11 | justify-items: center; 12 | padding: 2rem; 13 | margin: 2rem; 14 | width: 19rem; 15 | height: 30rem; 16 | cursor: pointer; 17 | background-color: white; 18 | border-radius: 1.75rem; 19 | animation: fadein 1.25s ease-in-out 0ms 1; 20 | } 21 | 22 | .weather__card-dark { 23 | background: linear-gradient(to bottom, #711B86, #00057A); 24 | color: white; 25 | } 26 | 27 | .city-name__text { 28 | text-transform: uppercase; 29 | font-size: 1.4rem; 30 | letter-spacing: 0.1rem; 31 | margin-bottom: 1rem; 32 | } 33 | 34 | .temperature__text { 35 | align-self: end; 36 | width: 100%; 37 | font-size: 4rem; 38 | font-weight: 100; 39 | letter-spacing: 0.1rem; 40 | } 41 | 42 | .temperature-metric__text { 43 | text-align: start; 44 | font-size: 3rem; 45 | } 46 | 47 | .min-max__container { 48 | display: grid; 49 | grid-template-rows: 1fr; 50 | grid-template-columns: 1fr 1fr; 51 | align-items: center; 52 | } 53 | 54 | .min__container, .max__container { 55 | margin: 1rem 3rem; 56 | display: grid; 57 | grid-template-columns: 1fr; 58 | grid-template-rows: 1fr 1fr; 59 | } 60 | 61 | .min-arrow__icon, .max-arrow__icon { 62 | height: 1.25rem; 63 | margin: auto; 64 | } 65 | 66 | .max-arrow__icon { 67 | margin-bottom: -0.05rem; 68 | } 69 | 70 | .weather-condition__text { 71 | display: block; 72 | font-size: 1rem; 73 | text-transform: uppercase; 74 | letter-spacing: 0.1rem; 75 | text-align: center; 76 | } 77 | 78 | .max__text { 79 | color: #FF0070; 80 | } 81 | 82 | .min__text { 83 | color: #00FF9B; 84 | } 85 | 86 | .max__text, .min__text { 87 | font-size: 1rem; 88 | text-align: center; 89 | } 90 | 91 | .max-temperature__text, .min-temperature__text { 92 | text-align: center; 93 | font-size: 2rem; 94 | } 95 | 96 | .weather-icon__container { 97 | width: 10rem; 98 | margin-bottom: 2rem; 99 | display: flex; 100 | justify-content: center; 101 | } 102 | 103 | .weather-icon__container > svg { 104 | width: 10rem; 105 | } 106 | 107 | -------------------------------------------------------------------------------- /src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html 15 | */ 16 | /*************************************************************************************************** 17 | * BROWSER POLYFILLS 18 | */ 19 | /** IE9, IE10 and IE11 requires all of the following polyfills. **/ 20 | // import 'core-js/es6/symbol'; 21 | // import 'core-js/es6/object'; 22 | // import 'core-js/es6/function'; 23 | // import 'core-js/es6/parse-int'; 24 | // import 'core-js/es6/parse-float'; 25 | // import 'core-js/es6/number'; 26 | // import 'core-js/es6/math'; 27 | // import 'core-js/es6/string'; 28 | // import 'core-js/es6/date'; 29 | // import 'core-js/es6/array'; 30 | // import 'core-js/es6/regexp'; 31 | // import 'core-js/es6/map'; 32 | // import 'core-js/es6/weak-map'; 33 | // import 'core-js/es6/set'; 34 | /** IE10 and IE11 requires the following for NgClass support on SVG elements */ 35 | // import 'classlist.js'; // Run `npm install --save classlist.js`. 36 | /** IE10 and IE11 requires the following for the Reflect API. */ 37 | // import 'core-js/es6/reflect'; 38 | /** Evergreen browsers require these. **/ 39 | // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. 40 | import 'core-js/es7/reflect'; 41 | /** 42 | * Web Animations `@angular/platform-browser/animations` 43 | * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. 44 | * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). 45 | **/ 46 | // import 'web-animations-js'; // Run `npm install --save web-animations-js`. 47 | /** 48 | * By default, zone.js will patch all possible macroTask and DomEvents 49 | * user can disable parts of macroTask/DomEvents patch by setting following flags 50 | */ 51 | // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame 52 | // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick 53 | // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames 54 | /* 55 | * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js 56 | * with the following flag, it will bypass `zone.js` patch for IE/Edge 57 | */ 58 | // (window as any).__Zone_enable_cross_context_check = true; 59 | /*************************************************************************************************** 60 | * Zone JS is required by default for Angular itself. 61 | */ 62 | import 'zone.js/dist/zone'; // Included with Angular CLI. 63 | 64 | 65 | /*************************************************************************************************** 66 | * APPLICATION IMPORTS 67 | */ 68 | -------------------------------------------------------------------------------- /src/app/pages/details/details.component.ts: -------------------------------------------------------------------------------- 1 | import {Component, OnInit} from '@angular/core'; 2 | import {ActivatedRoute} from '@angular/router'; 3 | import {WeatherService} from '../../services/weather/weather.service'; 4 | 5 | @Component({ 6 | selector: 'app-details', 7 | templateUrl: './details.component.html', 8 | styleUrls: ['./details.component.css'] 9 | }) 10 | export class DetailsComponent implements OnInit { 11 | 12 | city: string; 13 | state: string; 14 | temp: number; 15 | hum: number; 16 | wind: number; 17 | 18 | today: string; 19 | 20 | day1Name: string; 21 | day1State: string; 22 | day1Temp: number; 23 | 24 | 25 | day2Name: string; 26 | day2State: string; 27 | day2Temp: number; 28 | 29 | day3Name: string; 30 | day3State: string; 31 | day3Temp: number; 32 | 33 | day4Name: string; 34 | day4State: string; 35 | day4Temp: number; 36 | 37 | day5Name: string; 38 | day5State: string; 39 | day5Temp: number; 40 | 41 | constructor(public activeRouter: ActivatedRoute, public weather: WeatherService) { 42 | } 43 | 44 | ngOnInit() { 45 | 46 | const todayNumberInWeek = new Date().getDay(); 47 | const days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; 48 | this.today = days[todayNumberInWeek]; 49 | 50 | this.activeRouter.paramMap.subscribe((route: any) => { 51 | 52 | this.city = route.params.city; 53 | this.weather.getWeatherState(this.city).subscribe((state) => this.state = state); 54 | this.weather.getCurrentTemp(this.city).subscribe((temperature) => this.temp = temperature); 55 | this.weather.getCurrentHum(this.city).subscribe((humidity) => this.hum = humidity); 56 | this.weather.getCurrentWind(this.city).subscribe((windspeed) => this.wind = windspeed); 57 | this.weather.getForecast(this.city).subscribe((data: any) => { 58 | console.log(data); 59 | for (let i = 0; i < data.length; i++) { 60 | const date = new Date(data[i].dt_txt).getDay(); 61 | console.log(days[date]); 62 | if (((date === todayNumberInWeek + 1) || (todayNumberInWeek === 6 && date === 0)) && !this.day1Name) { 63 | this.day1Name = days[date]; 64 | this.day1State = data[i].weather[0].main; 65 | this.day1Temp = Math.round(data[i].main.temp); 66 | 67 | } else if (!!this.day1Name && !this.day2Name && days[date] !== this.day1Name) { 68 | this.day2Name = days[date]; 69 | this.day2State = data[i].weather[0].main; 70 | this.day2Temp = Math.round(data[i].main.temp); 71 | 72 | } else if (!!this.day2Name && !this.day3Name && days[date] !== this.day2Name) { 73 | this.day3Name = days[date]; 74 | this.day3State = data[i].weather[0].main; 75 | this.day3Temp = Math.round(data[i].main.temp); 76 | 77 | } else if (!!this.day3Name && !this.day4Name && days[date] !== this.day3Name) { 78 | this.day4Name = days[date]; 79 | this.day4State = data[i].weather[0].main; 80 | this.day4Temp = Math.round(data[i].main.temp); 81 | 82 | } else if (!!this.day4Name && !this.day5Name && days[date] !== this.day4Name) { 83 | this.day5Name = days[date]; 84 | this.day5State = data[i].weather[0].main; 85 | this.day5Temp = Math.round(data[i].main.temp); 86 | 87 | } 88 | } 89 | }); 90 | 91 | }); 92 | 93 | } 94 | 95 | } 96 | 97 | -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rulesDirectory": [ 3 | "node_modules/codelyzer" 4 | ], 5 | "rules": { 6 | "arrow-return-shorthand": true, 7 | "callable-types": true, 8 | "class-name": true, 9 | "comment-format": [ 10 | true, 11 | "check-space" 12 | ], 13 | "curly": true, 14 | "deprecation": { 15 | "severity": "warn" 16 | }, 17 | "eofline": true, 18 | "forin": true, 19 | "import-blacklist": [ 20 | true, 21 | "rxjs/Rx" 22 | ], 23 | "import-spacing": true, 24 | "indent": [ 25 | true, 26 | "spaces" 27 | ], 28 | "interface-over-type-literal": true, 29 | "label-position": true, 30 | "max-line-length": [ 31 | true, 32 | 140 33 | ], 34 | "member-access": false, 35 | "member-ordering": [ 36 | true, 37 | { 38 | "order": [ 39 | "static-field", 40 | "instance-field", 41 | "static-method", 42 | "instance-method" 43 | ] 44 | } 45 | ], 46 | "no-arg": true, 47 | "no-bitwise": true, 48 | "no-console": [ 49 | true, 50 | "debug", 51 | "info", 52 | "time", 53 | "timeEnd", 54 | "trace" 55 | ], 56 | "no-construct": true, 57 | "no-debugger": true, 58 | "no-duplicate-super": true, 59 | "no-empty": false, 60 | "no-empty-interface": true, 61 | "no-eval": true, 62 | "no-inferrable-types": [ 63 | true, 64 | "ignore-params" 65 | ], 66 | "no-misused-new": true, 67 | "no-non-null-assertion": true, 68 | "no-shadowed-variable": true, 69 | "no-string-literal": false, 70 | "no-string-throw": true, 71 | "no-switch-case-fall-through": true, 72 | "no-trailing-whitespace": true, 73 | "no-unnecessary-initializer": true, 74 | "no-unused-expression": true, 75 | "no-use-before-declare": true, 76 | "no-var-keyword": true, 77 | "object-literal-sort-keys": false, 78 | "one-line": [ 79 | true, 80 | "check-open-brace", 81 | "check-catch", 82 | "check-else", 83 | "check-whitespace" 84 | ], 85 | "prefer-const": true, 86 | "quotemark": [ 87 | true, 88 | "single" 89 | ], 90 | "radix": true, 91 | "semicolon": [ 92 | true, 93 | "always" 94 | ], 95 | "triple-equals": [ 96 | true, 97 | "allow-null-check" 98 | ], 99 | "typedef-whitespace": [ 100 | true, 101 | { 102 | "call-signature": "nospace", 103 | "index-signature": "nospace", 104 | "parameter": "nospace", 105 | "property-declaration": "nospace", 106 | "variable-declaration": "nospace" 107 | } 108 | ], 109 | "unified-signatures": true, 110 | "variable-name": false, 111 | "whitespace": [ 112 | true, 113 | "check-branch", 114 | "check-decl", 115 | "check-operator", 116 | "check-separator", 117 | "check-type" 118 | ], 119 | "no-output-on-prefix": true, 120 | "use-input-property-decorator": true, 121 | "use-output-property-decorator": true, 122 | "use-host-property-decorator": true, 123 | "no-input-rename": true, 124 | "no-output-rename": true, 125 | "use-life-cycle-interface": true, 126 | "use-pipe-transform-interface": true, 127 | "component-class-suffix": true, 128 | "directive-class-suffix": true 129 | } 130 | } 131 | -------------------------------------------------------------------------------- /src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 23 | 24 |
25 |
26 | 27 |
28 | 30 | 31 | 34 | 35 | 38 | 41 | 44 | 45 | 46 | 47 | 48 | 49 | 52 | Minimis 53 | 54 | 55 | 56 |
57 | 58 |

Today

59 | 60 | 61 |
62 | Light 63 | 64 | 69 | 70 | 71 | Dark 72 |
73 | 74 |
75 | 76 | 77 | 78 | 79 |
80 |
81 | 82 |
83 | 84 | 85 | 86 |
87 | Copyright © 2018 Minimus 88 |
89 |
90 | -------------------------------------------------------------------------------- /angular.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 3 | "version": 1, 4 | "newProjectRoot": "projects", 5 | "projects": { 6 | "Minimus": { 7 | "root": "", 8 | "sourceRoot": "src", 9 | "projectType": "application", 10 | "prefix": "app", 11 | "schematics": {}, 12 | "architect": { 13 | "build": { 14 | "builder": "@angular-devkit/build-angular:browser", 15 | "options": { 16 | "outputPath": "dist/Minimus", 17 | "index": "src/index.html", 18 | "main": "src/main.ts", 19 | "polyfills": "src/polyfills.ts", 20 | "tsConfig": "src/tsconfig.app.json", 21 | "assets": [ 22 | "src/favicon.ico", 23 | "src/assets" 24 | ], 25 | "styles": [ 26 | "src/styles.css" 27 | ], 28 | "scripts": [] 29 | }, 30 | "configurations": { 31 | "production": { 32 | "fileReplacements": [ 33 | { 34 | "replace": "src/environments/environment.ts", 35 | "with": "src/environments/environment.prod.ts" 36 | } 37 | ], 38 | "optimization": true, 39 | "outputHashing": "all", 40 | "sourceMap": false, 41 | "extractCss": true, 42 | "namedChunks": false, 43 | "aot": true, 44 | "extractLicenses": true, 45 | "vendorChunk": false, 46 | "buildOptimizer": true 47 | } 48 | } 49 | }, 50 | "serve": { 51 | "builder": "@angular-devkit/build-angular:dev-server", 52 | "options": { 53 | "browserTarget": "Minimus:build" 54 | }, 55 | "configurations": { 56 | "production": { 57 | "browserTarget": "Minimus:build:production" 58 | } 59 | } 60 | }, 61 | "extract-i18n": { 62 | "builder": "@angular-devkit/build-angular:extract-i18n", 63 | "options": { 64 | "browserTarget": "Minimus:build" 65 | } 66 | }, 67 | "test": { 68 | "builder": "@angular-devkit/build-angular:karma", 69 | "options": { 70 | "main": "src/test.ts", 71 | "polyfills": "src/polyfills.ts", 72 | "tsConfig": "src/tsconfig.spec.json", 73 | "karmaConfig": "src/karma.conf.js", 74 | "styles": [ 75 | "styles.css" 76 | ], 77 | "scripts": [], 78 | "assets": [ 79 | "src/favicon.ico", 80 | "src/assets" 81 | ] 82 | } 83 | }, 84 | "lint": { 85 | "builder": "@angular-devkit/build-angular:tslint", 86 | "options": { 87 | "tsConfig": [ 88 | "src/tsconfig.app.json", 89 | "src/tsconfig.spec.json" 90 | ], 91 | "exclude": [ 92 | "**/node_modules/**" 93 | ] 94 | } 95 | } 96 | } 97 | }, 98 | "Minimus-e2e": { 99 | "root": "e2e/", 100 | "projectType": "application", 101 | "architect": { 102 | "e2e": { 103 | "builder": "@angular-devkit/build-angular:protractor", 104 | "options": { 105 | "protractorConfig": "e2e/protractor.conf.js", 106 | "devServerTarget": "Minimus:serve" 107 | } 108 | }, 109 | "lint": { 110 | "builder": "@angular-devkit/build-angular:tslint", 111 | "options": { 112 | "tsConfig": "e2e/tsconfig.e2e.json", 113 | "exclude": [ 114 | "**/node_modules/**" 115 | ] 116 | } 117 | } 118 | } 119 | } 120 | }, 121 | "defaultProject": "Minimus" 122 | } -------------------------------------------------------------------------------- /src/app/ui/weather-card/weather-card.component.html: -------------------------------------------------------------------------------- 1 |
2 | Paris 3 |
4 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | 28 | 30 | 32 | 34 | 36 | 38 | 40 | 42 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 |
53 |
54 | {{ currentTemp }} 55 | ° 56 | {{ condition }} 57 |
58 |
59 |
60 | 61 | 62 | 63 | 64 | {{ minTemp }} 65 | Min 66 |
67 |
68 | 69 | 70 | 71 | {{ maxTemp }} 72 | Max 73 |
74 |
75 |
76 | -------------------------------------------------------------------------------- /src/app/services/weather/weather.service.ts: -------------------------------------------------------------------------------- 1 | import {Injectable} from '@angular/core'; 2 | import {HttpClient} from '@angular/common/http'; 3 | import {Subject} from 'rxjs'; 4 | 5 | @Injectable() 6 | export class WeatherService { 7 | 8 | constructor(public http: HttpClient) { 9 | } 10 | 11 | getCityWeatherByName(city: string, metric: 'metric' | 'imperial' = 'metric'): Subject { 12 | const dataSub = new Subject(); 13 | this.http.get( 14 | `https://api.openweathermap.org/data/2.5/weather?q=${city}&units=${metric}&APPID=952d6b1a52fe15a7b901720074680562`) 15 | .subscribe((data) => { 16 | dataSub.next(data['weather']); 17 | }, (err) => { 18 | console.log(err); 19 | }); 20 | return dataSub; 21 | } 22 | 23 | getCitiesWeathersByNames(cities: Array, metric: 'metric' | 'imperial' = 'metric'): Subject { 24 | const citiesSubject = new Subject(); 25 | cities.forEach((city) => { 26 | citiesSubject.next(this.http.get( 27 | `https://api.openweathermap.org/data/2.5/weather?q=${city}&units=${metric}&APPID=952d6b1a52fe15a7b901720074680562`)); 28 | }); 29 | return citiesSubject; 30 | } 31 | 32 | getWeatherState(city: string): Subject { 33 | const dataSubject = new Subject(); 34 | this.http.get( 35 | `https://api.openweathermap.org/data/2.5/weather?q=${city}&APPID=952d6b1a52fe15a7b901720074680562`) 36 | .subscribe((data) => { 37 | dataSubject.next(data['weather'][0].main); 38 | }); 39 | return dataSubject; 40 | } 41 | 42 | getCurrentTemp(city: string, metric: 'metric' | 'imperial' = 'metric'): Subject { 43 | const dataSubject = new Subject(); 44 | this.http.get( 45 | `https://api.openweathermap.org/data/2.5/weather?q=${city}&units=${metric}&APPID=952d6b1a52fe15a7b901720074680562`) 46 | .subscribe((weather: any) => { 47 | dataSubject.next(Math.round(Number(weather.main.temp))); 48 | }); 49 | return dataSubject; 50 | } 51 | 52 | 53 | getCurrentHum(city: string, metric: 'metric' | 'imperial' = 'metric'): Subject { 54 | const dataSubject = new Subject(); 55 | this.http.get( 56 | `https://api.openweathermap.org/data/2.5/weather?q=${city}&units=${metric}&APPID=952d6b1a52fe15a7b901720074680562`) 57 | .subscribe((weather: any) => { 58 | console.log(weather); 59 | dataSubject.next(weather.main.humidity); 60 | }); 61 | return dataSubject; 62 | } 63 | 64 | 65 | getCurrentWind(city: string, metric: 'metric' | 'imperial' = 'metric'): Subject { 66 | const dataSubject = new Subject(); 67 | this.http.get( 68 | `https://api.openweathermap.org/data/2.5/weather?q=${city}&units=${metric}&APPID=952d6b1a52fe15a7b901720074680562`) 69 | .subscribe((weather: any) => { 70 | dataSubject.next(Math.round(Math.round(weather.wind.speed))); 71 | }); 72 | return dataSubject; 73 | } 74 | 75 | 76 | getMaxTemp(city: string, metric: 'metric' | 'imperial' = 'metric'): Subject { 77 | const dataSubject = new Subject(); 78 | let max: number; 79 | this.http.get( 80 | `https://api.openweathermap.org/data/2.5/forecast?q=${city}&units=${metric}&APPID=952d6b1a52fe15a7b901720074680562`) 81 | .subscribe((weather: any) => { 82 | max = weather.list[0].main.temp; 83 | weather.list.forEach((value) => { 84 | if (max < value.main.temp) { 85 | max = value.main.temp; 86 | } 87 | }); 88 | dataSubject.next(Math.round(max)); 89 | }); 90 | return dataSubject; 91 | } 92 | 93 | getMinTemp(city: string, metric: 'metric' | 'imperial' = 'metric'): Subject { 94 | const dataSubject = new Subject(); 95 | let min: number; 96 | this.http.get( 97 | `https://api.openweathermap.org/data/2.5/forecast?q=${city}&units=${metric}&APPID=952d6b1a52fe15a7b901720074680562`) 98 | .subscribe((weather: any) => { 99 | min = weather.list[0].main.temp; 100 | weather.list.forEach((value) => { 101 | if (min > value.main.temp) { 102 | min = value.main.temp; 103 | } 104 | }); 105 | dataSubject.next(Math.round(min)); 106 | }); 107 | return dataSubject; 108 | } 109 | 110 | getForecast(city: string, metric: 'metric' | 'imperial' = 'metric'): Subject> { 111 | const dataSubject = new Subject>(); 112 | this.http.get( 113 | `https://api.openweathermap.org/data/2.5/forecast?q=${city}&units=${metric}&APPID=952d6b1a52fe15a7b901720074680562`) 114 | .subscribe((weather: any) => { 115 | dataSubject.next(weather.list); 116 | }); 117 | return dataSubject; 118 | } 119 | 120 | } 121 | -------------------------------------------------------------------------------- /src/app/pages/details/details.component.css: -------------------------------------------------------------------------------- 1 | .details-page__wrapper-dark { 2 | background: linear-gradient(#FC7DB8, #495CFC); 3 | height: 100%; 4 | width: 100%; 5 | display: flex; 6 | justify-content: center; 7 | align-items: center; 8 | position: relative; 9 | overflow: hidden; 10 | } 11 | 12 | .background-gradient__circle { 13 | position: absolute; 14 | top: 50%; 15 | right: 0; 16 | transform: translateY(-50%); 17 | z-index: 1; 18 | height: 120%; 19 | } 20 | 21 | .main-weather__card-dark { 22 | background-color: white; 23 | height: 85%; 24 | width: 60%; 25 | border-radius: 1rem; 26 | position: relative; 27 | z-index: 3; 28 | display: grid; 29 | grid-template-columns: 1fr; 30 | grid-template-rows: 0.5fr 1.25fr; 31 | justify-items: center; 32 | } 33 | 34 | .card-header__container-dark { 35 | width: 100%; 36 | max-height: 20rem; 37 | position: relative; 38 | z-index: 1; 39 | } 40 | 41 | .back__button { 42 | position: absolute; 43 | top: 2rem; 44 | left: 2.25rem; 45 | width: 5rem; 46 | cursor: pointer; 47 | z-index: 3; 48 | } 49 | 50 | .city__illustration { 51 | width: 100%; 52 | border-radius: 1rem 1rem 0 0; 53 | position: relative; 54 | } 55 | 56 | .header-content__wrapper { 57 | position: absolute; 58 | z-index: 2; 59 | color: white; 60 | top: 0; 61 | display: grid; 62 | grid-template-rows: 1fr; 63 | grid-template-columns: repeat(2, 1fr); 64 | width: 100%; 65 | height: 100%; 66 | } 67 | 68 | .temperature__text { 69 | font-size: 6rem; 70 | letter-spacing: 0.75rem; 71 | } 72 | 73 | .city-name__container { 74 | display: flex; 75 | justify-content: center; 76 | align-items: center; 77 | padding-bottom: 25%; 78 | } 79 | 80 | .city-name__underline { 81 | background: transparent; 82 | border-radius: 5px; 83 | height: 5px; 84 | box-shadow: 0 3rem 0 0 #ffffff; 85 | } 86 | 87 | .city-name__text { 88 | text-transform: uppercase; 89 | letter-spacing: 0.3rem; 90 | font-size: 1.75rem; 91 | padding-bottom: 2rem; 92 | } 93 | 94 | .today-weather__container { 95 | align-self: center; 96 | justify-self: center; 97 | display: grid; 98 | width: 100%; 99 | grid-template-rows: 3fr 1fr; 100 | grid-template-columns: 1fr; 101 | justify-items: center; 102 | grid-gap: 2rem; 103 | } 104 | 105 | .temp-state__container { 106 | display: flex; 107 | justify-content: center; 108 | flex-flow: column; 109 | } 110 | 111 | .weather-state__text { 112 | letter-spacing: 0.5rem; 113 | font-size: 1.15rem; 114 | text-transform: uppercase; 115 | margin-top: 0.25rem; 116 | } 117 | 118 | .hum-wind__container { 119 | display: flex; 120 | align-items: center; 121 | margin-left: -4rem; 122 | } 123 | 124 | .hum-wind__separator { 125 | margin: 0 2rem; 126 | width: 2px; 127 | height: 2.5rem; 128 | background-color: white; 129 | } 130 | 131 | .hum__text, .wind__text { 132 | text-transform: uppercase; 133 | letter-spacing: 0.2rem; 134 | font-size: 0.8rem; 135 | margin-bottom: 1rem; 136 | } 137 | 138 | .hum__container, .wind__container { 139 | display: flex; 140 | flex-flow: column; 141 | justify-content: center; 142 | align-items: center; 143 | } 144 | 145 | /* 146 | ================ 147 | BODY 148 | ================ 149 | */ 150 | 151 | .body-content__wrapper { 152 | display: grid; 153 | grid-template-columns: 1fr 1.75fr; 154 | grid-template-rows: 1fr; 155 | justify-items: center; 156 | box-sizing: border-box; 157 | grid-column-gap: 1rem; 158 | width: 100%; 159 | padding: 2rem; 160 | } 161 | 162 | .forecast__container { 163 | display: flex; 164 | flex-flow: row; 165 | align-items: center; 166 | align-self: center; 167 | justify-self: center; 168 | } 169 | 170 | .twitter-feed__container { 171 | margin-top: 1rem; 172 | width: 100%; 173 | } 174 | 175 | .twitter-feed__text { 176 | color: #0c1066; 177 | font-size: 1.25rem; 178 | } 179 | 180 | .twitter__icon { 181 | width: 1.5rem; 182 | } 183 | 184 | .twitter-feed-tag__text { 185 | font-size: 0.85rem; 186 | color: #5f84fb; 187 | letter-spacing: 0.1rem; 188 | text-transform: uppercase; 189 | } 190 | 191 | .twitter-feed__header { 192 | display: grid; 193 | grid-template-rows: 2rem; 194 | grid-template-columns: 0.5fr 1.5fr 1fr; 195 | align-items: center; 196 | justify-items: center; 197 | width: 100%; 198 | } 199 | 200 | .day-weather__container { 201 | display: flex; 202 | flex-flow: column; 203 | margin: 2rem 1.5rem; 204 | justify-content: center; 205 | align-items: center; 206 | } 207 | 208 | .day-name__text { 209 | font-size: 1.5rem; 210 | color: #39437a; 211 | font-weight: bold; 212 | text-transform: uppercase; 213 | margin-bottom: 0.5rem; 214 | } 215 | 216 | .forecast-condition__icon { 217 | height: 4rem; 218 | } 219 | 220 | .day-temp__text { 221 | font-size: 1.85rem; 222 | color: #0c1066; 223 | letter-spacing: 0.25rem; 224 | margin: 0.75rem 0; 225 | text-align: center; 226 | padding-left: 0.35rem; 227 | } 228 | 229 | .day-state__text { 230 | 231 | font-size: 0.65rem; 232 | text-transform: uppercase; 233 | letter-spacing: 0.2rem; 234 | color: #2B244D; 235 | } 236 | -------------------------------------------------------------------------------- /src/app/app.component.css: -------------------------------------------------------------------------------- 1 | .root__container { 2 | width: 100vw; 3 | height: 100vh; 4 | display: grid; 5 | grid-template-columns: auto; 6 | grid-template-rows: 0.5fr auto; 7 | position: relative; 8 | } 9 | 10 | /* 11 | ================ 12 | Header 13 | ================ 14 | */ 15 | 16 | /* 17 | Slide Menu 18 | = = = = = = = = = 19 | */ 20 | .side-menu__container { 21 | position: fixed; 22 | left: 0; 23 | top: 0; 24 | width: 100%; 25 | height: 100%; 26 | overflow: hidden; 27 | pointer-events: none; 28 | z-index: 25; 29 | } 30 | 31 | .side-menu__container-active { 32 | pointer-events: auto; 33 | } 34 | 35 | .side-menu__container::before { 36 | content: ''; 37 | cursor: pointer; 38 | position: absolute; 39 | display: block; 40 | top: 0; 41 | left: 0; 42 | height: 100%; 43 | width: 100%; 44 | background-color: #0c1066; 45 | opacity: 0; 46 | transition: opacity 300ms linear; 47 | will-change: opacity; 48 | } 49 | 50 | .side-menu__container-active::before { 51 | opacity: 0.3; 52 | } 53 | 54 | .slide-menu { 55 | box-sizing: border-box; 56 | transform: translateX(-103%); 57 | position: relative; 58 | top: 0; 59 | left: 0; 60 | z-index: 10; 61 | height: 100%; 62 | width: 90%; 63 | max-width: 26rem; 64 | background-color: white; 65 | box-shadow: 0 0 2rem rgba(0, 0, 255, 0.1); 66 | display: grid; 67 | grid-template-columns: 1fr; 68 | grid-template-rows: 2fr 4fr 1fr; 69 | grid-gap: 1rem; 70 | transition: transform 300ms linear; 71 | will-change: transform; 72 | } 73 | 74 | .slide-menu-active { 75 | transform: none; 76 | } 77 | 78 | .menu-header { 79 | background: linear-gradient(to right, #00FF9B, #5f84fb); 80 | display: grid; 81 | grid-template-rows: 1fr 4fr; 82 | grid-template-columns: 1fr 4fr; 83 | grid-template-areas: "greeting greeting" "image details"; 84 | box-sizing: border-box; 85 | width: 100%; 86 | align-content: center; 87 | color: white; 88 | box-shadow: 0 0.5rem 2rem rgba(0, 0, 255, 0.2); 89 | } 90 | 91 | .greeting__text { 92 | grid-area: greeting; 93 | font-size: 1.25rem; 94 | letter-spacing: 0.15rem; 95 | text-transform: uppercase; 96 | margin-top: 1rem; 97 | justify-self: center; 98 | align-self: center; 99 | } 100 | 101 | .account-details { 102 | grid-area: details; 103 | display: flex; 104 | flex-flow: column; 105 | margin-left: 1rem; 106 | align-self: center; 107 | } 108 | 109 | .name__text { 110 | font-size: 1.15rem; 111 | margin-bottom: 0.5rem; 112 | } 113 | 114 | .email__text { 115 | font-size: 0.9rem; 116 | letter-spacing: 0.1rem; 117 | } 118 | 119 | .menu-body { 120 | display: grid; 121 | width: 100%; 122 | } 123 | 124 | .profile-image__container { 125 | grid-area: image; 126 | margin-right: 0.5rem; 127 | border-radius: 50%; 128 | height: 4rem; 129 | width: 4rem; 130 | overflow: hidden; 131 | display: flex; 132 | justify-content: center; 133 | align-items: center; 134 | background-color: white; 135 | align-self: center; 136 | margin-left: 2rem; 137 | } 138 | 139 | .profile__image { 140 | max-width: 4rem; 141 | } 142 | 143 | /*Header*/ 144 | .main__header { 145 | width: 100%; 146 | display: grid; 147 | grid-template-columns: 1fr 1fr 0.25fr; 148 | grid-template-rows: 1fr; 149 | box-shadow: 0 0 2rem rgba(0, 0, 255, 0.1); 150 | height: 4rem; 151 | margin: 0; 152 | align-items: center; 153 | transition: background-color 500ms linear; 154 | animation: fadein 1s ease-in-out 0ms 1; 155 | } 156 | 157 | .main__header-dark { 158 | background-color: #2B244D; 159 | color: white; 160 | } 161 | 162 | .toggle-button__container { 163 | cursor: pointer; 164 | position: relative; 165 | margin: 0 0.5rem; 166 | } 167 | 168 | .mode-toggle__input { 169 | -webkit-appearance: none; 170 | -moz-appearance: none; 171 | } 172 | 173 | .mode-toggle__bg { 174 | height: 1rem; 175 | width: 2rem; 176 | border-radius: 0.5rem; 177 | background-color: rgba(0, 0, 0, 0.5); 178 | display: inline-block; 179 | transition: background-color 300ms linear; 180 | } 181 | 182 | .mode-toggle__circle { 183 | height: 1.30rem; 184 | width: 1.30rem; 185 | background-color: #2B244D; 186 | position: absolute; 187 | top: -0.2rem; 188 | border-radius: 50%; 189 | box-shadow: 0 0 0 rgba(0, 0, 255, 0.5); 190 | transition: left 300ms linear; 191 | left: 0.1rem; 192 | } 193 | 194 | .mode-toggle__circle-checked { 195 | background-color: white; 196 | left: 1.75rem; 197 | } 198 | 199 | .mode-toggle__bg-checked { 200 | background-color: #FF0070; 201 | } 202 | 203 | .mode-toggle__text { 204 | font-size: 0.75rem; 205 | text-transform: uppercase; 206 | letter-spacing: 0.1rem; 207 | } 208 | 209 | /*Content*/ 210 | .left__section { 211 | display: grid; 212 | grid-template-rows: 1fr; 213 | grid-template-columns: 1fr 1fr; 214 | max-width: 5rem; 215 | } 216 | 217 | .date__text { 218 | text-transform: uppercase; 219 | letter-spacing: 0.1rem; 220 | display: inline; 221 | margin: 0.5rem 0; 222 | } 223 | 224 | /*SVGs*/ 225 | .hamburger__icon { 226 | position: relative; 227 | z-index: 35; 228 | height: 1rem; 229 | padding: 0.5rem 1.5rem; 230 | margin-right: 1rem; 231 | cursor: pointer; 232 | } 233 | 234 | .logo__icon { 235 | height: 2rem; 236 | margin-left: 1rem; 237 | } 238 | 239 | .logo__text { 240 | fill: #2B244D; 241 | } 242 | 243 | .logo__text-dark { 244 | fill: #ffff; 245 | } 246 | 247 | .hamburger__icon__fill { 248 | fill: #2B244D; 249 | } 250 | 251 | .hamburger__icon__fill-dark { 252 | fill: #ffff; 253 | } 254 | 255 | /* 256 | ================ 257 | Body 258 | ================ 259 | */ 260 | 261 | .main-container__bg { 262 | height: 100%; 263 | width: 100%; 264 | position: absolute; 265 | top: 0; 266 | left: 0; 267 | z-index: -2; 268 | opacity: 0; 269 | background: white; 270 | transition: opacity 300ms linear; 271 | } 272 | 273 | .main-container__bg-dark { 274 | opacity: 1; 275 | background: linear-gradient(to bottom, #B290FF, #2E1D65); 276 | transition: opacity 300ms linear; 277 | } 278 | 279 | /* 280 | ================- 281 | Footer 282 | ================ 283 | */ 284 | .main__footer { 285 | background: transparent; 286 | position: absolute; 287 | bottom: 1rem; 288 | left: 1.5rem; 289 | z-index: 100; 290 | } 291 | 292 | .copyright__text { 293 | letter-spacing: 0.1rem; 294 | color: white; 295 | } 296 | 297 | @media only screen and (max-width: 300px) { 298 | .slide-menu { 299 | width: 100%; 300 | } 301 | } 302 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /src/app/ui/add-card/add-card.component.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | Add city 4 |
5 |
6 | 7 | 8 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 24 | 25 | 27 | 29 | 30 | 32 | 33 | 80 | 81 | 83 | 84 | 85 | 87 | 89 | 91 | 93 | 95 | 96 | 97 | 99 | 101 | 103 | 105 | 106 | 107 | 109 | 110 | 112 | 114 | 116 | 118 | 120 | 122 | 124 | 126 | 128 | 130 | 132 | 134 | 136 | 138 | 140 | 142 | 144 | 145 | 148 | 149 | 150 | 152 | 154 | 155 | 156 | 158 | 160 | 161 | 162 | 164 | 166 | 167 | 168 | 170 | 172 | 173 | 174 | 176 | 178 | 179 | 180 | 181 | 182 | 184 | 186 | 188 | 190 | 192 | 194 | 196 | 198 | 199 | 200 | 202 | 204 | 206 | 208 | 210 | 212 | 214 | 215 | 216 | 217 |
218 |
219 | -------------------------------------------------------------------------------- /src/app/pages/details/details.component.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | BACK 45 | 46 | 47 | 48 | 49 |
50 |
51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 61 | 62 | 63 | 64 | 66 | 68 | 71 | 74 | 77 | 80 | 81 | 82 | 83 | 84 | 86 | 87 | 88 | 89 | 90 | 92 | 93 | 94 | 95 | 96 | 98 | 99 | 100 | 101 | 102 | 104 | 105 | 106 | 107 | 108 | 110 | 111 | 112 | 113 | 114 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 132 | 133 | 134 | 135 | 136 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 152 | 155 | 158 | 161 | 164 | 167 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 189 | 191 | 193 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 203 | 205 | 208 | 211 | 214 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 224 | 225 | 226 | 227 | 228 | 229 | 232 | 233 | 236 | 239 | 242 | 243 | 244 | 245 | 248 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 302 | 303 | 304 | 306 | 307 | 308 | 309 | 310 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 351 | 352 | 353 | 354 | 355 | 357 | 358 | 359 | 360 | 361 | 363 | 364 | 365 | 366 | 367 | 369 | 370 | 371 | 372 | 373 | 375 | 376 | 377 | 378 | 379 | 381 | 382 | 383 | 384 | 385 | 387 | 388 | 389 | 390 | 391 | 393 | 394 | 395 | 396 | 397 | 399 | 400 | 401 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 413 | 415 | 417 | 419 | 421 | 422 | 423 | 424 | 425 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780 | 781 | 784 | 786 | 787 | 788 | 789 | 790 | 792 | 793 | 794 | 795 | 796 | 798 | 799 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 820 | 822 | 823 | 824 | 825 | 826 | 828 | 829 | 830 | 831 | 832 | 834 | 835 | 836 | 837 | 838 | 839 | 840 | 841 | 842 | 843 | 845 | 846 | 847 | 848 | 849 | 850 | 851 | 852 | 853 | 854 | 855 | 856 | 857 | 858 | 859 | 860 | 861 | 862 | 863 | 864 | 865 | 866 | 867 | 868 | 870 | 871 | 872 | 873 | 874 | 876 | 877 | 878 | 879 | 880 | 882 | 883 | 884 | 885 | 886 | 888 | 889 | 890 | 891 | 892 | 895 | 896 | 897 | 898 | 899 | 900 | 903 | 904 | 905 |
906 | 907 |
908 | 909 |
910 | {{temp}}° 911 | {{state}} 912 |
913 |
914 |
915 | humidity 916 | {{hum}} % 917 |
918 | 919 |
 
920 | 921 |
922 | wind 923 | {{wind}} K/M 924 |
925 |
926 |
927 | 928 |
929 |
930 | {{city}} 931 |
932 |
933 |
934 | 935 |
936 | 937 |
938 | 957 | 958 |
959 | 960 |
961 | {{day1Name}} 962 | 964 | 965 | 966 | 969 | 970 | 971 | 972 | 974 | 975 | 976 | 977 | 978 | 979 | 980 | 981 | 982 | 984 | 985 | 987 | 989 | 991 | 993 | 995 | 997 | 999 | 1001 | 1003 | 1005 | 1006 | 1007 | 1008 | 1009 | 1011 | 1012 | 1013 | 1014 | {{day1Temp}}° 1015 | {{day1State}} 1016 |
1017 | 1018 |
1019 | {{day2Name}} 1020 | 1022 | 1023 | 1024 | 1027 | 1028 | 1029 | 1030 | 1032 | 1033 | 1034 | 1035 | 1036 | 1037 | 1038 | 1039 | 1040 | 1042 | 1043 | 1045 | 1047 | 1049 | 1051 | 1053 | 1055 | 1057 | 1059 | 1061 | 1063 | 1064 | 1065 | 1066 | 1067 | 1069 | 1070 | 1071 | {{day2Temp}}° 1072 | {{day2State}} 1073 |
1074 | 1075 |
1076 | {{day3Name}} 1077 | 1079 | 1080 | 1081 | 1084 | 1085 | 1086 | 1087 | 1089 | 1090 | 1091 | 1092 | 1093 | 1094 | 1095 | 1096 | 1097 | 1099 | 1100 | 1102 | 1104 | 1106 | 1108 | 1110 | 1112 | 1114 | 1116 | 1118 | 1120 | 1121 | 1122 | 1123 | 1124 | 1126 | 1127 | 1128 | 1129 | {{day3Temp}}° 1130 | {{day3State}} 1131 |
1132 | 1133 | 1134 |
1135 | {{day4Name}} 1136 | 1138 | 1139 | 1140 | 1143 | 1144 | 1145 | 1146 | 1148 | 1149 | 1150 | 1151 | 1152 | 1153 | 1154 | 1155 | 1156 | 1158 | 1159 | 1161 | 1163 | 1165 | 1167 | 1169 | 1171 | 1173 | 1175 | 1177 | 1179 | 1180 | 1181 | 1182 | 1183 | 1185 | 1186 | 1187 | 1188 | {{day4Temp}}° 1189 | {{day4State}} 1190 |
1191 | 1192 |
1193 | {{day5Name}} 1194 | 1196 | 1197 | 1198 | 1201 | 1202 | 1203 | 1204 | 1206 | 1207 | 1208 | 1209 | 1210 | 1211 | 1212 | 1213 | 1214 | 1216 | 1217 | 1219 | 1221 | 1223 | 1225 | 1227 | 1229 | 1231 | 1233 | 1235 | 1237 | 1238 | 1239 | 1240 | 1241 | 1243 | 1244 | 1245 | 1246 | {{day5Temp}}° 1247 | {{day5State}} 1248 |
1249 |
1250 | 1251 | 1252 |
1253 | 1254 |
1255 | 1256 |
1257 | --------------------------------------------------------------------------------