|
2 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this
|
3 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
4 | 4 |
|
5 |
| -import { ReactNode } from 'react' |
6 |
| -import '../../../client/css/index.css' |
7 |
| -import Image from 'next/image' |
8 |
| -import MonitorLogo from '../../../client/images/[email protected]' |
9 |
| -import MozillaLogo from '../../../client/images/moz-logo-1color-white-rgb-01.svg' |
10 |
| -import { getL10n } from '../../functions/server/l10n' |
| 5 | +import { ReactNode } from "react"; |
| 6 | +import "../../../client/css/index.css"; |
| 7 | +import Image from "next/image"; |
| 8 | +import MonitorLogo from "../../../client/images/[email protected]"; |
| 9 | +import MozillaLogo from "../../../client/images/moz-logo-1color-white-rgb-01.svg"; |
| 10 | +import { SignInButton } from "../components/client/SignInButton"; |
| 11 | +import { getL10n } from "../../functions/server/l10n"; |
11 | 12 |
|
12 | 13 | export type Props = {
|
13 |
| - children: ReactNode |
14 |
| -} |
| 14 | + children: ReactNode; |
| 15 | +}; |
15 | 16 |
|
16 | 17 | const GuestLayout = (props: Props) => {
|
17 |
| - const l10n = getL10n() |
| 18 | + const l10n = getL10n(); |
18 | 19 |
|
19 | 20 | return (
|
20 | 21 | <>
|
21 | 22 | <header>
|
22 |
| - <a href='/'> |
23 |
| - <Image className='monitor-logo' src={MonitorLogo} width='213' height='33' alt={l10n.getString('brand-fx-monitor')}/> |
| 23 | + <a href="/"> |
| 24 | + <Image |
| 25 | + className="monitor-logo" |
| 26 | + src={MonitorLogo} |
| 27 | + width="213" |
| 28 | + height="33" |
| 29 | + alt={l10n.getString("brand-fx-monitor")} |
| 30 | + /> |
24 | 31 | </a>
|
25 | 32 | <menu>
|
26 |
| - <li><a href='/user/breaches' data-cta-id='sign-in-1' className='button secondary'>{l10n.getString('sign-in')}</a></li> |
| 33 | + <li> |
| 34 | + <SignInButton /> |
| 35 | + </li> |
27 | 36 | </menu>
|
28 | 37 | </header>
|
29 |
| - <main> |
30 |
| - {props.children} |
31 |
| - </main> |
32 |
| - <footer className='site-footer'> |
33 |
| - <a href='https://www.mozilla.org' target='_blank'> |
34 |
| - <Image src={MozillaLogo} width='100' height='29' loading='lazy' alt={l10n.getString('mozilla')}/> |
| 38 | + <main>{props.children}</main> |
| 39 | + <footer className="site-footer"> |
| 40 | + <a href="https://www.mozilla.org" target="_blank"> |
| 41 | + <Image |
| 42 | + src={MozillaLogo} |
| 43 | + width="100" |
| 44 | + height="29" |
| 45 | + loading="lazy" |
| 46 | + alt={l10n.getString("mozilla")} |
| 47 | + /> |
35 | 48 | </a>
|
36 | 49 | <menu>
|
37 |
| - <li><a href='/breaches'>{l10n.getString('footer-nav-all-breaches')}</a></li> |
38 |
| - <li><a href='https://support.mozilla.org/kb/firefox-monitor-faq' target='_blank'>FAQ</a></li> |
39 |
| - <li><a href='https://www.mozilla.org/privacy/firefox-monitor' target='_blank'>{l10n.getString('terms-and-privacy')}</a></li> |
40 |
| - <li><a href='https://github.com/mozilla/blurts-server' target='_blank'>{l10n.getString('github')}</a></li> |
| 50 | + <li> |
| 51 | + <a href="/breaches">{l10n.getString("footer-nav-all-breaches")}</a> |
| 52 | + </li> |
| 53 | + <li> |
| 54 | + <a |
| 55 | + href="https://support.mozilla.org/kb/firefox-monitor-faq" |
| 56 | + target="_blank" |
| 57 | + > |
| 58 | + FAQ |
| 59 | + </a> |
| 60 | + </li> |
| 61 | + <li> |
| 62 | + <a |
| 63 | + href="https://www.mozilla.org/privacy/firefox-monitor" |
| 64 | + target="_blank" |
| 65 | + > |
| 66 | + {l10n.getString("terms-and-privacy")} |
| 67 | + </a> |
| 68 | + </li> |
| 69 | + <li> |
| 70 | + <a href="https://github.com/mozilla/blurts-server" target="_blank"> |
| 71 | + {l10n.getString("github")} |
| 72 | + </a> |
| 73 | + </li> |
41 | 74 | </menu>
|
42 | 75 | </footer>
|
43 | 76 | </>
|
44 |
| - ) |
45 |
| -} |
| 77 | + ); |
| 78 | +}; |
46 | 79 |
|
47 |
| -export default GuestLayout |
| 80 | +export default GuestLayout; |
0 commit comments