diff --git a/app/[locale]/home/account/LogoutButton.tsx b/app/[locale]/home/account/LogoutButton.tsx
index c2d3a7e..2dee801 100644
--- a/app/[locale]/home/account/LogoutButton.tsx
+++ b/app/[locale]/home/account/LogoutButton.tsx
@@ -15,6 +15,6 @@ export const LogoutButton: FC = () => {
};
return (
-
+
)
}
\ No newline at end of file
diff --git a/app/[locale]/home/account/page.tsx b/app/[locale]/home/account/page.tsx
index b9950cc..257f59c 100644
--- a/app/[locale]/home/account/page.tsx
+++ b/app/[locale]/home/account/page.tsx
@@ -2,6 +2,7 @@ import { FC } from 'react';
import { Main } from '@/app/ui/Main';
import Link from 'next/link';
import SettingsIcon from "@mui/icons-material/Settings";
+import HomeIcon from "@mui/icons-material/Home";
import AccountCircle from "@mui/icons-material/AccountCircle";
import { getTranslations, getLocale } from 'next-intl/server';
import { LogoutButton } from './LogoutButton';
@@ -16,7 +17,8 @@ const Page: FC = async () => {
{t('title')}
-
{t('settings-button')}
+
{t('goto-home-button-label')}
+
{t('goto-settings-button-label')}
diff --git a/app/ui/InfoBox.tsx b/app/ui/InfoBox.tsx
index c101ee5..2380761 100644
--- a/app/ui/InfoBox.tsx
+++ b/app/ui/InfoBox.tsx
@@ -10,13 +10,13 @@ export const InfoBox: FC<{
const t = useTranslations("info-box");
return (
-
+
{title ?? t("default-title")}
- {children}
+ {children}
)
}
diff --git a/app/ui/PageHeader.tsx b/app/ui/PageHeader.tsx
index bcdbb9d..627b603 100644
--- a/app/ui/PageHeader.tsx
+++ b/app/ui/PageHeader.tsx
@@ -19,7 +19,7 @@ export const PageHeader = () => {
{isRestrictedPage && (
-
+
)}
diff --git a/app/ui/UserSettingsForm.tsx b/app/ui/UserSettingsForm.tsx
index ffa3a81..581407e 100644
--- a/app/ui/UserSettingsForm.tsx
+++ b/app/ui/UserSettingsForm.tsx
@@ -356,7 +356,7 @@ const FormFields: FC = ({ userSettings, errors, message }) => {
t("save-button")
)}
-
+
{t("cancel-button")}
diff --git a/messages/en.json b/messages/en.json
index 50c0a1c..08cfef5 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -4,8 +4,9 @@
},
"account-page": {
"title": "User account",
- "settings-button": "User Settings",
- "logout-button": "Logout"
+ "goto-home-button-label": "Back to home",
+ "goto-settings-button-label": "User Settings",
+ "logout-button-label": "Logout"
},
"PageFooter": {
"app-description": "Helping you to stay on top of your utility bills",
diff --git a/messages/hr.json b/messages/hr.json
index cd3a06c..7c7e970 100644
--- a/messages/hr.json
+++ b/messages/hr.json
@@ -4,8 +4,9 @@
},
"account-page": {
"title": "Korisnički račun",
- "settings-button": "Korisničke postavke",
- "logout-button": "Odjava"
+ "goto-home-button-label": "Povratak na početnu",
+ "goto-settings-button-label": "Korisničke postavke",
+ "logout-button-label": "Odjava"
},
"PageFooter": {
"app-description": "Preuzmite kontrolu nad svojim režijama!",
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 2586424..2889b2d 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -25,6 +25,18 @@ const config: Config = {
transform: 'translateX(100%)',
},
},
+ animateDown: {
+ '0%': {
+ opacity: '0',
+ transform: 'translateY(-15px)',
+ maxHeight: '0px',
+ },
+ '100%': {
+ opacity: '1',
+ transform: 'translateY(0)',
+ maxHeight: '200px',
+ },
+ },
},
},
plugins: [