-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a64944
commit 6015dab
Showing
29 changed files
with
612 additions
and
277 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Empty file.
1 change: 1 addition & 0 deletions
1
projects/arc-lib/src/lib/components/auth/home-page/home-page.component.html
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>home-page works!</p> |
23 changes: 23 additions & 0 deletions
23
projects/arc-lib/src/lib/components/auth/home-page/home-page.component.spec.ts
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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { HomePageComponent } from './home-page.component'; | ||
|
||
describe('HomePageComponent', () => { | ||
let component: HomePageComponent; | ||
let fixture: ComponentFixture<HomePageComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ HomePageComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(HomePageComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
10 changes: 10 additions & 0 deletions
10
projects/arc-lib/src/lib/components/auth/home-page/home-page.component.ts
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: 'lib-home-page', | ||
templateUrl: './home-page.component.html', | ||
styleUrls: ['./home-page.component.css'] | ||
}) | ||
export class HomePageComponent { | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
projects/arc-lib/src/lib/components/auth/login-page/login-page.component.html
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,23 @@ | ||
|
||
<div class="main-section"> | ||
<div class="first"> | ||
<nb-card class="h-100 m-0"> | ||
<nb-card-body class="p-0"> | ||
<!-- Include the Login Component here --> | ||
<login></login> | ||
|
||
|
||
</nb-card-body> | ||
</nb-card> | ||
</div> | ||
|
||
<div class="first"> | ||
<nb-layout> | ||
<nb-layout-column> | ||
<div class="login-img"> | ||
<img width="90%" src="http://localhost:4200/assets/images/auth/login-img.png" alt="loginImg" /> | ||
</div> | ||
</nb-layout-column> | ||
</nb-layout> | ||
</div> | ||
</div> |
9 changes: 9 additions & 0 deletions
9
projects/arc-lib/src/lib/components/auth/login-page/login-page.component.scss
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,9 @@ | ||
.main-section { | ||
display: flex; | ||
} | ||
.first { | ||
width: 50%; | ||
} | ||
.main-section .first .nb-card{ | ||
margin: 0; | ||
} |
23 changes: 23 additions & 0 deletions
23
projects/arc-lib/src/lib/components/auth/login-page/login-page.component.spec.ts
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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { LoginPageComponent } from './login-page.component'; | ||
|
||
describe('LoginPageComponent', () => { | ||
let component: LoginPageComponent; | ||
let fixture: ComponentFixture<LoginPageComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ LoginPageComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(LoginPageComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
projects/arc-lib/src/lib/components/auth/login-page/login-page.component.ts
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 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'lib-login-page', | ||
templateUrl: './login-page.component.html', | ||
styleUrls: ['./login-page.component.scss'] | ||
}) | ||
export class LoginPageComponent { | ||
|
||
|
||
} |
2 changes: 1 addition & 1 deletion
2
projects/arc-lib/src/lib/components/auth/login/login.component.html
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
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
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,46 @@ | ||
import { moduleMetadata } from '@storybook/angular'; | ||
import { CommonModule } from '@angular/common'; | ||
import { NbLayoutModule, NbCardModule, NbStatusService, NbThemeService } from '@nebular/theme'; | ||
import { Meta, Story } from '@storybook/angular'; | ||
import { LoginComponent } from '@project-lib/components/auth/login/login.component'; | ||
|
||
// Import your components | ||
// Replace with the actual path | ||
|
||
export default { | ||
title: 'Main Section', | ||
decorators: [ | ||
moduleMetadata({ | ||
declarations: [], // Add your components here | ||
imports: [CommonModule, NbLayoutModule, NbCardModule], | ||
providers:[NbStatusService,NbThemeService] | ||
}), | ||
], | ||
} as Meta; | ||
|
||
const Template: Story = () => ({ | ||
template: ` | ||
<div class="main-section"> | ||
<div class="first"> | ||
<nb-card class="h-100 m-0"> | ||
<nb-card-body class="p-0"> | ||
<!-- Include the Login Component here --> | ||
<app-login></app-login> | ||
</nb-card-body> | ||
</nb-card> | ||
</div> | ||
<div class="first"> | ||
<nb-layout> | ||
<nb-layout-column> | ||
<div class="login-img"> | ||
<img width="90%" src="http://localhost:4200/assets/images/auth/login-img.png" alt="loginImg" /> | ||
</div> | ||
</nb-layout-column> | ||
</nb-layout> | ||
</div> | ||
</div> | ||
`, | ||
}); | ||
|
||
export const MainSection = Template.bind({}); | ||
|
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
Oops, something went wrong.