diff --git a/app/components/header.hbs b/app/components/header.hbs index dfd80d93..38e5b411 100644 --- a/app/components/header.hbs +++ b/app/components/header.hbs @@ -51,7 +51,10 @@ class="nav__element" href={{this.STATUS_URL}} >Status - {{#if @dev}} + {{#if @dev}} +
  • + Subscribe +
  • {{! TODO - remove query for dev when it goes to production }} + {{#if this.isLoggedIn}} + {{#if (or this.isSubscribed this.showSubscribedMessage)}} +
    +

    🎉 You're Subscribed!

    +

    Thanks for your interest! You're all set to receive notifications when new applications open.

    +
    + {{else}} + {{#if this.isFormOpen}} + + {{else}} +

    Join the Real Dev Squad Community

    +

    We're currently not accepting new applications. Please check back in 2024.

    +

    Be the first to know when applications open!

    + + {{/if}} + {{/if}} + {{else}} + + {{/if}} + diff --git a/config/environment.js b/config/environment.js index f0094847..18dc1fe2 100644 --- a/config/environment.js +++ b/config/environment.js @@ -21,14 +21,20 @@ module.exports = function (environment) { fastboot: { hostWhitelist: [/^localhost:\d+$/, 'dev.realdevsquad.com'], }, + phoneInput: { + lazyLoad: true, + hasPrepend: false, + }, }; if (environment === 'production') { ENV.fastboot.hostWhitelist = ['realdevsquad.com']; + ENV.phoneInput.hasPrepend = true; } if (environment === 'staging') { ENV.fastboot.hostWhitelist = ['beta.realdevsquad.com']; + ENV.phoneInput.hasPrepend = true; } if (environment === 'development') { diff --git a/package.json b/package.json index 88b71842..87edafbc 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "d3-cloud": "1.2.7", "dotenv": "16.0.2", "ember-d3": "0.5.1", + "ember-phone-input": "^10.0.0", "exists-sync": "0.1.0", "fastboot-app-server": "3.3.2" }, diff --git a/yarn.lock b/yarn.lock index a0e258c2..5ee44be1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3110,6 +3110,15 @@ ember-cli-babel "^7.26.11" ember-modifier-manager-polyfill "^1.2.0" +"@ember/render-modifiers@^2.1.0": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@ember/render-modifiers/-/render-modifiers-2.1.0.tgz#f4fff95a8b5cfbe947ec46644732d511711c5bf9" + integrity sha512-LruhfoDv2itpk0fA0IC76Sxjcnq/7BC6txpQo40hOko8Dn6OxwQfxkPIbZGV0Cz7df+iX+VJrcYzNIvlc3w2EQ== + dependencies: + "@embroider/macros" "^1.0.0" + ember-cli-babel "^7.26.11" + ember-modifier-manager-polyfill "^1.2.0" + "@ember/string@3.1.1": version "3.1.1" resolved "https://registry.yarnpkg.com/@ember/string/-/string-3.1.1.tgz#0a5ac0d1e4925259e41d5c8d55ef616117d47ff0" @@ -9188,6 +9197,16 @@ ember-page-title@8.2.3: "@embroider/addon-shim" "^1.8.7" "@simple-dom/document" "^1.4.0" +ember-phone-input@^10.0.0: + version "10.0.0" + resolved "https://registry.yarnpkg.com/ember-phone-input/-/ember-phone-input-10.0.0.tgz#0aaac5e57e3cbd3f20973138d39c77caf5c6b36b" + integrity sha512-kebV05W7Y2+DN+xSwvPWe0ocVI3gK2UlaOjw8G1g5rw1Aoe0ouFI5ecCs+/5YvHRzPZzpASyrC3w63vpgSo9jA== + dependencies: + "@ember/render-modifiers" "^2.1.0" + "@embroider/addon-shim" "^1.8.7" + intl-tel-input "^18.0.0" + rsvp "^4.8.5" + ember-qunit@8.0.2: version "8.0.2" resolved "https://registry.yarnpkg.com/ember-qunit/-/ember-qunit-8.0.2.tgz#a6346136cba785853f176dfa6ed25e3f0a11b7a0" @@ -11376,6 +11395,11 @@ intersection-observer-admin@~0.3.2: resolved "https://registry.yarnpkg.com/intersection-observer-admin/-/intersection-observer-admin-0.3.3.tgz#176a2a08c1cfa9ec3bc74d81cb9ba6483c30e625" integrity sha512-aKMJPw/8cxybcgYTbnwGn87VgSFbSNNqeChRJahD+ai+jtwlCOdIcEvtuBd2BWO9bPuylVgeQVmGGfX2aS1NIg== +intl-tel-input@^18.0.0: + version "18.5.3" + resolved "https://registry.yarnpkg.com/intl-tel-input/-/intl-tel-input-18.5.3.tgz#20b18431cb802d33c118f52e332e218e641ec09b" + integrity sha512-ncFqSpkdGf2YC/FvAiwBH44KAeRG8L7aqDODEpOvMAT3ZpBtvc/WtwaQ/6X4+HKDTlGkobdBjr6P3nAMwO8jtA== + invariant@^2.2.2: version "2.2.4" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"