1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-23 05:19:37 +02:00

Small changes to CSS. README.md with screenshots

This commit is contained in:
unknown 2021-06-08 12:51:50 +02:00
parent 1636b705de
commit 22920f2660
16 changed files with 70 additions and 40 deletions

View file

@ -51,17 +51,7 @@ const Home = (props: ComponentProps): JSX.Element => {
const now = new Date();
const ordinal = (day: number): string => {
if (day > 3 && day < 21) return 'th';
switch (day % 10) {
case 1: return "st";
case 2: return "nd";
case 3: return "rd";
default: return "th";
}
}
return `${days[now.getDay()]}, ${now.getDate()}${ordinal(now.getDate())} ${months[now.getMonth()]} ${now.getFullYear()}`;
return `${days[now.getDay()]}, ${now.getDate()} ${months[now.getMonth()]} ${now.getFullYear()}`;
}
const greeter = (): string => {
@ -94,6 +84,8 @@ const Home = (props: ComponentProps): JSX.Element => {
: <AppGrid apps={props.apps.filter((app: App) => app.isPinned)} />
}
<div className={classes.HomeSpace}></div>
<SectionHeadline title='Bookmarks' link='/bookmarks' />
{props.categoriesLoading
? <Spinner />