From f24bf34b881eec388561a9784897978e19434023 Mon Sep 17 00:00:00 2001 From: gildardoSOD <100874861+gildardoSOD@users.noreply.github.com> Date: Fri, 2 Dec 2022 17:05:14 -0800 Subject: [PATCH] Merge from Stg to Main (#443) * Merge from Dev to Stg (#436) * feat(SNW-24): Adjust styling on save my spot button (#413) * feat(SNW-26): Fix secret nfts page (#412) * feat(SNW-25): Adjust width and style in Countdown (#411) * feat(SNW-8): Implement Hero section (#416) * feat(SNW-10): Implement Banner section (#418) * feat(SNW-9): Implement Description Section (#417) * Remove unnecessary query fields * feat(SNW-11): Implement speakers section (#419) * feat(SNW-13): Implement announcement section (#421) * feat(SNW-12): Implement Sponsors section (#420) * feat(SNW-14): Implement About Secret and CTAs section (#422) * feat(SNW-17): Implement event started state (#423) * feat(SNW-16): Implement Summit Agenda page (#425) * feat(SNW-16): Implement Summit Agenda page * fix: Adjust fixes from Strapi to make site work * fix: Remove unnecesary user img * feat: Adjust time formats * feat(SNW-18): Integrate chat and live stream (#426) * feat(SNW-31): Adjust footer (#429) * feat(SNW-31): Adjust footer * feat: fix: Adjust first letter in text to uppercase * feat(SNW-29): Adjust breadcrumb with content in mobile (#428) * feat(SNW-28): Adjust color in UTC word (#427) * feat(SNW-36): Fix problem when sponsor image empty (#431) * feat(SNW-40): Adjust time column on Summit Agenda page (#434) * feat(SNW-35): Hide moderator cell if empty (#430) * feat(SNW-34): Adjust speaker image size on Speakers section (#435) * feat(SNW-33): Adjust styles in all buttons (#432) * feat(SNW-32): Add missing column headers on agenda table on mobile (#433) * Merge from Dev to Stg (#439) * feat(SNW-24): Adjust styling on save my spot button (#413) * feat(SNW-26): Fix secret nfts page (#412) * feat(SNW-25): Adjust width and style in Countdown (#411) * feat(SNW-8): Implement Hero section (#416) * feat(SNW-10): Implement Banner section (#418) * feat(SNW-9): Implement Description Section (#417) * Remove unnecessary query fields * feat(SNW-11): Implement speakers section (#419) * feat(SNW-13): Implement announcement section (#421) * feat(SNW-12): Implement Sponsors section (#420) * feat(SNW-14): Implement About Secret and CTAs section (#422) * feat(SNW-17): Implement event started state (#423) * feat(SNW-16): Implement Summit Agenda page (#425) * feat(SNW-16): Implement Summit Agenda page * fix: Adjust fixes from Strapi to make site work * fix: Remove unnecesary user img * feat: Adjust time formats * feat(SNW-18): Integrate chat and live stream (#426) * feat(SNW-31): Adjust footer (#429) * feat(SNW-31): Adjust footer * feat: fix: Adjust first letter in text to uppercase * feat(SNW-29): Adjust breadcrumb with content in mobile (#428) * feat(SNW-28): Adjust color in UTC word (#427) * feat(SNW-36): Fix problem when sponsor image empty (#431) * feat(SNW-40): Adjust time column on Summit Agenda page (#434) * feat(SNW-35): Hide moderator cell if empty (#430) * feat(SNW-34): Adjust speaker image size on Speakers section (#435) * feat(SNW-33): Adjust styles in all buttons (#432) * feat(SNW-32): Add missing column headers on agenda table on mobile (#433) * feat(SNW-42): Implement new Save my spot button (#438) * feat(SNW-42): Implement new Save my spot button * fix: Adjust script * fix: Adjust event script in Summit page * fix: Change script order * fix: Move script to function * feat: Add client only component * feat: Remove no script tag * Merge from Dev to Stg (#442) * feat(SNW-24): Adjust styling on save my spot button (#413) * feat(SNW-26): Fix secret nfts page (#412) * feat(SNW-25): Adjust width and style in Countdown (#411) * feat(SNW-8): Implement Hero section (#416) * feat(SNW-10): Implement Banner section (#418) * feat(SNW-9): Implement Description Section (#417) * Remove unnecessary query fields * feat(SNW-11): Implement speakers section (#419) * feat(SNW-13): Implement announcement section (#421) * feat(SNW-12): Implement Sponsors section (#420) * feat(SNW-14): Implement About Secret and CTAs section (#422) * feat(SNW-17): Implement event started state (#423) * feat(SNW-16): Implement Summit Agenda page (#425) * feat(SNW-16): Implement Summit Agenda page * fix: Adjust fixes from Strapi to make site work * fix: Remove unnecesary user img * feat: Adjust time formats * feat(SNW-18): Integrate chat and live stream (#426) * feat(SNW-31): Adjust footer (#429) * feat(SNW-31): Adjust footer * feat: fix: Adjust first letter in text to uppercase * feat(SNW-29): Adjust breadcrumb with content in mobile (#428) * feat(SNW-28): Adjust color in UTC word (#427) * feat(SNW-36): Fix problem when sponsor image empty (#431) * feat(SNW-40): Adjust time column on Summit Agenda page (#434) * feat(SNW-35): Hide moderator cell if empty (#430) * feat(SNW-34): Adjust speaker image size on Speakers section (#435) * feat(SNW-33): Adjust styles in all buttons (#432) * feat(SNW-32): Add missing column headers on agenda table on mobile (#433) * feat(SNW-42): Implement new Save my spot button (#438) * feat(SNW-42): Implement new Save my spot button * fix: Adjust script * fix: Adjust event script in Summit page * fix: Change script order * fix: Move script to function * feat: Add client only component * feat: Remove no script tag * feat: Adjust Homepage Summit button --- src/components/HomeEventBannerCountdown.vue | 13 ++------ src/components/page/LandingSneakPeekEvent.vue | 32 ++++++++++++++++++- src/components/summit/AnnouncementSection.vue | 27 +++++++++------- src/components/summit/HeroSection.vue | 27 +++++++++------- 4 files changed, 63 insertions(+), 36 deletions(-) diff --git a/src/components/HomeEventBannerCountdown.vue b/src/components/HomeEventBannerCountdown.vue index a5909f62..b750fa62 100644 --- a/src/components/HomeEventBannerCountdown.vue +++ b/src/components/HomeEventBannerCountdown.vue @@ -5,17 +5,8 @@

until Secret Summit

COMING IN DECEMBER

- - check icon - Save my spot + + FIND OUT MORE diff --git a/src/components/page/LandingSneakPeekEvent.vue b/src/components/page/LandingSneakPeekEvent.vue index 75273ed8..6593dd17 100644 --- a/src/components/page/LandingSneakPeekEvent.vue +++ b/src/components/page/LandingSneakPeekEvent.vue @@ -32,6 +32,9 @@ export default { src: "https://www.googletagmanager.com/gtag/js?id=G-FS23DKM3PL%22%3E", async: true, }, + { + src: "https://www.eventbrite.com/static/widgets/eb_widgets.js", + }, ], }; }, @@ -68,6 +71,32 @@ export default { gtag('config', 'G-FS23DKM3PL');`; document.head.appendChild(functionScript); }, + addEventScript() { + const eventScript = document.createElement("script"); + eventScript.type = "text/javascript"; + eventScript.innerHTML = ` + var exampleCallback = function () { + console.log("Order complete!"); + setTimeout(function () { + window.open("https://scrt.network/summit/thank-you", "_self"); + }, 500); + }; + + var clientId; + ga(function (tracker) { + clientId = tracker.get("clientId"); + }); + + window.EBWidgets.createWidget({ + widgetType: "checkout", + eventId: "444225429217", + googleAnalyticsClientId: clientId, + modal: true, + modalTriggerElementId: "eventbrite-widget-modal-trigger-444225429217", + onOrderComplete: exampleCallback, + });`; + document.body.appendChild(eventScript); + }, }, computed: { summitAbout() { @@ -99,7 +128,8 @@ export default { setTimeout(() => { this.sneakPeek(); this.addAdScript(); - }, 100); + this.addEventScript(); + }, 200); }, }; diff --git a/src/components/summit/AnnouncementSection.vue b/src/components/summit/AnnouncementSection.vue index e4f56159..ea7d197a 100644 --- a/src/components/summit/AnnouncementSection.vue +++ b/src/components/summit/AnnouncementSection.vue @@ -2,18 +2,19 @@
{{ data.title }} - - check icon - {{ data.cta_button.title }} - + + +
@@ -88,6 +89,8 @@ export default { line-height: 20px; letter-spacing: 1px; text-transform: uppercase; + font-family: "Hind"; + margin-bottom: 0; span { padding-top: 3px; diff --git a/src/components/summit/HeroSection.vue b/src/components/summit/HeroSection.vue index 92d119a2..22207609 100644 --- a/src/components/summit/HeroSection.vue +++ b/src/components/summit/HeroSection.vue @@ -9,18 +9,19 @@

{{ data.title }}

{{ data.body }}

- - check icon - {{ data.cta_button.title }} - + + + @@ -74,6 +75,8 @@ export default { line-height: 20px; letter-spacing: 1px; text-transform: uppercase; + margin-bottom: 0; + font-family: "Hind"; &:visited:hover, &:hover {