From ab191e8d9b028e4bc8f1ebfb24023dd1c3354e87 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sat, 27 Apr 2024 00:06:52 -0400 Subject: [PATCH] Removed AI desktop-only splash in favor of better mobile splash --- .../assets/js => .frontmatter}/rbtools.min.js | 0 {src/assets/js => .frontmatter}/rs6.min.js | 0 {src/assets/js => .frontmatter}/three.min.js | 0 src/components.d.ts | 16 +- .../capacitor-site/capacitor-site.scss | 21 ++ .../capacitor-site/capacitor-site.tsx | 251 +++++++++--------- src/components/code-snippet/code-snippet.tsx | 24 +- src/global/style-default.scss | 19 +- src/manifest.json | 2 +- .../landing-page/components/top-parallax.scss | 6 +- .../landing-page/components/top-parallax.tsx | 26 +- src/pages/landing-page/landing-page.scss | 2 +- src/pages/landing-page/landing-page.tsx | 8 +- 13 files changed, 210 insertions(+), 165 deletions(-) rename {src/assets/js => .frontmatter}/rbtools.min.js (100%) rename {src/assets/js => .frontmatter}/rs6.min.js (100%) rename {src/assets/js => .frontmatter}/three.min.js (100%) diff --git a/src/assets/js/rbtools.min.js b/.frontmatter/rbtools.min.js similarity index 100% rename from src/assets/js/rbtools.min.js rename to .frontmatter/rbtools.min.js diff --git a/src/assets/js/rs6.min.js b/.frontmatter/rs6.min.js similarity index 100% rename from src/assets/js/rs6.min.js rename to .frontmatter/rs6.min.js diff --git a/src/assets/js/three.min.js b/.frontmatter/three.min.js similarity index 100% rename from src/assets/js/three.min.js rename to .frontmatter/three.min.js diff --git a/src/components.d.ts b/src/components.d.ts index 8802841..184b885 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -42,13 +42,7 @@ export namespace Components { interface CapacitorHubspotForm { defaults: typeof defaults; } - interface CapacitorSite { - fullScreenSliderHTML: string; - isTouchscreen: any; - scriptsLoaded: number; - showCommunity: boolean; - showEmailInput: boolean; - } + interface CapacitorSite {} interface CapacitorSiteFooter { defaults: typeof defaults; } @@ -362,13 +356,7 @@ declare namespace LocalJSX { interface CapacitorHubspotForm { defaults?: typeof defaults; } - interface CapacitorSite { - fullScreenSliderHTML?: string; - isTouchscreen?: any; - scriptsLoaded?: number; - showCommunity?: boolean; - showEmailInput?: boolean; - } + interface CapacitorSite {} interface CapacitorSiteFooter { defaults?: typeof defaults; } diff --git a/src/components/capacitor-site/capacitor-site.scss b/src/components/capacitor-site/capacitor-site.scss index 1465fa0..4134319 100644 --- a/src/components/capacitor-site/capacitor-site.scss +++ b/src/components/capacitor-site/capacitor-site.scss @@ -183,3 +183,24 @@ body.home .alt-btns { .hide-buttons { display: none !important; } +@media (max-width: 420px) { + .btns { + zoom: 0.9; + } +} + +@media (max-width: 390px) { + .btns { + zoom: 0.8; + } +} + +@media (max-width: 360px) { + .btns { + zoom: 0.7; + } +} + +.hidesplash { + display: none; +} diff --git a/src/components/capacitor-site/capacitor-site.tsx b/src/components/capacitor-site/capacitor-site.tsx index 670c018..d8d5bb2 100644 --- a/src/components/capacitor-site/capacitor-site.tsx +++ b/src/components/capacitor-site/capacitor-site.tsx @@ -1,23 +1,27 @@ -import { Component, h, Prop, Build } from '@stencil/core'; +//import { Component, h, Prop, Build } from '@stencil/core' +import { Component, h } from '@stencil/core'; import { Routes } from '../../router'; import state from '../../store'; -import { importResource } from '../../utils/common'; -import { Button } from 'ionic-ds-no-fonts'; -import { defaults } from '../../store'; -declare let window: any; -declare let jQuery: any; -declare let RS_MODULES: any; -declare let revapi2: any; -declare let revslider_showDoubleJqueryError: any; +//import { importResource } from '../../utils/common' +//import { Button } from 'ionic-ds-no-fonts' +//import { defaults } from '../../store' +//declare let window: any +//declare let jQuery: any +//declare let RS_MODULES: any +//declare let revapi2: any +//declare let revslider_showDoubleJqueryError: any @Component({ tag: 'capacitor-site', styleUrl: 'capacitor-site.scss', }) export class App { - @Prop() showEmailInput: boolean = false; + /*@Prop() showEmailInput: boolean = false; @Prop() showCommunity: boolean = false; @Prop() scriptsLoaded: number = 0; - @Prop() isTouchscreen = (window as any).mobileSliderHero; + isTouchscreen = 'ontouchstart' in window || + navigator.maxTouchPoints > 0 || + (navigator as any).msMaxTouchPoints > 0 || + window.innerWidth < 1024 @Prop() fullScreenSliderHTML = `