Skip to content

Commit

Permalink
Added ziosk and e2m logo; set 1 year expiration for cookie consent
Browse files Browse the repository at this point in the history
  • Loading branch information
rstaib committed Oct 16, 2020
1 parent 21f7642 commit 762b09e
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
6 changes: 5 additions & 1 deletion website/src/components/misc/cookie-consent.tsx
Expand Up @@ -16,7 +16,11 @@ export const CookieConsent: FunctionComponent = () => {
const consentCookieValue = cookies[cookieName];

const clickDismiss = () => {
setCookie(cookieName, "true", { path: "/" });
const expires = new Date();

expires.setFullYear(new Date().getFullYear() + 1);

setCookie(cookieName, "true", { path: "/", expires });
};

useEffect(() => {
Expand Down
7 changes: 7 additions & 0 deletions website/src/images/companies/e2m.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions website/src/images/companies/ziosk.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions website/src/pages/index.tsx
Expand Up @@ -26,11 +26,13 @@ import AeiLogoSvg from "../images/companies/aei.svg";
import AtminaLogoSvg from "../images/companies/atmina.svg";
import AutoguruLogoSvg from "../images/companies/autoguru.svg";
import CarmmunityLogoSvg from "../images/companies/carmmunity.svg";
import E2mLogoSvg from "../images/companies/e2m.svg";
import GiaLogoSvg from "../images/companies/gia.svg";
import MotiviewLogoSvg from "../images/companies/motiview.svg";
import PushpayLogoSvg from "../images/companies/pushpay.svg";
import Seven2OneLogoSvg from "../images/companies/seven-2-one.svg";
import SwissLifeLogoSvg from "../images/companies/swiss-life.svg";
import ZioskLogoSvg from "../images/companies/ziosk.svg";
import ContactUsSvg from "../images/contact-us.svg";
import DashboardSvg from "../images/dashboard.svg";
import GetStartedSvg from "../images/get-started.svg";
Expand Down Expand Up @@ -212,6 +214,11 @@ const IndexPage: FunctionComponent = () => {
<CarmmunityLogoSvg />
</Link>
</Logo>
<Logo width={90}>
<Link to="https://www.e2m.energy">
<E2mLogoSvg />
</Link>
</Logo>
<Logo width={120}>
<Link to="https://gia.ch">
<GiaLogoSvg />
Expand All @@ -237,6 +244,11 @@ const IndexPage: FunctionComponent = () => {
<SwissLifeLogoSvg />
</Link>
</Logo>
<Logo width={120}>
<Link to="https://www.ziosk.com">
<ZioskLogoSvg />
</Link>
</Logo>
</Logos>
</ContentContainer>
</SectionRow>
Expand Down

0 comments on commit 762b09e

Please sign in to comment.