This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from karenia-works/login
Login
- Loading branch information
Showing
23 changed files
with
339 additions
and
25 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
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,27 @@ | ||
<div class="login-page-banner" @banner-trigger> | ||
<div class="container"> | ||
<div class="login"> | ||
<h1>登录</h1> | ||
<h5 class="textdarcula">用户名</h5> | ||
<input | ||
name="username" | ||
id="username" | ||
type="text" | ||
class="username-box" | ||
/> | ||
<h5 class="textdarcula">密码</h5> | ||
<input | ||
name="password" | ||
id="password" | ||
type="password" | ||
class="username-box" | ||
/> | ||
<div class="foot"> | ||
<button class="btn login-btn">登录</button> | ||
<button class="btn ghost-btn" routerLink="/register">注册</button> | ||
<button class="btn ghost-btn">忘记密码</button> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { LoginPageComponent } from './login-page.component'; | ||
|
||
describe('LoginPageComponent', () => { | ||
let component: LoginPageComponent; | ||
let fixture: ComponentFixture<LoginPageComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ LoginPageComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(LoginPageComponent); | ||
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,72 @@ | ||
.login-page-banner { | ||
height: 100vh | ||
padding-top: var(--theme-pad-03) | ||
box-sizing: border-box | ||
background: var(--theme-base02) | ||
color: var(--theme-base07) | ||
display: flex | ||
flex-direction: column | ||
}; | ||
|
||
.login { | ||
width 60vh | ||
margin auto | ||
}; | ||
|
||
.foot { | ||
display flex | ||
flex-direction row-reverse | ||
text-align center | ||
margin: var(--theme-pad-00) var(--theme-pad-02) | ||
padding: var(--theme-pad-02) var(--theme-pad-04) | ||
}; | ||
|
||
.username-box { | ||
position relative | ||
bottom 20px | ||
height 30px | ||
width 55vh | ||
font-family: inherit | ||
font-weight: normal | ||
font-size: var(--theme-size-base) | ||
transition: border-color 150ms ease-in-out | ||
border-style: solid | ||
border-width: 2px | ||
background-color var(--theme-base01) | ||
color var(--theme-base07) | ||
border-color var(--theme-base01) | ||
|
||
&:focus-within { | ||
border-color var(--theme-accent-alter) | ||
} | ||
}; | ||
|
||
.login-btn { | ||
display flex | ||
justify-content center | ||
width 15vh | ||
font-weight: 500 | ||
--btn-border-color: var(--theme-accent-alter) | ||
--btn-background-color: var(--theme-base02) | ||
--btn-highlight-color: var(--theme-accent) | ||
--btn-highlight-text-color: var(--theme-base07) | ||
--btn-text-color: var(--theme-accent-alter) | ||
}; | ||
|
||
.ghost-btn { | ||
display flex | ||
justify-content center | ||
width 15vh | ||
font-weight: 500 | ||
border-style: none | ||
--btn-border-color: var(--theme-base02) | ||
--btn-background-color: var(--theme-base02) | ||
--btn-highlight-color: var(--theme-accent) | ||
--btn-highlight-text-color: var(--theme-base07) | ||
--btn-text-color: var(--theme-accent-alter) | ||
}; | ||
|
||
.textdarcula { | ||
color var(--theme-base04) | ||
} | ||
|
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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-login-page', | ||
templateUrl: './login-page.component.html', | ||
styleUrls: ['./login-page.component.styl'] | ||
}) | ||
export class LoginPageComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
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
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
1 change: 1 addition & 0 deletions
1
src/pages/personal-page/my-setting-page/my-setting-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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<div class="container"> | ||
<div class="left_part"> | ||
<h5><br></h5> | ||
<h1 class="recent_title"> | ||
个人设置 | ||
</h1> | ||
|
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 |
---|---|---|
|
@@ -41,4 +41,4 @@ | |
color: var(--palette-base03) | ||
margin-top: 5px | ||
} | ||
} | ||
} |
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
Oops, something went wrong.