Slightly improved registrations view

This commit is contained in:
Eduard Urbach 2018-10-27 10:11:52 +09:00
parent b951667421
commit 7095bd544f
3 changed files with 18 additions and 6 deletions

View File

@ -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

View File

@ -0,0 +1,5 @@
.feature-card-title
feature-card-component
font-size 1.5rem
background feature-card-color
color feature-card-icon-color

View File

@ -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