Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Team 5 - Smart Towns
Manage
Activity
Members
Labels
Plan
Issues
34
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container 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
Rhys Evans
Team 5 - Smart Towns
Merge requests
!25
Resolve "As a user, I would like a place to see all my earned badges, so that I can track my progress."
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "As a user, I would like a place to see all my earned badges, so that I can track my progress."
gamification
into
main
Overview
0
Commits
11
Pipelines
0
Changes
14
Merged
Gabriel Copat
requested to merge
gamification
into
main
1 year ago
Overview
0
Commits
11
Pipelines
0
Changes
2
Expand
Closes #51
Main Goal:
Implementing the User Profile Page
Tasks
Page HTML
Page CSS
Page shows user name and picture
Page shows earned badges
Page shows earned stickers
Page shows user progress of the Dragon Tale
Page has appropriate Controller
Edited
1 year ago
by
Gabriel Copat
0
0
Merge request reports
Viewing commit
679daf57
Prev
Next
Show latest version
2 files
+
189
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
679daf57
Implemented tooltips!
· 679daf57
Gabriel Copat
authored
1 year ago
src/main/resources/static/css/userProfile.css
0 → 100644
+
230
−
0
Options
/* AUTHOR: Gabriel Copat*/
/*FONTS, TYPOGRAPHY & BACKGROUNDS*/
*
{
margin
:
0
;
padding
:
0
;
&
h1,
&
h2
{
letter-spacing
:
0.25vw
;
line-height
:
1.3
;
text-align
:
center
;
color
:
white
;
text-justify
:
inter-word
;
}
}
@media
only
screen
and
(
max-device-width
:
500px
)
{
/*ADJUSTING FOR SMALLER SCREENS*/
*
{
&
h1,
&
h2
{
text-shadow
:
rgba
(
0
,
0
,
0
,
0.7
)
0
0.5
svh
1
svh
;}
&
p
{
line-height
:
1.1
;
color
:
white
;}
}
}
body
{
background
:
linear-gradient
(
135deg
,
#9f74be
,
#3e126b
);
height
:
100
svh
;
}
main
{
background
:
linear-gradient
(
to
bottom
,
#1e1e1e
10%
,
darkgoldenrod
50%
,
#1e1e1e
90%
);
border-radius
:
1vw
;
margin-inline
:
5%
;
/*margin-block: 5%;*/
width
:
auto
;
padding-block
:
2
svh
;
margin-top
:
6em
;
padding-inline
:
1vw
;
box-shadow
:
rgba
(
0
,
0
,
0
,
0.7
)
0
0.5
svh
max
(
1vw
,
1em
);
}
.userInfo
{
display
:
flex
;
flex-direction
:
column
;
/*padding: min(2vw, 4em);*/
text-align
:
center
;
&
#userPicture
{
width
:
min
(
30vw
,
30em
);
margin-inline
:
auto
;
border-radius
:
100%
;
border
:
solid
#a2a2a2
4px
;
box-shadow
:
rgba
(
0
,
0
,
0
,
0.7
)
0
0.5
svh
max
(
1vw
,
1em
);
}
&
h1
{
font-size
:
max
(
5vw
,
2em
);
margin
:
1
svh
25%
;
color
:
white
;
border-bottom
:
#36454F
solid
2px
;
border-radius
:
5vw
;
box-shadow
:
rgba
(
0
,
0
,
0
,
0.7
)
0
0.5
svh
1vw
-1vw
;
}
}
#badgesBar
::-webkit-scrollbar
{
display
:
none
;
-ms-scrollbar-darkshadow-color
:
transparent
;
}
#badgesBar
{
display
:
grid
;
grid-template-areas
:
"header"
"badges"
;
overflow-x
:
scroll
;
overflow-y
:
hidden
;
color
:
white
;
padding-bottom
:
2%
;
@media
only
screen
and
(
min-device-width
:
501px
)
{
height
:
24vw
;
}
&
h2
{
position
:
absolute
;
grid-area
:
header
;
margin-inline
:
5vw
;
padding-inline
:
2vw
;
margin-block
:
-1
svh
;
box-shadow
:
rgba
(
0
,
0
,
0
,
0.7
)
0
0.5
svh
1vw
-1vw
;
border-bottom
:
#36454F
solid
2px
;
font-size
:
4vw
;
width
:
7em
;
height
:
1.2em
;
}
&
#allBadgesContainer
{
margin-top
:
3
svh
;
grid-area
:
badges
;
height
:
10
svh
;
align-content
:
center
;
display
:
flex
;
@media
only
screen
and
(
min-device-width
:
501px
)
{
height
:
20vw
;
margin-top
:
6vw
;
}
}
&
.badgeImg
{
margin-inline
:
3vw
;
height
:
8
svh
;
z-index
:
50
;
@media
only
screen
and
(
min-device-width
:
501px
)
{
height
:
15vw
;
}
transition
:
0
.
3
s
ease-out
100
ms
;
}
&
.badgeImg
:hover
{
/*box-shadow: 0 0 20px 10px #bbbb00;*/
transform
:
scale
(
1.5
,
1.5
);
}
}
#stickersBox
{
padding-top
:
5%
;
display
:
flex
;
flex-direction
:
column
;
/* border-bottom-left-radius: 2vw; */
/* border-bottom-right-radius: 2vw; */
/*background: linear-gradient(to bottom, darkgoldenrod, transparent 90%);*/
margin-top
:
-1%
;
&
h2
{
font-size
:
4em
;
text-align
:
center
;
box-shadow
:
rgba
(
0
,
0
,
0
,
0.7
)
0
2vw
2vw
-2vw
;
border-bottom
:
#36454F
solid
2px
;
margin-block
:
1
svh
;
margin-inline
:
25%
;
}
&
.stickersContainer
{
margin-block
:
1
svh
;
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
space-around
;
width
:
100%
;
&
.stickerImg
{
width
:
20vw
;
margin-block
:
1em
;
}
}
}
.locked
{
filter
:
grayscale
(
100%
);
}
.dragonProgression
{
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
text-align
:
center
;
height
:
16
svh
;
box-sizing
:
content-box
;
/*background: linear-gradient(to bottom, transparent -50%, darkgoldenrod 50%);*/
width
:
100%
;
/*padding-top: 1svh;*/
@media
only
screen
and
(
min-device-width
:
501px
)
{
height
:
28vw
;
margin-bottom
:
0
;
padding-bottom
:
5
svh
;
}
&
h1
{
font-size
:
3em
;
box-shadow
:
rgba
(
0
,
0
,
0
,
0.7
)
0
2vw
2vw
-2vw
;
border-bottom
:
#36454F
solid
2px
;
border-top
:
#36454F
solid
2px
;
margin-inline
:
25%
;
margin-bottom
:
1%
;
}
&
.dragonContainer
{
position
:
relative
;
margin
:
auto
;
}
&
.dragonImg
{
height
:
10
svh
;
width
:
16
svh
;
@media
only
screen
and
(
min-device-width
:
501px
)
{
height
:
22vw
;
width
:
30vw
;
}
}
&
.dragonFill
{
position
:
absolute
;
overflow
:
hidden
;
width
:
40%
;
}
&
.dragonOut
{
/*position: absolute;*/
overflow
:
hidden
;
}
}
header
{
z-index
:
99
;
top
:
0.5
svh
;
left
:
0
;
position
:
fixed
;
width
:
100vw
;
justify-content
:
center
;
display
:
flex
;
}
header
.footerBar
{
display
:
flex
;
list-style
:
none
;
border-radius
:
1vw
;
overflow
:
hidden
;
justify-content
:
space-evenly
;
background-color
:
rgba
(
0
,
0
,
0
,
0.7
);
}
header
.footerButton
{
padding
:
1vw
;
text-align
:
center
;
/*flex: 1 1;*/
color
:
crimson
;
background-color
:
rgba
(
31
,
31
,
31
,
0.7
);
font-size
:
2.5em
;
width
:
15vw
;
}
header
.footerButton
:hover
{
background-color
:
#36454F
;
}
\ No newline at end of file
Loading