Add basic frontend structure
This commit is contained in:
parent
f0eff338ff
commit
4f5f2be68f
29 changed files with 4659 additions and 3811 deletions
10
frontend/src/lib/util.ts
Normal file
10
frontend/src/lib/util.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
export const currentDaytime = function(): string {
|
||||
const currentHour = new Date().getHours()
|
||||
|
||||
if (currentHour >= 0 && currentHour < 12) {
|
||||
return 'morning'
|
||||
} else if (currentHour >= 12 && currentHour < 18) {
|
||||
return 'day'
|
||||
}
|
||||
return 'evening'
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue