-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
420 additions
and
70 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 |
---|---|---|
|
@@ -9,6 +9,8 @@ | |
|
||
Powered by **Internet Computer** | ||
|
||
GA TAG G-3SYTZ509HY | ||
|
||
--- | ||
|
||
- [Marketplace D-App](#marketplace-d-app) | ||
|
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 |
---|---|---|
@@ -1,26 +1,42 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="robots" content="index, follow" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:locale" content="en_US" /> | ||
<meta property="og:url" content="ekokedao.com" /> | ||
<meta property="og:site_name" content="EKOKEToken Marketplace DAO" /> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="96x96" | ||
href="./assets/images/favicon-96x96.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="32x32" | ||
href="./assets/images/favicon-32x32.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="16x16" | ||
href="./assets/images/favicon-16x16.png" | ||
/> | ||
<link href="./styles.css" rel="stylesheet" /> | ||
<title>EKOKE DAO</title> | ||
<!-- Google tag (gtag.js) --> | ||
<script | ||
async | ||
src="https://www.googletagmanager.com/gtag/js?id=G-3SYTZ509HY" | ||
></script> | ||
</head> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="robots" content="index, follow" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:locale" content="en_US" /> | ||
<meta property="og:url" content="ekokedao.com" /> | ||
<meta property="og:site_name" content="EKOKEToken Marketplace DAO" /> | ||
<link rel="icon" type="image/png" sizes="96x96" href="./assets/images/favicon-96x96.png" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png" /> | ||
<link rel="icon" type="image/png" sizes="16x16" href="./assets/images/favicon-16x16.png" /> | ||
<link href="./styles.css" rel="stylesheet" /> | ||
<title>EKOKE DAO</title> | ||
<script async src="https://analytics.veeso.dev/script.js" | ||
data-website-id="48ada2dc-040e-407f-9e36-431b3031e1dd"></script> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="index.tsx"></script> | ||
</body> | ||
|
||
</html> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="index.tsx"></script> | ||
</body> | ||
</html> |
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
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,77 @@ | ||
import * as React from 'react'; | ||
|
||
import { hasCookiePreferences, acceptAllCookies } from '../utils/cookies'; | ||
import { Route } from '../utils/routes'; | ||
import Container from './reusable/Container'; | ||
import Heading from './reusable/Heading'; | ||
import Paragraph from './reusable/Paragraph'; | ||
import Link from './reusable/Link'; | ||
import Button from './reusable/Button'; | ||
import { acceptGa4, initGa4 } from '../utils/analytics'; | ||
|
||
const CookieBar = () => { | ||
const [hasCookieBar, setHasCookieBar] = React.useState(false); | ||
|
||
const onAcceptAll = () => { | ||
acceptAllCookies(); | ||
onCookieBarClose(); | ||
acceptGa4(); | ||
}; | ||
|
||
const onCookieBarClose = () => { | ||
setHasCookieBar(false); | ||
}; | ||
|
||
const onGoToPolicy = () => { | ||
window.location.pathname = Route.url(Route.COOKIES); | ||
}; | ||
|
||
// init GA consent | ||
React.useEffect(() => { | ||
initGa4(); | ||
setTimeout(() => { | ||
setHasCookieBar(!hasCookiePreferences()); | ||
}, 1000); | ||
}, []); | ||
|
||
return ( | ||
<Container.Container | ||
className={`${ | ||
hasCookieBar ? 'animate__animated animate__slideInUp' : 'hidden' | ||
} fixed z-50 right-0 left-0 w-full bottom-4 max-w-[640px] sm:max-w-[768px]`} | ||
> | ||
<Container.Container className="bg-white shadow-2xl rounded border m-8 p-10 sm:h-2/6 sm:mx-8 sm:m-2 sm:p-4"> | ||
<Container.FlexCols className="justify-between sm:h-full"> | ||
<Container.Container className="sm:w-full sm:overflow-y-auto"> | ||
<Heading.H2 className="sm:py-0">Cookie Policy</Heading.H2> | ||
<Paragraph.Default className="sm:text-sm"> | ||
This site uses cookies to enhance users' browsing experience and | ||
to collect information about the site's usage. We use both | ||
technical cookies and third-party cookies to analyze user behavior | ||
for analytics. You can find more details by consulting our{' '} | ||
<Link.Paragraph href={Route.COOKIES}> | ||
Cookie Policy. | ||
</Link.Paragraph> | ||
</Paragraph.Default> | ||
</Container.Container> | ||
<Container.FlexRow className="justify-start gap-4 sm:my-2"> | ||
<Button.Primary | ||
onClick={onAcceptAll} | ||
className="sm:text-sm sm:px-4 sm:py-2" | ||
> | ||
Accept All | ||
</Button.Primary> | ||
<Button.Alternative | ||
onClick={onGoToPolicy} | ||
className="sm:text-sm sm:px-4 sm:py-2" | ||
> | ||
Customize | ||
</Button.Alternative> | ||
</Container.FlexRow> | ||
</Container.FlexCols> | ||
</Container.Container> | ||
</Container.Container> | ||
); | ||
}; | ||
|
||
export default CookieBar; |
Oops, something went wrong.