Skip to content

Commit

Permalink
Merge pull request #8 from integritee-network/ap/referral
Browse files Browse the repository at this point in the history
referral
  • Loading branch information
brenzi authored Sep 27, 2024
2 parents 4b8b3bb + 244c1b4 commit 5eaf215
Show file tree
Hide file tree
Showing 21 changed files with 1,898 additions and 91 deletions.
Binary file modified assets/img/.DS_Store
Binary file not shown.
Binary file modified assets/img/index/.DS_Store
Binary file not shown.
20 changes: 15 additions & 5 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ export default defineNuxtConfig({
charset: "utf-8",
viewport: "width=device-width, initial-scale=1",
meta: [
// {
// hid: 'robots',
// name: 'robots',
// content: 'noindex',
// },
{
hid: "msapplication-TileColor",
name: "msapplication-TileColor",
Expand Down Expand Up @@ -52,6 +47,19 @@ export default defineNuxtConfig({
color: "#1c1c26",
},
],
script: [
{
hid: "referralhero",
innerHTML: `
!function(m,a,i,t,r,e){if(m.RH)return;r=m.RH={},r.uuid=t,r.loaded=0,r.base_url=i,r.queue=[],m.rht=function(){r.queue.push(arguments)};e=a.getElementsByTagName('script')[0],c=a.createElement('script');c.async=!0,c.src='https://referralhero-global-code.s3.amazonaws.com/'+'production'+'/'+t+'.js',e.parentNode.insertBefore(c,e)}(window,document,'https://app.referralhero.com/','RHd320fee641');
`,
type: "text/javascript",
charset: "utf-8",
},
],
__dangerouslyDisableSanitizersByTagID: {
referralhero: ["innerHTML"],
},
},
},
experimental: {
Expand All @@ -60,6 +68,8 @@ export default defineNuxtConfig({
routeRules: {
"/": { ssr: false },
"/teerdays": { ssr: false },
"/referral": { ssr: false },
"/referraltc": { ssr: false },
},
imports: {
autoImport: false,
Expand Down
12 changes: 10 additions & 2 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,21 @@
/></a>
</div>

<div v-if="accounts.length < 1" class="mt-10 flex">
<div class="mt-10 flex">
<button
v-if="accounts.length < 1"
@click="connect"
class="incognitee-bg btn btn_gradient rounded-md px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-400"
class="mr-5 incognitee-bg btn btn_gradient rounded-md px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-400"
>
Connect Wallet
</button>
<a href="referral" target="_blank">
<button
class="ring-1 ring-inset ring-incognitee-green rounded-md px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-incognitee-green focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:bg-incognitee-green"
>
Refer a friend
</button></a
>
</div>
</div>
<div class="hidden sm:block sm:pl-40 mx-auto w-full max-w-xl lg:mx-0">
Expand Down
Loading

0 comments on commit 5eaf215

Please sign in to comment.