Slightly improved registrations view
This commit is contained in:
parent
b951667421
commit
7095bd544f
@ -5,7 +5,11 @@ component UserRegistrations(total int, years []int, yearInfo map[int]utils.YearR
|
||||
for _, year := range years
|
||||
h3.mountable= year
|
||||
h4.mountable= strconv.Itoa(yearInfo[year].Total) + " registrations"
|
||||
for month := 1; month <= 12; month++
|
||||
p.mountable
|
||||
strong= time.Month(month).String() + ": "
|
||||
span= strconv.Itoa(yearInfo[year].Months[month])
|
||||
|
||||
.feature-cards
|
||||
for month := 1; month <= 12; month++
|
||||
.feature-card.mountable
|
||||
.feature-card-title= time.Month(month).String()
|
||||
.feature-card-text= strconv.Itoa(yearInfo[year].Months[month])
|
||||
|
||||
hr
|
5
pages/admin/registrations.scarlet
Normal file
5
pages/admin/registrations.scarlet
Normal file
@ -0,0 +1,5 @@
|
||||
.feature-card-title
|
||||
feature-card-component
|
||||
font-size 1.5rem
|
||||
background feature-card-color
|
||||
color feature-card-icon-color
|
@ -26,8 +26,7 @@ mixin feature-card
|
||||
.feature-card
|
||||
feature-card
|
||||
|
||||
.feature-card-icon,
|
||||
.feature-card-text
|
||||
mixin feature-card-component
|
||||
horizontal
|
||||
justify-content center
|
||||
align-items center
|
||||
@ -35,6 +34,10 @@ mixin feature-card
|
||||
padding 1rem
|
||||
margin 0
|
||||
|
||||
.feature-card-icon,
|
||||
.feature-card-text
|
||||
feature-card-component
|
||||
|
||||
.feature-card-icon
|
||||
font-size 3rem
|
||||
background feature-card-color
|
||||
|
Loading…
Reference in New Issue
Block a user