Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flight-agency-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Heber Cordova
flight-agency-app
Commits
f8dffe3a
Commit
f8dffe3a
authored
Oct 20, 2023
by
Heber Cordova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: added login page
parent
44f00784
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
168 additions
and
3 deletions
+168
-3
app-routing.module.ts
src/app/app-routing.module.ts
+5
-0
app.module.ts
src/app/app.module.ts
+7
-3
sign-in.component.css
src/app/security/pages/sign-in/sign-in.component.css
+91
-0
sign-in.component.html
src/app/security/pages/sign-in/sign-in.component.html
+27
-0
sign-in.component.ts
src/app/security/pages/sign-in/sign-in.component.ts
+38
-0
bytea-logo-color.png
src/assets/bytea-logo-color.png
+0
-0
No files found.
src/app/app-routing.module.ts
View file @
f8dffe3a
...
...
@@ -3,6 +3,7 @@ import { RouterModule, Routes } from '@angular/router';
import
{
HomePageComponent
as
AgentHomePageComponent
}
from
'./agent/pages/home-page/home-page.component'
;
import
{
HomePageComponent
as
PassengerHomePageComponent
}
from
'./passenger/pages/home-page/home-page.component'
;
import
{
HomePageComponent
as
SupervisorHomePageComponent
}
from
'./supervisor/pages/home-page/home-page.component'
;
import
{
SignInComponent
}
from
'./security/pages/sign-in/sign-in.component'
;
const
routes
:
Routes
=
[
{
...
...
@@ -19,6 +20,10 @@ const routes: Routes = [
path
:
'supervisors'
,
component
:
SupervisorHomePageComponent
,
loadChildren
:
()
=>
import
(
'./supervisor/supervisor.module'
).
then
(
m
=>
m
.
SupervisorModule
)
},
{
path
:
'sign-in'
,
component
:
SignInComponent
,
}
];
...
...
src/app/app.module.ts
View file @
f8dffe3a
...
...
@@ -5,19 +5,23 @@ import { AppComponent } from './app.component';
import
{
SupervisorModule
}
from
'./supervisor/supervisor.module'
;
import
{
PassengerModule
}
from
'./passenger/passenger.module'
;
import
{
AgentModule
}
from
'./agent/agent.module'
;
import
{
AgentRoutingModule
}
from
'./agent/agent-routing.module'
;
import
{
SharedModule
}
from
'./shared/shared.module'
;
import
{
SignInComponent
}
from
'./security/pages/sign-in/sign-in.component'
;
import
{
FormsModule
}
from
'@angular/forms'
;
@
NgModule
({
declarations
:
[
AppComponent
AppComponent
,
SignInComponent
],
imports
:
[
BrowserModule
,
AppRoutingModule
,
SharedModule
,
AgentModule
,
AgentRoutingModule
,
SupervisorModule
,
PassengerModule
,
FormsModule
],
providers
:
[],
bootstrap
:
[
AppComponent
]
...
...
src/app/security/pages/sign-in/sign-in.component.css
0 → 100644
View file @
f8dffe3a
.container-login
{
width
:
100vw
;
height
:
100vh
;
display
:
flex
;
justify-content
:
center
;
background-color
:
#f3f3f4
;
}
.login
{
max-width
:
600px
;
display
:
flex
;
flex-direction
:
column
;
width
:
auto
;
width
:
100%
;
}
.login__enterprise
{
display
:
flex
;
justify-content
:
center
;
padding-top
:
10px
;
padding-bottom
:
40px
;
}
.login__enterprise
img
{
width
:
100px
;
}
.login__content
{
background-color
:
white
;
padding
:
20px
40px
30px
40px
;
width
:
100%
;
}
.login__content-lenguage
{
display
:
flex
;
justify-content
:
end
;
margin-bottom
:
40px
;
}
.login__content-lenguage
select
{
font-size
:
12px
;
border
:
0
;
color
:
rgba
(
45
,
109
,
238
,
0.76
);
outline
:
none
;
}
.login__content-security
{
display
:
flex
;
flex-direction
:
column
;
row-gap
:
20px
;
}
.field
{
display
:
flex
;
flex-direction
:
column
;
}
.field__label
{
margin-bottom
:
8px
;
font-size
:
12px
;
font-weight
:
500
;
}
.field__input
{
padding
:
7px
5px
;
font-size
:
12px
;
font-size
:
500
;
border
:
1px
solid
gray
;
outline
:
none
;
}
.field__input
:hover
{
border
:
1px
solid
rgba
(
77
,
130
,
236
,
0.76
);
}
.field__input
:focus
{
box-shadow
:
0
0
6px
rgba
(
60
,
119
,
238
,
0.76
);
border
:
1px
solid
rgba
(
45
,
109
,
238
,
0.76
);
}
.actions
{
margin-top
:
30px
;
}
.actions
input
{
width
:
100%
;
background-color
:
#1ab394
;
color
:
white
;
border
:
none
;
border-radius
:
0
;
}
src/app/security/pages/sign-in/sign-in.component.html
0 → 100644
View file @
f8dffe3a
<div
class=
"container-login"
>
<div
class=
"login"
>
<div
class=
"login__enterprise"
>
<img
src=
"assets/bytea-logo-color.png"
alt=
"Logo Byte"
>
</div>
<div
class=
"login__content"
>
<div
class=
"login__content-lenguage"
>
<select
[(
ngModel
)]="
lenguage
"
name=
"lenguage"
id=
"lenguage"
>
<option
*
ngFor=
"let leng of lenguages"
[
value
]="
leng
.
value
"
>
{{leng.text}}
</option>
</select>
</div>
<form
class=
"login__content-security"
>
<div
class=
"field"
>
<label
class=
"field__label"
for=
"user"
>
{{ text[lenguage].email }}
</label>
<input
class=
"field__input"
type=
"text"
name=
"user"
id=
"user"
>
</div>
<div
class=
"field"
>
<label
class=
"field__label"
for=
"password"
>
{{ text[lenguage].password }}
</label>
<input
class=
"field__input"
type=
"password"
name=
"password"
id=
"password"
>
</div>
<div
class=
"actions"
>
<input
class=
"btn"
type=
"submit"
[
value
]="
text
[
lenguage
].
button
"
>
</div>
</form>
</div>
</div>
</div>
src/app/security/pages/sign-in/sign-in.component.ts
0 → 100644
View file @
f8dffe3a
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-sign-in'
,
templateUrl
:
'./sign-in.component.html'
,
styleUrls
:
[
'./sign-in.component.css'
]
})
export
class
SignInComponent
{
public
lenguage
:
string
=
'es'
;
public
lenguages
:
any
[]
=
[
{
value
:
'es'
,
text
:
'Español'
},
{
value
:
'en'
,
text
:
'English'
}
];
public
text
:
any
=
{
es
:
{
email
:
'Usuario o email'
,
password
:
'Contraseña'
,
button
:
'Iniciar sesión'
},
en
:
{
email
:
'Username or email'
,
password
:
'Password'
,
button
:
'Sign in'
}
}
changeLenguage
(
lenguage
:
string
)
{
this
.
lenguage
=
lenguage
;
}
}
src/assets/bytea-logo-color.png
0 → 100644
View file @
f8dffe3a
14.4 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment