diff --git a/src/pages/extra-pages/UserMenu/index.js b/src/pages/extra-pages/UserMenu/index.js index 28649ba..2e31d5d 100644 --- a/src/pages/extra-pages/UserMenu/index.js +++ b/src/pages/extra-pages/UserMenu/index.js @@ -7,8 +7,8 @@ import { useIntl, FormattedMessage } from "react-intl"; import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png' const BackgroundHead = { backgroundImage: `url(${titleBackgroundImg})`, - width: '100%', - height: '100%', + width: 'auto', + height: 'auto', backgroundSize: 'contain', backgroundRepeat: 'no-repeat', backgroundColor: '#0C489E', @@ -24,6 +24,8 @@ const UserMenu = () => { const { locale } = intl; const [onReady, setOnReady] = useState(false); + const pnspsurl = "https://"+window.location.hostname; + useEffect(() => { setOnReady(true); }, [locale]); @@ -62,8 +64,8 @@ const UserMenu = () => { : ( - - + +
@@ -72,97 +74,100 @@ const UserMenu = () => {
- -
- -

- - - - - - - - - - {getRow({ - title: , - en: "https://pnsps.gld.gov.hk/user-guide/eng/01 - Account Activation.pdf", - zh: "https://pnsps.gld.gov.hk/user-guide/cht/01c - Account Activation.pdf", - cn: "https://pnsps.gld.gov.hk/user-guide/chs/01sc - Account Activation.pdf" - })} - - {getRow({ - title: , - en: "https://pnsps.gld.gov.hk/user-guide/eng/02 - Login.pdf", - zh: "https://pnsps.gld.gov.hk/user-guide/cht/02c - Login.pdf", - cn: "https://pnsps.gld.gov.hk/user-guide/chs/02sc - Login.pdf" - })} - - {getRow({ - title: , - en: "https://pnsps.gld.gov.hk/user-guide/eng/03 - Application for publishing a Public Notice in the Gazette.pdf", - zh: "https://pnsps.gld.gov.hk/user-guide/cht/03c - Application for publishing a Public Notice in the Gazette.pdf", - cn: "https://pnsps.gld.gov.hk/user-guide/chs/03sc - Application for publishing a Public Notice in the Gazette.pdf" - })} - - {getRow({ - title: , - en: "https://pnsps.gld.gov.hk/user-guide/eng/04 - Proofreading reply (with correction).pdf", - zh: "https://pnsps.gld.gov.hk/user-guide/cht/04c - Proofreading reply (with correction).pdf", - cn: "https://pnsps.gld.gov.hk/user-guide/chs/04sc - Proofreading reply (with correction).pdf" - })} - - {getRow({ - title: , - en: "https://pnsps.gld.gov.hk/user-guide/eng/05 - Proofreading reply (pass for printing).pdf", - zh: "https://pnsps.gld.gov.hk/user-guide/cht/05c - Proofreading reply (pass for printing).pdf", - cn: "https://pnsps.gld.gov.hk/user-guide/chs/05sc - Proofreading reply (pass for printing).pdf" - })} - - {getRow({ - title: , - en: "https://pnsps.gld.gov.hk/user-guide/eng/06 - Cancellation of application for publishing a Public Notice in the Gazette.pdf", - zh: "https://pnsps.gld.gov.hk/user-guide/cht/06c - Cancellation of application for publishing a Public Notice in the Gazette.pdf", - cn: "https://pnsps.gld.gov.hk/user-guide/chs/06sc - Cancellation of application for publishing a Public Notice in the Gazette.pdf" - })} - - {getRow({ - title: , - en: "https://pnsps.gld.gov.hk/user-guide/eng/07 - Forgot password.pdf", - zh: "https://pnsps.gld.gov.hk/user-guide/cht/07c - Forgot password.pdf", - cn: "https://pnsps.gld.gov.hk/user-guide/chs/07sc - Forgot password.pdf" - })} - - {getRow({ - title: , - en: "https://pnsps.gld.gov.hk/user-guide/eng/08 - Change password.pdf", - zh: "https://pnsps.gld.gov.hk/user-guide/cht/08c - Change password.pdf", - cn: "https://pnsps.gld.gov.hk/user-guide/chs/08sc - Change password.pdf" - })} - - {getRow({ - title: , - en: "https://pnsps.gld.gov.hk/user-guide/eng/09 - Language of email notification.pdf", - zh: "https://pnsps.gld.gov.hk/user-guide/cht/09c - Language of email notification.pdf", - cn: "https://pnsps.gld.gov.hk/user-guide/chs/09sc - Language of email notification.pdf" - })} - - {getRow({ - title: , - en: "https://pnsps.gld.gov.hk/user-guide/eng/10 - Download General Demand Note for making payment(s).pdf", - zh: "https://pnsps.gld.gov.hk/user-guide/cht/10c - Download General Demand Note for making payment(s).pdf", - cn: "https://pnsps.gld.gov.hk/user-guide/chs/10sc - Download General Demand Note for making payment(s).pdf" - })} - - -
English繁體中文简体中文
-

-
+ + + +
+ +

+ + + + + + + + + + {getRow({ + title: , + en: pnspsurl + "/user-guide/eng/01 - Create account - 1.pdf", + zh: pnspsurl + "/user-guide/cht/01c - Create account - 1.pdf", + cn: pnspsurl + "/user-guide/chs/01sc - Create account - 1.pdf" + })} + + {getRow({ + title: , + en: pnspsurl + "/user-guide/eng/02 - Login - 1.pdf", + zh: pnspsurl + "/user-guide/cht/02c - Login - 1.pdf", + cn: pnspsurl + "/user-guide/chs/02sc - Login - 1.pdf" + })} + + {getRow({ + title: , + en: pnspsurl + "/user-guide/eng/03 - Application for publishing a Public Notice in the Gazette - 1.pdf", + zh: pnspsurl + "/user-guide/cht/03c - Application for publishing a Public Notice in the Gazette - 1.pdf", + cn: pnspsurl + "/user-guide/chs/03sc - Application for publishing a Public Notice in the Gazette - 1.pdf" + })} + + {getRow({ + title: , + en: pnspsurl + "/user-guide/eng/04 - Proofreading reply (with correction) - 1.pdf", + zh: pnspsurl + "/user-guide/cht/04c - Proofreading reply (with correction) - 1.pdf", + cn: pnspsurl + "/user-guide/chs/04sc - Proofreading reply (with correction) - 1.pdf" + })} + + {getRow({ + title: , + en: pnspsurl + "/user-guide/eng/05 - Proofreading reply (pass for printing) - 1.pdf", + zh: pnspsurl + "/user-guide/cht/05c - Proofreading reply (pass for printing) - 1.pdf", + cn: pnspsurl + "/user-guide/chs/05sc - Proofreading reply (pass for printing) - 1.pdf" + })} + + {getRow({ + title: , + en: pnspsurl + "/user-guide/eng/06 - Cancellation of application for publishing a Public Notice in the Gazette - 1.pdf", + zh: pnspsurl + "/user-guide/cht/06c - Cancellation of application for publishing a Public Notice in the Gazette - 1.pdf", + cn: pnspsurl + "/user-guide/chs/06sc - Cancellation of application for publishing a Public Notice in the Gazette - 1.pdf" + })} + + {getRow({ + title: , + en: pnspsurl + "/user-guide/eng/07 - Forgot password - 1.pdf", + zh: pnspsurl + "/user-guide/cht/07c - Forgot password - 1.pdf", + cn: pnspsurl + "/user-guide/chs/07sc - Forgot password - 1.pdf" + })} + + {getRow({ + title: , + en: pnspsurl + "/user-guide/eng/08 - Change password - 1.pdf", + zh: pnspsurl + "/user-guide/cht/08c - Change password - 1.pdf", + cn: pnspsurl + "/user-guide/chs/08sc - Change password - 1.pdf" + })} + + {getRow({ + title: , + en: pnspsurl + "/user-guide/eng/09 - Language of email notification - 1.pdf", + zh: pnspsurl + "/user-guide/cht/09c - Language of email notification - 1.pdf", + cn: pnspsurl + "/user-guide/chs/09sc - Language of email notification - 1.pdf" + })} + + {getRow({ + title: , + en: pnspsurl + "/user-guide/eng/10 - Download General Demand Note for making payment(s) - 1.pdf", + zh: pnspsurl + "/user-guide/cht/10c - Download General Demand Note for making payment(s) - 1.pdf", + cn: pnspsurl + "/user-guide/chs/10sc - Download General Demand Note for making payment(s) - 1.pdf" + })} + + +
English繁體中文简体中文
+

+
+
) diff --git a/src/pages/extra-pages/UserMenuPub/index.js b/src/pages/extra-pages/UserMenuPub/index.js index 0f0e201..1f9c3e7 100644 --- a/src/pages/extra-pages/UserMenuPub/index.js +++ b/src/pages/extra-pages/UserMenuPub/index.js @@ -7,8 +7,8 @@ import { useIntl, FormattedMessage } from "react-intl"; import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png' const BackgroundHead = { backgroundImage: `url(${titleBackgroundImg})`, - width: '100%', - height: '100%', + width: 'auto', + height: 'auto', backgroundSize: 'contain', backgroundRepeat: 'no-repeat', backgroundColor: '#0C489E', @@ -64,137 +64,139 @@ const UserMenu = () => {
: ( - - + +
- +
- -
- -

- - - - - - - - - {getRow({ - title: , - orgEn: pnspsurl + "/user-guide-pub/eng/01 - Create account - c 1.pdf", - orgZh: pnspsurl + "/user-guide-pub/cht/01c - Create account - c 1.pdf", - orgCn: pnspsurl + "/user-guide-pub/chs/01sc - Create account - c 1.pdf", - indEn: pnspsurl + "/user-guide-pub/eng/01 - Create account - p 1.pdf", - indZh: pnspsurl + "/user-guide-pub/cht/01c - Create account - p 1.pdf", - indCn: pnspsurl + "/user-guide-pub/chs/01sc - Create account - p 1.pdf" - })} - - {getRow({ - title: , - orgEn: pnspsurl + "/user-guide-pub/eng/02 - Login - c 1.pdf", - orgZh: pnspsurl + "/user-guide-pub/cht/02c - Login - c 1.pdf", - orgCn: pnspsurl + "/user-guide-pub/chs/02sc - Login - c 1.pdf", - indEn: pnspsurl + "/user-guide-pub/eng/02 - Login - p 1.pdf", - indZh: pnspsurl + "/user-guide-pub/cht/02c - Login - p 1.pdf", - indCn: pnspsurl + "/user-guide-pub/chs/02sc - Login - p 1.pdf" - })} - - {getRow({ - title: , - orgEn: pnspsurl + "/user-guide-pub/eng/03 - Application for publishing a Public Notice in the Gazette - c 1.pdf", - orgZh: pnspsurl + "/user-guide-pub/cht/03c - Application for publishing a Public Notice in the Gazette - c 1.pdf", - orgCn: pnspsurl + "/user-guide-pub/chs/03sc - Application for publishing a Public Notice in the Gazette - c 1.pdf", - indEn: pnspsurl + "/user-guide-pub/eng/03 - Application for publishing a Public Notice in the Gazette - p 1.pdf", - indZh: pnspsurl + "/user-guide-pub/cht/03c - Application for publishing a Public Notice in the Gazette - p 1.pdf", - indCn: pnspsurl + "/user-guide-pub/chs/03sc - Application for publishing a Public Notice in the Gazette - p 1.pdf" - })} - - {getRow({ - title: , - orgEn: pnspsurl + "/user-guide-pub/eng/04 - Proofreading reply (with correction) - c 1.pdf", - orgZh: pnspsurl + "/user-guide-pub/cht/04c - Proofreading reply (with correction) - c 1.pdf", - orgCn: pnspsurl + "/user-guide-pub/chs/04sc - Proofreading reply (with correction) - c 1.pdf", - indEn: pnspsurl + "/user-guide-pub/eng/04 - Proofreading reply (with correction) - p 1.pdf", - indZh: pnspsurl + "/user-guide-pub/cht/04c - Proofreading reply (with correction) - p 1.pdf", - indCn: pnspsurl + "/user-guide-pub/chs/04sc - Proofreading reply (with correction) - p 1.pdf" - })} - - {getRow({ - title: , - orgEn: pnspsurl + "/user-guide-pub/eng/05 - Proofreading reply (pass for printing) - c 1.pdf", - orgZh: pnspsurl + "/user-guide-pub/cht/05c - Proofreading reply (pass for printing) - c 1.pdf", - orgCn: pnspsurl + "/user-guide-pub/chs/05sc - Proofreading reply (pass for printing) - c 1.pdf", - indEn: pnspsurl + "/user-guide-pub/eng/05 - Proofreading reply (pass for printing) - p 1.pdf", - indZh: pnspsurl + "/user-guide-pub/cht/05c - Proofreading reply (pass for printing) - p 1.pdf", - indCn: pnspsurl + "/user-guide-pub/chs/05sc - Proofreading reply (pass for printing) - p 1.pdf" - })} - - {getRow({ - title: , - orgEn: pnspsurl + "/user-guide-pub/eng/06 - Cancellation of application for publishing a Public Notice in the Gazette - c 1.pdf", - orgZh: pnspsurl + "/user-guide-pub/cht/06c - Cancellation of application for publishing a Public Notice in the Gazette - c 1.pdf", - orgCn: pnspsurl + "/user-guide-pub/chs/06sc - Cancellation of application for publishing a Public Notice in the Gazette - c 1.pdf", - indEn: pnspsurl + "/user-guide-pub/eng/06 - Cancellation of application for publishing a Public Notice in the Gazette - p 1.pdf", - indZh: pnspsurl + "/user-guide-pub/cht/06c - Cancellation of application for publishing a Public Notice in the Gazette - p 1.pdf", - indCn: pnspsurl + "/user-guide-pub/chs/06sc - Cancellation of application for publishing a Public Notice in the Gazette - p 1.pdf" - })} - - {getRow({ - title: , - orgEn: pnspsurl + "/user-guide-pub/eng/07 - Forgot password - c 1.pdf", - orgZh: pnspsurl + "/user-guide-pub/cht/07c - Forgot password - c 1.pdf", - orgCn: pnspsurl + "/user-guide-pub/chs/07sc - Forgot password - c 1.pdf", - indEn: pnspsurl + "/user-guide-pub/eng/07 - Forgot password - p 1.pdf", - indZh: pnspsurl + "/user-guide-pub/cht/07c - Forgot password - p 1.pdf", - indCn: pnspsurl + "/user-guide-pub/chs/07sc - Forgot password - p 1.pdf" - })} - - {getRow({ - title: , - orgEn: pnspsurl + "/user-guide-pub/eng/08 - Change password - c 1.pdf", - orgZh: pnspsurl + "/user-guide-pub/cht/08c - Change password - c 1.pdf", - orgCn: pnspsurl + "/user-guide-pub/chs/08sc - Change password - c 1.pdf", - indEn: pnspsurl + "/user-guide-pub/eng/08 - Change password - p 1.pdf", - indZh: pnspsurl + "/user-guide-pub/cht/08c - Change password - p 1.pdf", - indCn: pnspsurl + "/user-guide-pub/chs/08sc - Change password - p 1.pdf" - })} - - {getRow({ - title: , - orgEn: pnspsurl + "/user-guide-pub/eng/09 - Language of email notification - c 1.pdf", - orgZh: pnspsurl + "/user-guide-pub/cht/09c - Language of email notification - c 1.pdf", - orgCn: pnspsurl + "/user-guide-pub/chs/09sc - Language of email notification - c 1.pdf", - indEn: pnspsurl + "/user-guide-pub/eng/09 - Language of email notification - p 1.pdf", - indZh: pnspsurl + "/user-guide-pub/cht/09c - Language of email notification - p 1.pdf", - indCn: pnspsurl + "/user-guide-pub/chs/09sc - Language of email notification - p 1.pdf" - })} - - {getRow({ - title: , - orgEn: pnspsurl + "/user-guide-pub/eng/10-Payment-c1.pdf", - orgZh: pnspsurl + "/user-guide-pub/cht/10c-Payment-c1.pdf", - orgCn: pnspsurl + "/user-guide-pub/chs/10sc-Payment-c1.pdf", - indEn: pnspsurl + "/user-guide-pub/eng/10-Payment-p1.pdf", - indZh: pnspsurl + "/user-guide-pub/cht/10c-Payment-p1.pdf", - indCn: pnspsurl + "/user-guide-pub/chs/10sc-Payment-p1.pdf" - })} - + + +
+ +

-

- -

-
+ + + + + + + + {getRow({ + title: , + orgEn: pnspsurl + "/user-guide-pub/eng/01 - Create account - c 1.pdf", + orgZh: pnspsurl + "/user-guide-pub/cht/01c - Create account - c 1.pdf", + orgCn: pnspsurl + "/user-guide-pub/chs/01sc - Create account - c 1.pdf", + indEn: pnspsurl + "/user-guide-pub/eng/01 - Create account - p 1.pdf", + indZh: pnspsurl + "/user-guide-pub/cht/01c - Create account - p 1.pdf", + indCn: pnspsurl + "/user-guide-pub/chs/01sc - Create account - p 1.pdf" + })} + + {getRow({ + title: , + orgEn: pnspsurl + "/user-guide-pub/eng/02 - Login - c 1.pdf", + orgZh: pnspsurl + "/user-guide-pub/cht/02c - Login - c 1.pdf", + orgCn: pnspsurl + "/user-guide-pub/chs/02sc - Login - c 1.pdf", + indEn: pnspsurl + "/user-guide-pub/eng/02 - Login - p 1.pdf", + indZh: pnspsurl + "/user-guide-pub/cht/02c - Login - p 1.pdf", + indCn: pnspsurl + "/user-guide-pub/chs/02sc - Login - p 1.pdf" + })} + + {getRow({ + title: , + orgEn: pnspsurl + "/user-guide-pub/eng/03 - Application for publishing a Public Notice in the Gazette - c 1.pdf", + orgZh: pnspsurl + "/user-guide-pub/cht/03c - Application for publishing a Public Notice in the Gazette - c 1.pdf", + orgCn: pnspsurl + "/user-guide-pub/chs/03sc - Application for publishing a Public Notice in the Gazette - c 1.pdf", + indEn: pnspsurl + "/user-guide-pub/eng/03 - Application for publishing a Public Notice in the Gazette - p 1.pdf", + indZh: pnspsurl + "/user-guide-pub/cht/03c - Application for publishing a Public Notice in the Gazette - p 1.pdf", + indCn: pnspsurl + "/user-guide-pub/chs/03sc - Application for publishing a Public Notice in the Gazette - p 1.pdf" + })} + + {getRow({ + title: , + orgEn: pnspsurl + "/user-guide-pub/eng/04 - Proofreading reply (with correction) - c 1.pdf", + orgZh: pnspsurl + "/user-guide-pub/cht/04c - Proofreading reply (with correction) - c 1.pdf", + orgCn: pnspsurl + "/user-guide-pub/chs/04sc - Proofreading reply (with correction) - c 1.pdf", + indEn: pnspsurl + "/user-guide-pub/eng/04 - Proofreading reply (with correction) - p 1.pdf", + indZh: pnspsurl + "/user-guide-pub/cht/04c - Proofreading reply (with correction) - p 1.pdf", + indCn: pnspsurl + "/user-guide-pub/chs/04sc - Proofreading reply (with correction) - p 1.pdf" + })} + + {getRow({ + title: , + orgEn: pnspsurl + "/user-guide-pub/eng/05 - Proofreading reply (pass for printing) - c 1.pdf", + orgZh: pnspsurl + "/user-guide-pub/cht/05c - Proofreading reply (pass for printing) - c 1.pdf", + orgCn: pnspsurl + "/user-guide-pub/chs/05sc - Proofreading reply (pass for printing) - c 1.pdf", + indEn: pnspsurl + "/user-guide-pub/eng/05 - Proofreading reply (pass for printing) - p 1.pdf", + indZh: pnspsurl + "/user-guide-pub/cht/05c - Proofreading reply (pass for printing) - p 1.pdf", + indCn: pnspsurl + "/user-guide-pub/chs/05sc - Proofreading reply (pass for printing) - p 1.pdf" + })} + + {getRow({ + title: , + orgEn: pnspsurl + "/user-guide-pub/eng/06 - Cancellation of application for publishing a Public Notice in the Gazette - c 1.pdf", + orgZh: pnspsurl + "/user-guide-pub/cht/06c - Cancellation of application for publishing a Public Notice in the Gazette - c 1.pdf", + orgCn: pnspsurl + "/user-guide-pub/chs/06sc - Cancellation of application for publishing a Public Notice in the Gazette - c 1.pdf", + indEn: pnspsurl + "/user-guide-pub/eng/06 - Cancellation of application for publishing a Public Notice in the Gazette - p 1.pdf", + indZh: pnspsurl + "/user-guide-pub/cht/06c - Cancellation of application for publishing a Public Notice in the Gazette - p 1.pdf", + indCn: pnspsurl + "/user-guide-pub/chs/06sc - Cancellation of application for publishing a Public Notice in the Gazette - p 1.pdf" + })} + + {getRow({ + title: , + orgEn: pnspsurl + "/user-guide-pub/eng/07 - Forgot password - c 1.pdf", + orgZh: pnspsurl + "/user-guide-pub/cht/07c - Forgot password - c 1.pdf", + orgCn: pnspsurl + "/user-guide-pub/chs/07sc - Forgot password - c 1.pdf", + indEn: pnspsurl + "/user-guide-pub/eng/07 - Forgot password - p 1.pdf", + indZh: pnspsurl + "/user-guide-pub/cht/07c - Forgot password - p 1.pdf", + indCn: pnspsurl + "/user-guide-pub/chs/07sc - Forgot password - p 1.pdf" + })} + + {getRow({ + title: , + orgEn: pnspsurl + "/user-guide-pub/eng/08 - Change password - c 1.pdf", + orgZh: pnspsurl + "/user-guide-pub/cht/08c - Change password - c 1.pdf", + orgCn: pnspsurl + "/user-guide-pub/chs/08sc - Change password - c 1.pdf", + indEn: pnspsurl + "/user-guide-pub/eng/08 - Change password - p 1.pdf", + indZh: pnspsurl + "/user-guide-pub/cht/08c - Change password - p 1.pdf", + indCn: pnspsurl + "/user-guide-pub/chs/08sc - Change password - p 1.pdf" + })} + + {getRow({ + title: , + orgEn: pnspsurl + "/user-guide-pub/eng/09 - Language of email notification - c 1.pdf", + orgZh: pnspsurl + "/user-guide-pub/cht/09c - Language of email notification - c 1.pdf", + orgCn: pnspsurl + "/user-guide-pub/chs/09sc - Language of email notification - c 1.pdf", + indEn: pnspsurl + "/user-guide-pub/eng/09 - Language of email notification - p 1.pdf", + indZh: pnspsurl + "/user-guide-pub/cht/09c - Language of email notification - p 1.pdf", + indCn: pnspsurl + "/user-guide-pub/chs/09sc - Language of email notification - p 1.pdf" + })} + + {getRow({ + title: , + orgEn: pnspsurl + "/user-guide-pub/eng/10-Payment-c1.pdf", + orgZh: pnspsurl + "/user-guide-pub/cht/10c-Payment-c1.pdf", + orgCn: pnspsurl + "/user-guide-pub/chs/10sc-Payment-c1.pdf", + indEn: pnspsurl + "/user-guide-pub/eng/10-Payment-p1.pdf", + indZh: pnspsurl + "/user-guide-pub/cht/10c-Payment-p1.pdf", + indCn: pnspsurl + "/user-guide-pub/chs/10sc-Payment-p1.pdf" + })} + + +
+ +

+ +
)