-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Tab Functionality and also realtime data handling
- Loading branch information
1 parent
ba36428
commit 3f6645c
Showing
15 changed files
with
202 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
<app-navigation></app-navigation> | ||
<router-outlet></router-outlet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
.div-form { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
width: 100%; | ||
/* overflow: hidden; Prevent scrolling */ | ||
margin: 0; /* Remove default margin */ | ||
|
||
/* Add spacing around the form */ | ||
padding: 20px; | ||
box-sizing: border-box; /* Include padding in total width and height */ | ||
} | ||
|
||
.full-screen-textarea { | ||
width: 100%; /* 80% of the screen width */ | ||
height: 85vh; /* 80% of the screen height */ | ||
box-sizing: border-box; /* Include padding in total width and height */ | ||
padding: 10px; /* Adjust padding as needed */ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
<!-- teaxt area using --> | ||
<form> | ||
<mat-form-field > | ||
<!-- Onchange of the text in text area upload it to realtime automatically --> | ||
<textarea matInput placeholder="Enter your text here" [ngModelOptions]="{standalone: true}" [(ngModel)]="text" (ngModelChange)="uploadText()" ></textarea> | ||
<div class="div-form"> | ||
<form style="width: 100%;height: 100%;"> | ||
<mat-form-field class="full-screen-textarea"> | ||
<textarea class="full-screen-textarea" | ||
matInput | ||
placeholder="Enter your text here" | ||
[ngModelOptions]="{ standalone: true }" | ||
[(ngModel)]="text" | ||
rows="22" | ||
(ngModelChange)="uploadText()" | ||
(keydown)="onTextareaKeydown($event)" | ||
></textarea> | ||
</mat-form-field> | ||
|
||
<!-- submit button --> | ||
|
||
</form> | ||
<div> | ||
Word Count: {{ words }} | Character Count: {{ characters }} | ||
</div> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<mat-toolbar color="primary"> | ||
|
||
<span>NOTECODE</span> | ||
<span class="spacer"></span> | ||
<button mat-icon-button> | ||
<mat-icon>lock</mat-icon> | ||
</button> | ||
<button mat-icon-button> | ||
<mat-icon>account_circle</mat-icon> | ||
</button> | ||
</mat-toolbar> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { NavigationComponent } from './navigation.component'; | ||
|
||
describe('NavigationComponent', () => { | ||
let component: NavigationComponent; | ||
let fixture: ComponentFixture<NavigationComponent>; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [NavigationComponent] | ||
}); | ||
fixture = TestBed.createComponent(NavigationComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-navigation', | ||
templateUrl: './navigation.component.html', | ||
styleUrls: ['./navigation.component.css'] | ||
}) | ||
export class NavigationComponent { | ||
|
||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>password works!</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { PasswordComponent } from './password.component'; | ||
|
||
describe('PasswordComponent', () => { | ||
let component: PasswordComponent; | ||
let fixture: ComponentFixture<PasswordComponent>; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [PasswordComponent] | ||
}); | ||
fixture = TestBed.createComponent(PasswordComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-password', | ||
templateUrl: './password.component.html', | ||
styleUrls: ['./password.component.css'] | ||
}) | ||
export class PasswordComponent { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* You can add global styles to this file, and also import other style files */ | ||
|
||
html, body { height: 100%; } | ||
html, body { height: 100%; width: 100%; overflow-y: hidden;} | ||
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; } |