-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(support): add support email buttons (#1534)
* feat(support): add support email buttons * chore(footer): remove redundant mb * feat(preview): fix scroll to top bug
- Loading branch information
1 parent
1feb940
commit 8e1a788
Showing
5 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,50 @@ | ||
'use client' | ||
import Image from 'next/image' | ||
import TavlaLogo from 'assets/logos/Tavla-white.svg' | ||
import { Heading3, Link as EnturLink, Paragraph } from '@entur/typography' | ||
import Link from 'next/link' | ||
import { ExternalIcon, GithubIcon } from '@entur/icons' | ||
import { usePostHog } from 'posthog-js/react' | ||
|
||
function Footer() { | ||
const posthog = usePostHog() | ||
return ( | ||
<footer className="eds-contrast"> | ||
<div className="container mx-auto pt-16 pb-4"> | ||
<Image src={TavlaLogo} alt="" /> | ||
<div className="flex flex-col sm:flex-row justify-between"> | ||
<div> | ||
<Heading3>Entur AS</Heading3> | ||
<Paragraph className="mb-4 items-center"> | ||
<Paragraph className=" items-center"> | ||
Rådhusgata 5, 0151 Oslo | ||
<br /> | ||
Postboks 1554, 0117 Oslo | ||
</Paragraph> | ||
<Paragraph className="mb-4 items-center"> | ||
<Paragraph className="items-center"> | ||
Organisasjonsnummer: | ||
<br /> | ||
917 422 575 | ||
</Paragraph> | ||
<Paragraph className="mb-4 items-center flex flex-row gap-1"> | ||
<Paragraph | ||
className="items-center flex flex-row gap-1" | ||
margin="none" | ||
> | ||
<EnturLink href="https://www.entur.org/kontakt-oss/"> | ||
Kontakt oss | ||
Kontakt kundesenteret | ||
</EnturLink> | ||
<ExternalIcon className="!top-0" /> | ||
</Paragraph> | ||
<Paragraph className="items-center flex flex-row gap-1"> | ||
<EnturLink | ||
href="mailto:[email protected]" | ||
target="_blank" | ||
onClick={() => | ||
posthog.capture('SUPPORT_EMAIL', { | ||
type: 'footer', | ||
}) | ||
} | ||
> | ||
Kontakt Tavla | ||
</EnturLink> | ||
<ExternalIcon className="!top-0" /> | ||
</Paragraph> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
'use client' | ||
import { EmailIcon } from '@entur/icons' | ||
import Link from 'next/link' | ||
import { usePostHog } from 'posthog-js/react' | ||
|
||
function FloatingContact() { | ||
const posthog = usePostHog() | ||
return ( | ||
<div className="fixed bottom-12 right-12"> | ||
<Link | ||
onClick={() => | ||
posthog.capture('SUPPORT_EMAIL', { type: 'floating' }) | ||
} | ||
href="mailto:[email protected]" | ||
target="_blank" | ||
className="flex items-center justify-center w-14 h-14 rounded-full border-primary border-2 bg-primary hover:bg-secondary" | ||
> | ||
<EmailIcon size={20} /> | ||
</Link> | ||
</div> | ||
) | ||
} | ||
export { FloatingContact } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters