diff --git a/README.md b/README.md index edfd123..dabcdad 100644 --- a/README.md +++ b/README.md @@ -90,24 +90,38 @@ And then visit [https://localhost:5000](https://localhost:5000). An applist is configurable in the public folder to setup the grid of app accessible within Twake Calendar. -Each app has three fields: +1. Copy `public/appList.example.js` to `public/appList.js` +2. Place your app icons in `public/assets/images/svg/` directory +3. Configure each app with three fields: -- name: the app’s name -- icon: the link to the app’s icon -- link: the app’s link or URL +- name: the app's name +- icon: the path to the app's icon (relative to public folder, e.g., `/assets/images/svg/app-chat.svg`) +- link: the app's link or URL Example: ```js var appList = [ { - name: "My App", - icon: "https://myapp.com/myapp.png", - link: "https://myapp.com", + name: "Chat", + link: "/twake", + icon: "/assets/images/svg/app-chat.svg", + }, + { + name: "Drive", + link: "/drive", + icon: "/assets/images/svg/app-drive.svg", + }, + { + name: "Mail", + link: "/mail", + icon: "/assets/images/svg/app-mail.svg", }, ]; ``` +**Note**: `appList.js` is gitignored, so each environment can have its own configuration. The icon files in `public/assets/images/svg/` should be committed to the repository. + ## Roadmap The Minimum Viable Product involves all features currently used in production for **esn-frontend-calendar**. diff --git a/public/appList.example.js b/public/appList.example.js index 3a7a28d..37d54e0 100644 --- a/public/appList.example.js +++ b/public/appList.example.js @@ -1,7 +1,17 @@ var appList = [ { - name: "Twake", + name: "Chat", link: "/twake", - icon: "https://twake-chat.com/tild3037-6365-4134-b838-383030366263__twake-chat-logo.svg", + icon: "/assets/images/svg/app-chat.svg", + }, + { + name: "Drive", + link: "/drive", + icon: "/assets/images/svg/app-drive.svg", + }, + { + name: "Mail", + link: "/mail", + icon: "/assets/images/svg/app-mail.svg", }, ]; diff --git a/public/assets/images/svg/app-chat.svg b/public/assets/images/svg/app-chat.svg new file mode 100644 index 0000000..ca0d70c --- /dev/null +++ b/public/assets/images/svg/app-chat.svg @@ -0,0 +1,28 @@ + diff --git a/public/assets/images/svg/app-drive.svg b/public/assets/images/svg/app-drive.svg new file mode 100644 index 0000000..7f83f3e --- /dev/null +++ b/public/assets/images/svg/app-drive.svg @@ -0,0 +1,24 @@ + diff --git a/public/assets/images/svg/app-mail.svg b/public/assets/images/svg/app-mail.svg new file mode 100644 index 0000000..c05bedd --- /dev/null +++ b/public/assets/images/svg/app-mail.svg @@ -0,0 +1,23 @@ + diff --git a/src/components/Menubar/Menubar.styl b/src/components/Menubar/Menubar.styl index 38f7345..ade328e 100644 --- a/src/components/Menubar/Menubar.styl +++ b/src/components/Menubar/Menubar.styl @@ -71,15 +71,11 @@ .app-grid display grid grid-template-columns repeat(3, 1fr) - gap 16px - padding 16px + gap 0 + padding 0 justify-items center align-items center -.app-grid img - width 48px - height 48px - .app-grid p margin-top 6px font-size 14px diff --git a/src/components/Menubar/Menubar.tsx b/src/components/Menubar/Menubar.tsx index ef2bf55..277ad41 100644 --- a/src/components/Menubar/Menubar.tsx +++ b/src/components/Menubar/Menubar.tsx @@ -282,6 +282,14 @@ export function Menubar({ vertical: "top", horizontal: "right", }} + PaperProps={{ + sx: { + minWidth: 230, + mt: 2, + p: "14px 8px", + borderRadius: "14px", + }, + }} >
{prop.name}
-