Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new referral page, added referral button on teerdays website #7

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified assets/img/.DS_Store
Binary file not shown.
Binary file modified assets/img/index/.DS_Store
Binary file not shown.
19 changes: 14 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,7 @@ export default defineNuxtConfig({
routeRules: {
"/": { ssr: false },
"/teerdays": { ssr: false },
"/referral": { ssr: false },
},
imports: {
autoImport: false,
Expand Down
15 changes: 11 additions & 4 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,21 @@
/></a>
</div>

<div v-if="accounts.length < 1" class="mt-10 flex">
<button
<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>
</button>
<a href="https://teerdays.incognitee.io/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">
<img
Expand Down
Loading
Loading