Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Equipo 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
migudel
Equipo 3
Commits
0efa39cb
Commit
0efa39cb
authored
6 months ago
by
hugcubi
Browse files
Options
Downloads
Patches
Plain Diff
Mejorado el aspecto visual de la lista de usuarios
parent
f91a4532
No related branches found
No related tags found
2 merge requests
!10
Add ts types and json mocks, remove poblate scripts and fix the cascade...
,
!6
Main page
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
angular/RestClient/src/app/main-page/main-page.component.css
+93
-5
93 additions, 5 deletions
angular/RestClient/src/app/main-page/main-page.component.css
angular/RestClient/src/app/main-page/main-page.component.html
+16
-12
16 additions, 12 deletions
...lar/RestClient/src/app/main-page/main-page.component.html
with
109 additions
and
17 deletions
angular/RestClient/src/app/main-page/main-page.component.css
+
93
−
5
View file @
0efa39cb
/* main-page.component.css */
/* Fondo oscuro de la aplicación para un aspecto futurista */
body
{
background-color
:
#121212
;
color
:
#e0e0e0
;
font-family
:
'Roboto'
,
sans-serif
;
}
/* Contenedor principal con esquinas redondeadas y sombra sutil */
.user-container
{
max-width
:
600px
;
margin
:
30px
auto
;
padding
:
25px
;
background-color
:
#1f1f1f
;
border-radius
:
12px
;
box-shadow
:
0px
8px
20px
rgba
(
0
,
0
,
0
,
0.6
);
}
/* Título centralizado y con un estilo moderno */
h1
{
font-size
:
24px
;
text-align
:
center
;
font-size
:
2em
;
margin-bottom
:
25px
;
color
:
#ffffff
;
letter-spacing
:
1px
;
}
/* Contenedor de filtro centrado y limpio */
.filter-container
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
margin-bottom
:
20px
;
}
label
{
font-weight
:
600
;
margin-right
:
10px
;
color
:
#a1a1a1
;
}
/* Select estilizado con borde suave y sombras */
select
{
padding
:
10px
;
font-size
:
1em
;
border
:
none
;
outline
:
none
;
background-color
:
#292929
;
color
:
#e0e0e0
;
border-radius
:
6px
;
box-shadow
:
inset
0px
3px
8px
rgba
(
0
,
0
,
0
,
0.5
);
transition
:
all
0.3s
ease
;
}
select
:hover
{
background-color
:
#3a3a3a
;
}
ul
{
/* Lista de usuarios sin puntos y con bordes modernos */
.user-list
{
list-style-type
:
none
;
padding
:
0
;
margin
:
0
;
}
/* Elementos de la lista con espaciado y efecto hover futurista */
.user-item
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
15px
20px
;
margin-bottom
:
8px
;
background-color
:
#2c2c2c
;
border-radius
:
8px
;
transition
:
transform
0.3s
ease
,
background-color
0.3s
ease
;
cursor
:
pointer
;
}
.user-item
:hover
{
background-color
:
#333333
;
transform
:
translateY
(
-2px
);
box-shadow
:
0px
4px
12px
rgba
(
0
,
0
,
0
,
0.3
);
}
/* Estilos de usuario con tipografía clara y futurista */
.user-name
{
flex
:
1
;
font-weight
:
700
;
color
:
#ffffff
;
}
.user-email
{
flex
:
2
;
color
:
#b0b0b0
;
font-style
:
italic
;
text-align
:
left
;
padding-left
:
15px
;
}
li
{
margin
:
5px
0
;
.user-status
{
flex
:
1
;
font-weight
:
500
;
color
:
#76c7c0
;
text-transform
:
uppercase
;
text-align
:
right
;
}
This diff is collapsed.
Click to expand it.
angular/RestClient/src/app/main-page/main-page.component.html
+
16
−
12
View file @
0efa39cb
<div>
<div
class=
"user-container"
>
<h1>
Listado de Usuarios
</h1>
<label
for=
"filter"
>
Filtrar por estado:
</label>
<select
id=
"filter"
[(ngModel)]=
"selectedStatus"
(change)=
"filterUsers()"
>
<option
value=
"all"
>
Todos
</option>
<option
value=
"NO_BOOKINGS"
>
Sin reservas
</option>
<option
value=
"WITH_ACTIVE_BOOKINGS"
>
Con reservas activas
</option>
<option
value=
"WITH_INACTIVE_BOOKING"
>
Con reservas inactivas
</option>
</select>
<ul>
<li
*ngFor=
"let user of filteredUsers"
>
{{ user.name }} - {{ user.email }} - {{ user.status }}
<div
class=
"filter-container"
>
<label
for=
"filter"
>
Filtrar por estado:
</label>
<select
id=
"filter"
[(ngModel)]=
"selectedStatus"
(change)=
"filterUsers()"
>
<option
value=
"all"
>
Todos
</option>
<option
value=
"NO_BOOKINGS"
>
Sin reservas
</option>
<option
value=
"WITH_ACTIVE_BOOKINGS"
>
Con reservas activas
</option>
<option
value=
"WITH_INACTIVE_BOOKING"
>
Con reservas inactivas
</option>
</select>
</div>
<ul
class=
"user-list"
>
<li
*ngFor=
"let user of filteredUsers"
class=
"user-item"
>
<span
class=
"user-name"
>
{{ user.name }}
</span>
<span
class=
"user-email"
>
{{ user.email }}
</span>
<span
class=
"user-status"
>
{{ user.status }}
</span>
</li>
</ul>
</div>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment