forked from bloom-housing/bloom
-
Notifications
You must be signed in to change notification settings - Fork 1
/
application.tsx
47 lines (45 loc) · 1.45 KB
/
application.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import * as React from "react"
import Head from "next/head"
import { t, LocalizedLink, SiteHeader } from "@bloom-housing/ui-components"
import AlamedaFooter from "../components/AlamedaFooter"
import SVG from "react-inlinesvg"
const Layout = (props) => (
<div>
<Head>
<title>{t("nav.siteTitle")}</title>
</Head>
<SiteHeader
logoSrc="/images/logo_glyph.svg"
notice={
<>
This is a preview of our new website. We're just getting started. We'd love to get{" "}
<a
href="https://docs.google.com/forms/d/e/1FAIpQLScr7JuVwiNW8q-ifFUWTFSWqEyV5ndA08jAhJQSlQ4ETrnl9w/viewform?usp=sf_link"
target="_blank"
>
your feedback
</a>
.
</>
}
title={t("nav.siteTitle")}
>
<LocalizedLink href="/listings" className="navbar-item">
{t("nav.browseProperties")}
</LocalizedLink>
<a href="https://www.acgov.org/cda/hcd/index.htm" target="_blank" className="navbar-item">
{t("nav.getAssistance")}
</a>
{/* Only show Get Assistance if housing counselor data is available */}
{process.env.housingCounselorServiceUrl && (
<LocalizedLink href="/housing-counselors" className="navbar-item">
{t("nav.getAssistance")}
</LocalizedLink>
)}
</SiteHeader>
<main>{props.children}</main>
<AlamedaFooter />
<SVG src="/images/icons.svg" />
</div>
)
export default Layout